Home
last modified time | relevance | path

Searched refs:O_ACCMODE (Results 1 – 25 of 34) sorted by relevance

12

/freebsd-13.1/tools/regression/security/open_to_operation/
H A Dopen_to_operation.c793 (mode & O_ACCMODE) == O_RDWR) in check_write()
799 (mode & O_ACCMODE) == O_RDWR)) in check_write()
877 (mode & O_ACCMODE) == O_RDWR) in check_read()
883 (mode & O_ACCMODE) == O_RDWR)) in check_read()
916 (mode & O_ACCMODE) == O_RDWR) in check_mmap_read()
926 (mode & O_ACCMODE) == O_RDWR) in check_mmap_read()
962 (mode & O_ACCMODE) == O_RDWR) in check_mmap_write()
969 (mode & O_ACCMODE) == O_RDWR) in check_mmap_write()
1004 (mode & O_ACCMODE) == O_RDWR) in check_mmap_exec()
1046 (mode & O_ACCMODE) == O_RDWR) in check_mmap_write_private()
[all …]
/freebsd-13.1/lib/libc/stdio/
H A Dfdopen.c76 tmp = fdflags & (O_ACCMODE | O_EXEC); in fdopen()
77 if (tmp != O_RDWR && (tmp != (oflags & O_ACCMODE))) { in fdopen()
H A Dfreopen.c98 if ((dflags & O_ACCMODE) != O_RDWR && in freopen()
99 (dflags & (O_ACCMODE | O_EXEC)) != (oflags & O_ACCMODE)) { in freopen()
/freebsd-13.1/contrib/sendmail/libsm/
H A Dstdio.c441 tmp = fdflags & O_ACCMODE;
442 if (tmp != O_RDWR && (tmp != (oflags & O_ACCMODE)))
495 switch (flags & O_ACCMODE)
/freebsd-13.1/lib/libc/db/recno/
H A Drec_open.c124 switch (flags & O_ACCMODE) { in __rec_open()
137 switch (flags & O_ACCMODE) { in __rec_open()
/freebsd-13.1/crypto/heimdal/lib/hdb/
H A Ddb3.c261 if((flags & O_ACCMODE) == O_RDONLY) in DB_open()
311 if((flags & O_ACCMODE) == O_RDONLY) in DB_open()
320 (flags & O_ACCMODE) == O_RDONLY ? in DB_open()
H A Ddb.c280 if((flags & O_ACCMODE) == O_RDONLY) in DB_open()
291 (flags & O_ACCMODE) == O_RDONLY ? in DB_open()
H A Dndbm.c334 if((flags & O_ACCMODE) == O_RDONLY) in NDBM_open()
343 (flags & O_ACCMODE) == O_RDONLY ? in NDBM_open()
H A Dhdb-mitdb.c761 if((flags & O_ACCMODE) == O_RDONLY) in mdb_open()
772 (flags & O_ACCMODE) == O_RDONLY ? in mdb_open()
/freebsd-13.1/cddl/lib/libdtrace/
H A Dio.d88 inline int O_ACCMODE = 0x0003; variable
89 #pragma D binding "1.1" O_ACCMODE
/freebsd-13.1/crypto/heimdal/lib/roken/
H A Droken-common.h121 #ifndef O_ACCMODE
122 #define O_ACCMODE 003 macro
/freebsd-13.1/tests/sys/file/
H A Dfcntlflags_test.c39 #define CORRECT_O_ACCMODE (O_ACCMODE | O_EXEC)
/freebsd-13.1/sys/kern/
H A Duipc_shm.c1064 if ((flags & O_ACCMODE) != O_RDONLY && (flags & O_ACCMODE) != O_RDWR) in kern_shm_open2()
1067 if ((flags & ~(O_ACCMODE | O_CREAT | O_EXCL | O_TRUNC | O_CLOEXEC)) != 0) in kern_shm_open2()
1102 if ((flags & O_ACCMODE) == O_RDONLY) { in kern_shm_open2()
1182 shmfd, FFLAGS(flags & O_ACCMODE)); in kern_shm_open2()
1186 FFLAGS(flags & O_ACCMODE)); in kern_shm_open2()
1195 (flags & (O_ACCMODE | O_TRUNC)) == in kern_shm_open2()
1228 finit(fp, FFLAGS(flags & O_ACCMODE), DTYPE_SHM, shmfd, &shm_ops); in kern_shm_open2()
/freebsd-13.1/lib/libc/db/btree/
H A Dbt_open.c191 switch (flags & O_ACCMODE) { in __bt_open()
206 if ((flags & O_ACCMODE) != O_RDWR) in __bt_open()
/freebsd-13.1/contrib/sendmail/libsmutil/
H A Dsafefile.c701 switch (omode & O_ACCMODE)
798 switch (omode & O_ACCMODE)
962 if ((omode & O_ACCMODE) != O_RDONLY)
/freebsd-13.1/lib/libc/db/hash/
H A Dhash.c108 if ((flags & O_ACCMODE) == O_WRONLY) { in __hash_open()
129 statbuf.st_size == 0 && (flags & O_ACCMODE) != O_RDONLY; in __hash_open()
545 if ((hashp->flags & O_ACCMODE) == O_RDONLY) { in hash_put()
564 if ((hashp->flags & O_ACCMODE) == O_RDONLY) { in hash_delete()
/freebsd-13.1/lib/libc/tests/stdio/
H A Dfopen_test.c41 #define CORRECT_O_ACCMODE (O_ACCMODE | O_EXEC)
/freebsd-13.1/sys/sys/
H A Dfcntl.h78 #define O_ACCMODE 0x0003 /* mask for above modes */ macro
/freebsd-13.1/contrib/sendmail/src/
H A Dmap.c1006 mode &= O_ACCMODE;
1469 mode &= O_ACCMODE;
2078 mode &= O_ACCMODE;
2740 mode &= O_ACCMODE;
3079 mode &= O_ACCMODE;
3341 mode &= O_ACCMODE;
3812 mode &= O_ACCMODE;
5437 mode &= O_ACCMODE;
6020 mode &= O_ACCMODE;
6150 mode &= O_ACCMODE;
[all …]
/freebsd-13.1/bin/cat/
H A Dcat.c483 switch(flags & O_ACCMODE) { in udom_open()
/freebsd-13.1/lib/libsysdecode/
H A Dflags.c431 mode = flags & O_ACCMODE; in sysdecode_open_flags()
432 flags &= ~O_ACCMODE; in sysdecode_open_flags()
/freebsd-13.1/stand/ficl/
H A Dloader.c713 if ((mode & O_ACCMODE) != O_WRONLY) { in pfopen()
719 if ((mode & O_ACCMODE) != O_RDONLY) { in pfopen()
/freebsd-13.1/sys/dev/filemon/
H A Dfilemon_wrapper.c204 (flags & O_ACCMODE) ? 'W':'R', in _filemon_wrapper_openat()
/freebsd-13.1/contrib/lib9p/backend/
H A Dfs.c345 flags = l_mode & O_ACCMODE; in fs_oflags_dotl()
348 CLEAR(O_ACCMODE); in fs_oflags_dotl()
1219 if ((flags & O_ACCMODE) != O_RDONLY) in fs_iopen()
1235 switch (flags & O_ACCMODE) { in fs_iopen()
1256 if ((flags & O_ACCMODE) != O_RDONLY || (flags & O_TRUNC)) in fs_iopen()
/freebsd-13.1/stand/libsa/
H A Dstand.h295 #define O_ACCMODE 0x3 macro

12