| version 1.103, 2012/01/20 01:17:01 |
version 1.104, 2012/01/20 14:08:07 |
| Line 531 struct cmsghdr { |
|
| Line 531 struct cmsghdr { |
|
| * without (2), we can't guarantee binary compatibility in case of future |
* without (2), we can't guarantee binary compatibility in case of future |
| * changes in ALIGNBYTES. |
* changes in ALIGNBYTES. |
| */ |
*/ |
| |
#define __CMSG_ALIGN(n) (((n) + __ALIGNBYTES) & ~__ALIGNBYTES) |
| #ifdef _KERNEL |
#ifdef _KERNEL |
| #define __CMSG_ALIGN(n) (((n) + ALIGNBYTES) & ~ALIGNBYTES) |
|
| #define CMSG_ALIGN(n) __CMSG_ALIGN(n) |
#define CMSG_ALIGN(n) __CMSG_ALIGN(n) |
| #else |
|
| #define __CMSG_ALIGN(n) (((n) + __cmsg_alignbytes()) & ~__cmsg_alignbytes()) |
|
| #endif |
#endif |
| |
|
| /* given pointer to struct cmsghdr, return pointer to next cmsghdr */ |
/* given pointer to struct cmsghdr, return pointer to next cmsghdr */ |
| Line 576 struct cmsghdr { |
|
| Line 574 struct cmsghdr { |
|
| |
|
| #include <sys/cdefs.h> |
#include <sys/cdefs.h> |
| |
|
| #ifndef _KERNEL |
|
| __BEGIN_DECLS |
|
| int __cmsg_alignbytes(void) __constfunc; |
|
| __END_DECLS |
|
| #endif |
|
| |
|
| #ifdef _KERNEL |
#ifdef _KERNEL |
| static inline socklen_t |
static inline socklen_t |
| sockaddr_getlen(const struct sockaddr *sa) |
sockaddr_getlen(const struct sockaddr *sa) |