mirror of https://github.com/mkerrisk/man-pages
symlinkat.2: Make argument names consistent with symlink(2) page
See commitbcd49f31a8
and commitf2ae6dde0c
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
a797afac4e
commit
b29ac8d2fd
|
@ -22,7 +22,7 @@
|
||||||
.\" the source, must acknowledge the copyright and authors of this work.
|
.\" the source, must acknowledge the copyright and authors of this work.
|
||||||
.\" %%%LICENSE_END
|
.\" %%%LICENSE_END
|
||||||
.\"
|
.\"
|
||||||
.TH SYMLINKAT 2 2012-05-04 "Linux" "Linux Programmer's Manual"
|
.TH SYMLINKAT 2 2014-02-05 "Linux" "Linux Programmer's Manual"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
symlinkat \- create a symbolic link relative to a directory file descriptor
|
symlinkat \- create a symbolic link relative to a directory file descriptor
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
|
@ -30,8 +30,8 @@ symlinkat \- create a symbolic link relative to a directory file descriptor
|
||||||
.B #include <fcntl.h> /* Definition of AT_* constants */
|
.B #include <fcntl.h> /* Definition of AT_* constants */
|
||||||
.B #include <unistd.h>
|
.B #include <unistd.h>
|
||||||
.sp
|
.sp
|
||||||
.BI "int symlinkat(const char *" oldpath ", int " newdirfd \
|
.BI "int symlinkat(const char *" target ", int " newdirfd \
|
||||||
", const char *" newpath );
|
", const char *" linkpath );
|
||||||
.fi
|
.fi
|
||||||
.sp
|
.sp
|
||||||
.in -4n
|
.in -4n
|
||||||
|
@ -60,7 +60,7 @@ system call operates in exactly the same way as
|
||||||
except for the differences described in this manual page.
|
except for the differences described in this manual page.
|
||||||
|
|
||||||
If the pathname given in
|
If the pathname given in
|
||||||
.I newpath
|
.I linkpath
|
||||||
is relative, then it is interpreted relative to the directory
|
is relative, then it is interpreted relative to the directory
|
||||||
referred to by the file descriptor
|
referred to by the file descriptor
|
||||||
.I newdirfd
|
.I newdirfd
|
||||||
|
@ -70,19 +70,19 @@ the calling process, as is done by
|
||||||
for a relative pathname).
|
for a relative pathname).
|
||||||
|
|
||||||
If
|
If
|
||||||
.I newpath
|
.I linkpath
|
||||||
is relative and
|
is relative and
|
||||||
.I newdirfd
|
.I newdirfd
|
||||||
is the special value
|
is the special value
|
||||||
.BR AT_FDCWD ,
|
.BR AT_FDCWD ,
|
||||||
then
|
then
|
||||||
.I newpath
|
.I linkpath
|
||||||
is interpreted relative to the current working
|
is interpreted relative to the current working
|
||||||
directory of the calling process (like
|
directory of the calling process (like
|
||||||
.BR symlink (2)).
|
.BR symlink (2)).
|
||||||
|
|
||||||
If
|
If
|
||||||
.I newpath
|
.I linkpath
|
||||||
is absolute, then
|
is absolute, then
|
||||||
.I newdirfd
|
.I newdirfd
|
||||||
is ignored.
|
is ignored.
|
||||||
|
@ -106,7 +106,7 @@ The following additional errors can occur for
|
||||||
is not a valid file descriptor.
|
is not a valid file descriptor.
|
||||||
.TP
|
.TP
|
||||||
.B ENOTDIR
|
.B ENOTDIR
|
||||||
.I newpath
|
.I linkpath
|
||||||
is relative and
|
is relative and
|
||||||
.I newdirfd
|
.I newdirfd
|
||||||
is a file descriptor referring to a file other than a directory.
|
is a file descriptor referring to a file other than a directory.
|
||||||
|
|
Loading…
Reference in New Issue