text: mknod - Man Page
  make directory, special file, or regular file
  Prolog
  This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.
  Synopsis
  #include <sys/stat.h> int mknod(const char *path, mode_t mode, dev_t dev); #include <fcntl.h> int mknodat(int fd, const char *path, mode_t mode, dev_t dev);
  Description.
  If -1 and set errno to indicate the error. If -1 is returned, the new file shall not be created.
  Errors
  These functions without the trailing <slash> characters would name.
  Future Directions
  None.
  See Also
  chmod(), creat(), exec, fstatat(), mkdir(), mkfifo(), open(), umask()
  The Base Definitions volume of POSIX.1-2017, <fcntl.h>, <sys_stat
  chmod(3p), creat(3p), exec(3p), fchmod(3p), fstatat(3p), fstatvfs(3p), mkdir(3p), mkfifo(3p), open(3p), sys_stat.h(0p), umask(3p).