[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.50 and 1.51

version 1.50, 2000/02/18 05:19:25 version 1.51, 2000/03/02 07:41:50
Line 401  struct cmsghdr {
Line 401  struct cmsghdr {
   
 /*  /*
  * Alignment requirement for CMSG struct manipulation.   * Alignment requirement for CMSG struct manipulation.
  * This is different from ALIGN() defined in ARCH/include/param.h.   * This basically behaves the same as ALIGN() ARCH/include/param.h.
  * XXX think again carefully about architecture dependencies.   * We declare it separately for two reasons:
    * (1) avoid dependency between machine/param.h, and (2) to sync with kernel's
    * idea of ALIGNBYTES at runtime.
    * without (2), we can't guarantee binary compatibility in case of future
    * changes in ALIGNBYTES.
  */   */
 #define CMSG_ALIGN(n)   (((n) + (sizeof(long) - 1)) & ~(sizeof(long) - 1))  #define CMSG_ALIGN(n)   (((n) + __cmsg_alignbytes()) & ~__cmsg_alignbytes())
   
 /* given pointer to struct cmsghdr, return pointer to next cmsghdr */  /* given pointer to struct cmsghdr, return pointer to next cmsghdr */
 #define CMSG_NXTHDR(mhdr, cmsg) \  #define CMSG_NXTHDR(mhdr, cmsg) \
Line 455  struct omsghdr {
Line 459  struct omsghdr {
 };  };
 #endif  #endif
   
   int     __cmsg_alignbytes __P((void));
   
 #ifndef _KERNEL  #ifndef _KERNEL
   
 #include <sys/cdefs.h>  #include <sys/cdefs.h>

Legend:
Removed from v.1.50  
changed lines
  Added in v.1.51

CVSweb <webmaster@jp.NetBSD.org>