Messages in this thread | | | Date | Mon, 15 Jun 1998 22:42:02 -0400 | From | "Theodore Y. Ts'o" <> | Subject | Re: OFFTOPIC: e2fsprogs and +2Gb partitions |
| |
From: alan@lxorguk.ukuu.org.uk (Alan Cox) Date: Sat, 13 Jun 1998 21:23:39 +0100 (BST)
Only if the exposed interface uses the kernel object. If glibc presents all the socket API's with POSIX compliant calls and does things like correct for the BSD and Linux noncompliance with the draft API in places etc then Ulrich is right.
Absolutely; if the interface is provided by libc, then the kernel header files should have nothing to do with it.
However, if the interface is provided by the kernel, and not libc --- such as ioctl's, filesystem constants, etc., then the right place to define these numbers is in the Linux header files, and including <linux/*.h> for those constants *is* the right thing, regardless of what Linus might have said. Replicating such constants in user programs is madness.
(I suspect Linus was thinking only of the first case, and not the second.)
- Ted
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu
| |