.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.B #include <unistd.h>
.P
-.BI "int euidaccess(const char *" pathname ", int " mode );
-.BI "int eaccess(const char *" pathname ", int " mode );
+.BI "int euidaccess(const char *" path ", int " mode );
+.BI "int eaccess(const char *" path ", int " mode );
.fi
.SH DESCRIPTION
Like
.BR access (2),
.BR euidaccess ()
checks permissions and existence of the file identified by its argument
-.IR pathname .
+.IR path .
However, whereas
.BR access (2)
performs checks using the real user and group identifiers of the process,
.P
.B extern char **environ;
.P
-.BI "int execl(const char *" pathname ", const char *" arg ", ..."
+.BI "int execl(const char *" path ", const char *" arg ", ..."
.B " /*, (char *) NULL */);"
.BI "int execlp(const char *" file ", const char *" arg ", ..."
.B " /*, (char *) NULL */);"
-.BI "int execle(const char *" pathname ", const char *" arg ", ..."
+.BI "int execle(const char *" path ", const char *" arg ", ..."
.BI " /*, (char *) NULL, char *const " envp "[] */);"
-.BI "int execv(const char *" pathname ", char *const " argv "[]);"
+.BI "int execv(const char *" path ", char *const " argv "[]);"
.BI "int execvp(const char *" file ", char *const " argv "[]);"
.BI "int execvpe(const char *" file ", char *const " argv \
"[], char *const " envp "[]);"
.nf
.B #include <stdio.h>
.P
-.BI "FILE *fopen(const char *restrict " pathname \
-", const char *restrict " mode );
+.BI "FILE *fopen(const char *restrict " path ", const char *restrict " mode );
.BI "FILE *fdopen(int " fd ", const char *" mode );
-.BI "FILE *freopen(const char *restrict " pathname \
-", const char *restrict " mode ,
+.BI "FILE *freopen(const char *restrict " path ", const char *restrict " mode ,
.BI " FILE *restrict " stream );
.fi
.P
The
.BR fopen ()
function opens the file whose name is the string pointed to by
-.I pathname
+.I path
and associates a stream with it.
.P
The argument
The
.BR freopen ()
function opens the file whose name is the string pointed to by
-.I pathname
+.I path
and associates the stream pointed to by
.I stream
with it.
.BR fopen ()
function.
.P
-If the
-.I pathname
-argument is a null pointer,
+If
+.I path
+is a null pointer,
.BR freopen ()
changes the mode of the stream to that specified in
.IR mode ;
.B #include <sys/ipc.h>
.fi
.P
-.BI "key_t ftok(const char *" pathname ", int " proj_id );
+.BI "key_t ftok(const char *" path ", int " proj_id );
.SH DESCRIPTION
The
.BR ftok ()
function uses the identity of the file named by the given
-.I pathname
+.I path
(which must refer to an existing, accessible file)
and the least significant 8 bits of
.I proj_id
.P
.in +4n
.EX
-.BI "key_t ftok(char *" pathname ", char " proj_id );
+.BI "key_t ftok(char *" path ", char " proj_id );
.EE
.in
.P
.B #include <sys/types.h>
.B #include <sys/stat.h>
.P
-.BI "int mkfifo(const char *" pathname ", mode_t " mode );
+.BI "int mkfifo(const char *" path ", mode_t " mode );
.P
.BR "#include <fcntl.h> " "/* Definition of AT_* constants */"
.B #include <sys/stat.h>
.P
-.BI "int mkfifoat(int " dirfd ", const char *" pathname ", mode_t " mode );
+.BI "int mkfifoat(int " dirfd ", const char *" path ", mode_t " mode );
.fi
.P
.RS -4
.SH DESCRIPTION
.BR mkfifo ()
makes a FIFO special file with name
-.IR pathname .
+.IR path .
.I mode
specifies the FIFO's permissions.
It is modified by the
.BR mkfifo (),
except for the differences described here.
.P
-If the pathname given in
-.I pathname
+If
+.I path
is relative, then it is interpreted relative to the directory
referred to by the file descriptor
.I dirfd
for a relative pathname).
.P
If
-.I pathname
+.I path
is relative and
.I dirfd
is the special value
.BR AT_FDCWD ,
then
-.I pathname
+.I path
is interpreted relative to the current working
directory of the calling process (like
.BR mkfifo ()).
.P
If
-.I pathname
+.I path
is absolute, then
.I dirfd
is ignored.
.TP
.B EACCES
One of the directories in
-.I pathname
+.I path
did not allow search (execute) permission.
.TP
.B EBADF
.RB ( mkfifoat ())
-.I pathname
+.I path
is relative but
.I dirfd
is neither
exhausted.
.TP
.B EEXIST
-.I pathname
+.I path
already exists.
This includes the case where
-.I pathname
+.I path
is a symbolic link, dangling or not.
.TP
.B ENAMETOOLONG
Either the total size of
-.I pathname
+.I path
is greater than
.BR PATH_MAX ,
or an individual filename component has a length
.TP
.B ENOENT
A directory component in
-.I pathname
+.I path
does not exist or is a
dangling symbolic link.
.TP
.TP
.B ENOTDIR
A component used as a directory in
-.I pathname
+.I path
is not, in fact,
a directory.
.TP
.B ENOTDIR
.RB ( mkfifoat ())
-.I pathname
-is a relative pathname and
+.I path
+is relative and
.I dirfd
is a file descriptor referring to a file other than a directory.
.TP
.B EROFS
-.I pathname
+.I path
refers to a read-only filesystem.
.SH ATTRIBUTES
For an explanation of the terms used in this section, see
.nf
.B #include <stdio.h>
.P
-.BI "int remove(const char *" pathname );
+.BI "int remove(const char *" path );
.fi
.SH DESCRIPTION
.BR remove ()
.BR scandir (),
except for the differences described here.
.P
-If the pathname given in
+If
.I dirp
is relative, then it is interpreted relative to the directory
referred to by the file descriptor
.B ENOTDIR
.RB ( scandirat ())
.I dirp
-is a relative pathname and
+is relative and
.I dirfd
is a file descriptor referring to a file other than a directory.
.SH ATTRIBUTES