Lines Matching defs:mode

137  * int chmod(const char *path, mode_t mode);
141 int sys_chmod(const char *path, mode_t mode)
144 return my_syscall4(__NR_fchmodat, AT_FDCWD, path, mode, 0);
146 return my_syscall2(__NR_chmod, path, mode);
148 return __nolibc_enosys(__func__, path, mode);
153 int chmod(const char *path, mode_t mode)
155 return __sysret(sys_chmod(path, mode));
611 * int mkdir(const char *path, mode_t mode);
615 int sys_mkdir(const char *path, mode_t mode)
618 return my_syscall3(__NR_mkdirat, AT_FDCWD, path, mode);
620 return my_syscall2(__NR_mkdir, path, mode);
622 return __nolibc_enosys(__func__, path, mode);
627 int mkdir(const char *path, mode_t mode)
629 return __sysret(sys_mkdir(path, mode));
656 * int mknod(const char *path, mode_t mode, dev_t dev);
660 long sys_mknod(const char *path, mode_t mode, dev_t dev)
663 return my_syscall4(__NR_mknodat, AT_FDCWD, path, mode, dev);
665 return my_syscall3(__NR_mknod, path, mode, dev);
667 return __nolibc_enosys(__func__, path, mode, dev);
672 int mknod(const char *path, mode_t mode, dev_t dev)
674 return __sysret(sys_mknod(path, mode, dev));
746 * int open(const char *path, int flags[, mode_t mode]);
750 int sys_open(const char *path, int flags, mode_t mode)
753 return my_syscall4(__NR_openat, AT_FDCWD, path, flags, mode);
755 return my_syscall3(__NR_open, path, flags, mode);
757 return __nolibc_enosys(__func__, path, flags, mode);
764 mode_t mode = 0;
770 mode = va_arg(args, int);
774 return __sysret(sys_open(path, flags, mode));
1110 * mode_t umask(mode_t mode);
1114 mode_t sys_umask(mode_t mode)
1116 return my_syscall1(__NR_umask, mode);
1120 mode_t umask(mode_t mode)
1122 return sys_umask(mode);