1 /* 2 * Copyright 2004-2009, Axel Dörfler, axeld@pinc-software.de. 3 * Distributed under the terms of the MIT License. 4 */ 5 6 7 #include <errno.h> 8 #include <fcntl.h> 9 #include <sys/stat.h> 10 11 #include <errno_private.h> 12 #include <syscalls.h> 13 #include <syscall_utils.h> 14 15 16 int 17 mkfifo(const char *path, mode_t mode) 18 { 19 return mkfifoat(AT_FDCWD, path, mode); 20 } 21 22 23 int 24 mkfifoat(int fd, const char *path, mode_t mode) 25 { 26 RETURN_AND_SET_ERRNO(_kern_create_fifo(fd, path, mode)); 27 } 28