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       #include <fcntl.h> /* Definition of AT_* constants */
11       #include <sys/stat.h>
12
13       int mkfifoat(int dirfd, const char *pathname, mode_t mode);
14
15   Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
16
17       mkfifoat():
18           Since glibc 2.10:
19               _XOPEN_SOURCE >= 700 || _POSIX_C_SOURCE >= 200809L
20           Before glibc 2.10:
21               _ATFILE_SOURCE
22

DESCRIPTION

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

RETURN VALUE

39       On success, mkfifoat() returns 0.  On error, -1 is returned  and  errno
40       is set to indicate the error.
41

ERRORS

43       The same errors that occur for mkfifo(3) can also occur for mkfifoat().
44       The following additional errors can occur for mkfifoat():
45
46       EBADF  dirfd is not a valid file descriptor.
47
48       ENOTDIR
49              pathname is a relative path  and  dirfd  is  a  file  descriptor
50              referring to a file other than a directory.
51

VERSIONS

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

CONFORMING TO

57       POSIX.1-2008.
58

NOTES

60       See openat(2) for an explanation of the need for mkfifoat().
61

SEE ALSO

63       openat(2), mkfifo(3), path_resolution(7)
64

COLOPHON

66       This page is part of release 3.53 of the Linux  man-pages  project.   A
67       description  of  the project, and information about reporting bugs, can
68       be found at http://www.kernel.org/doc/man-pages/.
69
70
71
72Linux                             2009-12-13                       MKFIFOAT(3)
Impressum