Searched refs:O_RDONLY (Results 1 - 25 of 67) sorted by relevance

123

/ast/src/lib/libast/comp/
H A Dsetsid.c63 if ((fd = open("/dev/tty", O_RDONLY|O_cloexec)) >= 0)
H A Dreadlink.c48 if ((fd = open(path, O_RDONLY|O_cloexec)) < 0)
/ast/src/lib/libast/vec/
H A Dvecfile.c48 if ((fd = open(file, O_RDONLY|O_cloexec)) >= 0)
/ast/src/lib/libast/dir/
H A Dopendir.c55 if ((fd = open(path, O_RDONLY|O_cloexec)) < 0) return(0);
/ast/src/lib/libcoshell/
H A Dcosync.c90 if (!file || mode < 0 || (fd = open(file, O_RDONLY|O_cloexec)) < 0) return(-1);
/ast/src/lib/libast/features/
H A Dfcntl.c257 #ifndef O_RDONLY
275 #ifndef O_RDONLY
276 printf("#define O_RDONLY 0\n");
308 printf("#define O_ACCMODE (O_RDONLY|O_WRONLY|O_RDWR)\n");
/ast/src/lib/libast/misc/
H A Dsetenviron.c84 close(open(".", O_RDONLY|O_cloexec));
/ast/src/lib/libast/port/
H A Dastwinsize.c132 if ((fd = open("/dev/tty", O_RDONLY|O_cloexec)) >= 0)
/ast/src/cmd/3d/
H A Dopen3d.c210 if ((oflag & O_CREAT) && (!sp || level || (oflag & O_EXCL)) || (sp || level) && ((oflag & O_TRUNC) || (oflag & O_ACCMODE) != O_RDONLY))
214 if ((oflag & O_ACCMODE) != O_RDONLY)
221 if (!(oflag & O_TRUNC) && (fd = OPEN(sp, O_RDONLY, 0)) < 0)
241 if (r < 0 && errno == ENOENT && ((oflag & (O_CREAT|O_TRUNC)) || (oflag & O_ACCMODE) != O_RDONLY))
/ast/src/cmd/std/
H A Dpss-procfs.c116 if ((fd = open(pss->buf, O_RDONLY|O_BINARY)) < 0)
175 if ((fd = open(pss->buf, O_RDONLY|O_BINARY)) < 0)
303 if ((i = open(pss->buf, O_RDONLY|O_BINARY)) >= 0)
H A Dpss-info.c59 if ((fd = open(mem, O_RDONLY)) < 0)
H A Dpss-kvm.c130 if (!(state->kd = kvm_open(NiL, NiL, 0, O_RDONLY, NiL)))
/ast/src/cmd/proto/
H A Dproto.c200 #ifndef O_RDONLY
201 #define O_RDONLY 0 macro
704 else if ((fd = open(list, O_RDONLY)) < 0)
/ast/src/lib/libcs/
H A Dcsname.c157 if ((fd = open("/etc/whoami", O_RDONLY)) >= 0)
/ast/src/cmd/paxlib/calib/
H A Dcamap.c98 if((in = open(file, O_RDONLY)) < 0)
/ast/src/lib/libcmd/
H A Dfds.c234 switch (flags & (O_RDONLY|O_WRONLY|O_RDWR))
236 case O_RDONLY:
/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/cmd/ss/
H A Dssd.c372 if ((uf = open(usrfile = usrfiles[i], O_RDONLY)) >= 0) break;
396 if ((kf = open(memfile, O_RDONLY)) >= 0)
436 if ((wf = open(buf, O_RDONLY)) >= 0)
/ast/src/cmd/pax/
H A Dbio.c317 if (ap->io->mode != O_RDONLY)
332 if (ap->io->mode != O_RDONLY)
351 if (ap->io->mode != O_RDONLY)
362 if (ap->io->mode != O_RDONLY)
552 * O_RDONLY bread() n chars and return a pointer to the char buffer
1027 if (ap->io->mode != O_RDONLY)
1053 if (ap->io->mode != O_RDONLY)
H A Dpaxlib.c89 if (ap->io->mode == O_RDONLY)
/ast/src/cmd/nmake/
H A Dmisc.c45 while ((internal.openfd = open(name, O_RDONLY|O_BINARY|O_cloexec)) < 0)
79 if (res && resolve(internal.openfile, internal.openfd, O_RDONLY))
/ast/src/lib/libast/sfio/
H A D_sfopen.c181 oflags |= O_RDONLY;
/ast/src/cmd/ie/
H A Dio.h174 # define O_RDONLY 0 macro
/ast/src/cmd/kshlib/dbm/
H A Ddbm.c109 flags = O_RDONLY;
/ast/src/cmd/cs/vcs_src/
H A Difs_func.c221 if( (fs = open( pSrc, O_RDONLY, 0 )) < 0 )

Completed in 32 milliseconds

123