Home
last modified time | relevance | path

Searched refs:oflag (Results 1 – 25 of 148) sorted by relevance

123456

/titanic_51/usr/src/lib/libc/port/stdio/
H A D_endopen.c58 int oflag, fd, fflag, eflag, plusflag, xflag; in _endopen() local
68 oflag = O_RDONLY; in _endopen()
72 oflag = O_WRONLY | O_TRUNC | O_CREAT; in _endopen()
76 oflag = O_WRONLY | O_APPEND | O_CREAT; in _endopen()
102 oflag = oflag | O_CLOEXEC; in _endopen()
105 oflag = (oflag & ~(O_RDONLY | O_WRONLY)) | O_RDWR; in _endopen()
109 oflag |= O_EXCL; in _endopen()
114 fd = open64(name, oflag, 066 in _endopen()
[all...]
H A Dfopen.c83 int oflag, nflag, fd, accmode; in _freopen_null() local
116 if ((oflag = fcntl(fd, F_GETFL)) == -1) in _freopen_null()
134 accmode = oflag & O_ACCMODE; in _freopen_null()
146 nflag = oflag & ~O_APPEND; in _freopen_null()
149 nflag = oflag & ~O_APPEND; in _freopen_null()
152 nflag = oflag | O_APPEND; in _freopen_null()
160 nflag = oflag & ~O_APPEND; in _freopen_null()
163 nflag = oflag & ~O_APPEND; in _freopen_null()
166 nflag = oflag | O_APPEND; in _freopen_null()
/titanic_51/usr/src/lib/libc/port/sys/
H A Dopen.c51 __openat(int dfd, const char *path, int oflag, mode_t mode) in __openat() argument
53 int fd = syscall(SYS_openat, dfd, path, oflag, mode); in __openat()
58 __open(const char *path, int oflag, mode_t mode) in __open() argument
61 int fd = syscall(SYS_open, path, oflag, mode); in __open()
64 return (__openat(AT_FDCWD, path, oflag, mode)); in __open()
71 __openat64(int dfd, const char *path, int oflag, mode_t mode) in __openat64() argument
73 int fd = syscall(SYS_openat64, dfd, path, oflag, mode); in __openat64()
78 __open64(const char *path, int oflag, mode_t mode) in __open64() argument
81 int fd = syscall(SYS_open64, path, oflag, mode); in __open64()
84 return (__openat64(AT_FDCWD, path, oflag, mod in __open64()
[all...]
/titanic_51/usr/src/lib/libproc/common/
H A Dproc_arg.c118 open_error(int oflag) in open_error() argument
120 if ((oflag & PR_ARG_ANY) == PR_ARG_PIDS) in open_error()
123 if ((oflag & PR_ARG_ANY) == PR_ARG_CORES) in open_error()
130 proc_grab_common(const char *arg, const char *path, int oflag, int gflag, in proc_grab_common() argument
149 if ((oflag & PR_ARG_PIDS) && in proc_grab_common()
174 if ((oflag & PR_ARG_CORES) && in proc_grab_common()
199 if ((oflag & PR_ARG_PIDS) && (fd = open_psinfo(arg, perr)) != -1) { in proc_grab_common()
216 if ((oflag & PR_ARG_CORES) && (fd = open_core(arg, perr)) != -1) { in proc_grab_common()
237 *perr = open_error(oflag); in proc_grab_common()
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) proc_arg_grab() argument
256 proc_arg_psinfo(const char * arg,int oflag,psinfo_t * psp,int * perr) proc_arg_psinfo() argument
270 proc_arg_xpsinfo(const char * arg,int oflag,psinfo_t * psp,int * perr,const char ** lwps) proc_arg_xpsinfo() argument
[all...]
/titanic_51/usr/src/lib/libc/port/gen/
H A Dattropen.c51 attropen64(const char *file, const char *attr, int oflag, ...) in attropen64() argument
58 va_start(ap, oflag); in attropen64()
65 if ((attrfd = openat64(fd, attr, oflag | O_XATTR, in attropen64()
82 attropen(const char *file, const char *attr, int oflag, ...) in attropen() argument
89 va_start(ap, oflag); in attropen()
96 if ((attrfd = openat(fd, attr, oflag | O_XATTR, in attropen()
H A Dattrat.c150 int oflag; in xattr_openat() local
154 oflag = O_RDONLY; in xattr_openat()
157 oflag = mode & O_RDWR; in xattr_openat()
164 oflag |= O_XATTR; in xattr_openat()
167 xattrfd = openat(basefd, xattrname, oflag); in xattr_openat()
/titanic_51/usr/src/test/zfs-tests/cmd/file_write/
H A Dfile_write.c44 int oflag = 0; in main() local
147 oflag = (O_RDWR|O_CREAT); in main()
149 oflag = (O_RDWR|O_APPEND); in main()
157 oflag = oflag | O_RSYNC; in main()
161 oflag = oflag | O_SYNC; in main()
168 if ((bigfd = open(filename, oflag, 0666)) == -1) { in main()
/titanic_51/usr/src/lib/libbc/libc/stdio/4.2/
H A Dfopen.c57 int plus, oflag, fd; in _endopen() local
64 oflag = (plus ? O_RDWR : O_WRONLY) | O_TRUNC | O_CREAT; in _endopen()
67 oflag = (plus ? O_RDWR : O_WRONLY) | O_CREAT; in _endopen()
70 oflag = plus ? O_RDWR : O_RDONLY; in _endopen()
75 if ((fd = open(file, oflag, 0666)) < 0) in _endopen()
/titanic_51/usr/src/lib/libbc/libc/stdio/sys5/
H A Dfopen.c51 int plus, oflag, fd; in _endopen() local
58 oflag = (plus ? O_RDWR : O_WRONLY) | O_TRUNC | O_CREAT; in _endopen()
61 oflag = (plus ? O_RDWR : O_WRONLY) | O_APPEND | O_CREAT; in _endopen()
64 oflag = plus ? O_RDWR : O_RDONLY; in _endopen()
69 if ((fd = open(file, oflag, 0666)) < 0) in _endopen()
/titanic_51/usr/src/ucblib/libucb/port/stdio/
H A Dfopen.c57 int plus, oflag, fd; in _endopen() local
64 oflag = (plus ? O_RDWR : O_WRONLY) | O_TRUNC | O_CREAT; in _endopen()
67 oflag = (plus ? O_RDWR : O_WRONLY) | O_CREAT; in _endopen()
70 oflag = plus ? O_RDWR : O_RDONLY; in _endopen()
77 fd = open64(file, oflag, 0666); /* mapped to open() for V9 */ in _endopen()
79 fd = open(file, oflag, 0666); in _endopen()
/titanic_51/usr/src/tools/cscope-fast/
H A Dvpopen.c44 vpopen(char *path, int oflag) in vpopen() argument
50 if ((returncode = open(path, oflag, 0666)) == -1 && *path != '/' && in vpopen()
51 oflag == READ) { in vpopen()
55 if ((returncode = open(buf, oflag, 0666)) != -1) { in vpopen()
/titanic_51/usr/src/cmd/oamuser/group/
H A Dgroupmod.c65 int oflag = 0; /* flags */ in main() local
72 oflag = 0; /* flags */ in main()
80 oflag++; in main()
91 if ((oflag && !gidstr) || optind != argc - 1) { in main()
116 if (!oflag) { in main()
H A Dgroupadd.c66 int oflag = 0; /* flags */ in main() local
78 oflag++; in main()
85 if ((oflag && !gidstr) || optind != argc - 1) { in main()
123 if (!oflag) { in main()
/titanic_51/usr/src/lib/libc/port/rt/
H A Dpos4obj.c58 __open_nc(const char *path, int oflag, mode_t mode) in __open_nc() argument
76 val = open64(path, oflag, mode); in __open_nc()
293 __pos4obj_open(const char *name, char *type, int oflag, in __pos4obj_open() argument
306 if (!(oflag & O_CREAT)) { in __pos4obj_open()
307 if ((fd = __open_nc(dfile, oflag, mode)) == -1) in __pos4obj_open()
325 if ((fd = __open_nc(dfile, (oflag | O_EXCL), mode)) == -1) { in __pos4obj_open()
326 if (errno == EEXIST && !(oflag & O_EXCL)) { in __pos4obj_open()
327 fd = __open_nc(dfile, oflag & ~O_CREAT, mode); in __pos4obj_open()
H A Dsem.c57 sem_open(const char *path, int oflag, /* mode_t mode, int value */ ...) in sem_open() argument
76 /* modify oflag to have RDWR and filter CREATE mode only */ in sem_open()
77 oflag = (oflag & (O_CREAT|O_EXCL)) | (O_RDWR); in sem_open()
78 if (oflag & O_CREAT) { in sem_open()
82 va_start(ap, oflag); in sem_open()
97 oflag, crmode, &cr_flag)) < 0) in sem_open()
/titanic_51/usr/src/lib/libsmbfs/smb/
H A Dfile.c133 smb_fh_open(struct smb_ctx *ctx, const char *path, int oflag) in smb_fh_open() argument
153 mode = (oflag & 3) + 1; in smb_fh_open()
181 if (oflag & FCREAT) { in smb_fh_open()
183 if (oflag & FEXCL) { in smb_fh_open()
186 } else if (oflag & FTRUNC) in smb_fh_open()
192 if (oflag & FTRUNC) in smb_fh_open()
/titanic_51/usr/src/cmd/lp/lib/lp/
H A Dfiles.c127 oflag, in open_locked() local
139 oflag = plus? O_RDWR : O_WRONLY; in open_locked()
144 oflag = (plus? O_RDWR : O_WRONLY) | O_APPEND; in open_locked()
148 oflag = plus? O_RDWR : O_RDONLY; in open_locked()
155 if ((fd = Open(path, oflag, mode)) == -1) in open_locked()
160 if ((fd = Open(path, oflag|O_CREAT, mode)) != -1) in open_locked()
177 l.l_type = (oflag & (O_WRONLY|O_RDWR)? F_WRLCK : F_RDLCK); in open_locked()
/titanic_51/usr/src/cmd/mkmsgs/
H A Dmkmsgs.c125 int oflag; /* -o option was slecified */ local
137 oflag = 0;
156 oflag++;
175 if (iflag && oflag && argc != 6)
177 if (iflag && ! oflag && argc != 5)
179 if (! iflag && oflag && argc != 4)
181 if (! iflag && ! oflag && argc != 3)
204 if (! oflag) {
/titanic_51/usr/src/lib/libshell/common/bltins/
H A Dshiocmd_solaris.c493 register int n,oflag=0; in b_open() local
513 oflag |= O_BINARY; in b_open()
518 oflag |= O_TEXT; in b_open()
523 oflag |= O_NOFOLLOW; in b_open()
528 oflag |= O_TRUNC; in b_open()
532 oflag |= O_EXCL; in b_open()
535 oflag |= O_CREAT; in b_open()
538 oflag |= O_APPEND; in b_open()
542 oflag |= O_SYNC; in b_open()
565 oflag |= O_RDWR; in b_open()
[all …]
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/bltins/
H A Dshiocmd_solaris.c493 register int n,oflag=0; in b_open() local
513 oflag |= O_BINARY; in b_open()
518 oflag |= O_TEXT; in b_open()
523 oflag |= O_NOFOLLOW; in b_open()
528 oflag |= O_TRUNC; in b_open()
532 oflag |= O_EXCL; in b_open()
535 oflag |= O_CREAT; in b_open()
538 oflag |= O_APPEND; in b_open()
542 oflag |= O_SYNC; in b_open()
565 oflag | in b_open()
[all...]
/titanic_51/usr/src/lib/libcmd/common/
H A Dtee.c113 register int oflag = O_WRONLY|O_TRUNC|O_CREAT|O_BINARY; in b_tee() local
134 oflag &= ~O_TRUNC; in b_tee()
135 oflag |= O_APPEND; in b_tee()
180 if ((*hp = open(cp, oflag, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)) < 0) in b_tee()
/titanic_51/usr/src/cmd/sgs/pvs/common/
H A Dpvs.c149 static int Cflag, dflag, lflag, nflag, oflag, rflag, sflag, vflag; variable
444 if (oflag) { in gvers_syms()
519 if (oflag) { in sym_local()
561 int show = vflag || (vsdata == NULL) || !oflag; in gvers_need()
611 if (oflag && show) in gvers_need()
650 (void) printf(oflag ? in gvers_need()
791 if (!oflag) in recurse_syms()
915 if (oflag) in gvers_def()
933 if (oflag) in gvers_def()
953 if (vsdata && !oflag) in gvers_def()
[all...]
/titanic_51/usr/src/contrib/ast/src/lib/libcmd/
H A Dtee.c113 register int oflag = O_WRONLY|O_TRUNC|O_CREAT|O_BINARY|O_cloexec; in b_tee() local
134 oflag &= ~O_TRUNC; in b_tee()
135 oflag |= O_APPEND; in b_tee()
180 while ((*hp = open(cp, oflag, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)) < 0 && errno == EINTR) in b_tee()
/titanic_51/usr/src/uts/common/io/audio/impl/
H A Daudio_oss.c475 oss_open(audio_client_t *c, int oflag) in oss_open() argument
486 if ((rv = auclnt_open(c, oflag | FNDELAY)) != 0) { in oss_open()
503 if (oflag & FWRITE) { in oss_open()
513 if (oflag & FREAD) { in oss_open()
606 int oflag; in sndctl_dsp_speed() local
610 oflag = auclnt_get_oflag(c); in sndctl_dsp_speed()
611 if (oflag & FREAD) { in sndctl_dsp_speed()
616 if (oflag & FWRITE) { in sndctl_dsp_speed()
629 int oflag; in sndctl_dsp_setfmt() local
631 oflag in sndctl_dsp_setfmt()
696 int oflag; sndctl_dsp_channels() local
785 int oflag; sndctl_dsp_gettrigger() local
809 int oflag; sndctl_dsp_settrigger() local
1459 int oflag = auclnt_get_oflag(c); sndctl_dsp_getblksize() local
1921 ossmix_open(audio_client_t * c,int oflag) ossmix_open() argument
[all...]
/titanic_51/usr/src/lib/libcryptoutil/common/
H A Drandom.c60 open_nointr(const char *path, int oflag, ...) in open_nointr() argument
66 va_start(alist, oflag); in open_nointr()
71 if ((fd = open(path, oflag, pmode)) >= 0) { in open_nointr()
136 pkcs11_open_common(int *fd, pthread_mutex_t *mtx, const char *dev, int oflag) in pkcs11_open_common() argument
140 *fd = open_nointr(dev, oflag); in pkcs11_open_common()

123456