[BACK]Return to socket.h CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / sys

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/sys/socket.h between version 1.67.2.9 and 1.75

version 1.67.2.9, 2005/12/11 10:29:36 version 1.75, 2005/03/09 19:02:22
Line 474  struct cmsghdr {
Line 474  struct cmsghdr {
 /* given pointer to struct cmsghdr, return pointer to data */  /* given pointer to struct cmsghdr, return pointer to data */
 #define CMSG_DATA(cmsg) \  #define CMSG_DATA(cmsg) \
         ((u_char *)(void *)(cmsg) + __CMSG_ALIGN(sizeof(struct cmsghdr)))          ((u_char *)(void *)(cmsg) + __CMSG_ALIGN(sizeof(struct cmsghdr)))
 #define CCMSG_DATA(cmsg) \  
         ((const u_char *)(const void *)(cmsg) + \  
         __CMSG_ALIGN(sizeof(struct cmsghdr)))  
   
 /*  /*
  * Alignment requirement for CMSG struct manipulation.   * Alignment requirement for CMSG struct manipulation.
Line 527  struct cmsghdr {
Line 524  struct cmsghdr {
 #define SHUT_WR         1               /* Disallow further sends. */  #define SHUT_WR         1               /* Disallow further sends. */
 #define SHUT_RDWR       2               /* Disallow further sends/receives. */  #define SHUT_RDWR       2               /* Disallow further sends/receives. */
   
   #if defined(_NETBSD_SOURCE)
   /*
    * 4.3 compat sockaddr, move to compat file later
    */
   struct osockaddr {
           __uint16_t      sa_family;      /* address family */
           char            sa_data[14];    /* up to 14 bytes of direct address */
   };
   
   /*
    * 4.3-compat message header (move to compat file later).
    */
   struct omsghdr {
           __caddr_t       msg_name;       /* optional address */
           int             msg_namelen;    /* size of address */
           struct iovec    *msg_iov;       /* scatter/gather array */
           int             msg_iovlen;     /* # elements in msg_iov */
           __caddr_t       msg_accrights;  /* access rights sent/received */
           int             msg_accrightslen;
   };
   #endif
   
 #include <sys/cdefs.h>  #include <sys/cdefs.h>
   
 __BEGIN_DECLS  __BEGIN_DECLS

Legend:
Removed from v.1.67.2.9  
changed lines
  Added in v.1.75

CVSweb <webmaster@jp.NetBSD.org>