1MKFIFOAT(3)                Linux Programmer's Manual               MKFIFOAT(3)
2
3
4

NAME

6       mkfifoat  -  make  a  FIFO  (named  pipe)  relative to a directory file
7       descriptor
8

SYNOPSIS

10       #define _ATFILE_SOURCE
11       #include <fcntl.h> /* Definition of AT_* constants */
12       #include <sys/stat.h>
13
14       int mkfifoat(int dirfd, const char *pathname, mode_t mode);
15

DESCRIPTION

17       The mkfifoat()  system  call  operates  in  exactly  the  same  way  as
18       mkfifo(3), except for the differences described in this manual page.
19
20       If  the  pathname given in pathname is relative, then it is interpreted
21       relative to the directory referred to  by  the  file  descriptor  dirfd
22       (rather  than  relative to the current working directory of the calling
23       process, as is done by mkfifo(3) for a relative pathname).
24
25       If pathname is relative and dirfd is the special value  AT_FDCWD,  then
26       pathname  is  interpreted  relative to the current working directory of
27       the calling process (like mkfifo(3)).
28
29       If pathname is absolute, then dirfd is ignored.
30

RETURN VALUE

32       On success, mkfifoat() returns 0.  On error, -1 is returned  and  errno
33       is set to indicate the error.
34

ERRORS

36       The same errors that occur for mkfifo(3) can also occur for mkfifoat().
37       The following additional errors can occur for mkfifoat():
38
39       EBADF  dirfd is not a valid file descriptor.
40
41       ENOTDIR
42              pathname is a relative path  and  dirfd  is  a  file  descriptor
43              referring to a file other than a directory.
44

VERSIONS

46       mkfifoat()  was added to glibc in version 2.4.  It is implemented using
47       mknod(2), available on Linux since kernel 2.6.16.
48

CONFORMING TO

50       POSIX.1-2008.
51

NOTES

53       See openat(2) for an explanation of the need for mkfifoat().
54

SEE ALSO

56       openat(2), mkfifo(3), path_resolution(7)
57

COLOPHON

59       This page is part of release 3.22 of the Linux  man-pages  project.   A
60       description  of  the project, and information about reporting bugs, can
61       be found at http://www.kernel.org/doc/man-pages/.
62
63
64
65Linux                             2008-08-21                       MKFIFOAT(3)
Impressum