Symbol: O_ACCMODE
bin/cat/cat.c
500
switch (flags & O_ACCMODE) {
crypto/heimdal/lib/hdb/db.c
280
if((flags & O_ACCMODE) == O_RDONLY)
crypto/heimdal/lib/hdb/db.c
291
(flags & O_ACCMODE) == O_RDONLY ?
crypto/heimdal/lib/hdb/db3.c
261
if((flags & O_ACCMODE) == O_RDONLY)
crypto/heimdal/lib/hdb/db3.c
311
if((flags & O_ACCMODE) == O_RDONLY)
crypto/heimdal/lib/hdb/db3.c
320
(flags & O_ACCMODE) == O_RDONLY ?
crypto/heimdal/lib/hdb/hdb-mitdb.c
869
if ((flags & O_ACCMODE) != O_RDONLY)
crypto/heimdal/lib/hdb/hdb-mitdb.c
880
(flags & O_ACCMODE) == O_RDONLY ?
crypto/heimdal/lib/hdb/ndbm.c
334
if((flags & O_ACCMODE) == O_RDONLY)
crypto/heimdal/lib/hdb/ndbm.c
343
(flags & O_ACCMODE) == O_RDONLY ?
crypto/heimdal/lib/roken/roken-common.h
121
#ifndef O_ACCMODE
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_open.c
193
switch (flags & O_ACCMODE) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_open.c
208
if ((flags & O_ACCMODE) != O_RDWR)
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash.c
106
if (!file || (flags & O_ACCMODE) == O_WRONLY) {
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash.c
616
if ((hashp->flags & O_ACCMODE) == O_RDONLY) {
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash.c
634
if ((hashp->flags & O_ACCMODE) == O_RDONLY) {
crypto/krb5/src/plugins/kdb/db2/libdb2/include/db-int.h
225
#ifndef O_ACCMODE /* POSIX 1003.1 access mode mask. */
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_open.c
129
switch (flags & O_ACCMODE) {
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_open.c
142
switch (flags & O_ACCMODE) {
crypto/openssh/sftp-server.c
760
((flags & O_ACCMODE) != O_RDONLY ||
lib/libc/db/btree/bt_open.c
185
switch (flags & O_ACCMODE) {
lib/libc/db/btree/bt_open.c
200
if ((flags & O_ACCMODE) != O_RDWR)
lib/libc/db/hash/hash.c
113
if ((flags & O_ACCMODE) == O_WRONLY) {
lib/libc/db/hash/hash.c
123
((flags & O_ACCMODE) != O_RDONLY || (flags & O_CREAT) != 0);
lib/libc/db/hash/hash.c
526
if ((hashp->flags & O_ACCMODE) == O_WRONLY) {
lib/libc/db/hash/hash.c
543
if ((hashp->flags & O_ACCMODE) == O_RDONLY) {
lib/libc/db/hash/hash.c
562
if ((hashp->flags & O_ACCMODE) == O_RDONLY) {
lib/libc/db/recno/rec_open.c
118
switch (flags & O_ACCMODE) {
lib/libc/db/recno/rec_open.c
131
switch (flags & O_ACCMODE) {
lib/libc/stdio/fdopen.c
70
tmp = fdflags & (O_ACCMODE | O_EXEC);
lib/libc/stdio/fdopen.c
71
if (tmp != O_RDWR && (tmp != (oflags & O_ACCMODE))) {
lib/libc/stdio/fmemopen.c
140
(flags & O_ACCMODE) == O_WRONLY ? NULL : fmemopen_read,
lib/libc/stdio/fmemopen.c
141
(flags & O_ACCMODE) == O_RDONLY ? NULL : fmemopen_write,
lib/libc/stdio/fmemopen.c
79
if ((flags & O_ACCMODE) != O_RDWR && buf == NULL) {
lib/libc/stdio/freopen.c
92
if ((dflags & O_ACCMODE) != O_RDWR &&
lib/libc/stdio/freopen.c
93
(dflags & (O_ACCMODE | O_EXEC)) != (oflags & O_ACCMODE)) {
lib/libc/tests/stdio/fopen_test.c
38
#define CORRECT_O_ACCMODE (O_ACCMODE | O_EXEC)
lib/libcasper/services/cap_fileargs/tests/fileargs_test.c
210
if ((flags & O_ACCMODE) != mode)
lib/libsysdecode/flags.c
274
mode = flags & O_ACCMODE;
lib/libsysdecode/flags.c
275
flags &= ~O_ACCMODE;
lib/libutil/quotafile.c
149
qf->accmode = openflags & O_ACCMODE;
share/examples/sound/oss.h
196
if ((config->mode & O_ACCMODE) == O_RDONLY)
share/examples/sound/oss.h
220
switch (config->mode & O_ACCMODE) {
stand/ficl/loader.c
533
if ((mode & O_ACCMODE) != O_WRONLY) {
stand/ficl/loader.c
539
if ((mode & O_ACCMODE) != O_RDONLY) {
sys/compat/linux/linux_misc.c
2964
if ((flags & O_ACCMODE) == O_ACCMODE || (flags & O_EXEC) != 0)
sys/dev/filemon/filemon_wrapper.c
201
(flags & O_ACCMODE) ? 'W':'R',
sys/kern/kern_descrip.c
664
tmp |= FFLAGS(arg & ~O_ACCMODE) & FCNTLFLAGS;
sys/kern/tty_pts.c
849
error = pts_alloc(FFLAGS(uap->flags & O_ACCMODE), td, fp);
sys/kern/uipc_mqueue.c
2125
if ((uap->flags & O_ACCMODE) == O_ACCMODE || uap->flags & O_EXEC)
sys/kern/uipc_mqueue.c
2784
if ((uap->flags & O_ACCMODE) == O_ACCMODE || uap->flags & O_EXEC)
sys/kern/uipc_shm.c
1158
if ((flags & O_ACCMODE) != O_RDONLY && (flags & O_ACCMODE) != O_RDWR)
sys/kern/uipc_shm.c
1161
if ((flags & ~(O_ACCMODE | O_CREAT | O_EXCL | O_TRUNC | O_CLOEXEC |
sys/kern/uipc_shm.c
1233
if ((flags & O_ACCMODE) == O_RDONLY) {
sys/kern/uipc_shm.c
1314
shmfd, FFLAGS(flags & O_ACCMODE));
sys/kern/uipc_shm.c
1318
FFLAGS(flags & O_ACCMODE));
sys/kern/uipc_shm.c
1327
(flags & (O_ACCMODE | O_TRUNC)) ==
sys/kern/uipc_shm.c
1356
finit(fp, FFLAGS(flags & O_ACCMODE), DTYPE_SHM, shmfd, &shm_ops);
sys/kern/vfs_syscalls.c
1098
switch ((flags & O_ACCMODE)) {
sys/kern/vfs_syscalls.c
1178
flags &= ~O_ACCMODE;
sys/kern/vfs_syscalls.c
1180
if ((flags & O_ACCMODE) != 0)
sys/kern/vfs_syscalls.c
1182
} else if ((flags & O_ACCMODE) == O_ACCMODE) {
sys/kern/vfs_vnops.c
441
KASSERT((fmode & O_PATH) == 0 || (fmode & O_ACCMODE) == 0,
tests/sys/file/fcntlflags_test.c
39
#define CORRECT_O_ACCMODE (O_ACCMODE | O_EXEC)
tools/regression/security/open_to_operation/open_to_operation.c
1000
else if ((mode & O_ACCMODE) == O_RDONLY ||
tools/regression/security/open_to_operation/open_to_operation.c
1001
(mode & O_ACCMODE) == O_RDWR)
tools/regression/security/open_to_operation/open_to_operation.c
1042
else if ((mode & O_ACCMODE) == O_RDONLY ||
tools/regression/security/open_to_operation/open_to_operation.c
1043
(mode & O_ACCMODE) == O_RDWR)
tools/regression/security/open_to_operation/open_to_operation.c
1052
else if ((mode & O_ACCMODE) == O_RDONLY ||
tools/regression/security/open_to_operation/open_to_operation.c
1053
(mode & O_ACCMODE) == O_RDWR)
tools/regression/security/open_to_operation/open_to_operation.c
507
if (((mode & O_ACCMODE) == O_WRONLY) ||
tools/regression/security/open_to_operation/open_to_operation.c
508
((mode & O_ACCMODE) == O_RDWR))
tools/regression/security/open_to_operation/open_to_operation.c
522
if (((mode & O_ACCMODE) == O_WRONLY) ||
tools/regression/security/open_to_operation/open_to_operation.c
523
((mode & O_ACCMODE) == O_RDWR)) {
tools/regression/security/open_to_operation/open_to_operation.c
538
if (((mode & O_ACCMODE) == O_WRONLY) ||
tools/regression/security/open_to_operation/open_to_operation.c
539
((mode & O_ACCMODE) == O_RDWR))
tools/regression/security/open_to_operation/open_to_operation.c
551
if (((mode & O_ACCMODE) == O_WRONLY) ||
tools/regression/security/open_to_operation/open_to_operation.c
552
((mode & O_ACCMODE) == O_RDWR)) {
tools/regression/security/open_to_operation/open_to_operation.c
565
if (((mode & O_ACCMODE) == O_WRONLY) ||
tools/regression/security/open_to_operation/open_to_operation.c
566
((mode & O_ACCMODE) == O_RDWR))
tools/regression/security/open_to_operation/open_to_operation.c
573
if (((mode & O_ACCMODE) == O_WRONLY) ||
tools/regression/security/open_to_operation/open_to_operation.c
574
((mode & O_ACCMODE) == O_RDWR))
tools/regression/security/open_to_operation/open_to_operation.c
651
if (isdir && ((mode & O_ACCMODE) == O_RDONLY))
tools/regression/security/open_to_operation/open_to_operation.c
660
if (isdir && ((mode & O_ACCMODE) == O_RDONLY))
tools/regression/security/open_to_operation/open_to_operation.c
698
else if (((mode & O_ACCMODE) == O_RDONLY) ||
tools/regression/security/open_to_operation/open_to_operation.c
699
((mode & O_ACCMODE) == O_RDWR))
tools/regression/security/open_to_operation/open_to_operation.c
706
else if (((mode & O_ACCMODE) == O_RDONLY) ||
tools/regression/security/open_to_operation/open_to_operation.c
707
((mode & O_ACCMODE) == O_RDWR))
tools/regression/security/open_to_operation/open_to_operation.c
789
if ((mode & O_ACCMODE) == O_WRONLY ||
tools/regression/security/open_to_operation/open_to_operation.c
790
(mode & O_ACCMODE) == O_RDWR)
tools/regression/security/open_to_operation/open_to_operation.c
795
if (!((mode & O_ACCMODE) == O_WRONLY ||
tools/regression/security/open_to_operation/open_to_operation.c
796
(mode & O_ACCMODE) == O_RDWR))
tools/regression/security/open_to_operation/open_to_operation.c
873
if ((mode & O_ACCMODE) == O_RDONLY ||
tools/regression/security/open_to_operation/open_to_operation.c
874
(mode & O_ACCMODE) == O_RDWR)
tools/regression/security/open_to_operation/open_to_operation.c
879
if (!((mode & O_ACCMODE) == O_RDONLY ||
tools/regression/security/open_to_operation/open_to_operation.c
880
(mode & O_ACCMODE) == O_RDWR))
tools/regression/security/open_to_operation/open_to_operation.c
912
else if ((mode & O_ACCMODE) == O_RDONLY ||
tools/regression/security/open_to_operation/open_to_operation.c
913
(mode & O_ACCMODE) == O_RDWR)
tools/regression/security/open_to_operation/open_to_operation.c
922
else if ((mode & O_ACCMODE) == O_RDONLY ||
tools/regression/security/open_to_operation/open_to_operation.c
923
(mode & O_ACCMODE) == O_RDWR)
tools/regression/security/open_to_operation/open_to_operation.c
958
if ((mode & O_ACCMODE) == O_WRONLY ||
tools/regression/security/open_to_operation/open_to_operation.c
959
(mode & O_ACCMODE) == O_RDWR)
tools/regression/security/open_to_operation/open_to_operation.c
965
if ((mode & O_ACCMODE) == O_WRONLY ||
tools/regression/security/open_to_operation/open_to_operation.c
966
(mode & O_ACCMODE) == O_RDWR)