mknod.c 354 B

12345678910
  1. #include <sys/stat.h>
  2. #include "syscall.h"
  3. int mknod(const char *path, mode_t mode, dev_t dev)
  4. {
  5. /* since dev_t is system-specific anyway we defer to the idiotic
  6. * legacy-compatible bitfield mapping of the type.. at least we've
  7. * made it large enough to leave space for future expansion.. */
  8. return syscall(SYS_mknod, path, mode, dev & 0xffff);
  9. }