Home
last modified time | relevance | path

Searched refs:O_RDONLY (Results 101 – 125 of 874) sorted by relevance

12345678910>>...35

/illumos-gate/usr/src/boot/libsa/
H A Dpager.c139 if ((fd = open(fname, O_RDONLY)) == -1) { in pager_file()
H A Dsplitfs.c87 sf->curfd = open(sf->filesv[sf->curfile], O_RDONLY); in split_openfile()
124 conffd = open(confname, O_RDONLY); in splitfs_open()
/illumos-gate/usr/src/cmd/fs.d/ufs/mount/
H A Dmount.c350 fd = open(mp, O_RDONLY); in checkislog()
363 fd = open(mp, O_RDONLY); in enable_logging()
390 fd = open(mp, O_RDONLY); in disable_logging()
599 if ((fd = open(MNTTAB, O_RDONLY, 0)) < 0) in mountfs()
/illumos-gate/usr/src/tools/find_elf/
H A Dfind_elf.c205 if ((fd = open(arg, O_RDONLY)) == -1) { in process_arg()
240 rootfd = open(dir, O_RDONLY); in process_arg()
242 rootfd = open(dir, O_RDONLY|O_DIRECTORY); in process_arg()
306 fd = openat(dirfd, de->d_name, O_RDONLY); in process_dir()
/illumos-gate/usr/src/test/libc-tests/tests/
H A Dutimes.c166 if ((dfd = open(dir, O_DIRECTORY|O_RDONLY)) == -1) in runtest()
265 if ((rfd = open("/dev/null", O_RDONLY)) == -1) in runtest()
361 if ((rfd = open("/dev/null", O_RDONLY)) == -1) in runtest()
/illumos-gate/usr/src/cmd/zfs/
H A Dzfs_project.c105 fd = open(name, O_RDONLY | O_NOCTTY); in zfs_project_load_projid()
130 fd = open(name, O_RDONLY | O_NOCTTY); in zfs_project_handle_one()
/illumos-gate/usr/src/cmd/dispadmin/
H A Ddispadmin.c305 if ((fd = open(CONFIGPATH, O_RDONLY, CONFIGPERM)) == -1) { in set_scheduler()
377 if ((fd = open(CONFIGPATH, O_RDONLY, CONFIGPERM)) == -1) { in set_default_class()
/illumos-gate/usr/src/cmd/srptsvc/
H A Dsrptsvc.c69 fd = open(SRPT_NODE, O_RDONLY); in main()
/illumos-gate/usr/src/cmd/lastcomm/
H A Dlastcomm.c95 EO_TAIL | EO_VALID_HDR, O_RDONLY, 0)) >= 0) in main()
/illumos-gate/usr/src/cmd/boot/bootadm/
H A Dbootadm_digest.c55 if ((fd = open(filename, O_RDONLY | O_NONBLOCK)) == -1) { in bootadm_digest()
/illumos-gate/usr/src/cmd/hal/probing/acpi/
H A Dprobe-acpi.c57 if ((fd = open(device_file, O_RDONLY | O_NONBLOCK)) < 0) { in main()
/illumos-gate/usr/src/test/os-tests/tests/uccid/
H A Dyk-readonly.c50 if ((fd = open(argv[1], O_RDONLY)) < 0) { in main()
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/io/
H A Dtst.fds.c77 fds[n++] = open(file, O_RDONLY); in main()
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/db/
H A Ddb.c57 (O_CREAT | O_EXCL | O_EXLOCK | O_NONBLOCK | O_RDONLY | \
/illumos-gate/usr/src/test/os-tests/tests/ksensor/
H A Dksensor_sread.c70 fd = open(buf, O_RDONLY); in main()
/illumos-gate/usr/src/cmd/backup/restore/
H A Dutilities.c598 working_mode = mode & (O_WRONLY|O_RDWR|O_RDONLY); in safe_open()
712 if (mode & O_RDONLY) { in safe_open()
740 bmode = O_RDONLY; in safe_fopen()
1079 (*fd = openat64(tfd, *rpath, O_RDONLY)) > 0) { in resolve()
1088 if (*fd < 0 || (*fd = openat64(tfd, ".", O_RDONLY|O_XATTR)) < 0) { in resolve()
H A Dtape.c194 mt = open(archivefile, O_RDONLY|O_LARGEFILE); in setup()
201 if ((mt = rmtopen(magtape, O_RDONLY)) < 0) { in setup()
209 else if ((mt = open(magtape, O_RDONLY|O_LARGEFILE)) < 0) { in setup()
555 if ((host != NULL && (mt = rmtopen(magtape, O_RDONLY)) == -1) || in getvol()
557 (mt = open(magtape, O_RDONLY|O_LARGEFILE)) == -1)) { in getvol()
2078 if (rmtopen(magtape, O_RDONLY) >= 0) { in autoload_tape()
2084 if ((fd = open(magtape, O_RDONLY|O_LARGEFILE, in autoload_tape()
2099 (mt = rmtopen(magtape, O_RDONLY)) == -1) || in autoload_tape()
2101 (mt = open(magtape, O_RDONLY|O_LARGEFILE)) == -1)) { in autoload_tape()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dfts.c176 (sp->fts_rfd = open(".", O_RDONLY | O_CLOEXEC)) < 0) in fts_open()
302 open(".", O_RDONLY | O_CLOEXEC)) < 0) { in fts_read()
392 open(".", O_RDONLY | O_CLOEXEC)) < 0) { in fts_read()
530 if ((fd = open(".", O_RDONLY | O_CLOEXEC)) < 0) in fts_children()
1031 if (fd < 0 && (newfd = open(path, O_RDONLY|O_CLOEXEC)) < 0) in fts_safe_changedir()
H A Dgetauxv.c64 if ((fd = open("/proc/self/auxv", O_RDONLY)) != -1 && in _getaux()
/illumos-gate/usr/src/lib/libpri/common/
H A Dpri.c53 fd = open(DS_PRI_DRIVER, O_RDONLY); in pri_init()
/illumos-gate/usr/src/cmd/sdpadm/
H A Dsdpadm.c108 fd = open(dcname, O_RDONLY); in main()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dsafechown.c28 if ((fd = open(src, O_RDONLY, 0)) == -1) in safechown()
/illumos-gate/usr/src/cmd/acct/
H A Daccton.c83 if ((fd = open(admfile, O_RDONLY|O_CREAT, 0644)) == ERR) { in ckfile()
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dmap.c991 if (mode != O_RDONLY)
1483 if (mode == O_RDONLY)
1624 if (mode == O_RDONLY)
1707 : O_RDONLY;
2139 if (mode == O_RDONLY)
2356 : O_RDONLY;
2656 if (mode != O_RDONLY)
2915 if (mode != O_RDONLY)
3388 if (mode != O_RDONLY)
5001 if (mode != O_RDONLY)
[all …]
/illumos-gate/usr/src/lib/libdwarf/common/
H A Ddwarf_generic_init.c109 fd = elf_open(name, O_RDONLY | O_BINARY); in open_a_file()
111 fd = open(name, O_RDONLY | O_BINARY); in open_a_file()

12345678910>>...35