Searched refs:O_ACCMODE (Results 1 - 25 of 34) sorted by relevance

12

/freebsd-9.3-release/tools/regression/security/open_to_operation/
H A Dopen_to_operation.c482 * ftruncate() should work as long as long as (mode & O_ACCMODE) is
510 if (((mode & O_ACCMODE) == O_WRONLY) ||
511 ((mode & O_ACCMODE) == O_RDWR))
525 if (((mode & O_ACCMODE) == O_WRONLY) ||
526 ((mode & O_ACCMODE) == O_RDWR)) {
541 if (((mode & O_ACCMODE) == O_WRONLY) ||
542 ((mode & O_ACCMODE) == O_RDWR))
554 if (((mode & O_ACCMODE) == O_WRONLY) ||
555 ((mode & O_ACCMODE) == O_RDWR)) {
568 if (((mode & O_ACCMODE)
[all...]
/freebsd-9.3-release/lib/libc/stdio/
H A Dfdopen.c75 tmp = fdflags & O_ACCMODE;
76 if (tmp != O_RDWR && (tmp != (oflags & O_ACCMODE))) {
H A Dfreopen.c97 if ((dflags & O_ACCMODE) != O_RDWR && (dflags & O_ACCMODE) !=
98 (oflags & O_ACCMODE)) {
/freebsd-9.3-release/cddl/lib/libdtrace/
H A Dio.d81 * F_GET[X]FL command, such as: if ((fi_oflags & O_ACCMODE) == O_WRONLY).
83 inline int O_ACCMODE = 0x0003;
84 #pragma D binding "1.1" O_ACCMODE
/freebsd-9.3-release/contrib/binutils/bfd/
H A Dsysdep.h100 #ifndef O_ACCMODE
101 #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) macro
/freebsd-9.3-release/tools/regression/lib/libc/stdio/
H A Dtest-fopen.c35 * O_ACCMODE is currently defined incorrectly. This is what it should be.
38 #define CORRECT_O_ACCMODE (O_ACCMODE | O_EXEC)
/freebsd-9.3-release/crypto/heimdal/lib/roken/
H A Droken-common.h119 #ifndef O_ACCMODE
120 #define O_ACCMODE 003 macro
/freebsd-9.3-release/contrib/gdb/gdb/
H A Dinflow.c443 #ifndef O_ACCMODE macro
444 #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
446 /* (O_ACCMODE) parens are to avoid Ultrix header file bug */
447 switch (flags & (O_ACCMODE))
459 flags &= ~(O_ACCMODE);
/freebsd-9.3-release/contrib/cvs/src/
H A Dmyndbm.c27 # ifndef O_ACCMODE
28 # define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) macro
29 # endif /* defined O_ACCMODE */
45 fp = CVS_FOPEN (file, (flags & O_ACCMODE) != O_RDONLY ?
/freebsd-9.3-release/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-9.3-release/lib/libc/db/recno/
H A Drec_open.c122 switch (flags & O_ACCMODE) {
135 switch (flags & O_ACCMODE) {
/freebsd-9.3-release/sys/kern/
H A Duipc_shm.c526 if ((uap->flags & O_ACCMODE) != O_RDONLY &&
527 (uap->flags & O_ACCMODE) != O_RDWR)
530 if ((uap->flags & ~(O_ACCMODE | O_CREAT | O_EXCL | O_TRUNC)) != 0)
543 if ((uap->flags & O_ACCMODE) == O_RDONLY) {
595 shmfd, FFLAGS(uap->flags & O_ACCMODE));
599 FFLAGS(uap->flags & O_ACCMODE));
608 (uap->flags & (O_ACCMODE | O_TRUNC)) ==
629 finit(fp, FFLAGS(uap->flags & O_ACCMODE), DTYPE_SHM, shmfd, &shm_ops);
H A Dtty_pts.c836 error = pts_alloc(FFLAGS(uap->flags & O_ACCMODE), td, fp);
/freebsd-9.3-release/crypto/heimdal/lib/hdb/
H A Ddb3.c259 if((flags & O_ACCMODE) == O_RDONLY)
305 if((flags & O_ACCMODE) == O_RDONLY)
314 (flags & O_ACCMODE) == O_RDONLY ?
H A Ddb.c282 if((flags & O_ACCMODE) == O_RDONLY)
293 (flags & O_ACCMODE) == O_RDONLY ?
H A Dndbm.c317 if((flags & O_ACCMODE) == O_RDONLY)
326 (flags & O_ACCMODE) == O_RDONLY ?
/freebsd-9.3-release/sys/sys/
H A Dfcntl.h76 #define O_ACCMODE 0x0003 /* mask for above modes */ macro
/freebsd-9.3-release/lib/libc/db/btree/
H A Dbt_open.c188 switch (flags & O_ACCMODE) {
203 if ((flags & O_ACCMODE) != O_RDWR)
/freebsd-9.3-release/contrib/sendmail/libsmutil/
H A Dsafefile.c702 switch (omode & O_ACCMODE)
799 switch (omode & O_ACCMODE)
963 if ((omode & O_ACCMODE) != O_RDONLY)
/freebsd-9.3-release/bin/cat/
H A Dcat.c333 switch(flags & O_ACCMODE) {
/freebsd-9.3-release/lib/libc/db/hash/
H A Dhash.c106 if ((flags & O_ACCMODE) == O_WRONLY) {
128 statbuf.st_size == 0 && (flags & O_ACCMODE) != O_RDONLY;
540 if ((hashp->flags & O_ACCMODE) == O_RDONLY) {
559 if ((hashp->flags & O_ACCMODE) == O_RDONLY) {
/freebsd-9.3-release/contrib/sendmail/src/
H A Dmap.c985 mode &= O_ACCMODE;
1423 mode &= O_ACCMODE;
1483 if ((mode & O_ACCMODE) == O_RDWR)
1713 if ((omode & O_ACCMODE) == O_RDWR)
2032 mode &= O_ACCMODE;
2362 if ((omode & O_ACCMODE) == O_RDWR)
2650 mode &= O_ACCMODE;
2912 mode &= O_ACCMODE;
3383 mode &= O_ACCMODE;
4998 mode &= O_ACCMODE;
[all...]
/freebsd-9.3-release/crypto/heimdal/lib/krb5/
H A Dkeytab_krb4.c98 if((flags & O_ACCMODE) == O_RDONLY)
/freebsd-9.3-release/lib/libutil/
H A Dquotafile.c139 qf->accmode = openflags & O_ACCMODE;
/freebsd-9.3-release/sys/dev/filemon/
H A Dfilemon_wrapper.c303 (uap->flags & O_ACCMODE) ? 'W':'R',

Completed in 238 milliseconds

12