mirror of https://github.com/mkerrisk/man-pages
Various fixes as per Debian bug 411177.
* s/effective/real/ in description test. * added <fcntl.h> to synopsis. * various other changes.
This commit is contained in:
parent
c5405c0894
commit
b438981878
|
@ -23,12 +23,13 @@
|
||||||
.\" the source, must acknowledge the copyright and authors of this work.
|
.\" the source, must acknowledge the copyright and authors of this work.
|
||||||
.\"
|
.\"
|
||||||
.\"
|
.\"
|
||||||
.TH FACCESSAT 2 2006-05-05 "Linux 2.6.16" "Linux Programmer's Manual"
|
.TH FACCESSAT 2 2007-02-28 "Linux 2.6.16" "Linux Programmer's Manual"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
faccessat \- change permissions of a file relative to a directory \
|
faccessat \- check user's permissions of a file relative to a \
|
||||||
file descriptor
|
directory file descriptor
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.nf
|
.nf
|
||||||
|
.B #include <fcntl.h>
|
||||||
.B #include <unistd.h>
|
.B #include <unistd.h>
|
||||||
.sp
|
.sp
|
||||||
.BI "int faccessat(int " dirfd ", const char *" pathname ", int " \
|
.BI "int faccessat(int " dirfd ", const char *" pathname ", int " \
|
||||||
|
@ -76,7 +77,7 @@ is constructed by ORing together zero or more of the following values:
|
||||||
Perform access checks using the effective user and group IDs.
|
Perform access checks using the effective user and group IDs.
|
||||||
By default,
|
By default,
|
||||||
.BR faccessat ()
|
.BR faccessat ()
|
||||||
uses the effective IDs (like
|
uses the real IDs (like
|
||||||
.BR access (2)).
|
.BR access (2)).
|
||||||
.TP
|
.TP
|
||||||
.B AT_SYMLINK_NOFOLLOW
|
.B AT_SYMLINK_NOFOLLOW
|
||||||
|
@ -85,7 +86,7 @@ If
|
||||||
is a symbolic link, do not dereference it:
|
is a symbolic link, do not dereference it:
|
||||||
instead return information about the link itself.
|
instead return information about the link itself.
|
||||||
.SH "RETURN VALUE"
|
.SH "RETURN VALUE"
|
||||||
On success,
|
On success, (all requested permissions granted)
|
||||||
.BR faccessat ()
|
.BR faccessat ()
|
||||||
returns 0.
|
returns 0.
|
||||||
On error, \-1 is returned and
|
On error, \-1 is returned and
|
||||||
|
|
Loading…
Reference in New Issue