Return to socket.h CVS log | 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. |
version 1.108.10.1, 2014/08/10 06:56:54 | version 1.109, 2014/04/17 16:14:22 | ||
---|---|---|---|
|
|
||
* Compute size of a sockcred structure with groups. | * Compute size of a sockcred structure with groups. | ||
*/ | */ | ||
#define SOCKCREDSIZE(ngrps) \ | #define SOCKCREDSIZE(ngrps) \ | ||
(sizeof(struct sockcred) + (sizeof(gid_t) * \ | (sizeof(struct sockcred) + (sizeof(gid_t) * ((ngrps) - 1))) | ||
((ngrps) ? ((ngrps) - 1) : 0))) | |||
#endif /* _NETBSD_SOURCE */ | #endif /* _NETBSD_SOURCE */ | ||