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

1234567891011>>

/osnet-11/usr/src/cmd/perl/5.8.4/distrib/ext/Fcntl/t/
H A Dfcntl.t8 # A modest test: exercises only O_WRONLY, O_CREAT, and O_RDONLY.
24 if (sysopen(my $ro, "fcntl$$", O_RDONLY)) {
37 print "not ok 4 # sysopen O_RDONLY failed: $!\n";
/osnet-11/usr/src/lib/libast/common/comp/
H A Dsetsid.c63 if ((fd = open("/dev/tty", O_RDONLY)) >= 0)
H A Dreadlink.c48 if ((fd = open(path, O_RDONLY)) < 0)
/osnet-11/usr/src/lib/libsqlite/tool/
H A Ddiffdb.c27 db1 = open(argv[1], O_RDONLY);
32 db2 = open(argv[2], O_RDONLY);
/osnet-11/usr/src/lib/libcurses/screen/
H A Dtypeahead.c104 * open(tty, O_RDONLY | O_NDELAY) : -1;
107 if ((cur_term->_check_fd = open("/dev/tty", O_RDONLY |
/osnet-11/usr/src/lib/libc/port/gen/
H A Dopendir.c52 O_RDONLY|O_NDELAY|O_LARGEFILE|O_CLOEXEC|O_DIRECTORY, 0)) < 0)
H A Dattropen.c60 if ((fd = open64(file, O_RDONLY|O_NONBLOCK)) == -1) {
91 if ((fd = open(file, O_RDONLY|O_NONBLOCK)) == -1) {
/osnet-11/usr/src/lib/libproc/common/
H A Dproc_get_info.c62 if ((fd = open(fname, O_RDONLY)) >= 0) {
83 if ((fd = open(fname, O_RDONLY)) >= 0) {
113 if ((fd = open(fname, O_RDONLY)) < 0)
144 if ((fd = open(fname, O_RDONLY)) >= 0) {
161 if ((fd = open(fname, O_RDONLY)) >= 0) {
184 if ((fd = open(fname, O_RDONLY)) >= 0) {
/osnet-11/usr/src/lib/libnsl/rpc/
H A Dcan_use_af.c51 if ((fd = open("/dev/udp", O_RDONLY)) < 0) {
/osnet-11/usr/src/lib/libast/common/vec/
H A Dvecfile.c48 if ((fd = open(file, O_RDONLY)) >= 0)
/osnet-11/usr/src/lib/libfedfs/common/
H A Dget_rp_data.c64 fd1 = open(path, O_RDONLY);
67 fd2 = openat(fd1, REFERRAL_EA, O_RDONLY | O_XATTR);
/osnet-11/usr/src/lib/libc/port/stdio/
H A D_endopen.c68 oflag = O_RDONLY;
84 oflag = (oflag & ~(O_RDONLY | O_WRONLY)) | O_RDWR;
/osnet-11/usr/src/lib/libcmdutils/common/
H A Dprocess_xattrs.c41 pwdfd = open(".", O_RDONLY);
43 if ((fd1 = attropen(attrfile, ".", O_RDONLY)) == -1) {
55 if ((fd2 = attropen(attrfile, ".", O_RDONLY)) == -1) {
96 if ((srcfd = open(infile, O_RDONLY)) == -1) {
103 if ((indfd = openat(srcfd, ".", O_RDONLY|O_XATTR)) == -1) {
107 if ((outdfd = attropen(outfile, ".", O_RDONLY)) == -1) {
129 O_RDONLY)) == -1) {
/osnet-11/usr/src/lib/libdiskmgt/common/
H A Dinuse_dump.c75 if ((dump_fd = open("/dev/dump", O_RDONLY)) >= 0)
/osnet-11/usr/src/cmd/sendmail/db/os/
H A Dos_oflags.c39 * for O_RDONLY, it's simply the lack of a write flag.
44 if (!(oflags & (O_RDWR | O_WRONLY)) || oflags & O_RDONLY)
/osnet-11/usr/src/cmd/hal/tools/sunos/
H A Dhal-system-lcd-get-brightness-sunos.c49 if ((fd = open(device_file, O_RDONLY | O_NONBLOCK)) < 0) {
H A Dhal-system-lcd-set-brightness-sunos.c50 if ((fd = open(device_file, O_RDONLY | O_NONBLOCK)) < 0) {
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/ext/POSIX/t/
H A Dtaint.t39 eval { $testfd = open($file, O_RDONLY, 0) };
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/
H A DFileHandle.t29 $fh = (new FileHandle "./TEST", O_RDONLY
30 or new FileHandle "TEST", O_RDONLY)
/osnet-11/usr/src/lib/libwanbootutil/common/
H A Dwbio.c83 if ((fd = open("/dev/urandom", O_RDONLY)) == -1) {
/osnet-11/usr/src/lib/mpapi/libmpscsi_vhci/common/
H A DInitialize.c70 O_NDELAY | O_RDONLY);
/osnet-11/usr/src/lib/libdtrace/common/
H A Dio.sed.in55 SED_REPLACE(O_RDONLY)
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/Tie/File/t/
H A D08_ro.t13 use Fcntl 'O_RDONLY';
19 my $o = tie @a, 'Tie::File', $file, mode => O_RDONLY, autochomp => 0;
48 my $o = tie @a, 'Tie::File', $file, mode => O_RDONLY, autochomp => 0
/osnet-11/usr/src/cmd/perl/contrib/Sun/Solaris/Exacct/t/
H A DRandTest134 $f = ea_new_file("/tmp/wr.$$", &O_RDONLY)
144 $f = ea_new_file("/tmp/wr.$$", &O_RDONLY, aflags => &EO_TAIL)
155 $f = ea_new_file("/tmp/wr.$$", &O_RDONLY)
174 $f = ea_new_file("/tmp/wr.$$", &O_RDONLY)
194 $f = ea_new_file("/tmp/wr.$$", &O_RDONLY, aflags => &EO_TAIL)
/osnet-11/usr/src/lib/libshadowtest/common/
H A Dlibshadowtest.c80 if ((fd = open(path, O_RDONLY)) < 0) {
193 if ((fd = open(path, O_RDONLY)) < 0)
214 if ((fd = open(path, O_RDONLY)) < 0)
379 if ((fd = open(path, O_RDONLY)) < 0)
403 if ((fd = open(path, O_RDONLY)) < 0)
456 if ((fd = open(path, O_RDONLY)) < 0) {
461 if ((map = openat(fd, "SUNWshadow.map", O_XATTR | O_RDONLY)) < 0) {

Completed in 77 milliseconds

1234567891011>>