mirror of
https://github.com/reactos/syzkaller.git
synced 2024-11-27 05:10:43 +00:00
sys/netbsd: add access(2)
This commit is contained in:
parent
9eb09c4009
commit
44aa83104c
@ -52,10 +52,11 @@ chown(file ptr[in, filename], uid uid, gid gid)
|
|||||||
lchown(file ptr[in, filename], uid uid, gid gid)
|
lchown(file ptr[in, filename], uid uid, gid gid)
|
||||||
fchown(fd fd, uid uid, gid gid)
|
fchown(fd fd, uid uid, gid gid)
|
||||||
fchownat(dirfd fd_dir, file ptr[in, filename], uid uid, gid gid, flags flags[at_flags])
|
fchownat(dirfd fd_dir, file ptr[in, filename], uid uid, gid gid, flags flags[at_flags])
|
||||||
|
access(pathname ptr[in, filename], mode flags[access_mode])
|
||||||
chflags(file ptr[in, filename], flags flags[chflags_flags])
|
chflags(file ptr[in, filename], flags flags[chflags_flags])
|
||||||
fchflags(fd fd, flags flags[chflags_flags])
|
fchflags(fd fd, flags flags[chflags_flags])
|
||||||
lchflags(file ptr[in, filename], flags flags[chflags_flags])
|
lchflags(file ptr[in, filename], flags flags[chflags_flags])
|
||||||
faccessat(dirfd fd_dir, pathname ptr[in, filename], mode flags[open_mode], flags flags[faccessat_flags])
|
faccessat(dirfd fd_dir, pathname ptr[in, filename], mode flags[access_mode], flags flags[faccessat_flags])
|
||||||
utimes(filename ptr[in, filename], times ptr[in, itimerval])
|
utimes(filename ptr[in, filename], times ptr[in, itimerval])
|
||||||
utimensat(dir fd_dir, pathname ptr[in, filename], times ptr[in, itimerval], flags flags[utimensat_flags])
|
utimensat(dir fd_dir, pathname ptr[in, filename], times ptr[in, itimerval], flags flags[utimensat_flags])
|
||||||
|
|
||||||
@ -251,6 +252,7 @@ sched_param {
|
|||||||
pollfd_events = POLLIN, POLLPRI, POLLOUT, POLLERR, POLLHUP, POLLNVAL, POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND
|
pollfd_events = POLLIN, POLLPRI, POLLOUT, POLLERR, POLLHUP, POLLNVAL, POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND
|
||||||
mknod_mode = S_IFREG, S_IFCHR, S_IFBLK, S_IFIFO, S_IFSOCK, S_IRUSR, S_IWUSR, S_IXUSR, S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH
|
mknod_mode = S_IFREG, S_IFCHR, S_IFBLK, S_IFIFO, S_IFSOCK, S_IRUSR, S_IWUSR, S_IXUSR, S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH
|
||||||
at_flags = AT_SYMLINK_NOFOLLOW, AT_SYMLINK_FOLLOW
|
at_flags = AT_SYMLINK_NOFOLLOW, AT_SYMLINK_FOLLOW
|
||||||
|
access_mode = R_OK, W_OK, X_OK, F_OK
|
||||||
linkat_flags = AT_SYMLINK_FOLLOW
|
linkat_flags = AT_SYMLINK_FOLLOW
|
||||||
unlinkat_flags = 0, AT_REMOVEDIR
|
unlinkat_flags = 0, AT_REMOVEDIR
|
||||||
flock_op = LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB
|
flock_op = LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB
|
||||||
|
@ -27,6 +27,7 @@ F_GETFD = 1
|
|||||||
F_GETFL = 3
|
F_GETFL = 3
|
||||||
F_GETLK = 7
|
F_GETLK = 7
|
||||||
F_GETOWN = 5
|
F_GETOWN = 5
|
||||||
|
F_OK = 0
|
||||||
F_RDLCK = 1
|
F_RDLCK = 1
|
||||||
F_SETFD = 2
|
F_SETFD = 2
|
||||||
F_SETFL = 4
|
F_SETFL = 4
|
||||||
@ -78,6 +79,7 @@ RLIMIT_RSS = 5
|
|||||||
RLIMIT_STACK = 3
|
RLIMIT_STACK = 3
|
||||||
RUSAGE_CHILDREN = 18446744073709551615
|
RUSAGE_CHILDREN = 18446744073709551615
|
||||||
RUSAGE_SELF = 0
|
RUSAGE_SELF = 0
|
||||||
|
R_OK = 4
|
||||||
SA_ALLBITS = 255
|
SA_ALLBITS = 255
|
||||||
SA_NOCLDSTOP = 8
|
SA_NOCLDSTOP = 8
|
||||||
SA_NOCLDWAIT = 32
|
SA_NOCLDWAIT = 32
|
||||||
@ -93,6 +95,7 @@ SF_IMMUTABLE = 131072
|
|||||||
SYS___clone = 287
|
SYS___clone = 287
|
||||||
SYS___getcwd = 296
|
SYS___getcwd = 296
|
||||||
SYS___vfork14 = 282
|
SYS___vfork14 = 282
|
||||||
|
SYS_access = 33
|
||||||
SYS_chdir = 12
|
SYS_chdir = 12
|
||||||
SYS_chflags = 34
|
SYS_chflags = 34
|
||||||
SYS_chmod = 15
|
SYS_chmod = 15
|
||||||
@ -203,3 +206,5 @@ WNOZOMBIE = 131072
|
|||||||
WSTOPPED = 2
|
WSTOPPED = 2
|
||||||
WTRAPPED = 64
|
WTRAPPED = 64
|
||||||
WUNTRACED = 2
|
WUNTRACED = 2
|
||||||
|
W_OK = 2
|
||||||
|
X_OK = 1
|
||||||
|
Loading…
Reference in New Issue
Block a user