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

From: Jens Axboe (axboe_at_suse.de)
Date: 09/30/03

  • Next message: Artur Klauser: "Re: div64.h:do_div() bug"
    Date:	Tue, 30 Sep 2003 14:28:32 +0200
    To: "David S. Miller" <davem@redhat.com>
    
    

    On Tue, Sep 30 2003, David S. Miller wrote:
    > On Tue, 30 Sep 2003 14:12:06 +0200
    > Andreas Steinmetz <ast@domdv.de> wrote:
    >
    > > Then please tell me why PPPIOCNEWUNIT is only defined in linux/if_ppp.h
    > > and not net/if_ppp.h which is still true for glibc-2.3.2. And please
    > > don't tell me to ask the glibc folks. There are inconsistencies between
    > > kernel headers and userland headers which force the inclusion of kernel
    > > headers in userland applications.
    >
    > Indeed, and equally someone tell me where all the IPSEC socket
    > interface defines are in glibc? It doesn't matter which tree
    > you check it won't be there.

    Did you notify them of the addition?

    > Even if one is of the opinion that nobody should be including the
    > kernel headers, you must fully realize that as a matter of
    > practicality people absolutely must do this to use many kernel
    > interfaces to their full extent.
    >
    > Suggest changes to fix the problems, but just saying "don't include
    > kernel header in your user apps, NYAH NYAH NYAH!" does not help
    > anyone at all.

    Well then change that to 'if you include kernel headers from your user
    apps, be prepared to pick fix the breakage'.

    Surely the kernel doesn't move at such an accelerated pace that it's
    impossible to keep kernel headers uptodate.

    -- 
    Jens Axboe
    -
    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: Artur Klauser: "Re: div64.h:do_div() bug"

    Relevant Pages

    • Re: Kernel includefile bug not fixed after a year :-(
      ... > don't tell me to ask the glibc folks. ... > kernel headers and userland headers which force the inclusion of kernel ... kernel header in your user apps, NYAH NYAH NYAH!" ...
      (Linux-Kernel)
    • 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)