Home
last modified time | relevance | path

Searched refs:W_OK (Results 1 – 5 of 5) sorted by relevance

/xnu-12377.1.9/tests/vfs/
H A Ddevfd_access.c93 T_EXPECT_POSIX_FAILURE(docheck(fd_rdonly, W_OK), EACCES, "Testing W_OK permissions");
94 T_EXPECT_POSIX_FAILURE(docheck(fd_rdonly, R_OK | W_OK), EACCES, "Testing R_OK | W_OK permissions");
99 T_EXPECT_POSIX_SUCCESS(docheck(fd_wronly, W_OK), "Testing W_OK permissions");
100 T_EXPECT_POSIX_FAILURE(docheck(fd_wronly, R_OK | W_OK), EACCES, "Testing R_OK | W_OK permissions");
105 T_EXPECT_POSIX_FAILURE(docheck(fd_evtonly, W_OK), EACCES, "Testing W_OK permissions");
106 …T_EXPECT_POSIX_FAILURE(docheck(fd_evtonly, R_OK | W_OK), EACCES, "Testing R_OK | W_OK permissions"…
111 T_EXPECT_POSIX_FAILURE(docheck(fd_evtonly_drw, W_OK), EACCES, "Testing W_OK permissions");
112 …T_EXPECT_POSIX_FAILURE(docheck(fd_evtonly_drw, R_OK | W_OK), EACCES, "Testing R_OK | W_OK permissi…
/xnu-12377.1.9/bsd/sys/
H A Dunistd.h91 #define W_OK (1<<1) /* test for write permission */ macro
/xnu-12377.1.9/bsd/vfs/
H A Dvfs_attrlist.c1419 perms |= W_OK; in getvolattrlist()
1429 perms |= W_OK; in getvolattrlist()
1444 if (perms & W_OK) { in getvolattrlist()
1445 if (mac_vnode_check_access(ctx, vp, W_OK) != 0) { in getvolattrlist()
1446 perms &= ~W_OK; in getvolattrlist()
1893 perms |= W_OK; in attr_pack_common()
1909 perms |= W_OK; in attr_pack_common()
2023 if (perms & W_OK) { in attr_pack_common()
2024 if (mac_vnode_check_access(ctx, vp, W_OK) != 0) { in attr_pack_common()
2025 perms &= ~W_OK; in attr_pack_common()
H A Dvfs_syscalls.c6883 if (uflags & W_OK) { in access1()
/xnu-12377.1.9/tools/lldbmacros/
H A Dxnu.py862 if not os.access(dir_, os.W_OK):