Searched refs:O_RDWR (Results 1 - 25 of 49) sorted by relevance

12

/ast/src/lib/libcs/
H A Dcsdaemon.c99 if ((fds & ((1<<0)|(1<<1)|(1<<2))) != ((1<<0)|(1<<1)|(1<<2)) && (fd = open("/dev/null", O_RDWR)) >= 0)
H A Dcslocal.c152 for (n = 0; (fd = open(tmp, O_RDWR)) < 0; n++)
H A Dcsrecv.c351 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 Dardir.c42 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 Dopen.c90 if ((op & O_ACCMODE) == O_RDWR)
/ast/src/lib/libast/features/
H A Dfcntl.c260 #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 Dtouch.c162 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 Daso-fcntl.c120 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 Dtproc.c70 if((zerof = open("/dev/zero", O_RDWR)) < 0)
H A Dtlock.c148 if((zerof = open("/dev/zero", O_RDWR)) < 0)
/ast/src/lib/libcmd/
H A Dfds.c234 switch (flags & (O_RDONLY|O_WRONLY|O_RDWR))
242 case O_RDWR:
/ast/src/cmd/ie/
H A Dio.h173 #ifndef O_RDWR
176 # define O_RDWR 02 macro
177 #endif /* O_RDWR */
/ast/src/cmd/kshlib/dbm/
H A Ddbm.c112 flags = O_RDWR|O_CREAT;
115 flags = O_RDWR|O_CREAT|O_TRUNC;
/ast/src/cmd/kshlib/dbm_t/
H A Ddbm_t.c352 oflags |= O_CREAT|O_TRUNC|O_RDWR;
360 oflags |= O_RDWR;
414 if(!(oflags&O_RDWR))
/ast/src/lib/libast/sfio/
H A Dsftmp.c258 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.c221 oflags = (oflags&~O_ACCMODE)|O_RDWR;
/ast/src/cmd/builtin/
H A Dpty.c176 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 Dpathtemp.c325 if ((n = open(b, O_CREAT|O_RDWR|O_EXCL|O_TEMPORARY, tmp.mode)) >= 0)
/ast/src/lib/libast/tm/
H A Dtvtouch.c254 if ((fd = open(path, O_RDWR|O_cloexec)) >= 0)
/ast/src/cmd/ksh93/bltins/
H A Dhist.c193 if((fdo=open(fname,O_CREAT|O_RDWR,S_IRUSR|S_IWUSR)) < 0)
H A Dmkservice.c444 if((fd = sh_open(path, O_SERVICE|O_RDWR))<=0)
/ast/src/cmd/ksh93/edit/
H A Dhistory.c266 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 Dpaxlib.c195 fd = open("/dev/null", O_RDWR);
/ast/src/cmd/cs/vcs_src/
H A Difs_func.c73 if( (FileNum = open( fname, O_RDWR|O_CREAT|O_TRUNC, 0600 )) < 0 )
/ast/src/cmd/tests/cdt/
H A Dtrehash.c198 if((zerof = open("/dev/zero", O_RDWR)) < 0)

Completed in 61 milliseconds

12