Example #1
0
int
attribute_hidden
mknodat (int fd, const char *path, mode_t mode, dev_t dev)
{
  return __xmknodat (_MKNOD_VER, fd, path, mode, &dev);
}
Example #2
0
/* Create a new FIFO with permission bits MODE.  But interpret
   relative PATH names relative to the directory associated with FD.  */
int
mkfifoat (int fd, const char *file, mode_t mode)
{
  dev_t dev = 0;
  return __xmknodat (_MKNOD_VER, fd, file, mode | S_IFIFO, &dev);
}