From 271e6026c7719d7b58b9a5ad7309c9de8fd9a258 Mon Sep 17 00:00:00 2001 From: Maxim Konovalov Date: Wed, 21 Dec 2005 08:23:04 +0000 Subject: [PATCH] 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 --- share/man/man4/unix.4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/man/man4/unix.4 b/share/man/man4/unix.4 index 8a27de23437c..89944ce7a7e2 100644 --- a/share/man/man4/unix.4 +++ b/share/man/man4/unix.4 @@ -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