Home
last modified time | relevance | path

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

12

/freebsd/tools/regression/security/open_to_operation/
H A Dopen_to_operation.c790 (mode & O_ACCMODE) == O_RDWR) in check_write()
796 (mode & O_ACCMODE) == O_RDWR)) in check_write()
874 (mode & O_ACCMODE) == O_RDWR) in check_read()
880 (mode & O_ACCMODE) == O_RDWR)) in check_read()
913 (mode & O_ACCMODE) == O_RDWR) in check_mmap_read()
923 (mode & O_ACCMODE) == O_RDWR) in check_mmap_read()
959 (mode & O_ACCMODE) == O_RDWR) in check_mmap_write()
966 (mode & O_ACCMODE) == O_RDWR) in check_mmap_write()
1001 (mode & O_ACCMODE) == O_RDWR) in check_mmap_exec()
1043 (mode & O_ACCMODE) == O_RDWR) in check_mmap_write_private()
[all …]
/freebsd/lib/libc/stdio/
H A Dfdopen.c70 tmp = fdflags & (O_ACCMODE | O_EXEC); in fdopen()
71 if (tmp != O_RDWR && (tmp != (oflags & O_ACCMODE))) { in fdopen()
H A Dfreopen.c92 if ((dflags & O_ACCMODE) != O_RDWR && in freopen()
93 (dflags & (O_ACCMODE | O_EXEC)) != (oflags & O_ACCMODE)) { in freopen()
/freebsd/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/lib/libc/db/recno/
H A Drec_open.c118 switch (flags & O_ACCMODE) { in __rec_open()
131 switch (flags & O_ACCMODE) { in __rec_open()
/freebsd/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/cddl/lib/libdtrace/
H A Dio.d86 inline int O_ACCMODE = 0x0003; variable
87 #pragma D binding "1.1" O_ACCMODE
/freebsd/crypto/heimdal/lib/roken/
H A Droken-common.h121 #ifndef O_ACCMODE
122 #define O_ACCMODE 003 macro
/freebsd/tests/sys/file/
H A Dfcntlflags_test.c37 #define CORRECT_O_ACCMODE (O_ACCMODE | O_EXEC)
/freebsd/lib/libc/db/btree/
H A Dbt_open.c185 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 Dzfs_file_os.c63 KASSERT((flags & O_ACCMODE) != O_ACCMODE, in zfs_file_open()
/freebsd/contrib/sendmail/libsmutil/
H A Dsafefile.c701 switch (omode & O_ACCMODE)
798 switch (omode & O_ACCMODE)
962 if ((omode & O_ACCMODE) != O_RDONLY)
/freebsd/sys/kern/
H A Duipc_shm.c1179 if ((flags & O_ACCMODE) != O_RDONLY && (flags & O_ACCMODE) != O_RDWR) in kern_shm_open2()
1182 if ((flags & ~(O_ACCMODE | O_CREAT | O_EXCL | O_TRUNC | O_CLOEXEC)) != 0) in kern_shm_open2()
1241 if ((flags & O_ACCMODE) == O_RDONLY) { in kern_shm_open2()
1312 shmfd, FFLAGS(flags & O_ACCMODE)); in kern_shm_open2()
1316 FFLAGS(flags & O_ACCMODE)); in kern_shm_open2()
1325 (flags & (O_ACCMODE | O_TRUNC)) == in kern_shm_open2()
1357 finit(fp, FFLAGS(flags & O_ACCMODE), DTYPE_SHM, shmfd, &shm_ops); in kern_shm_open2()
/freebsd/lib/libc/db/hash/
H A Dhash.c102 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 Dfopen_test.c38 #define CORRECT_O_ACCMODE (O_ACCMODE | O_EXEC)
/freebsd/sys/sys/
H A Dfcntl.h75 #define O_ACCMODE 0x0003 /* mask for above modes */ macro
/freebsd/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/stand/ficl/
H A Dloader.c533 if ((mode & O_ACCMODE) != O_WRONLY) { in pfopen()
539 if ((mode & O_ACCMODE) != O_RDONLY) { in pfopen()
/freebsd/lib/libsysdecode/
H A Dflags.c273 mode = flags & O_ACCMODE; in sysdecode_open_flags()
274 flags &= ~O_ACCMODE; in sysdecode_open_flags()
/freebsd/bin/cat/
H A Dcat.c500 switch (flags & O_ACCMODE) { in udom_open()
/freebsd/sys/dev/filemon/
H A Dfilemon_wrapper.c202 (flags & O_ACCMODE) ? 'W':'R', in _filemon_wrapper_openat()
/freebsd/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()

12