>>>>> Thomas Berg writes:

 > Hello

 > hmm what do you make of this:

 > $ grep -r -e SOCK_STREAM /usr/include/
 > /usr/include/asm/socket.h:#define SOCK_STREAM        2       /* stream 
 > (connection) socket */

That's the correct definition - but you should use the one from glibc
via <sys/socket.h>.

#if !defined(__KERNEL__) && (!defined(__GLIBC__) || (__GLIBC__ < 2))
/* Socket types for libc5 compatibility -- KTK */

 > /usr/include/linux/socket.h:#define SOCK_STREAM      1       /* stream 
 > (connection) socket */
 > $
#endif /* libc<=5 && !kernel */
#endif /* _LINUX_SOCKET_H */

You'll never get this one.  Note that i386 and mips swapped the values
for SOCK_STREAM and SOCK_DGRAM.

Andreas
-- 
 Andreas Jaeger   
  SuSE Labs [EMAIL PROTECTED]   
   private [EMAIL PROTECTED]

Reply via email to