/illumos-gate/usr/src/contrib/ast/src/lib/libast/sfio/ |
H A D | _sfopen.c | 46 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&O_ACCMODE) != O_WRONLY) [all …]
|
H A D | sfset.c | 38 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 D | stdio.c | 67 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 …]
|
/illumos-gate/usr/src/cmd/troff/troff.d/ |
H A D | troff.sh | 36 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 D | os_oflags.c | 30 __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 D | signalfd.c | 28 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 D | eventfd.c | 26 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 D | timerfd.c | 25 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 D | thread.c | 394 uint_t oflags = 0; in thread() local 409 } else if (!(oflags & TF_MERGE)) { \ in thread() 423 'i', MDB_OPT_SETBITS, TF_INTR, &oflags, in thread() 424 'p', MDB_OPT_SETBITS, TF_PROC, &oflags, in thread() 425 'b', MDB_OPT_SETBITS, TF_BLOCK, &oflags, in thread() 426 's', MDB_OPT_SETBITS, TF_SIG, &oflags, in thread() 427 'd', MDB_OPT_SETBITS, TF_DISP, &oflags, in thread() 428 'm', MDB_OPT_SETBITS, TF_MERGE, &oflags, NULL) != argc) in thread() 434 if (!(oflags & ~TF_MERGE)) in thread() 436 oflags = TF_INTR; in thread() [all …]
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/ccache/ |
H A D | cc_retr.c | 218 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 D | waddnstr.c | 55 short oflags; in waddnstr() local 64 oflags = w->_flags & (W_FLUSH | W_SYNC_UP); in waddnstr() 73 w->_flags |= oflags; in waddnstr()
|
H A D | waddnws.c | 54 short oflags; in waddnwstr() local 63 oflags = w->_flags & (W_FLUSH | W_SYNC_UP); in waddnwstr() 73 w->_flags |= oflags; in waddnwstr()
|
H A D | winsnstr.c | 54 short oflags; in winsnstr() local 66 oflags = w->_flags & (W_FLUSH | W_SYNC_UP); in winsnstr() 75 w->_flags |= oflags; in winsnstr()
|
H A D | wbrdr_st.c | 58 short oflags; in wborder_set() local 65 oflags = w->_flags & (W_FLUSH | W_SYNC_UP); in wborder_set() 80 w->_flags |= oflags; in wborder_set()
|
H A D | wadd_wch.c | 77 int oflags; in wadd_wch() local 79 oflags = w->_flags & (W_FLUSH | W_SYNC_UP); in wadd_wch() 127 w->_flags = oflags | (w->_flags & ~(W_FLUSH | W_SYNC_UP)); in wadd_wch()
|
/illumos-gate/usr/src/lib/libdevice/ |
H A D | devctl.c | 106 uint_t oflags; in devctl_bus_acquire() local 117 oflags = ((flags & DC_EXCL) != 0) ? O_EXCL|O_RDWR : O_RDWR; in devctl_bus_acquire() 118 return (dc_mkhndl(DEVCTL_BUS, devfs_path, oflags, NULL)); in devctl_bus_acquire() 129 uint_t oflags; in devctl_device_acquire() local 140 oflags = ((flags & DC_EXCL) != 0) ? O_EXCL|O_RDWR : O_RDWR; in devctl_device_acquire() 141 return (dc_mkhndl(DEVCTL_DEVICE, devfs_path, oflags, NULL)); in devctl_device_acquire() 153 uint_t oflags; in devctl_ap_acquire() local 166 oflags = ((flags & DC_EXCL) != 0) ? O_EXCL : 0; in devctl_ap_acquire() 167 oflags |= ((flags & DC_RDONLY) != 0) ? O_RDONLY : O_RDWR; in devctl_ap_acquire() 169 return (dc_mkhndl(DEVCTL_AP, devfs_path, oflags, NULL)); in devctl_ap_acquire() [all …]
|
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/ |
H A D | waddnstr.c | 53 short oflags; local 65 oflags = w->_flags & (W_FLUSH | W_SYNC_UP); 74 w->_flags |= oflags;
|
H A D | waddnws.c | 53 short oflags; local 65 oflags = w->_flags & (W_FLUSH | W_SYNC_UP); 74 w->_flags |= oflags;
|
H A D | winsnstr.c | 52 short oflags; local 67 oflags = w->_flags & (W_FLUSH | W_SYNC_UP); 76 w->_flags |= oflags;
|
H A D | wbrdr_st.c | 55 short oflags; local 69 oflags = w->_flags & (W_FLUSH | W_SYNC_UP); 84 w->_flags |= oflags;
|
/illumos-gate/usr/src/lib/librename/common/ |
H A D | librename.c | 51 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 D | dynamic_machelf.c | 58 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 D | fcntl.h | 149 #define FFLAGS(oflags) ((oflags) & O_EXEC ? (oflags) : (oflags) + 1) argument
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_fmt.c | 130 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() 256 uint_t oflags = mdb_iob_getflags(mdb.m_out) & MDB_IOB_INDENT; in fmt_escstr() local 261 mdb_iob_clrflags(mdb.m_out, oflags); in fmt_escstr() 281 mdb_iob_setflags(mdb.m_out, oflags); in fmt_escstr() 431 uint_t oflags = mdb_iob_getflags(mdb.m_out) & MDB_IOB_INDENT; in fmt_dotinstr() local [all …]
|
/illumos-gate/usr/src/lib/libc/port/stdio/ |
H A D | fmemopen.c | 187 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()
|