Home
last modified time | relevance | path

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

12

/freebsd-14.2/tools/regression/security/open_to_operation/
H A Dopen_to_operation.c791 (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 Dfdopen.c73 tmp = fdflags & (O_ACCMODE | O_EXEC); in fdopen()
74 if (tmp != O_RDWR && (tmp != (oflags & O_ACCMODE))) { in fdopen()
H A Dfreopen.c95 if ((dflags & O_ACCMODE) != O_RDWR && in freopen()
96 (dflags & (O_ACCMODE | O_EXEC)) != (oflags & O_ACCMODE)) { in freopen()
H A Dfmemopen.c79 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 Dstdio.c441 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 Drec_open.c121 switch (flags & O_ACCMODE) { in __rec_open()
134 switch (flags & O_ACCMODE) { in __rec_open()
/freebsd-14.2/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-14.2/cddl/lib/libdtrace/
H A Dio.d86 inline int O_ACCMODE = 0x0003; variable
87 #pragma D binding "1.1" O_ACCMODE
/freebsd-14.2/crypto/heimdal/lib/roken/
H A Droken-common.h121 #ifndef O_ACCMODE
122 #define O_ACCMODE 003 macro
/freebsd-14.2/tests/sys/file/
H A Dfcntlflags_test.c37 #define CORRECT_O_ACCMODE (O_ACCMODE | O_EXEC)
/freebsd-14.2/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dzfs_file_os.c66 KASSERT((flags & O_ACCMODE) != O_ACCMODE, in zfs_file_open()
/freebsd-14.2/lib/libc/db/btree/
H A Dbt_open.c188 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 Dsafefile.c701 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 Dhash.c105 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 Dfopen_test.c38 #define CORRECT_O_ACCMODE (O_ACCMODE | O_EXEC)
/freebsd-14.2/sys/kern/
H A Duipc_shm.c1180 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 Dfcntl.h77 #define O_ACCMODE 0x0003 /* mask for above modes */ macro
/freebsd-14.2/contrib/sendmail/src/
H A Dmap.c1238 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 Dloader.c533 if ((mode & O_ACCMODE) != O_WRONLY) { in pfopen()
539 if ((mode & O_ACCMODE) != O_RDONLY) { in pfopen()
/freebsd-14.2/lib/libsysdecode/
H A Dflags.c273 mode = flags & O_ACCMODE; in sysdecode_open_flags()
274 flags &= ~O_ACCMODE; in sysdecode_open_flags()
/freebsd-14.2/bin/cat/
H A Dcat.c514 switch (flags & O_ACCMODE) { in udom_open()
/freebsd-14.2/sys/dev/filemon/
H A Dfilemon_wrapper.c202 (flags & O_ACCMODE) ? 'W':'R', in _filemon_wrapper_openat()

12