mkfifo(3) Library Functions Manual mkfifo(3) mkfifo, mkfifoat - FIFO ( ) LIBRARY Standard C library (libc, -lc) #include #include int mkfifo(const char *pathname, mode_t mode); #include /* AT_* */ #include int mkfifoat(int dirfd, const char *pathname, mode_t mode); glibc (. feature_test_macros(7)): mkfifoat(): glibc 2.10: _POSIX_C_SOURCE >= 200809L glibc 2.10: _ATFILE_SOURCE mkfifo() makes a FIFO special file with name pathname. mode specifies the FIFO's permissions. It is modified by the process's umask in the usual way: the permissions of the created file are (mode & ~umask). FIFO , , . mkfifo() FIFO, . FIFO, , . - , , . FIFO , - , . FIFO fifo(7). mkfifoat() mkfifoat() mkfifo(), , . pathname , , dirfd ( , mkfifo(3)). pathname dirfd AT_FDCWD, pathname ( mkfifo(3)). pathname , dirfd . See openat(2) for an explanation of the need for mkfifoat(). On success mkfifo() and mkfifoat() return 0. On error, -1 is returned and errno is set to indicate the error. EACCES pathname , . EBADF (mkfifoat()) pathname is relative but dirfd is neither AT_FDCWD nor a valid file descriptor. EDQUOT . EEXIST pathname . pathname , . ENAMETOOLONG ( ) pathname PATH_MAX NAME_MAX. , GNU, , . ENOENT pathname . ENOSPC . ENOTDIR , pathname, . ENOTDIR (mkfifoat()) pathname is a relative pathname and dirfd is a file descriptor referring to a file other than a directory. EROFS pathname , . attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |mkfifo(), mkfifoat() | | MT-Safe | +----------------------------+----------------------------------------------------------+--------------------------+ It is implemented using mknodat(2). POSIX.1-2008. mkfifo() POSIX.1-2001. mkfifoat() glibc 2.4. POSIX.1-2008. . mkfifo(1), close(2), open(2), read(2), stat(2), umask(2), write(2), fifo(7) aereiae , Alexey , Azamat Hackimov , Dmitriy S. Seregin , Dmitry Bolkhovskikh , ITriskTI , Max Is , Yuri Kozlov , ; GNU 3 , . . , , . Linux man-pages 6.06 31 2023 . mkfifo(3)