Searched refs:O_EXCL (Results 1 - 10 of 10) sorted by relevance

/darwin-on-arm/xnu/tools/tests/xnu_quick_test/
H A Dsema_tests.c116 my_sem_t = sem_open( &my_sema_name[0], (O_CREAT | O_EXCL), (S_IRUSR | S_IWUSR), 0 );
H A Dshared_memory_tests.c106 my_fd = shm_open( &my_name[0], (O_RDWR | O_CREAT | O_EXCL), S_IRWXU );
H A Dmisc.c35 my_fd = open( the_pathp, (O_RDWR | O_CREAT | O_EXCL),
136 my_fd = open( my_pathp, (O_RDWR | O_CREAT | O_EXCL),
H A Dcontent_protection_test.c420 fd = open(filepath, O_CREAT | O_EXCL | O_RDWR | O_CLOEXEC);
731 fd = open(filepath, O_CREAT | O_EXCL | O_CLOEXEC);
781 fd = open(filepath, O_CREAT | O_EXCL | O_CLOEXEC);
809 fd = open(filepath, O_CREAT | O_EXCL | O_RDWR | O_CLOEXEC);
H A Dtests.c96 my_fd = syscall( SYS_open, my_pathp, (O_RDWR | O_EXCL), 0 );
/darwin-on-arm/xnu/bsd/sys/
H A Dfcntl.h144 #define O_EXCL 0x0800 /* error if already exists */ macro
/darwin-on-arm/xnu/bsd/vfs/
H A Dvfs_vnops.c213 if (fmode & O_EXCL)
336 * If the file exists and the O_EXCL flag was not specified, then
396 if ((fmode & O_EXCL) == 0 && (fmode & O_NOFOLLOW) == 0 && (origcnflags & FOLLOW) != 0)
445 if (((error == EEXIST) && !(fmode & O_EXCL)) ||
457 if (fmode & O_EXCL)
/darwin-on-arm/xnu/bsd/kern/
H A Dposix_sem.c505 if (((fmode & (O_CREAT | O_EXCL))==(O_CREAT | O_EXCL)) && incache) {
506 /* sem exists and opened O_EXCL */
516 if (((fmode & (O_CREAT | O_EXCL))== O_CREAT) && incache) {
H A Dposix_shm.c516 if ((fmode & O_EXCL)) {
521 /* shm obj exists and opened O_EXCL */
/darwin-on-arm/xnu/bsd/nfs/
H A Dnfs_vnops.c3512 fmode |= O_EXCL;
3530 if (fmode & O_EXCL) {
3598 if ((nfsvers == NFS_VER3) && (fmode & O_EXCL) && (error == NFSERR_NOTSUPP)) {
3599 fmode &= ~O_EXCL;
3606 } else if ((nfsvers == NFS_VER3) && (fmode & O_EXCL)) {

Completed in 112 milliseconds