Kevin D. Kissell writes:
...
> And I note with some concernt that, while in the PC Linux
> universe, asm/socket.h, linux/socket.h, and bits/socket.h
> all have the same definitions for the socket types
> (SOCK_STREAM = 1, for example), in the MIPS/LINUX
> kernel, SOCK_STREAM = 2, though there is still the
> definition, conditional on
> #if !defined(__KERNEL__) && (!defined(__GLIBC__) || (__GLIBC__ < 2))
> that defines SOCK_STREAM to be 1. Fortunately, the
> probability of someone using non-glibc or glibc < 2 in
> a MIPS/Linux universe seems to be essentially zero.
...
SOCK_STREAM == 2 is correct for the MIPS ABI (which has to do with
some unfortunate choices made by AT&T in SVR4, and consequent
binary-compatibility
issues for various of the MIPS ABI participants).
|