/dragonfly/lib/libc/stdio/ |
H A D | freopen.c | 59 if ((flags = __sflags(mode, &oflags)) == 0) { in freopen() 91 (oflags & O_ACCMODE)) { in freopen() 99 if ((oflags ^ dflags) & O_APPEND) { in freopen() 101 dflags |= oflags & O_APPEND; in freopen() 110 if (oflags & O_TRUNC) in freopen() 112 if (!(oflags & O_APPEND)) in freopen() 114 if (oflags & O_CLOEXEC) in freopen() 148 f = _open(file, oflags, DEFFILEMODE); in freopen() 154 f = _open(file, oflags, DEFFILEMODE); in freopen() 196 if (oflags & O_CLOEXEC) { in freopen() [all …]
|
H A D | mktemp.c | 62 mkostemps(char *path, int slen, int oflags) in mkostemps() argument 66 return (_gettemp(path, &fd, 0, slen, oflags) ? fd : -1); in mkostemps() 78 mkostemp(char *path, int oflags) in mkostemp() argument 82 return (_gettemp(path, &fd, 0, 0, oflags) ? fd : -1); in mkostemp() 107 _gettemp(char *path, int *doopen, int domkdir, int slen, int oflags) in _gettemp() argument 116 if ((oflags & ~(O_APPEND | O_DIRECT | O_SHLOCK | in _gettemp() 168 if ((*doopen = _open(path, O_CREAT|O_EXCL|O_RDWR|oflags, in _gettemp()
|
H A D | fdopen.c | 50 int flags, oflags, fdflags, tmp; in fdopen() local 52 if ((flags = __sflags(mode, &oflags)) == 0) in fdopen() 59 if (tmp != O_RDWR && (tmp != (oflags & O_ACCMODE))) { in fdopen() 67 if (oflags & O_CLOEXEC) in fdopen() 76 if ((oflags & O_APPEND) && !(fdflags & O_APPEND)) in fdopen()
|
H A D | fopen.c | 51 int flags, oflags; in fopen() local 53 if ((flags = __sflags(mode, &oflags)) == 0) in fopen() 57 if ((f = _open(file, oflags, DEFFILEMODE)) < 0) { in fopen() 76 if (oflags & O_APPEND) in fopen()
|
H A D | fmemopen.c | 154 int flags, oflags; in fmemopen() local 161 flags = __sflags(mode, &oflags); in fmemopen() 165 if ((oflags & O_RDWR) == 0 && buf == NULL) in fmemopen() 186 if (oflags & O_TRUNC) in fmemopen() 199 cookie->cur = (oflags & O_APPEND) ? cookie->eob : cookie->head; in fmemopen()
|
H A D | fopencookie.c | 55 int flags, oflags; in fopencookie() local 57 if ((flags = __sflags(mode, &oflags)) == 0) in fopencookie() 81 if ((oflags & O_APPEND) != 0) in fopencookie()
|
/dragonfly/sys/vfs/hammer2/ |
H A D | hammer2_admin.c | 78 uint32_t oflags; in hammer2_thr_signal() local 82 oflags = thr->flags; in hammer2_thr_signal() 107 uint32_t oflags; in hammer2_thr_signal2() local 111 oflags = thr->flags; in hammer2_thr_signal2() 136 uint32_t oflags; in hammer2_thr_wait() local 140 oflags = thr->flags; in hammer2_thr_wait() 161 uint32_t oflags; in hammer2_thr_wait_any() local 167 oflags = thr->flags; in hammer2_thr_wait_any() 169 if (oflags & flags) in hammer2_thr_wait_any() 194 uint32_t oflags; in hammer2_thr_wait_neg() local [all …]
|
H A D | hammer2_flush.c | 120 uint32_t oflags; in hammer2_trans_init() local 125 oflags = pmp->trans.flags; in hammer2_trans_init() 137 nflags = (oflags | flags) + 1; in hammer2_trans_init() 146 nflags = (oflags | flags) + 1; in hammer2_trans_init() 159 nflags = (oflags | flags) + 1; in hammer2_trans_init() 189 oflags = pmp->trans.flags; in hammer2_trans_init() 238 uint32_t oflags; in hammer2_trans_clearflags() local 242 oflags = pmp->trans.flags; in hammer2_trans_clearflags() 244 nflags = oflags & ~flags; in hammer2_trans_clearflags() 258 uint32_t oflags; in hammer2_trans_done() local [all …]
|
/dragonfly/usr.sbin/makefs/hammer2/ |
H A D | hammer2_admin.c | 83 uint32_t oflags; in hammer2_thr_signal() local 87 oflags = thr->flags; in hammer2_thr_signal() 112 uint32_t oflags; in hammer2_thr_signal2() local 116 oflags = thr->flags; in hammer2_thr_signal2() 141 uint32_t oflags; in hammer2_thr_wait() local 145 oflags = thr->flags; in hammer2_thr_wait() 166 uint32_t oflags; in hammer2_thr_wait_any() local 172 oflags = thr->flags; in hammer2_thr_wait_any() 174 if (oflags & flags) in hammer2_thr_wait_any() 199 uint32_t oflags; in hammer2_thr_wait_neg() local [all …]
|
H A D | hammer2_flush.c | 124 uint32_t oflags; in hammer2_trans_init() local 129 oflags = pmp->trans.flags; in hammer2_trans_init() 141 nflags = (oflags | flags) + 1; in hammer2_trans_init() 150 nflags = (oflags | flags) + 1; in hammer2_trans_init() 163 nflags = (oflags | flags) + 1; in hammer2_trans_init() 193 oflags = pmp->trans.flags; in hammer2_trans_init() 242 uint32_t oflags; in hammer2_trans_clearflags() local 246 oflags = pmp->trans.flags; in hammer2_trans_clearflags() 248 nflags = oflags & ~flags; in hammer2_trans_clearflags() 262 uint32_t oflags; in hammer2_trans_done() local [all …]
|
/dragonfly/lib/libssh/openbsd-compat/ |
H A D | bsd-misc.c | 133 int ret, oflags = O_WRONLY; in utimensat() local 150 oflags |= O_NOFOLLOW; in utimensat() 152 if ((fd = open(path, oflags)) == -1) in utimensat() 170 int ret, oflags = O_WRONLY; in fchownat() local 181 oflags |= O_NOFOLLOW; in fchownat() 183 if ((fd = open(path, oflags)) == -1) in fchownat() 201 int ret, oflags = O_WRONLY; in fchmodat() local 212 oflags |= O_NOFOLLOW; in fchmodat() 214 if ((fd = open(path, oflags)) == -1) in fchmodat()
|
/dragonfly/usr.bin/truncate/ |
H A D | truncate.c | 53 int ch, error, fd, oflags; in main() local 101 oflags = O_WRONLY; in main() 103 oflags = O_WRONLY | O_CREAT; in main() 107 if ((fd = open(fname, oflags, omode)) == -1) { in main()
|
/dragonfly/usr.bin/window/ |
H A D | wwopen.c | 44 wwopen(int type, int oflags, int nrow, int ncol, int row, int col, int nline) in wwopen() argument 130 if (oflags & WWO_GLASS) in wwopen() 132 if (oflags & WWO_REVERSE) { in wwopen() 135 else oflags &= ~WWO_REVERSE; in wwopen() 141 if (oflags & WWO_FRAME) { in wwopen() 172 SET(w->ww_oflags, oflags); in wwopen()
|
/dragonfly/sbin/hammer/ |
H A D | hammer.c | 39 static __inline void hammer_parse_blkdevs(const char *blkdevs, int oflags); 40 static void __hammer_parse_blkdevs(const char *blkdevs, int oflags, 592 __hammer_parse_blkdevs(const char *blkdevs, int oflags, int verify_volume, in __hammer_parse_blkdevs() argument 612 __hammer_parse_blkdevs(volname, oflags, verify_volume, in __hammer_parse_blkdevs() 615 volume = load_volume(volname, oflags, verify_volume); in __hammer_parse_blkdevs() 639 hammer_parse_blkdevs(const char *blkdevs, int oflags) in hammer_parse_blkdevs() argument 641 __hammer_parse_blkdevs(blkdevs, oflags, 1, 1); in hammer_parse_blkdevs()
|
H A D | ondisk.c | 89 __alloc_volume(const char *volname, int oflags) in __alloc_volume() argument 96 volume->rdonly = (oflags == O_RDONLY); in __alloc_volume() 98 volume->fd = open(volume->name, oflags); in __alloc_volume() 188 init_volume(const char *filename, int oflags, int32_t vol_no) in init_volume() argument 192 volume = __alloc_volume(filename, oflags); in init_volume() 204 load_volume(const char *filename, int oflags, int verify_volume) in load_volume() argument 209 volume = __alloc_volume(filename, oflags); in load_volume()
|
H A D | hammer_util.h | 128 volume_info_t init_volume(const char *filename, int oflags, int32_t vol_no); 129 volume_info_t load_volume(const char *filename, int oflags, int verify_volume);
|
/dragonfly/sys/netproto/802_11/wlan/ |
H A D | ieee80211_crypto.c | 270 int oflags; in ieee80211_crypto_newkey() local 312 oflags = key->wk_flags; in ieee80211_crypto_newkey() 315 flags |= (oflags & IEEE80211_KEY_DEVICE); in ieee80211_crypto_newkey() 358 key->wk_flags = oflags; /* restore old flags */ in ieee80211_crypto_newkey() 396 oflags, key->wk_flags); in ieee80211_crypto_newkey() 403 key->wk_flags = oflags; /* restore old flags */ in ieee80211_crypto_newkey()
|
/dragonfly/contrib/ncurses/ncurses/trace/ |
H A D | lib_tracebits.c | 125 }, oflags[] = in _nc_trace_ttymode() local 165 8 + sizeof(oflags) + in _nc_trace_ttymode() 175 lookup_bits(buf, oflags, "oflags", tty->c_oflag); in _nc_trace_ttymode()
|
/dragonfly/lib/libc/db/test/ |
H A D | dbtest.c | 84 int ch, oflags, sflag; in main() local 89 oflags = O_CREAT | O_RDWR; in main() 100 oflags |= DB_LOCK; in main() 151 oflags, S_IRUSR | S_IWUSR, type, infop)) == NULL) in main() 315 if (type == DB_BTREE && oflags & DB_LOCK) in main()
|
/dragonfly/lib/libc/resolv/ |
H A D | res_query.c | 115 u_int oflags; in res_nquery() local 119 oflags = statp->_flags; in res_nquery() 155 ((oflags ^ statp->_flags) & RES_F_EDNS0ERR) != 0) { in res_nquery()
|
/dragonfly/sys/sys/ |
H A D | fcntl.h | 131 #define FFLAGS(oflags) ((oflags) + 1) argument
|
/dragonfly/sbin/slattach/ |
H A D | slattach.c | 233 int oflags; in acquire_line() local 283 if ((oflags = fcntl(fd, F_GETFL)) == -1) { in acquire_line() 287 if (fcntl(fd, F_SETFL, oflags & ~O_NONBLOCK) == -1) { in acquire_line()
|
/dragonfly/sys/kern/ |
H A D | sys_pipe.c | 190 uint32_t oflags; in pipesignal() local 194 oflags = pb->state; in pipesignal() 196 nflags = oflags & ~flags; in pipesignal() 197 if (atomic_cmpset_int(&pb->state, oflags, nflags)) in pipesignal() 200 if (oflags & flags) in pipesignal()
|
/dragonfly/contrib/mdocml/ |
H A D | html.h | 111 int oflags; /* output options */ member
|
/dragonfly/contrib/nvi2/common/ |
H A D | exf.c | 733 int fd, nf, noname, oflags, rval; in file_write() local 810 oflags = O_CREAT | O_WRONLY | in file_write() 819 if ((fd = open(name, oflags, in file_write() 840 fd = open(name, oflags, S_IRUSR | S_IWUSR | in file_write()
|