Re: Kernel includefile bug not fixed after a year :-(

From: Krzysztof Halasa (khc_at_pm.waw.pl)
Date: 09/30/03

  • Next message: Erik Andersen: "Re: Kernel includefile bug not fixed after a year :-("
    To: Jens Axboe <axboe@suse.de>
    Date:	30 Sep 2003 16:41:32 +0200
    
    

    Jens Axboe <axboe@suse.de> writes:

    > This discussion has spun off on a tangent. Joerg asked why that breakage
    > has not been fixed, I point out why that is so. I usually make sure that
    > whatever headers I mess with _do_ work from user space (cdrom.h is a
    > long nasty example), however it's never been guarenteed that this would
    > be the case for all kernel headers.

    Then we should fix the broken headers so that it is guaranteed.
    That's quite trivial, isn't it?

    I don't really understand why it's that important to duplicate
    definitions from kernel headers in libc ones.
    IMHO glibc headers should include kernel headers instead of defining
    things which are already defined by the kernel and used on kernel-user
    interface.

    Duplicate definitions should IMHO be removed from glibc headers.

    -- 
    Krzysztof Halasa, B*FH
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Erik Andersen: "Re: Kernel includefile bug not fixed after a year :-("

    Relevant Pages

    • Re: epoll gives broken results when interrupted with a signal
      ... When epoll seems to go wrong, ... my code can't pull in the kernel headers so it has its own ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • RE: Illegal use of reserved word in system.h
      ... MySQL using kernel headers is a bit sad given that the same macros were ... put into proper user mode headers and under even more open licenses by ... DRI one does seem to be a real bug. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] Make scsi.h nominally userspace-clean
      ... > scsi/scsi.h does not compile cleanly in userspace programs due to its ... > I do not argue that including this header file in a program is ... but other kernel headers already take as many precautions ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [RFC] Splitting kernel headers and deprecating __KERNEL__
      ... the kernel headers by googling for /usr/include/asm/foo.h. ... I don't think it's that uncommon to use spinlocks in user ... Chrony even has an FAQ entry on how to circumvent the ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Illegal use of reserved word in system.h
      ... > I'd like to request that this be renamed to something else, like mynew ... programs should not include kernel headers anyway. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)