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> |