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

12

/osnet-11/usr/src/lib/libast/common/sfio/
H A D_sfopen.c46 int fd, oldfd, oflags, sflags; local
50 if((sflags = _sftype(mode,&oflags,NIL(int*))) == 0)
77 if(f->file >= 0 && (oflags &= (O_TEXT|O_BINARY|O_APPEND)) != 0 )
80 ctl = (ctl & ~(O_TEXT|O_BINARY|O_APPEND)) | oflags;
97 while((fd = sysopenf((char*)file,oflags,SF_CREATMODE)) < 0 && errno == EINTR)
100 while((fd = sysopenf(file,oflags&O_ACCMODE)) < 0 && errno == EINTR)
103 { if((oflags&(O_CREAT|O_EXCL)) == (O_CREAT|O_EXCL) )
107 if(oflags&O_TRUNC ) /* truncate file */
115 else if(oflags&O_CREAT)
118 if((oflags
148 reg int sflags, oflags, uflag; 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));
H A Dsfsetbuf.c107 int sf_malloc, oflags, init, okmmap, local; local
178 oflags = f->flags;
361 sf_malloc = (oflags&SF_MALLOC);
398 if(obuf && obuf != f->data && osize > 0 && (oflags&SF_MALLOC))
/osnet-11/usr/src/cmd/sendmail/db/os/
H A Dos_oflags.c30 __db_oflags(oflags)
31 int oflags;
42 if (oflags & O_CREAT)
44 if (!(oflags & (O_RDWR | O_WRONLY)) || oflags & O_RDONLY)
46 if (oflags & O_TRUNC)
/osnet-11/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dwaddnstr.c57 short oflags; local
66 oflags = w->_flags & (W_FLUSH | W_SYNC_UP);
75 w->_flags |= oflags;
H A Dwaddnws.c56 short oflags; local
65 oflags = w->_flags & (W_FLUSH | W_SYNC_UP);
75 w->_flags |= oflags;
H A Dwinsnstr.c56 short oflags; local
68 oflags = w->_flags & (W_FLUSH | W_SYNC_UP);
77 w->_flags |= oflags;
H A Dwadd_wch.c79 int oflags; local
81 oflags = w->_flags & (W_FLUSH | W_SYNC_UP);
129 w->_flags = oflags | (w->_flags & ~(W_FLUSH | W_SYNC_UP));
H A Dwbrdr_st.c60 short oflags; local
67 oflags = w->_flags & (W_FLUSH | W_SYNC_UP);
82 w->_flags |= oflags;
/osnet-11/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); local
[all...]
/osnet-11/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;
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/ccache/
H A Dcc_retr.c222 krb5_flags oflags = 0; local
229 kret = krb5_cc_get_flags(context, id, &oflags);
232 if (oflags & KRB5_TC_OPENCLOSE)
233 (void) krb5_cc_set_flags(context, id, oflags & ~KRB5_TC_OPENCLOSE);
236 if (oflags & KRB5_TC_OPENCLOSE)
237 krb5_cc_set_flags(context, id, oflags);
262 if (oflags & KRB5_TC_OPENCLOSE)
263 krb5_cc_set_flags(context, id, oflags);
274 if (oflags & KRB5_TC_OPENCLOSE)
275 krb5_cc_set_flags(context, id, oflags);
[all...]
/osnet-11/usr/src/cmd/perl/contrib/Sun/Solaris/Exacct/File/
H A DFile.xs39 new(class, name, oflags, ...)
42 int oflags;
58 "(class, name, oflags, ...)");
75 if (oflags & O_CREAT && creator == NULL) {
90 if (oflags == O_RDONLY) {
98 if (ea_open(RETVAL, name, creator, aflags, oflags, mode) == -1) {
/osnet-11/usr/src/lib/libnetcfg/common/
H A Dlibnetcfg_zio.c208 int oflags; local
214 * If the caller just wants to open() the file, the oflags and mode
216 * modestr that is used to set oflags and mode. In the latter case,
221 oflags = zfarg->zfarg_openarg.zopen_oflag;
224 oflags = (modestr[0] == 'r') ?
240 if (oflags & O_CREAT) {
251 fd = open(filename, oflags, mode);
/osnet-11/usr/src/lib/libdevice/
H A Ddevctl.c104 uint_t oflags; local
115 oflags = ((flags & DC_EXCL) != 0) ? O_EXCL|O_RDWR : O_RDWR;
116 return (dc_mkhndl(DEVCTL_BUS, devfs_path, oflags, NULL));
127 uint_t oflags; local
138 oflags = ((flags & DC_EXCL) != 0) ? O_EXCL|O_RDWR : O_RDWR;
139 return (dc_mkhndl(DEVCTL_DEVICE, devfs_path, oflags, NULL));
151 uint_t oflags; local
164 oflags = ((flags & DC_EXCL) != 0) ? O_EXCL : 0;
165 oflags |= ((flags & DC_RDONLY) != 0) ? O_RDONLY : O_RDWR;
167 return (dc_mkhndl(DEVCTL_AP, devfs_path, oflags, NUL
179 uint_t oflags; local
203 uint_t oflags; local
224 dc_mkhndl(dc_type_t type, char *path, uint_t oflags, devctl_hdl_t pc) argument
[all...]
/osnet-11/usr/src/lib/libexacct/common/
H A Dexacct_ops.c1048 ea_fdopen(ea_file_t *ef, int fd, const char *creator, int aflags, int oflags) argument
1053 f->ef_oflags = oflags;
1066 if (oflags & O_CREAT) {
1088 } else if (oflags & O_RDWR || oflags & O_WRONLY) {
1109 } else if (oflags != O_RDONLY) {
1158 int aflags, int oflags, mode_t mode)
1166 if (oflags & O_CREAT)
1167 oflags |= O_TRUNC;
1169 if ((fd = open(name, oflags, mod
1157 ea_open(ea_file_t *ef, const char *name, const char *creator, int aflags, int oflags, mode_t mode) argument
[all...]
/osnet-11/usr/src/lib/libresolv2/common/resolv/
H A Dres_query.c119 u_int oflags; local
123 oflags = statp->_flags;
159 ((oflags ^ statp->_flags) & RES_F_EDNS0ERR) != 0) {
/osnet-11/usr/src/cmd/sendmail/db/dbm/
H A Ddbm.c183 __db_ndbm_open(file, oflags, mode)
185 int oflags, mode;
211 DB_HASH, __db_oflags(oflags), mode, NULL, &dbinfo, &dbp)) != 0)
/osnet-11/usr/src/lib/libpool/common/
H A Dpool.c1484 pool_conf_open(pool_conf_t *conf, const char *location, int oflags) argument
1500 if (oflags & ~(PO_RDONLY | PO_RDWR | PO_CREAT | PO_DISCO | PO_UPDATE |
1510 if (oflags & PO_CREAT)
1511 oflags |= PO_RDWR;
1514 if (oflags & PO_TEMP)
1534 if (oflags & PO_TEMP) {
1543 if (pool_knl_connection_alloc(conf, oflags) != PO_SUCCESS) {
1548 if (pool_xml_connection_alloc(conf, oflags) != PO_SUCCESS) {
1587 int oflags; local
1597 * in oflags an
[all...]
/osnet-11/usr/src/lib/libshell/common/sh/
H A Dargs.c597 void sh_printopts(Shopt_t oflags,register int mode, Shopt_t *mask) argument
632 on = !!is_option(&oflags,value);
653 on_option(&oflags,SH_VIRAW);
673 on = !!is_option(&oflags,value);
697 else if(!(value&SH_COMMANDLINE) && is_option(&oflags,value&0xff))
/osnet-11/usr/src/lib/libipadm/common/
H A Dlibipadm.c504 uint64_t oflags; local
509 status = i_ipadm_get_flags(iph, lifname, af, &oflags);
520 if (!(oflags & IFF_UP) && (set & IFF_UP))
538 if ((clear & IFF_UP) && (oflags & IFF_DUPLICATE) &&
550 if (!(oflags & IFF_NOFAILOVER)) {
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/
H A Dperlio.c2277 int oflags; /* open/fcntl flags */ member in struct:__anon95
2283 int oflags = -1; local
2288 oflags = O_RDONLY;
2290 oflags = O_RDWR;
2296 oflags = O_CREAT | O_TRUNC;
2298 oflags |= O_RDWR;
2302 oflags |= O_WRONLY;
2306 oflags = O_CREAT | O_APPEND;
2308 oflags |= O_RDWR;
2312 oflags |
[all...]

Completed in 75 milliseconds

12