/illumos-gate/usr/src/tools/cscope-fast/ |
H A D | vpopen.c | 44 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 D | library.h | 56 int vpopen(char *path, int oflag);
|
/illumos-gate/usr/src/lib/libc/port/stdio/ |
H A D | _endopen.c | 58 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 D | fopen.c | 83 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 D | attropen.c | 51 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 D | open.c | 51 __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 D | fopen.c | 57 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 D | fopen.c | 51 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 D | file_write.c | 44 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 D | groupmod.c | 65 int oflag = 0; /* flags */ local 72 oflag = 0; /* flags */ 80 oflag++; 91 if ((oflag && !gidstr) || optind != argc - 1) { 116 if (!oflag) {
|
H A D | groupadd.c | 66 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 D | fopen.c | 57 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 D | proc_arg.c | 118 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 D | shm.c | 38 shm_open(const char *path, int oflag, mode_t mode) argument 51 fd = __pos4obj_open(path, SHM_DATA_TYPE, oflag, mode, &crflag);
|
H A D | pos4obj.c | 58 __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 D | file.c | 133 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 D | open.cc | 31 extern int open(const char *path, int oflag, ...);
|
/illumos-gate/usr/src/cmd/mkmsgs/ |
H A D | mkmsgs.c | 125 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 D | nopwrite_sync.ksh | 45 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 D | files.c | 127 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 D | libcontract_priv.c | 84 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 D | pfexec.c | 102 int oflag; local 104 oflag = getpflags(PRIV_PFEXEC); 169 (void) setpflags(PRIV_PFEXEC, oflag);
|
/illumos-gate/usr/src/lib/libcmd/common/ |
H A D | tee.c | 113 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 D | grfans.h | 64 uint16_t oflag[2]; member in struct:grfans_unit
|
/illumos-gate/usr/src/uts/sun4u/javelin/sys/ |
H A D | envctrltwo.h | 64 boolean_t oflag; /* already open */ member in struct:envctrlunit
|