Searched defs:oflag (Results 1 - 25 of 39) sorted by relevance

12

/osnet-11/usr/src/lib/libc/port/rt/
H A Dshm.c35 shm_open(const char *path, int oflag, mode_t mode) argument
48 fd = __pos4obj_open(path, SHM_DATA_TYPE, oflag, mode, &crflag);
H A Dsem.c54 sem_open(const char *path, int oflag, /* mode_t mode, int value */ ...) argument
73 /* modify oflag to have RDWR and filter CREATE mode only */
74 oflag = (oflag & (O_CREAT|O_EXCL)) | (O_RDWR);
75 if (oflag & O_CREAT) {
79 va_start(ap, oflag);
94 oflag, crmode, &cr_flag)) < 0)
H A Dpos4obj.c55 __open_nc(const char *path, int oflag, mode_t mode) argument
67 val = open64(path, oflag | O_NOFOLLOW | O_CLOEXEC, mode);
284 __pos4obj_open(const char *name, char *type, int oflag, argument
297 if (!(oflag & O_CREAT)) {
298 if ((fd = __open_nc(dfile, oflag, mode)) == -1)
316 if ((fd = __open_nc(dfile, (oflag | O_EXCL), mode)) == -1) {
317 if (errno == EEXIST && !(oflag & O_EXCL)) {
318 fd = __open_nc(dfile, oflag & ~O_CREAT, mode);
/osnet-11/usr/src/lib/libc/port/stdio/
H A D_endopen.c58 int oflag, fd, fflag; local
68 oflag = O_RDONLY;
72 oflag = O_WRONLY | O_TRUNC | O_CREAT;
76 oflag = O_WRONLY | O_APPEND | O_CREAT;
84 oflag = (oflag & ~(O_RDONLY | O_WRONLY)) | O_RDWR;
90 fd = open64(name, oflag, 0666);
92 fd = open(name, oflag, 0666);
112 if (oflag == (O_WRONLY | O_APPEND | O_CREAT)) { /* type == "a" */
H A Dfopen.c83 int oflag, nflag, fd, accmode; local
116 if ((oflag = fcntl(fd, F_GETFL)) == -1)
134 accmode = oflag & O_ACCMODE;
146 nflag = oflag & ~O_APPEND;
149 nflag = oflag & ~O_APPEND;
152 nflag = oflag | O_APPEND;
160 nflag = oflag & ~O_APPEND;
163 nflag = oflag & ~O_APPEND;
166 nflag = oflag | O_APPEND;
/osnet-11/usr/src/lib/libc/port/gen/
H A Dattropen.c51 attropen64(const char *file, const char *attr, int oflag, ...) argument
58 va_start(ap, oflag);
65 if ((attrfd = openat64(fd, attr, oflag | O_XATTR,
82 attropen(const char *file, const char *attr, int oflag, ...) argument
89 va_start(ap, oflag);
96 if ((attrfd = openat(fd, attr, oflag | O_XATTR,
H A Dpt.c217 posix_openpt(int oflag) argument
219 return (open("/dev/ptmx", oflag));
H A Dattrat.c150 int oflag; local
154 oflag = O_RDONLY;
157 oflag = mode & O_RDWR;
164 oflag |= O_XATTR;
167 xattrfd = openat(basefd, xattrname, oflag);
H A Dcatopen.c62 catopen(const char *name, int oflag) argument
76 p = process_nls_path((char *)name, oflag);
205 process_nls_path(char *name, int oflag) argument
225 * Chose XPG4. If oflag == NL_CAT_LOCALE, use LC_MESSAGES.
227 if (oflag == NL_CAT_LOCALE)
/osnet-11/usr/src/lib/libcmd/common/
H A Dtee.c113 register int oflag = O_WRONLY|O_TRUNC|O_CREAT|O_BINARY; local
134 oflag &= ~O_TRUNC;
135 oflag |= O_APPEND;
180 while ((*hp = open(cp, oflag, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)) < 0 && errno == EINTR)
/osnet-11/usr/src/lib/libdevinfo/
H A Ddevinfo_dli.c88 di_dli_open(char *path, int oflag, short l_type, int flags) argument
108 fd = open(dlipath, oflag, mode);
/osnet-11/usr/src/lib/libc/port/sys/
H A Dopen.c50 __openat(int dfd, const char *path, int oflag, mode_t mode) argument
52 int fd = syscall(SYS_openat, dfd, path, oflag, mode);
57 __open(const char *path, int oflag, mode_t mode) argument
59 return (__openat(AT_FDCWD, path, oflag, mode));
65 __openat64(int dfd, const char *path, int oflag, mode_t mode) argument
67 int fd = syscall(SYS_openat64, dfd, path, oflag, mode);
72 __open64(const char *path, int oflag, mode_t mode) argument
74 return (__openat64(AT_FDCWD, path, oflag, mode));
/osnet-11/usr/src/lib/libc/port/threads/
H A Dpthread.c43 } oflag; member in struct:__once
46 #define once_flag oflag.pad32_flag[1]
H A Dspawn.c64 int fa_oflag; /* oflag for open() */
567 int oflag,
585 fap->fa_oflag = oflag;
563 posix_spawn_file_actions_addopen( posix_spawn_file_actions_t *file_actions, int filedes, const char *path, int oflag, mode_t mode) argument
/osnet-11/usr/src/lib/libproc/common/
H A Dproc_arg.c118 open_error(int oflag) argument
120 if ((oflag & PR_ARG_ANY) == PR_ARG_PIDS)
123 if ((oflag & PR_ARG_ANY) == PR_ARG_CORES)
130 proc_grab_common(const char *arg, const char *path, int oflag, int gflag, argument
149 if ((oflag & PR_ARG_PIDS) &&
174 if ((oflag & PR_ARG_CORES) &&
199 if ((oflag & PR_ARG_PIDS) && (fd = open_psinfo(arg, perr)) != -1) {
216 if ((oflag & PR_ARG_CORES) && (fd = open_core(arg, perr)) != -1) {
237 *perr = open_error(oflag);
243 proc_arg_xgrab(const char *arg, const char *path, int oflag, in argument
250 proc_arg_grab(const char *arg, int oflag, int gflag, int *perr) argument
256 proc_arg_psinfo(const char *arg, int oflag, psinfo_t *psp, int *perr) argument
270 proc_arg_xpsinfo(const char *arg, int oflag, psinfo_t *psp, int *perr, const char **lwps) argument
[all...]
H A DPcore.c2188 int fd, oflag = (gflag & PGRAB_RDONLY) ? O_RDONLY : O_RDWR; local
2190 if ((fd = open64(core, oflag)) >= 0)
/osnet-11/usr/src/lib/libshell/common/sh/
H A Dbash.c196 int setflag=0, quietflag=0, oflag=0; local
221 oflag=1;
258 ||(oflag&&(n&SH_BASHOPT)))
/osnet-11/usr/src/lib/libsmbfs/common/
H A Dsmbfs_file.c137 smbfs_fh_open(const char *path, int oflag, const smbfs_fh_ctx_t *fh_ctx) argument
202 mode = (oflag & 3) + 1;
230 if (oflag & FCREAT) {
232 if (oflag & FEXCL)
234 else if (oflag & FTRUNC)
240 if (oflag & FTRUNC)
/osnet-11/usr/src/lib/libnetcfg/common/
H A Dlibnetcfg_zio.c354 netcfg_zopen(const char *filename, int oflag, mode_t mode, zoneid_t zoneid, argument
359 zfoparg.zfop_openarg.zopen_oflag = oflag;
H A Dlibnetcfg_files.c1019 int oflag = O_RDWR | O_CREAT | O_TRUNC; local
1032 fd = netcfg_zopen(tmpdbname, oflag, mode, dbzoneid, &ferr);
1036 fd = open(tmpdbname, oflag, mode);
/osnet-11/usr/src/lib/libcontract/common/
H A Dlibcontract_priv.c81 contract_open(ctid_t ctid, const char *type, const char *file, int oflag) argument
86 assert((oflag & O_CREAT) == 0);
97 fd = open64(path, oflag);
/osnet-11/usr/src/lib/libcryptoutil/common/
H A Drandom.c55 const char *dev, int oflag);
78 open_nointr(const char *path, int oflag, ...) argument
84 va_start(alist, oflag);
89 if ((fd = open(path, oflag, pmode)) >= 0) {
156 pkcs11_open_common(int *fd, pthread_mutex_t *mtx, const char *dev, int oflag) argument
160 *fd = open_nointr(dev, oflag);
/osnet-11/usr/src/lib/libprtdiag/common/
H A Dpdevinfo_funcs.c234 promopen(int oflag) argument
238 if ((prom_fd = open(promdev, oflag)) < 0) {
/osnet-11/usr/src/lib/libshell/common/bltins/
H A Dshiocmd_solaris.c493 register int n,oflag=0; local
513 oflag |= O_BINARY;
518 oflag |= O_TEXT;
523 oflag |= O_NOFOLLOW;
528 oflag |= O_TRUNC;
532 oflag |= O_EXCL;
535 oflag |= O_CREAT;
538 oflag |= O_APPEND;
542 oflag |= O_SYNC;
565 oflag |
[all...]
/osnet-11/usr/src/lib/brand/solaris10/s10_brand/common/
H A Ds10_deleted.c112 s10_openat(sysret_t *rval, int fd, const char *path, int oflag, mode_t mode) argument
115 fd, path, oflag, mode));
119 s10_open(sysret_t *rval, char *path, int oflag, mode_t mode) argument
122 AT_FDCWD, path, oflag, mode));
135 s10_openat64(sysret_t *rval, int fd, const char *path, int oflag, mode_t mode) argument
138 fd, path, oflag, mode));
142 s10_open64(sysret_t *rval, char *path, int oflag, mode_t mode) argument
145 AT_FDCWD, path, oflag, mode));

Completed in 156 milliseconds

12