Searched refs:oflag (Results 1 - 25 of 146) sorted by relevance

123456

/illumos-gate/usr/src/tools/cscope-fast/
H A Dvpopen.c44 vpopen(char *path, int oflag) argument
50 if ((returncode = open(path, oflag, 0666)) == -1 && *path != '/' &&
51 oflag == READ) {
55 if ((returncode = open(buf, oflag, 0666)) != -1) {
H A Dlibrary.h56 int vpopen(char *path, int oflag);
/illumos-gate/usr/src/lib/libc/port/stdio/
H A D_endopen.c58 int oflag, fd, fflag, eflag, plusflag, xflag; local
68 oflag = O_RDONLY;
72 oflag = O_WRONLY | O_TRUNC | O_CREAT;
76 oflag = O_WRONLY | O_APPEND | O_CREAT;
102 oflag = oflag | O_CLOEXEC;
105 oflag = (oflag & ~(O_RDONLY | O_WRONLY)) | O_RDWR;
109 oflag |= O_EXCL;
114 fd = open64(name, oflag, 066
[all...]
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;
/illumos-gate/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,
/illumos-gate/usr/src/lib/libc/port/sys/
H A Dopen.c51 __openat(int dfd, const char *path, int oflag, mode_t mode) argument
53 int fd = syscall(SYS_openat, dfd, path, oflag, mode);
58 __open(const char *path, int oflag, mode_t mode) argument
61 int fd = syscall(SYS_open, path, oflag, mode);
64 return (__openat(AT_FDCWD, path, oflag, mode));
71 __openat64(int dfd, const char *path, int oflag, mode_t mode) argument
73 int fd = syscall(SYS_openat64, dfd, path, oflag, mode);
78 __open64(const char *path, int oflag, mode_t mode) argument
81 int fd = syscall(SYS_open64, path, oflag, mode);
84 return (__openat64(AT_FDCWD, path, oflag, mod
[all...]
/illumos-gate/usr/src/lib/libbc/libc/stdio/4.2/
H A Dfopen.c57 int plus, oflag, fd; local
64 oflag = (plus ? O_RDWR : O_WRONLY) | O_TRUNC | O_CREAT;
67 oflag = (plus ? O_RDWR : O_WRONLY) | O_CREAT;
70 oflag = plus ? O_RDWR : O_RDONLY;
75 if ((fd = open(file, oflag, 0666)) < 0)
/illumos-gate/usr/src/lib/libbc/libc/stdio/sys5/
H A Dfopen.c51 int plus, oflag, fd; local
58 oflag = (plus ? O_RDWR : O_WRONLY) | O_TRUNC | O_CREAT;
61 oflag = (plus ? O_RDWR : O_WRONLY) | O_APPEND | O_CREAT;
64 oflag = plus ? O_RDWR : O_RDONLY;
69 if ((fd = open(file, oflag, 0666)) < 0)
/illumos-gate/usr/src/test/zfs-tests/cmd/file_write/
H A Dfile_write.c44 int oflag = 0; local
147 oflag = (O_RDWR|O_CREAT);
149 oflag = (O_RDWR|O_APPEND);
157 oflag = oflag | O_RSYNC;
161 oflag = oflag | O_SYNC;
168 if ((bigfd = open(filename, oflag, 0666)) == -1) {
/illumos-gate/usr/src/cmd/oamuser/group/
H A Dgroupmod.c65 int oflag = 0; /* flags */ local
72 oflag = 0; /* flags */
80 oflag++;
91 if ((oflag && !gidstr) || optind != argc - 1) {
116 if (!oflag) {
H A Dgroupadd.c66 int oflag = 0; /* flags */ local
78 oflag++;
85 if ((oflag && !gidstr) || optind != argc - 1) {
123 if (!oflag) {
/illumos-gate/usr/src/ucblib/libucb/port/stdio/
H A Dfopen.c57 int plus, oflag, fd; local
64 oflag = (plus ? O_RDWR : O_WRONLY) | O_TRUNC | O_CREAT;
67 oflag = (plus ? O_RDWR : O_WRONLY) | O_CREAT;
70 oflag = plus ? O_RDWR : O_RDONLY;
77 fd = open64(file, oflag, 0666); /* mapped to open() for V9 */
79 fd = open(file, oflag, 0666);
/illumos-gate/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...]
/illumos-gate/usr/src/lib/libc/port/rt/
H A Dshm.c38 shm_open(const char *path, int oflag, mode_t mode) argument
51 fd = __pos4obj_open(path, SHM_DATA_TYPE, oflag, mode, &crflag);
H A Dpos4obj.c58 __open_nc(const char *path, int oflag, mode_t mode) argument
76 val = open64(path, oflag, mode);
293 __pos4obj_open(const char *name, char *type, int oflag, argument
306 if (!(oflag & O_CREAT)) {
307 if ((fd = __open_nc(dfile, oflag, mode)) == -1)
325 if ((fd = __open_nc(dfile, (oflag | O_EXCL), mode)) == -1) {
326 if (errno == EEXIST && !(oflag & O_EXCL)) {
327 fd = __open_nc(dfile, oflag & ~O_CREAT, mode);
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Dfile.c133 smb_fh_open(struct smb_ctx *ctx, const char *path, int oflag) argument
153 mode = (oflag & 3) + 1;
181 if (oflag & FCREAT) {
183 if (oflag & FEXCL) {
186 } else if (oflag & FTRUNC)
192 if (oflag & FTRUNC)
/illumos-gate/usr/src/cmd/make/lib/vroot/
H A Dopen.cc31 extern int open(const char *path, int oflag, ...);
/illumos-gate/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) {
/illumos-gate/usr/src/test/zfs-tests/tests/functional/nopwrite/
H A Dnopwrite_sync.ksh45 gnu_dd if=/dev/urandom of=$TESTDIR/file bs=1024k count=$MEGS oflag=sync \
51 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed."
/illumos-gate/usr/src/cmd/lp/lib/lp/
H A Dfiles.c127 oflag, local
139 oflag = plus? O_RDWR : O_WRONLY;
144 oflag = (plus? O_RDWR : O_WRONLY) | O_APPEND;
148 oflag = plus? O_RDWR : O_RDONLY;
155 if ((fd = Open(path, oflag, mode)) == -1)
160 if ((fd = Open(path, oflag|O_CREAT, mode)) != -1)
177 l.l_type = (oflag & (O_WRONLY|O_RDWR)? F_WRLCK : F_RDLCK);
/illumos-gate/usr/src/lib/libcontract/common/
H A Dlibcontract_priv.c84 contract_open(ctid_t ctid, const char *type, const char *file, int oflag) argument
89 assert((oflag & O_CREAT) == 0);
100 fd = open64(path, oflag);
/illumos-gate/usr/src/cmd/pfexec/
H A Dpfexec.c102 int oflag; local
104 oflag = getpflags(PRIV_PFEXEC);
169 (void) setpflags(PRIV_PFEXEC, oflag);
/illumos-gate/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 if ((*hp = open(cp, oflag, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)) < 0)
/illumos-gate/usr/src/uts/sun4u/grover/sys/
H A Dgrfans.h64 uint16_t oflag[2]; member in struct:grfans_unit
/illumos-gate/usr/src/uts/sun4u/javelin/sys/
H A Denvctrltwo.h64 boolean_t oflag; /* already open */ member in struct:envctrlunit

Completed in 107 milliseconds

123456