/darwin-on-arm/xnu/bsd/security/audit/ |
H A D | audit_bsm_klib.c | 272 oflags = oflags & (O_RDONLY | O_CREAT | O_TRUNC | O_RDWR | O_WRONLY); 283 case (O_RDONLY | O_CREAT): 287 case (O_RDONLY | O_CREAT | O_TRUNC): 299 case (O_RDWR | O_CREAT): 303 case (O_RDWR | O_CREAT | O_TRUNC): 315 case (O_WRONLY | O_CREAT): 319 case (O_WRONLY | O_CREAT | O_TRUNC): 369 oflags = oflags & (O_RDONLY | O_CREAT | O_TRUNC | O_RDWR | O_WRONLY); 380 case (O_RDONLY | O_CREAT): 384 case (O_RDONLY | O_CREAT | O_TRUN [all...] |
/darwin-on-arm/xnu/libsyscall/wrappers/legacy/ |
H A D | open.c | 44 if(flags & O_CREAT) {
|
/darwin-on-arm/xnu/libsyscall/wrappers/ |
H A D | open_dprotected_np.c | 33 if (flags & O_CREAT) {
|
/darwin-on-arm/xnu/tools/tests/libMicro/apple/ |
H A D | create_file.c | 196 if (!open(optf, O_CREAT))
|
H A D | lmbench_bw_mmap_rd.c | 182 if ((dfd = open(dst, O_CREAT|O_TRUNC|O_RDWR, mode)) < 0) {
|
/darwin-on-arm/xnu/tools/tests/libMicro/ |
H A D | file_lock.c | 77 file = open(fname, O_CREAT | O_TRUNC | O_RDWR, 0600);
|
H A D | cascade_fcntl.c | 114 file = open(fname, O_CREAT | O_TRUNC | O_RDWR, 0600);
|
H A D | cascade_flock.c | 126 files[i] = open(fname, O_CREAT | O_TRUNC | O_RDWR, 0600);
|
H A D | cascade_lockf.c | 121 files[i] = open(fname, O_CREAT | O_TRUNC | O_RDWR, 0600);
|
/darwin-on-arm/xnu/tools/tests/xnu_quick_test/ |
H A D | sema_tests.c | 116 my_sem_t = sem_open( &my_sema_name[0], (O_CREAT | O_EXCL), (S_IRUSR | S_IWUSR), 0 );
|
H A D | shared_memory_tests.c | 106 my_fd = shm_open( &my_name[0], (O_RDWR | O_CREAT | O_EXCL), S_IRWXU );
|
H A D | misc.c | 35 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 D | content_protection_test.c | 420 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);
|
/darwin-on-arm/xnu/bsd/kern/ |
H A D | posix_sem.c | 460 if((fmode & O_CREAT)) { 505 if (((fmode & (O_CREAT | O_EXCL))==(O_CREAT | O_EXCL)) && incache) { 516 if (((fmode & (O_CREAT | O_EXCL))== O_CREAT) && incache) { 517 /* As per POSIX, O_CREAT has no effect */ 518 fmode &= ~O_CREAT; 521 if ( (fmode & O_CREAT) ) { 543 /* semaphore should exist as it is without O_CREAT */
|
H A D | posix_shm.c | 494 if (fmode & O_CREAT) { 514 if (fmode & O_CREAT) { 542 if (!(fmode & O_CREAT)) { 544 /* O_CREAT is not set and the object does not exist */
|
H A D | kern_core.c | 287 if ((error = vnode_open(name, (O_CREAT | FWRITE | O_NOFOLLOW), S_IRUSR, VNODE_LOOKUP_NOFOLLOW, &vp, ctx)))
|
H A D | kern_shutdown.c | 222 if ((error = vnode_open(PROC_SHUTDOWN_LOG, (O_CREAT | FWRITE | O_NOFOLLOW), 0644, 0, &sd_logvp, ctx))) {
|
H A D | kern_symfile.c | 226 if ((error = vnode_open(name, (O_CREAT | FWRITE), (0), 0, &ref->vp, ref->ctx)))
|
/darwin-on-arm/xnu/SETUP/setsegname/ |
H A D | setsegname.c | 238 int fd = open(output_name, O_WRONLY|O_CREAT|O_TRUNC, 0755);
|
/darwin-on-arm/xnu/bsd/sys/ |
H A D | fcntl.h | 142 #define O_CREAT 0x0200 /* create if nonexistant */ macro
|
/darwin-on-arm/xnu/bsd/vfs/ |
H A D | vfs_vnops.c | 337 * the O_CREAT flag will be cleared in '*fmodep' to indicate to 377 * O_CREAT 379 if (fmode & O_CREAT) { 446 ((error == ENOENT) && (fmode & O_CREAT))){ 487 fmode &= ~O_CREAT; 493 * Not O_CREAT 644 if (((error == ENOENT) && (*fmodep & O_CREAT)) || (error == EREDRIVEOPEN) || ref_failed) {
|
H A D | vfs_xattr.c | 1707 if ((error = open_xattrfile(vp, O_CREAT | fileflags, &xvp, context))) { 2452 if (fileflags & O_CREAT) { 2556 if (fileflags & O_CREAT) { 2607 if ((error == ENOATTR) && (fileflags & O_CREAT)) {
|
/darwin-on-arm/xnu/SETUP/kextsymboltool/ |
H A D | kextsymboltool.c | 699 fd = open(output_name, O_WRONLY|O_CREAT|O_TRUNC, 0755);
|
/darwin-on-arm/xnu/bsd/hfs/ |
H A D | hfs_cprotect.c | 839 if (mode & O_CREAT)
|
/darwin-on-arm/xnu/bsd/nfs/ |
H A D | nfs_syscalls.c | 538 if (((fmode & (FREAD | FWRITE)) == 0) || (fmode & O_CREAT))
|