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 <sys/stat.h>
12
13       int mkfifoat(int dirfd, const char *pathname, mode_t mode);
14

DESCRIPTION

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

RETURN VALUE

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

ERRORS

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

NOTES

45       See openat(2) for an explanation of the need for mkfifoat().
46

CONFORMING TO

48       This function is non-standard but is proposed for inclusion in a future
49       revision of POSIX.1.
50

VERSIONS

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

SEE ALSO

56       openat(2), path_resolution(2), mkfifo(3).
57
58
59
60Linux 2.6.16                      2006-04-06                       MKFIFOAT(3)
Impressum