Home
last modified time | relevance | path

Searched refs:oflags (Results 1 – 25 of 132) sorted by relevance

123456

/freebsd-14-stable/contrib/openbsm/libbsm/
HDbsm_io.c462 print_tok_type(FILE *fp, u_char type, const char *tokname, int oflags) in print_tok_type() argument
465 if (oflags & AU_OFLAG_XML) { in print_tok_type()
632 if (oflags & AU_OFLAG_RAW) in print_tok_type()
643 print_user(FILE *fp, u_int32_t usr, int oflags) in print_user() argument
647 if (oflags & (AU_OFLAG_RAW | AU_OFLAG_NORESOLVE)) in print_user()
662 print_group(FILE *fp, u_int32_t grp, int oflags) in print_group() argument
666 if (oflags & (AU_OFLAG_RAW | AU_OFLAG_NORESOLVE)) in print_group()
682 print_event(FILE *fp, u_int16_t ev, int oflags) in print_event() argument
700 if (oflags & AU_OFLAG_RAW) in print_event()
702 else if (oflags & AU_OFLAG_SHORT) in print_event()
[all …]
/freebsd-14-stable/lib/libc/tests/stdio/
HDmkostemp_test.c49 test_one(int oflags) in test_one() argument
56 fd = mkostemp(tmpf, oflags); in test_one()
60 testnum++, oflags, strerror(errno)); in test_one()
66 testnum++, oflags, tmpf); in test_one()
71 (oflags & O_CLOEXEC ? FD_CLOEXEC : 0)) { in test_one()
74 testnum++, oflags); in test_one()
77 if ((fcntl(fd, F_GETFL) & MISCFLAGS) != (oflags & MISCFLAGS)) { in test_one()
80 testnum++, oflags); in test_one()
86 testnum++, oflags, tmpf, strerror(errno)); in test_one()
92 testnum++, oflags, fd, strerror(errno)); in test_one()
[all …]
/freebsd-14-stable/contrib/sendmail/libsm/
HDstdio.c67 int oflags; local
72 oflags = O_RDWR;
75 oflags = O_RDWR | O_CREAT | O_TRUNC;
78 oflags = O_RDONLY;
81 oflags = O_WRONLY | O_CREAT | O_TRUNC;
84 oflags = O_APPEND | O_WRONLY | O_CREAT;
87 oflags = O_APPEND | O_RDWR | O_CREAT;
95 oflags |= O_BINARY;
97 fp->f_file = open(path, oflags,
102 if (oflags & O_APPEND)
[all …]
/freebsd-14-stable/contrib/openbsm/bin/praudit/
HDpraudit.c68 static int oflags = AU_OFLAG_NONE; variable
107 au_print_flags_tok(stdout, &tok, del, oflags); in print_tokens()
110 if (!(oflags & AU_OFLAG_XML)) in print_tokens()
145 oflags |= AU_OFLAG_NORESOLVE; in main()
153 if (oflags & AU_OFLAG_SHORT) in main()
155 oflags |= AU_OFLAG_RAW; in main()
159 if (oflags & AU_OFLAG_RAW) in main()
161 oflags |= AU_OFLAG_SHORT; in main()
165 oflags |= AU_OFLAG_XML; in main()
186 if (oflags & AU_OFLAG_XML) in main()
[all …]
/freebsd-14-stable/lib/libc/stdio/
HDmktemp.c55 mkostempsat(int dfd, char *path, int slen, int oflags) in mkostempsat() argument
59 return (_gettemp(dfd, path, &fd, 0, slen, oflags) ? fd : -1); in mkostempsat()
63 mkostemps(char *path, int slen, int oflags) in mkostemps() argument
67 return (_gettemp(AT_FDCWD, path, &fd, 0, slen, oflags) ? fd : -1); in mkostemps()
79 mkostemp(char *path, int oflags) in mkostemp() argument
83 return (_gettemp(AT_FDCWD, path, &fd, 0, 0, oflags) ? fd : -1); in mkostemp()
116 _gettemp(int dfd, char *path, int *doopen, int domkdir, int slen, int oflags) in _gettemp() argument
126 (oflags & ~(O_APPEND | O_DIRECT | O_SHLOCK | O_EXLOCK | O_SYNC | in _gettemp()
153 oflags |= O_CREAT | O_EXCL | O_RDWR; in _gettemp()
156 *doopen = _openat(dfd, path, oflags, 0600); in _gettemp()
HDfreopen.c61 int dflags, flags, isopen, oflags, sverrno, wantfd; in freopen() local
63 if ((flags = __sflags(mode, &oflags)) == 0) { in freopen()
96 (dflags & (O_ACCMODE | O_EXEC)) != (oflags & O_ACCMODE)) { in freopen()
104 if ((oflags ^ dflags) & O_APPEND) { in freopen()
106 dflags |= oflags & O_APPEND; in freopen()
115 if (oflags & O_TRUNC) in freopen()
117 if (!(oflags & O_APPEND)) in freopen()
119 if (oflags & O_CLOEXEC) in freopen()
152 f = _open(file, oflags, DEFFILEMODE); in freopen()
159 f = _open(file, oflags, DEFFILEMODE); in freopen()
[all …]
HDfdopen.c52 int flags, oflags, fdflags, tmp; in fdopen() local
66 if ((flags = __sflags(mode, &oflags)) == 0) in fdopen()
74 if (tmp != O_RDWR && (tmp != (oflags & O_ACCMODE))) { in fdopen()
82 if ((oflags & O_CLOEXEC) && _fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) { in fdopen()
95 else if (oflags & O_APPEND) in fdopen()
HDfopen.c55 int flags, oflags; in fopen() local
57 if ((flags = __sflags(mode, &oflags)) == 0) in fopen()
61 if ((f = _open(file, oflags, DEFFILEMODE)) < 0) { in fopen()
93 if (oflags & O_APPEND) { in fopen()
HDfopencookie.c52 int flags, oflags; in fopencookie() local
54 if ((flags = __sflags(mode, &oflags)) == 0) in fopencookie()
78 if ((oflags & O_APPEND) != 0) in fopencookie()
/freebsd-14-stable/usr.bin/tee/
HDtee.c77 int append, ch, exitval, fd, n, oflags, rval, wval; in main() local
104 oflags = O_WRONLY | O_CREAT; in main()
106 oflags |= O_APPEND; in main()
108 oflags |= O_TRUNC; in main()
111 if ((fd = tee_open(*argv, oflags)) < 0) { in main()
169 tee_open(const char *path, int oflags) in tee_open() argument
175 if ((fd = open(path, oflags, DEFFILEMODE)) >= 0) in tee_open()
/freebsd-14-stable/crypto/openssh/openbsd-compat/
HDbsd-misc.c133 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()
/freebsd-14-stable/sys/security/audit/
HDaudit_bsm_klib.c210 audit_flags_and_error_to_openevent(int oflags, int error) in audit_flags_and_error_to_openevent() argument
217 oflags = oflags & (O_RDONLY | O_CREAT | O_TRUNC | O_RDWR | O_WRONLY); in audit_flags_and_error_to_openevent()
219 if (aue_open[i].aoe_flags == oflags) in audit_flags_and_error_to_openevent()
226 audit_flags_and_error_to_openatevent(int oflags, int error) in audit_flags_and_error_to_openatevent() argument
233 oflags = oflags & (O_RDONLY | O_CREAT | O_TRUNC | O_RDWR | O_WRONLY); in audit_flags_and_error_to_openatevent()
235 if (aue_openat[i].aoe_flags == oflags) in audit_flags_and_error_to_openatevent()
/freebsd-14-stable/lib/libc/gen/
HDmemfd_create.c57 int error, fd, npgs, oflags, pgidx, saved_errno, shmflags; in memfd_create() local
81 oflags = O_RDWR; in memfd_create()
84 oflags |= O_CLOEXEC; in memfd_create()
91 fd = __sys_shm_open2(SHM_ANON, oflags, 0, shmflags, memfd_name); in memfd_create()
/freebsd-14-stable/sys/fs/fuse/
HDfuse_file.h182 int oflags = -1; in fufh_type_2_fflags() local
189 oflags = type; in fufh_type_2_fflags()
195 return oflags; in fufh_type_2_fflags()
HDfuse_file.c136 int oflags = 0; in fuse_filehandle_open() local
141 oflags = fufh_type_2_fflags(fufh_type); in fuse_filehandle_open()
157 foi->flags = oflags; in fuse_filehandle_open()
/freebsd-14-stable/sys/sys/
HDfcntl.h162 #define FFLAGS(oflags) ((oflags) & O_EXEC ? (oflags) : (oflags) + 1) argument
/freebsd-14-stable/usr.bin/truncate/
HDtruncate.c56 int ch, error, fd, oflags, r; in main() local
148 oflags = O_WRONLY; in main()
150 oflags = O_WRONLY | O_CREAT; in main()
156 if ((fd = open(fname, oflags, omode)) == -1) { in main()
/freebsd-14-stable/tests/sys/ses/
HDcommon.h30 for_each_ses_dev(ses_cb cb, int oflags) in for_each_ses_dev() argument
48 fd = open(g.gl_pathv[i], oflags); in for_each_ses_dev()
/freebsd-14-stable/contrib/ntp/ntpd/
HDntp_ppsdev.c388 int oflags ) /* openn flags for pps device */ in ppsdev_reopen() argument
398 (void)oflags; in ppsdev_reopen()
406 retfd = open(ppspath, omode, oflags); in ppsdev_reopen()
417 retfd = open(xpath, omode, oflags); in ppsdev_reopen()
/freebsd-14-stable/sys/net80211/
HDieee80211_crypto.c302 int oflags; in ieee80211_crypto_newkey() local
344 oflags = key->wk_flags; in ieee80211_crypto_newkey()
347 flags |= (oflags & IEEE80211_KEY_DEVICE); in ieee80211_crypto_newkey()
390 key->wk_flags = oflags; /* restore old flags */ in ieee80211_crypto_newkey()
428 oflags, IEEE80211_KEY_BITS, in ieee80211_crypto_newkey()
436 key->wk_flags = oflags; /* restore old flags */ in ieee80211_crypto_newkey()
/freebsd-14-stable/contrib/ncurses/ncurses/trace/
HDlib_tracebits.c131 }, oflags[] = in _nc_trace_ttymode() local
171 8 + sizeof(oflags) + in _nc_trace_ttymode()
181 lookup_bits(buf, oflags, "oflags", tty->c_oflag); in _nc_trace_ttymode()
/freebsd-14-stable/sys/vm/
HDvm_page.c1279 m->oflags = VPO_UNMANAGED; in vm_page_initfake()
1297 KASSERT((m->oflags & VPO_UNMANAGED) != 0, ("managed %p", m)); in vm_page_putfake()
1797 KASSERT((mold->oflags & VPO_UNMANAGED) == in vm_page_replace_hold()
1798 (mnew->oflags & VPO_UNMANAGED), in vm_page_replace_hold()
2088 m->oflags = (object->flags & OBJ_UNMANAGED) != 0 ? VPO_UNMANAGED : 0; in vm_page_alloc_domain_after()
2107 m->oflags = VPO_UNMANAGED; in vm_page_alloc_domain_after()
2228 u_int busy_lock, flags, oflags; in vm_page_alloc_contig_domain() local
2276 oflags = (object->flags & OBJ_UNMANAGED) != 0 ? VPO_UNMANAGED : 0; in vm_page_alloc_contig_domain()
2295 m->oflags = oflags; in vm_page_alloc_contig_domain()
2306 m->oflags = VPO_UNMANAGED; in vm_page_alloc_contig_domain()
[all …]
/freebsd-14-stable/sys/dev/hyperv/vmbus/amd64/
HDhyperv_machdep.c95 hyperv_tsc_open(struct cdev *dev __unused, int oflags, int devtype __unused, in hyperv_tsc_open() argument
99 if (oflags & FWRITE) in hyperv_tsc_open()
/freebsd-14-stable/lib/libc/resolv/
HDres_query.c118 u_int oflags; in res_nquery() local
122 oflags = statp->_flags; in res_nquery()
158 ((oflags ^ statp->_flags) & RES_F_EDNS0ERR) != 0) { in res_nquery()
/freebsd-14-stable/lib/libc/db/test/
HDdbtest.c94 int ch, oflags, sflag; local
99 oflags = O_CREAT | O_RDWR;
110 oflags |= DB_LOCK;
161 oflags, S_IRUSR | S_IWUSR, type, infop)) == NULL)
325 if (type == DB_BTREE && oflags & DB_LOCK)

123456