Home
last modified time | relevance | path

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

12345

/titanic_52/usr/src/contrib/ast/src/lib/libast/sfio/
H A D_sfopen.c46 int fd, oldfd, oflags, fflags, sflags; local
50 if((sflags = _sftype(mode,&oflags,&fflags,NIL(int*))) == 0)
78 { if ((oflags &= (O_TEXT|O_BINARY|O_APPEND)) != 0 )
81 ctl = (ctl & ~(O_TEXT|O_BINARY|O_APPEND)) | oflags;
103 while((fd = sysopenf((char*)file,oflags,SF_CREATMODE)) < 0 && errno == EINTR)
106 while((fd = sysopenf(file,oflags&O_ACCMODE)) < 0 && errno == EINTR)
109 { if((oflags&(O_CREAT|O_EXCL)) == (O_CREAT|O_EXCL) )
113 if(oflags&O_TRUNC ) /* truncate file */
121 else if(oflags&O_CREAT)
124 if((oflags
155 reg int sflags, oflags, fflags, uflag; global() local
[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));
/titanic_52/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;
83 oflags = O_WRONLY | O_CREAT | O_TRUNC;
86 oflags = O_APPEND | O_WRONLY | O_CREAT;
89 oflags = O_APPEND | O_RDWR | O_CREAT;
97 oflags |= O_BINARY;
99 fp->f_file = open(path, oflags,
104 if (oflags
412 int oflags, tmp, fdflags, fd = *((int *) info); global() local
[all...]
/titanic_52/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" ]
/titanic_52/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)
/titanic_52/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.c25 int oflags = O_RDWR; in eventfd() local
35 oflags |= O_NONBLOCK; in eventfd()
38 oflags |= O_CLOEXEC; in eventfd()
40 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()
/titanic_52/usr/src/cmd/mdb/common/modules/genunix/
H A Dthread.c391 uint_t oflags = 0; in thread() local
406 } else if (!(oflags & TF_MERGE)) { \ in thread()
420 'i', MDB_OPT_SETBITS, TF_INTR, &oflags, in thread()
421 'p', MDB_OPT_SETBITS, TF_PROC, &oflags, in thread()
422 'b', MDB_OPT_SETBITS, TF_BLOCK, &oflags, in thread()
423 's', MDB_OPT_SETBITS, TF_SIG, &oflags, in thread()
424 'd', MDB_OPT_SETBITS, TF_DISP, &oflags, in thread()
425 'm', MDB_OPT_SETBITS, TF_MERGE, &oflags, NULL) != argc) in thread()
431 if (!(oflags & ~TF_MERGE)) in thread()
433 oflags in thread()
[all...]
/titanic_52/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()
[all...]
/titanic_52/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()
/titanic_52/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;
/titanic_52/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
142 oflags = ((flags & DC_EXCL) != 0) ? O_EXCL|O_RDWR : O_RDWR; in devctl_device_acquire()
143 return (dc_mkhndl(DEVCTL_DEVICE, devfs_path, oflags, NULL)); in devctl_device_acquire()
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, NUL in devctl_ap_acquire()
183 uint_t oflags; devctl_pm_bus_acquire() local
207 uint_t oflags; devctl_pm_dev_acquire() local
228 dc_mkhndl(dc_type_t type,char * path,uint_t oflags,devctl_hdl_t pc) dc_mkhndl() argument
[all...]
/titanic_52/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()
H A Daudit.c69 conv_arg.oflags = conv_arg.rflags = bind; in conv_la_bind()
122 conv_arg.oflags = conv_arg.rflags = search; in conv_la_search()
198 conv_arg.oflags = conv_arg.rflags = symbind; in conv_la_symbind()
/titanic_52/usr/src/boot/sys/sys/
H A Dfcntl.h69 * are inter-convertible using OFLAGS(fflags) and FFLAGS(oflags).
149 #define FFLAGS(oflags) ((oflags) & O_EXEC ? (oflags) : (oflags) + 1) argument
/titanic_52/usr/src/cmd/mdb/common/mdb/
H A Dmdb_fmt.c126 uint_t oflags = mdb_iob_getflags(mdb.m_out) & MDB_IOB_INDENT; in fmt_dot() local
129 mdb_iob_clrflags(mdb.m_out, oflags); in fmt_dot()
141 mdb_iob_setflags(mdb.m_out, oflags); in fmt_dot()
223 uint_t oflags = mdb_iob_getflags(mdb.m_out) & MDB_IOB_INDENT; in fmt_rawstr() local
227 mdb_iob_clrflags(mdb.m_out, oflags); in fmt_rawstr()
245 mdb_iob_setflags(mdb.m_out, oflags); in fmt_rawstr()
252 uint_t oflags = mdb_iob_getflags(mdb.m_out) & MDB_IOB_INDENT; in fmt_escstr() local
257 mdb_iob_clrflags(mdb.m_out, oflags); in fmt_escstr()
277 mdb_iob_setflags(mdb.m_out, oflags); in fmt_escstr()
424 uint_t oflags in fmt_dotinstr() local
[all...]
/titanic_52/usr/src/cmd/mdb/common/modules/ipc/
H A Dipc.c290 uint_t oflags = 0; in ds_print() local
292 if (mdb_getopts(argc, argv, 'l', MDB_OPT_SETBITS, 1, &oflags, in ds_print()
296 if (mdb_walk_dcmd(iv->iv_wcmd, oflags ? iv->iv_ocmd : "ipcperm", in ds_print()
599 uint_t oflags = 0; in ipcs() local
602 MDB_OPT_SETBITS, 1, &oflags, NULL) != argc) in ipcs()
606 if (mdb_walk_dcmd("msq", oflags ? "kmsqid" : "ipcperm", argc, argv) == in ipcs()
613 if (mdb_walk_dcmd("shm", oflags ? "kshmid" : "ipcperm", argc, argv) == in ipcs()
620 if (mdb_walk_dcmd("sem", oflags ? "ksemid" : "ipcperm", argc, argv) == in ipcs()

12345