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

/macosx-10.5.8/xnu-1228.15.4/tools/tests/xnu_quick_test/
H A Dshared_memory_tests.c98 my_fd = shm_open( &my_name[0], (O_RDWR | O_CREAT | O_EXCL), S_IRWXU );
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 Dmisc.c34 my_fd = open( the_pathp, (O_RDWR | O_CREAT | O_EXCL),
133 my_fd = open( my_pathp, (O_RDWR | O_CREAT | O_EXCL),
H A Dtests.c92 my_fd = syscall( SYS_open, my_pathp, (O_RDWR | O_EXCL), 0 );
/macosx-10.5.8/xnu-1228.15.4/bsd/sys/
H A Dfcntl.h139 #define O_EXCL 0x0800 /* error if already exists */ macro
/macosx-10.5.8/xnu-1228.15.4/bsd/vfs/
H A Dvfs_vnops.c186 * If the file exists and the O_EXCL flag was not specified, then
228 if ((fmode & O_EXCL) == 0 && (fmode & O_NOFOLLOW) == 0)
255 if (fmode & O_EXCL)
303 if ((error == EEXIST) && !(fmode & O_EXCL)) {
314 if (fmode & O_EXCL) {
/macosx-10.5.8/xnu-1228.15.4/bsd/kern/
H A Dposix_sem.c442 if (((fmode & (O_CREAT | O_EXCL))==(O_CREAT | O_EXCL)) && incache) {
443 /* sem exists and opened O_EXCL */
454 if (((fmode & (O_CREAT | O_EXCL))== O_CREAT) && incache) {
H A Dposix_shm.c460 if ((fmode & O_EXCL) && incache) {
464 /* shm obj exists and opened O_EXCL */
/macosx-10.5.8/xnu-1228.15.4/bsd/miscfs/union/
H A Dunion_subr.c920 int fmode = FFLAGS(O_WRONLY|O_CREAT|O_TRUNC|O_EXCL);
1232 int fmode = FFLAGS(O_WRONLY|O_CREAT|O_TRUNC|O_EXCL);
/macosx-10.5.8/xnu-1228.15.4/bsd/nfs/
H A Dnfs_vnops.c2857 fmode |= O_EXCL;
2872 if (fmode & O_EXCL) {
2945 if ((nfsvers == NFS_VER3) && (fmode & O_EXCL) && (error == NFSERR_NOTSUPP)) {
2946 fmode &= ~O_EXCL;
2953 } else if ((nfsvers == NFS_VER3) && (fmode & O_EXCL)) {

Completed in 78 milliseconds