o Fix typo: id_t -> uid_t.

o Use align aware CMSG_LEN() macro for cmsg_len computation.

PR:		docs/90731
Submitted by:	Andrey Simonenko
Reviewed by:	mdodd
MFC after:	1 week
This commit is contained in:
Maxim Konovalov 2005-12-21 08:23:04 +00:00
parent 6fa7cb4445
commit 271e6026c7

View File

@ -228,7 +228,7 @@ structure, defined in
as follows:
.Bd -literal
struct sockcred {
id_t sc_uid; /* real user id */
uid_t sc_uid; /* real user id */
uid_t sc_euid; /* effective user id */
gid_t sc_gid; /* real group id */
gid_t sc_egid; /* effective group id */
@ -247,7 +247,7 @@ The
.Vt cmsghdr
fields have the following values:
.Bd -literal
cmsg_len = sizeof(struct cmsghdr) + SOCKCREDSIZE(ngroups)
cmsg_len = CMSG_LEN(SOCKCREDSIZE(ngroups))
cmsg_level = SOL_SOCKET
cmsg_type = SCM_CREDS
.Ed