Home
last modified time | relevance | path

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

12345

/illumos-gate/usr/src/contrib/ast/src/lib/libast/sfio/
H A D_sfopen.c169 oflags |= O_BINARY;
172 oflags |= O_cloexec;
181 oflags |= O_RDONLY;
187 oflags |= O_TEXT;
197 oflags |= O_TRUNC;
200 oflags |= O_EXCL;
214 if(!(oflags&O_CREAT) )
215 oflags &= ~O_EXCL;
218 oflags |= O_BINARY;
221 oflags = (oflags&~O_ACCMODE)|O_RDWR;
[all …]
H A Dsfset.c38 reg int oflags, tflags, rv; local
46 if((oflags = (f->mode&SF_RDWR)) != (int)f->mode)
53 rv = _sfmode(f,oflags,0);
65 oflags = f->flags;
76 f->flags |= (oflags&SF_RDWR);
98 SFMTXRETURN(f, (oflags&SF_FLAGS));
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dstdio.c69 int oflags; local
74 oflags = O_RDWR;
77 oflags = O_RDWR | O_CREAT | O_TRUNC;
80 oflags = O_RDONLY;
97 oflags |= O_BINARY;
99 fp->f_file = open(path, oflags,
104 if (oflags & O_APPEND)
417 oflags = O_RDWR | O_CREAT;
420 oflags = O_RDONLY;
437 oflags |= O_BINARY;
[all …]
/illumos-gate/usr/src/cmd/troff/troff.d/
H A Dtroff.sh36 oflags= newargs=
46 oflags=$oflags$i ;;
47 -b|-k*|-p*|-g|-w) oflags=$i$oflags ;;
59 if [ "-b" = "$oflags" ]
64 if [ -n "$oflags" ]
/illumos-gate/usr/src/cmd/sendmail/db/os/
H A Dos_oflags.c30 __db_oflags(oflags) in __db_oflags() argument
31 int oflags; in __db_oflags()
42 if (oflags & O_CREAT)
44 if (!(oflags & (O_RDWR | O_WRONLY)) || oflags & O_RDONLY)
46 if (oflags & O_TRUNC)
/illumos-gate/usr/src/lib/libc/port/sys/
H A Dsignalfd.c28 int oflags = O_RDONLY; in signalfd() local
36 oflags |= O_NONBLOCK; in signalfd()
39 oflags |= O_CLOEXEC; in signalfd()
41 if ((fd = open("/dev/signalfd", oflags)) < 0) in signalfd()
H A Deventfd.c26 int oflags = O_RDWR; in eventfd() local
36 oflags |= O_NONBLOCK; in eventfd()
39 oflags |= O_CLOEXEC; in eventfd()
41 if ((fd = open("/dev/eventfd", oflags)) < 0) in eventfd()
H A Dtimerfd.c25 int oflags = O_RDWR; in timerfd_create() local
34 oflags |= O_NONBLOCK; in timerfd_create()
37 oflags |= O_CLOEXEC; in timerfd_create()
39 if ((fd = open("/dev/timerfd", oflags)) < 0) in timerfd_create()
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dthread.c394 uint_t oflags = 0; in thread() local
436 oflags = TF_INTR; in thread()
449 if (oflags & TF_PROC) { in thread()
455 if (oflags & TF_INTR) { in thread()
468 if (oflags & TF_SIG) { in thread()
474 if (oflags & TF_DISP) { in thread()
494 if (oflags & TF_PROC) { in thread()
500 if (oflags & TF_INTR) { in thread()
515 if (oflags & TF_BLOCK) { in thread()
524 if (oflags & TF_SIG) { in thread()
[all …]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/ccache/
H A Dcc_retr.c218 krb5_flags oflags = 0; in krb5_cc_retrieve_cred_seq() local
225 kret = krb5_cc_get_flags(context, id, &oflags); in krb5_cc_retrieve_cred_seq()
228 if (oflags & KRB5_TC_OPENCLOSE) in krb5_cc_retrieve_cred_seq()
229 (void) krb5_cc_set_flags(context, id, oflags & ~KRB5_TC_OPENCLOSE); in krb5_cc_retrieve_cred_seq()
232 if (oflags & KRB5_TC_OPENCLOSE) in krb5_cc_retrieve_cred_seq()
233 krb5_cc_set_flags(context, id, oflags); in krb5_cc_retrieve_cred_seq()
258 if (oflags & KRB5_TC_OPENCLOSE) in krb5_cc_retrieve_cred_seq()
259 krb5_cc_set_flags(context, id, oflags); in krb5_cc_retrieve_cred_seq()
270 if (oflags & KRB5_TC_OPENCLOSE) in krb5_cc_retrieve_cred_seq()
271 krb5_cc_set_flags(context, id, oflags); in krb5_cc_retrieve_cred_seq()
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dwaddnstr.c57 short oflags; in waddnstr() local
66 oflags = w->_flags & (W_FLUSH | W_SYNC_UP); in waddnstr()
75 w->_flags |= oflags; in waddnstr()
H A Dwaddnws.c56 short oflags; in waddnwstr() local
65 oflags = w->_flags & (W_FLUSH | W_SYNC_UP); in waddnwstr()
75 w->_flags |= oflags; in waddnwstr()
H A Dwinsnstr.c56 short oflags; in winsnstr() local
68 oflags = w->_flags & (W_FLUSH | W_SYNC_UP); in winsnstr()
77 w->_flags |= oflags; in winsnstr()
H A Dwbrdr_st.c60 short oflags; in wborder_set() local
67 oflags = w->_flags & (W_FLUSH | W_SYNC_UP); in wborder_set()
82 w->_flags |= oflags; in wborder_set()
H A Dwadd_wch.c79 int oflags; in wadd_wch() local
81 oflags = w->_flags & (W_FLUSH | W_SYNC_UP); in wadd_wch()
129 w->_flags = oflags | (w->_flags & ~(W_FLUSH | W_SYNC_UP)); in wadd_wch()
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dwaddnstr.c55 short oflags; local
67 oflags = w->_flags & (W_FLUSH | W_SYNC_UP);
76 w->_flags |= oflags;
H A Dwaddnws.c55 short oflags; local
67 oflags = w->_flags & (W_FLUSH | W_SYNC_UP);
76 w->_flags |= oflags;
H A Dwinsnstr.c54 short oflags; local
69 oflags = w->_flags & (W_FLUSH | W_SYNC_UP);
78 w->_flags |= oflags;
H A Dwbrdr_st.c57 short oflags; local
71 oflags = w->_flags & (W_FLUSH | W_SYNC_UP);
86 w->_flags |= oflags;
/illumos-gate/usr/src/lib/libdevice/
H A Ddevctl.c108 uint_t oflags; in devctl_bus_acquire() local
119 oflags = ((flags & DC_EXCL) != 0) ? O_EXCL|O_RDWR : O_RDWR; in devctl_bus_acquire()
120 return (dc_mkhndl(DEVCTL_BUS, devfs_path, oflags, NULL)); in devctl_bus_acquire()
131 uint_t oflags; in devctl_device_acquire() local
155 uint_t oflags; in devctl_ap_acquire() local
168 oflags = ((flags & DC_EXCL) != 0) ? O_EXCL : 0; in devctl_ap_acquire()
169 oflags |= ((flags & DC_RDONLY) != 0) ? O_RDONLY : O_RDWR; in devctl_ap_acquire()
171 return (dc_mkhndl(DEVCTL_AP, devfs_path, oflags, NULL)); in devctl_ap_acquire()
183 uint_t oflags; in devctl_pm_bus_acquire() local
207 uint_t oflags; in devctl_pm_dev_acquire() local
[all …]
/illumos-gate/usr/src/lib/librename/common/
H A Dlibrename.c51 int oflags; in librename_atomic_fdinit() local
111 oflags = O_CREAT | O_TRUNC | O_RDWR | O_NOFOLLOW; in librename_atomic_fdinit()
113 oflags |= O_EXCL; in librename_atomic_fdinit()
116 oflags |= O_CLOEXEC; in librename_atomic_fdinit()
119 oflags, mode); in librename_atomic_fdinit()
/illumos-gate/usr/src/cmd/sgs/libconv/common/
H A Ddynamic_machelf.c58 arg->oflags = arg->rflags = flags; in conv_dyn_posflag1()
77 conv_arg.oflags = conv_arg.rflags = flags; in conv_dyn_flag()
100 conv_arg.oflags = conv_arg.rflags = flags; in conv_dyn_flag1()
120 conv_arg.oflags = conv_arg.rflags = flags; in conv_dyn_feature1()
/illumos-gate/usr/src/boot/sys/sys/
H A Dfcntl.h149 #define FFLAGS(oflags) ((oflags) & O_EXEC ? (oflags) : (oflags) + 1) argument
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_fmt.c130 uint_t oflags = mdb_iob_getflags(mdb.m_out) & MDB_IOB_INDENT; in fmt_dot() local
133 mdb_iob_clrflags(mdb.m_out, oflags); in fmt_dot()
145 mdb_iob_setflags(mdb.m_out, oflags); in fmt_dot()
227 uint_t oflags = mdb_iob_getflags(mdb.m_out) & MDB_IOB_INDENT; in fmt_rawstr() local
231 mdb_iob_clrflags(mdb.m_out, oflags); in fmt_rawstr()
249 mdb_iob_setflags(mdb.m_out, oflags); in fmt_rawstr()
261 mdb_iob_clrflags(mdb.m_out, oflags); in fmt_escstr()
281 mdb_iob_setflags(mdb.m_out, oflags); in fmt_escstr()
452 mdb_iob_setflags(mdb.m_out, oflags); in fmt_dotinstr()
722 uint_t oflags = mdb.m_flags; in mdb_fmt_print() local
[all …]
/illumos-gate/usr/src/lib/libc/port/stdio/
H A Dfmemopen.c187 int oflags, fflags, err; in fmemopen() local
196 if (_stdio_flags(mode, &oflags, &fflags) != 0) { in fmemopen()
233 if ((oflags & O_APPEND) != 0) { in fmemopen()
237 } else if ((oflags & O_TRUNC) != 0) { in fmemopen()

12345