Searched refs:O_CREAT (Results 1 - 25 of 28) sorted by relevance

12

/darwin-on-arm/xnu/bsd/security/audit/
H A Daudit_bsm_klib.c272 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 Dopen.c44 if(flags & O_CREAT) {
/darwin-on-arm/xnu/libsyscall/wrappers/
H A Dopen_dprotected_np.c33 if (flags & O_CREAT) {
/darwin-on-arm/xnu/tools/tests/libMicro/apple/
H A Dcreate_file.c196 if (!open(optf, O_CREAT))
H A Dlmbench_bw_mmap_rd.c182 if ((dfd = open(dst, O_CREAT|O_TRUNC|O_RDWR, mode)) < 0) {
/darwin-on-arm/xnu/tools/tests/libMicro/
H A Dfile_lock.c77 file = open(fname, O_CREAT | O_TRUNC | O_RDWR, 0600);
H A Dcascade_fcntl.c114 file = open(fname, O_CREAT | O_TRUNC | O_RDWR, 0600);
H A Dcascade_flock.c126 files[i] = open(fname, O_CREAT | O_TRUNC | O_RDWR, 0600);
H A Dcascade_lockf.c121 files[i] = open(fname, O_CREAT | O_TRUNC | O_RDWR, 0600);
/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);
/darwin-on-arm/xnu/bsd/kern/
H A Dposix_sem.c460 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 Dposix_shm.c494 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 Dkern_core.c287 if ((error = vnode_open(name, (O_CREAT | FWRITE | O_NOFOLLOW), S_IRUSR, VNODE_LOOKUP_NOFOLLOW, &vp, ctx)))
H A Dkern_shutdown.c222 if ((error = vnode_open(PROC_SHUTDOWN_LOG, (O_CREAT | FWRITE | O_NOFOLLOW), 0644, 0, &sd_logvp, ctx))) {
H A Dkern_symfile.c226 if ((error = vnode_open(name, (O_CREAT | FWRITE), (0), 0, &ref->vp, ref->ctx)))
/darwin-on-arm/xnu/SETUP/setsegname/
H A Dsetsegname.c238 int fd = open(output_name, O_WRONLY|O_CREAT|O_TRUNC, 0755);
/darwin-on-arm/xnu/bsd/sys/
H A Dfcntl.h142 #define O_CREAT 0x0200 /* create if nonexistant */ macro
/darwin-on-arm/xnu/bsd/vfs/
H A Dvfs_vnops.c337 * 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 Dvfs_xattr.c1707 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 Dkextsymboltool.c699 fd = open(output_name, O_WRONLY|O_CREAT|O_TRUNC, 0755);
/darwin-on-arm/xnu/bsd/hfs/
H A Dhfs_cprotect.c839 if (mode & O_CREAT)
/darwin-on-arm/xnu/bsd/nfs/
H A Dnfs_syscalls.c538 if (((fmode & (FREAD | FWRITE)) == 0) || (fmode & O_CREAT))

Completed in 128 milliseconds

12