Searched refs:oflags (Results 1 - 25 of 134) sorted by relevance

123456

/freebsd-13-stable/lib/libc/tests/stdio/
H A Dmkostemp_test.c52 test_one(int oflags) argument
59 fd = mkostemp(tmpf, oflags);
61 printf("not ok %d - oflags=%#x "
63 testnum++, oflags, strerror(errno));
67 printf("not ok %d - oflags=%#x "
69 testnum++, oflags, tmpf);
74 (oflags & O_CLOEXEC ? FD_CLOEXEC : 0)) {
75 printf("not ok %d - oflags=%#x "
77 testnum++, oflags);
80 if ((fcntl(fd, F_GETFL) & MISCFLAGS) != (oflags
[all...]
/freebsd-13-stable/contrib/openbsm/bin/praudit/
H A Dpraudit.c68 static int oflags = AU_OFLAG_NONE; variable
107 au_print_flags_tok(stdout, &tok, del, oflags);
110 if (!(oflags & AU_OFLAG_XML))
145 oflags |= AU_OFLAG_NORESOLVE;
153 if (oflags & AU_OFLAG_SHORT)
155 oflags |= AU_OFLAG_RAW;
159 if (oflags & AU_OFLAG_RAW)
161 oflags |= AU_OFLAG_SHORT;
165 oflags |= AU_OFLAG_XML;
186 if (oflags
[all...]
/freebsd-13-stable/lib/libc/stdio/
H A Dmktemp.c58 mkostempsat(int dfd, char *path, int slen, int oflags) argument
62 return (_gettemp(dfd, path, &fd, 0, slen, oflags) ? fd : -1);
66 mkostemps(char *path, int slen, int oflags) argument
70 return (_gettemp(AT_FDCWD, path, &fd, 0, slen, oflags) ? fd : -1);
82 mkostemp(char *path, int oflags) argument
86 return (_gettemp(AT_FDCWD, path, &fd, 0, 0, oflags) ? fd : -1);
119 _gettemp(int dfd, char *path, int *doopen, int domkdir, int slen, int oflags) argument
129 (oflags & ~(O_APPEND | O_DIRECT | O_SHLOCK | O_EXLOCK | O_SYNC |
156 oflags |= O_CREAT | O_EXCL | O_RDWR;
159 *doopen = _openat(dfd, path, oflags, 060
[all...]
H A Dfdopen.c55 int flags, oflags, fdflags, tmp; local
69 if ((flags = __sflags(mode, &oflags)) == 0)
77 if (tmp != O_RDWR && (tmp != (oflags & O_ACCMODE))) {
85 if ((oflags & O_CLOEXEC) && _fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) {
98 else if (oflags & O_APPEND)
H A Dfreopen.c64 int dflags, flags, isopen, oflags, sverrno, wantfd; local
66 if ((flags = __sflags(mode, &oflags)) == 0) {
99 (dflags & (O_ACCMODE | O_EXEC)) != (oflags & O_ACCMODE)) {
107 if ((oflags ^ dflags) & O_APPEND) {
109 dflags |= oflags & O_APPEND;
118 if (oflags & O_TRUNC)
120 if (!(oflags & O_APPEND))
122 if (oflags & O_CLOEXEC)
155 f = _open(file, oflags, DEFFILEMODE);
162 f = _open(file, oflags, DEFFILEMOD
[all...]
H A Dfopen.c58 int flags, oflags; local
60 if ((flags = __sflags(mode, &oflags)) == 0)
64 if ((f = _open(file, oflags, DEFFILEMODE)) < 0) {
96 if (oflags & O_APPEND) {
H A Dfopencookie.c55 int flags, oflags; local
57 if ((flags = __sflags(mode, &oflags)) == 0)
81 if ((oflags & O_APPEND) != 0)
/freebsd-13-stable/contrib/sendmail/libsm/
H A Dstdio.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
410 int oflags, tmp, fdflags, fd = *((int *) info); local
[all...]
/freebsd-13-stable/contrib/openbsm/libbsm/
H A Dbsm_io.c462 print_tok_type(FILE *fp, u_char type, const char *tokname, int oflags) argument
465 if (oflags & AU_OFLAG_XML) {
632 if (oflags & AU_OFLAG_RAW)
643 print_user(FILE *fp, u_int32_t usr, int oflags) argument
647 if (oflags & AU_OFLAG_RAW)
662 print_group(FILE *fp, u_int32_t grp, int oflags) argument
666 if (oflags & AU_OFLAG_RAW)
682 print_event(FILE *fp, u_int16_t ev, int oflags) argument
700 if (oflags & AU_OFLAG_RAW)
702 else if (oflags
714 print_evmod(FILE *fp, u_int16_t evmod, int oflags) argument
726 print_sec32(FILE *fp, u_int32_t sec, int oflags) argument
746 print_sec64(FILE *fp, u_int64_t sec, int oflags) argument
765 print_msec32(FILE *fp, u_int32_t msec, int oflags) argument
778 print_msec64(FILE *fp, u_int64_t msec, int oflags) argument
832 print_retval(FILE *fp, u_char status, int oflags) argument
869 print_ipctype(FILE *fp, u_char type, int oflags) argument
947 print_header32_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
1054 print_header32_ex_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
1139 print_header64_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
1242 print_header64_ex_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
1307 print_trailer_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
1349 print_arg32_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
1400 print_arg64_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
1484 print_arb_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
1692 print_attr32_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
1773 print_attr64_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
1834 print_exit_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
1891 print_execarg_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
1949 print_execenv_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
2002 print_file_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
2051 print_newgroups_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
2087 print_inaddr_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
2130 print_inaddr_ex_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
2203 print_ip_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
2286 print_ipc_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
2352 print_ipcperm_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
2414 print_iport_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
2449 print_opaque_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
2488 print_path_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
2560 print_process32_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
2672 print_process64_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
2798 print_process32ex_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
2927 print_process64ex_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
3002 print_return32_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
3039 print_return64_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
3075 print_seq_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
3119 print_sock_inet32_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
3173 print_sock_inet128_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
3226 print_sock_unix_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
3290 print_socket_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
3383 print_subject32_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
3437 print_upriv_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
3517 print_privset_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
3598 print_subject64_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
3724 print_subject32ex_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
3852 print_subject64ex_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
3928 print_text_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
4012 print_socketex32_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
4083 print_invalid_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
4115 print_zonename_tok(FILE *fp, tokenstr_t *tok, char *del, int oflags) argument
4282 au_print_flags_tok(FILE *outfp, tokenstr_t *tok, char *del, int oflags) argument
4469 int oflags = AU_OFLAG_NONE; local
4486 int oflags = AU_OFLAG_XML; local
[all...]
/freebsd-13-stable/contrib/apr/file_io/unix/
H A Dopen.c97 int oflags = 0; local
104 oflags = O_RDWR;
107 oflags = O_RDONLY;
110 oflags = O_WRONLY;
117 oflags |= O_CREAT;
119 oflags |= O_EXCL;
127 oflags |= O_APPEND;
130 oflags |= O_TRUNC;
134 oflags |= O_BINARY;
140 oflags |
[all...]
/freebsd-13-stable/sys/fs/fuse/
H A Dfuse_file.h184 int oflags = -1; local
191 oflags = type;
197 return oflags;
H A Dfuse_file.c133 int oflags = 0; local
137 oflags = fufh_type_2_fflags(fufh_type);
148 foi->flags = oflags;
/freebsd-13-stable/usr.bin/truncate/
H A Dtruncate.c54 int ch, error, fd, oflags; local
117 oflags = O_WRONLY;
119 oflags = O_WRONLY | O_CREAT;
125 if ((fd = open(fname, oflags, omode)) == -1) {
/freebsd-13-stable/sys/compat/cloudabi/
H A Dcloudabi_fd.c391 int error, oflags; local
398 oflags = OFLAGS(fp->f_flag);
403 if (oflags & O_APPEND)
405 if (oflags & O_NONBLOCK)
407 if (oflags & O_SYNC)
442 int error, oflags; local
450 oflags = 0;
452 oflags |= O_APPEND;
454 oflags |= O_NONBLOCK;
457 oflags |
[all...]
/freebsd-13-stable/lib/libc/sys/
H A Dshm_open.c95 int error, fd, npgs, oflags, pgidx, saved_errno, shmflags; local
119 oflags = O_RDWR;
122 oflags |= O_CLOEXEC;
129 fd = __sys_shm_open2(SHM_ANON, oflags, 0, shmflags, memfd_name);
/freebsd-13-stable/sys/sys/
H A Dfcntl.h71 * are inter-convertible using OFLAGS(fflags) and FFLAGS(oflags).
163 #define FFLAGS(oflags) ((oflags) & O_EXEC ? (oflags) : (oflags) + 1)
/freebsd-13-stable/sys/security/audit/
H A Daudit_bsm_klib.c213 audit_flags_and_error_to_openevent(int oflags, int error) argument
220 oflags = oflags & (O_RDONLY | O_CREAT | O_TRUNC | O_RDWR | O_WRONLY);
222 if (aue_open[i].aoe_flags == oflags)
229 audit_flags_and_error_to_openatevent(int oflags, int error) argument
236 oflags = oflags & (O_RDONLY | O_CREAT | O_TRUNC | O_RDWR | O_WRONLY);
238 if (aue_openat[i].aoe_flags == oflags)
H A Daudit_trigger.c66 audit_open(struct cdev *dev, int oflags, int devtype, struct thread *td) argument
/freebsd-13-stable/bin/dd/
H A Ddd.c146 int iflags, oflags; local
179 oflags = fcntl(out.fd, F_GETFL);
180 if (oflags == -1)
182 oflags |= O_FSYNC;
183 if (fcntl(out.fd, F_SETFL, oflags) == -1)
187 oflags = O_CREAT;
189 oflags |= O_TRUNC;
191 oflags |= O_FSYNC;
193 oflags |= O_DIRECT;
194 out.fd = open(out.name, O_RDWR | oflags, DEFFILEMOD
[all...]
/freebsd-13-stable/sys/dev/hyperv/vmbus/amd64/
H A Dhyperv_machdep.c94 hyperv_tsc_open(struct cdev *dev __unused, int oflags, int devtype __unused, argument
98 if (oflags & FWRITE)
/freebsd-13-stable/contrib/mandoc/
H A Dhtml.h107 int oflags; /* output options */ member in struct:html
/freebsd-13-stable/contrib/ncurses/ncurses/trace/
H A Dlib_tracebits.c125 }, oflags[] = local
165 8 + sizeof(oflags) +
175 lookup_bits(buf, oflags, "oflags", tty->c_oflag);
/freebsd-13-stable/sys/net80211/
H A Dieee80211_crypto.c271 int oflags; local
313 oflags = key->wk_flags;
316 flags |= (oflags & IEEE80211_KEY_DEVICE);
359 key->wk_flags = oflags; /* restore old flags */
397 oflags, key->wk_flags);
404 key->wk_flags = oflags; /* restore old flags */
/freebsd-13-stable/lib/libc/resolv/
H A Dres_query.c121 u_int oflags; local
125 oflags = statp->_flags;
161 ((oflags ^ statp->_flags) & RES_F_EDNS0ERR) != 0) {
/freebsd-13-stable/sys/vm/
H A Ddevice_pager.c240 KASSERT((m->oflags & VPO_UNMANAGED) == 0, ("unmanaged %p", m));
253 (m->oflags & VPO_UNMANAGED) != 0),
306 (ma[0]->oflags & VPO_UNMANAGED) != 0) ||
308 (ma[0]->oflags & VPO_UNMANAGED) == 0),

Completed in 145 milliseconds

123456