| /freebsd-14.2/tools/regression/security/open_to_operation/ |
| H A D | open_to_operation.c | 791 (mode & O_ACCMODE) == O_RDWR) in check_write() 797 (mode & O_ACCMODE) == O_RDWR)) in check_write() 875 (mode & O_ACCMODE) == O_RDWR) in check_read() 881 (mode & O_ACCMODE) == O_RDWR)) in check_read() 914 (mode & O_ACCMODE) == O_RDWR) in check_mmap_read() 924 (mode & O_ACCMODE) == O_RDWR) in check_mmap_read() 960 (mode & O_ACCMODE) == O_RDWR) in check_mmap_write() 967 (mode & O_ACCMODE) == O_RDWR) in check_mmap_write() 1002 (mode & O_ACCMODE) == O_RDWR) in check_mmap_exec() 1044 (mode & O_ACCMODE) == O_RDWR) in check_mmap_write_private() [all …]
|
| /freebsd-14.2/lib/libc/stdio/ |
| H A D | fdopen.c | 73 tmp = fdflags & (O_ACCMODE | O_EXEC); in fdopen() 74 if (tmp != O_RDWR && (tmp != (oflags & O_ACCMODE))) { in fdopen()
|
| H A D | freopen.c | 95 if ((dflags & O_ACCMODE) != O_RDWR && in freopen() 96 (dflags & (O_ACCMODE | O_EXEC)) != (oflags & O_ACCMODE)) { in freopen()
|
| H A D | fmemopen.c | 79 if ((flags & O_ACCMODE) != O_RDWR && buf == NULL) { in fmemopen() 140 (flags & O_ACCMODE) == O_WRONLY ? NULL : fmemopen_read, in fmemopen() 141 (flags & O_ACCMODE) == O_RDONLY ? NULL : fmemopen_write, in fmemopen()
|
| /freebsd-14.2/contrib/sendmail/libsm/ |
| H A D | stdio.c | 441 tmp = fdflags & O_ACCMODE; 442 if (tmp != O_RDWR && (tmp != (oflags & O_ACCMODE))) 495 switch (flags & O_ACCMODE)
|
| /freebsd-14.2/lib/libc/db/recno/ |
| H A D | rec_open.c | 121 switch (flags & O_ACCMODE) { in __rec_open() 134 switch (flags & O_ACCMODE) { in __rec_open()
|
| /freebsd-14.2/crypto/heimdal/lib/hdb/ |
| H A D | db3.c | 261 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 D | db.c | 280 if((flags & O_ACCMODE) == O_RDONLY) in DB_open() 291 (flags & O_ACCMODE) == O_RDONLY ? in DB_open()
|
| H A D | ndbm.c | 334 if((flags & O_ACCMODE) == O_RDONLY) in NDBM_open() 343 (flags & O_ACCMODE) == O_RDONLY ? in NDBM_open()
|
| H A D | hdb-mitdb.c | 761 if((flags & O_ACCMODE) == O_RDONLY) in mdb_open() 772 (flags & O_ACCMODE) == O_RDONLY ? in mdb_open()
|
| /freebsd-14.2/cddl/lib/libdtrace/ |
| H A D | io.d | 86 inline int O_ACCMODE = 0x0003; variable 87 #pragma D binding "1.1" O_ACCMODE
|
| /freebsd-14.2/crypto/heimdal/lib/roken/ |
| H A D | roken-common.h | 121 #ifndef O_ACCMODE 122 #define O_ACCMODE 003 macro
|
| /freebsd-14.2/tests/sys/file/ |
| H A D | fcntlflags_test.c | 37 #define CORRECT_O_ACCMODE (O_ACCMODE | O_EXEC)
|
| /freebsd-14.2/sys/contrib/openzfs/module/os/freebsd/zfs/ |
| H A D | zfs_file_os.c | 66 KASSERT((flags & O_ACCMODE) != O_ACCMODE, in zfs_file_open()
|
| /freebsd-14.2/lib/libc/db/btree/ |
| H A D | bt_open.c | 188 switch (flags & O_ACCMODE) { in __bt_open() 203 if ((flags & O_ACCMODE) != O_RDWR) in __bt_open()
|
| /freebsd-14.2/contrib/sendmail/libsmutil/ |
| H A D | safefile.c | 701 switch (omode & O_ACCMODE) 798 switch (omode & O_ACCMODE) 962 if ((omode & O_ACCMODE) != O_RDONLY)
|
| /freebsd-14.2/lib/libc/db/hash/ |
| H A D | hash.c | 105 if ((flags & O_ACCMODE) == O_WRONLY) { in __hash_open() 126 statbuf.st_size == 0 && (flags & O_ACCMODE) != O_RDONLY; in __hash_open() 542 if ((hashp->flags & O_ACCMODE) == O_RDONLY) { in hash_put() 561 if ((hashp->flags & O_ACCMODE) == O_RDONLY) { in hash_delete()
|
| /freebsd-14.2/lib/libc/tests/stdio/ |
| H A D | fopen_test.c | 38 #define CORRECT_O_ACCMODE (O_ACCMODE | O_EXEC)
|
| /freebsd-14.2/sys/kern/ |
| H A D | uipc_shm.c | 1180 if ((flags & O_ACCMODE) != O_RDONLY && (flags & O_ACCMODE) != O_RDWR) in kern_shm_open2() 1183 if ((flags & ~(O_ACCMODE | O_CREAT | O_EXCL | O_TRUNC | O_CLOEXEC)) != 0) in kern_shm_open2() 1242 if ((flags & O_ACCMODE) == O_RDONLY) { in kern_shm_open2() 1313 shmfd, FFLAGS(flags & O_ACCMODE)); in kern_shm_open2() 1317 FFLAGS(flags & O_ACCMODE)); in kern_shm_open2() 1326 (flags & (O_ACCMODE | O_TRUNC)) == in kern_shm_open2() 1358 finit(fp, FFLAGS(flags & O_ACCMODE), DTYPE_SHM, shmfd, &shm_ops); in kern_shm_open2()
|
| /freebsd-14.2/sys/sys/ |
| H A D | fcntl.h | 77 #define O_ACCMODE 0x0003 /* mask for above modes */ macro
|
| /freebsd-14.2/contrib/sendmail/src/ |
| H A D | map.c | 1238 mode &= O_ACCMODE; 1700 mode &= O_ACCMODE; 2289 mode &= O_ACCMODE; 2886 mode &= O_ACCMODE; 3267 mode &= O_ACCMODE; 3525 mode &= O_ACCMODE; 3996 mode &= O_ACCMODE; 5694 mode &= O_ACCMODE; 6283 mode &= O_ACCMODE; 6413 mode &= O_ACCMODE; [all …]
|
| /freebsd-14.2/stand/ficl/ |
| H A D | loader.c | 533 if ((mode & O_ACCMODE) != O_WRONLY) { in pfopen() 539 if ((mode & O_ACCMODE) != O_RDONLY) { in pfopen()
|
| /freebsd-14.2/lib/libsysdecode/ |
| H A D | flags.c | 273 mode = flags & O_ACCMODE; in sysdecode_open_flags() 274 flags &= ~O_ACCMODE; in sysdecode_open_flags()
|
| /freebsd-14.2/bin/cat/ |
| H A D | cat.c | 514 switch (flags & O_ACCMODE) { in udom_open()
|
| /freebsd-14.2/sys/dev/filemon/ |
| H A D | filemon_wrapper.c | 202 (flags & O_ACCMODE) ? 'W':'R', in _filemon_wrapper_openat()
|