• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include <sys/stat.h>
2 #ifdef __LITEOS_A__
3 #include "syscall.h"
4 #endif
5 
mkfifo(const char * path,mode_t mode)6 int mkfifo(const char *path, mode_t mode)
7 {
8 #ifdef __LITEOS_A__
9 	return syscall(SYS_mkfifo, path, mode);
10 #else
11 	return mknod(path, mode | S_IFIFO, 0);
12 #endif
13 }
14