/freebsd/tools/regression/security/open_to_operation/ |
H A D | open_to_operation.c | 507 if (((mode & O_ACCMODE) == O_WRONLY) || in check_ftruncate() 508 ((mode & O_ACCMODE) == O_RDWR)) in check_ftruncate() 522 if (((mode & O_ACCMODE) == O_WRONLY) || in check_ftruncate() 523 ((mode & O_ACCMODE) == O_RDWR)) { in check_ftruncate() 538 if (((mode & O_ACCMODE) == O_WRONLY) || in check_ftruncate() 539 ((mode & O_ACCMODE) == O_RDWR)) in check_ftruncate() 551 if (((mode & O_ACCMODE) == O_WRONLY) || in check_ftruncate() 552 ((mode & O_ACCMODE) == O_RDWR)) { in check_ftruncate() 565 if (((mode & O_ACCMODE) == O_WRONLY) || in check_ftruncate() 566 ((mode & O_ACCMODE) == O_RDWR)) in check_ftruncate() [all …]
|
/freebsd/lib/libc/stdio/ |
H A D | fdopen.c | 70 tmp = fdflags & (O_ACCMODE | O_EXEC); in fdopen() 71 if (tmp != O_RDWR && (tmp != (oflags & O_ACCMODE))) { in fdopen()
|
H A D | freopen.c | 92 if ((dflags & O_ACCMODE) != O_RDWR && in freopen() 93 (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/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/lib/libc/db/recno/ |
H A D | rec_open.c | 118 switch (flags & O_ACCMODE) { in __rec_open() 131 switch (flags & O_ACCMODE) { in __rec_open()
|
/freebsd/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/cddl/lib/libdtrace/ |
H A D | io.d | 86 inline int O_ACCMODE = 0x0003; variable 87 #pragma D binding "1.1" O_ACCMODE
|
/freebsd/crypto/heimdal/lib/roken/ |
H A D | roken-common.h | 121 #ifndef O_ACCMODE 122 #define O_ACCMODE 003 macro
|
/freebsd/tests/sys/file/ |
H A D | fcntlflags_test.c | 37 #define CORRECT_O_ACCMODE (O_ACCMODE | O_EXEC)
|
/freebsd/lib/libc/db/btree/ |
H A D | bt_open.c | 185 switch (flags & O_ACCMODE) { in __bt_open() 200 if ((flags & O_ACCMODE) != O_RDWR) in __bt_open()
|
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/ |
H A D | zfs_file_os.c | 63 KASSERT((flags & O_ACCMODE) != O_ACCMODE, in zfs_file_open()
|
/freebsd/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/sys/kern/ |
H A D | uipc_shm.c | 1152 if ((flags & O_ACCMODE) != O_RDONLY && (flags & O_ACCMODE) != O_RDWR) in kern_shm_open2() 1155 if ((flags & ~(O_ACCMODE | O_CREAT | O_EXCL | O_TRUNC | O_CLOEXEC)) != 0) in kern_shm_open2() 1212 if ((flags & O_ACCMODE) == O_RDONLY) { in kern_shm_open2() 1289 shmfd, FFLAGS(flags & O_ACCMODE)); in kern_shm_open2() 1293 FFLAGS(flags & O_ACCMODE)); in kern_shm_open2() 1302 (flags & (O_ACCMODE | O_TRUNC)) == in kern_shm_open2() 1331 finit(fp, FFLAGS(flags & O_ACCMODE), DTYPE_SHM, shmfd, &shm_ops); in kern_shm_open2()
|
/freebsd/lib/libc/db/hash/ |
H A D | hash.c | 102 if ((flags & O_ACCMODE) == O_WRONLY) { in __hash_open() 123 statbuf.st_size == 0 && (flags & O_ACCMODE) != O_RDONLY; in __hash_open() 539 if ((hashp->flags & O_ACCMODE) == O_RDONLY) { in hash_put() 558 if ((hashp->flags & O_ACCMODE) == O_RDONLY) { in hash_delete()
|
/freebsd/lib/libc/tests/stdio/ |
H A D | fopen_test.c | 38 #define CORRECT_O_ACCMODE (O_ACCMODE | O_EXEC)
|
/freebsd/sys/sys/ |
H A D | fcntl.h | 75 #define O_ACCMODE 0x0003 /* mask for above modes */ macro
|
/freebsd/contrib/sendmail/src/ |
H A D | map.c | 1238 mode &= O_ACCMODE; 1700 mode &= O_ACCMODE; 1760 if ((mode & O_ACCMODE) == O_RDWR) 1983 if ((omode & O_ACCMODE) == O_RDWR) 2289 mode &= O_ACCMODE; 2603 if ((omode & O_ACCMODE) == O_RDWR) 2882 O_RDWR == (mode & O_ACCMODE) ? "rdwr" : "rdonly"); 2886 mode &= O_ACCMODE; 3093 if ((omode & O_ACCMODE) == O_RDWR) 3267 mode &= O_ACCMODE; [all …]
|
/freebsd/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/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/bin/cat/ |
H A D | cat.c | 500 switch (flags & O_ACCMODE) { in udom_open()
|
/freebsd/contrib/lib9p/backend/ |
H A D | fs.c | 345 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()
|