| version 1.101, 2011/12/20 23:56:29 |
version 1.102, 2012/01/20 00:25:29 |
| 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) + __cmsg_alignbytes()) & ~__cmsg_alignbytes()) |
|
| #ifdef _KERNEL |
#ifdef _KERNEL |
| |
#define __CMSG_ALIGN(n) (((n) + ALIGNBYTES) & ~ALIGNBYTES) |
| |
#define CMSG_ALIGN(n) __CMSG_ALIGN(n) |
| |
#else |
| |
#define __CMSG_ALIGN(n) (((n) + __cmsg_alignbytes()) & ~__cmsg_alignbytes()) |
| #define CMSG_ALIGN(n) __CMSG_ALIGN(n) |
#define CMSG_ALIGN(n) __CMSG_ALIGN(n) |
| #endif |
#endif |
| |
|
| Line 574 struct cmsghdr { |
|
| Line 577 struct cmsghdr { |
|
| |
|
| #include <sys/cdefs.h> |
#include <sys/cdefs.h> |
| |
|
| |
#ifndef _KERNEL |
| __BEGIN_DECLS |
__BEGIN_DECLS |
| int __cmsg_alignbytes(void); |
int __cmsg_alignbytes(void) __constfunc; |
| __END_DECLS |
__END_DECLS |
| |
#endif |
| |
|
| #ifdef _KERNEL |
#ifdef _KERNEL |
| static inline socklen_t |
static inline socklen_t |