Searched refs:O_RDWR (Results 1 - 25 of 49) sorted by relevance
12
/ast/src/lib/libcs/ |
H A D | csdaemon.c | 99 if ((fds & ((1<<0)|(1<<1)|(1<<2))) != ((1<<0)|(1<<1)|(1<<2)) && (fd = open("/dev/null", O_RDWR)) >= 0)
|
H A D | cslocal.c | 152 for (n = 0; (fd = open(tmp, O_RDWR)) < 0; n++)
|
H A D | csrecv.c | 351 if (!stat(s, &st) && (fds[i] = open(s, (st.st_mode & (S_IRUSR|S_IWUSR)) == (S_IRUSR|S_IWUSR) ? O_RDWR : (st.st_mode & S_IWUSR) ? O_WRONLY : O_RDONLY)) >= 0)
|
/ast/src/lib/libardir/ |
H A D | ardir.c | 42 if (((ar->fd = open(file, (flags & ARDIR_CREATE) ? (O_CREAT|O_TRUNC|O_RDWR|O_BINARY|O_cloexec) : (flags & ARDIR_UPDATE) ? (O_RDWR|O_BINARY|O_cloexec) : (O_RDONLY|O_BINARY|O_cloexec))) < 0 || fstat(ar->fd, &ar->st) || !S_ISREG(ar->st.st_mode)) && (!meth || !(flags & ARDIR_FORCE)))
|
/ast/src/lib/libast/comp/ |
H A D | open.c | 90 if ((op & O_ACCMODE) == O_RDWR)
|
/ast/src/lib/libast/features/ |
H A D | fcntl.c | 260 #ifndef O_RDWR 281 #ifndef O_RDWR 282 printf("#define O_RDWR 2\n"); 308 printf("#define O_ACCMODE (O_RDONLY|O_WRONLY|O_RDWR)\n");
|
/ast/src/cmd/3d/ |
H A D | touch.c | 162 if (atime == now && mtime == now && (fd = open(file, O_RDWR|O_cloexec)) >= 0) 164 if ((fd = open(file, O_RDWR|O_cloexec)) >= 0)
|
/ast/src/lib/libast/aso/ |
H A D | aso-fcntl.c | 120 if (fd >= 0 || (fd = open(path, O_RDWR|O_cloexec)) < 0 && (fd = open(path, O_CREAT|O_RDWR|O_cloexec, perm)) >= 0)
|
/ast/src/cmd/tests/aso/ |
H A D | tproc.c | 70 if((zerof = open("/dev/zero", O_RDWR)) < 0)
|
H A D | tlock.c | 148 if((zerof = open("/dev/zero", O_RDWR)) < 0)
|
/ast/src/lib/libcmd/ |
H A D | fds.c | 234 switch (flags & (O_RDONLY|O_WRONLY|O_RDWR)) 242 case O_RDWR:
|
/ast/src/cmd/ie/ |
H A D | io.h | 173 #ifndef O_RDWR 176 # define O_RDWR 02 macro 177 #endif /* O_RDWR */
|
/ast/src/cmd/kshlib/dbm/ |
H A D | dbm.c | 112 flags = O_RDWR|O_CREAT; 115 flags = O_RDWR|O_CREAT|O_TRUNC;
|
/ast/src/cmd/kshlib/dbm_t/ |
H A D | dbm_t.c | 352 oflags |= O_CREAT|O_TRUNC|O_RDWR; 360 oflags |= O_RDWR; 414 if(!(oflags&O_RDWR))
|
/ast/src/lib/libast/sfio/ |
H A D | sftmp.c | 258 if((fd = sysopenf(file,O_RDWR|O_CREAT|O_EXCL|O_TEMPORARY,SF_CREATMODE)) >= 0) 269 if((fd = sysopenf(file,O_RDWR)) >= 0)
|
H A D | _sfopen.c | 221 oflags = (oflags&~O_ACCMODE)|O_RDWR;
|
/ast/src/cmd/builtin/ |
H A D | pty.c | 176 return(_getpty(master,O_RDWR,MODE_666,0)); 179 *master = open(_pty_clone,O_RDWR|O_CREAT,MODE_666); 187 fdm = open(name,O_RDWR|O_CREAT,MODE_666); 252 if ((*master = posix_openpt(O_RDWR)) < 0) 254 if (grantpt(*master) || unlockpt(*master) || !(sname = ptsname(*master)) || (*slave = open(sname, O_RDWR|O_cloexec)) < 0) 260 if (!(sname = ptymopen(master)) || (*slave = open(sname, O_RDWR|O_cloexec)) < 0)
|
/ast/src/lib/libast/path/ |
H A D | pathtemp.c | 325 if ((n = open(b, O_CREAT|O_RDWR|O_EXCL|O_TEMPORARY, tmp.mode)) >= 0)
|
/ast/src/lib/libast/tm/ |
H A D | tvtouch.c | 254 if ((fd = open(path, O_RDWR|O_cloexec)) >= 0)
|
/ast/src/cmd/ksh93/bltins/ |
H A D | hist.c | 193 if((fdo=open(fname,O_CREAT|O_RDWR,S_IRUSR|S_IWUSR)) < 0)
|
H A D | mkservice.c | 444 if((fd = sh_open(path, O_SERVICE|O_RDWR))<=0)
|
/ast/src/cmd/ksh93/edit/ |
H A D | history.c | 266 if((fd=open(cp,O_BINARY|O_APPEND|O_RDWR|O_CREAT,histmode))>=0) 297 fd = open(fname,O_BINARY|O_APPEND|O_CREAT|O_RDWR,S_IRUSR|S_IWUSR); 733 int fd = open(hp->histname,O_RDWR); 1199 if((newfd=open(hp->histname,O_BINARY|O_APPEND|O_CREAT|O_RDWR,S_IRUSR|S_IWUSR)) >= 0)
|
/ast/src/cmd/pax/ |
H A D | paxlib.c | 195 fd = open("/dev/null", O_RDWR);
|
/ast/src/cmd/cs/vcs_src/ |
H A D | ifs_func.c | 73 if( (FileNum = open( fname, O_RDWR|O_CREAT|O_TRUNC, 0600 )) < 0 )
|
/ast/src/cmd/tests/cdt/ |
H A D | trehash.c | 198 if((zerof = open("/dev/zero", O_RDWR)) < 0)
|
Completed in 61 milliseconds
12