diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2008-09-01 14:57:49 +0000 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2008-09-01 14:57:49 +0000 |
| commit | b1587ca86ef0e16e58202a181be45ffd0015d499 (patch) | |
| tree | 395ca0d42edcc38b7d75c501f0c78ba03800157a /man7/unix.7 | |
| parent | 86bd1991a54fbb04faa07ca370f57d138dd72af3 (diff) | |
| download | man-pages-b1587ca86ef0e16e58202a181be45ffd0015d499.tar.gz | |
Since glibc 2.8, _GNU_SOURCE must be defined in order to get
the definition of the ucred structure from <sys/socket.h>.
Diffstat (limited to 'man7/unix.7')
| -rw-r--r-- | man7/unix.7 | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/man7/unix.7 b/man7/unix.7 index 4fbe28ae62..29a54958c5 100644 --- a/man7/unix.7 +++ b/man7/unix.7 @@ -12,7 +12,7 @@ .\" address that can appear in the sockaddr_un structure: pathname, .\" unnamed, and abstract. .\" -.TH UNIX 7 2008-08-08 "Linux" "Linux Programmer's Manual" +.TH UNIX 7 2008-09-01 "Linux" "Linux Programmer's Manual" .SH NAME unix, AF_UNIX, AF_LOCAL \- Sockets for local interprocess communication @@ -211,6 +211,9 @@ This can be used for authentication. The credentials are passed as a .I struct ucred ancillary message. +Thus structure is defined in +.I <sys/socket.h> +as follows: .in +4n .nf @@ -222,6 +225,11 @@ struct ucred { .fi .in +Since glibc 2.8, the +.B __GNU_SOURCE +feature test macro must be defined in order to obtain the definition +of this structure. + The credentials which the sender specifies are checked by the kernel. A process with effective user ID 0 is allowed to specify values that do not match its own. |
