[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: <sys/socket.h> mess.

From: Mark Kettenis
Subject: Re: <sys/socket.h> mess.
Date: Sat, 9 Jun 2001 23:49:37 +0200

   From: Roland McGrath <address@hidden>
   Date: Sat,  9 Jun 2001 16:34:04 -0400 (EDT)

   Do these new and bits structures match 4.4 BSD so we can
   put it in sysdeps/unix/bsd/bsd4.4/bits?  If not, do they match Linux?

It basically matches 4.4 BSD.  The only real difference is the
definition of SOMAXCONN (which was defined to 5 on 4.4 BSD).  There
are some difference in the names of the types of structure members
(u_int vs. socklen_t, caddr_t vs. void *) and we have some additional
constants (AF_INET6, PF_INET6) and CMSG_* access macros (these should
be compatible with the 4.4 BSD `struct cmsghdr').

`struct msghdr' and `struct cmsghdr' are identical to what's used on
Linux except that cmsg_len is of type socklen_t instead of size_t
(should be socklen_t according to the latest POSIX draft).

So if it wasn't for SOMAXCONN, we could put it in

reply via email to

[Prev in Thread] Current Thread [Next in Thread]