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 <sys/stat.h> 9 10 #include <syscalls.h> 11 #include <syscall_utils.h> 12 13 14 int 15 mkfifo(const char *path, mode_t mode) 16 { 17 RETURN_AND_SET_ERRNO(_kern_create_fifo(-1, path, mode)); 18 } 19 20 21 int 22 mkfifoat(int fd, const char *path, mode_t mode) 23 { 24 RETURN_AND_SET_ERRNO(_kern_create_fifo(fd, path, mode)); 25 } 26