Home
last modified time | relevance | path

Searched refs:O_RDONLY (Results 126 – 150 of 874) sorted by relevance

12345678910>>...35

/illumos-gate/usr/src/cmd/sgs/gprof/common/
H A Dreadelf.c79 if ((fd = open(name, O_RDONLY)) == -1) { in is_shared_obj()
126 if ((fd = open((aoutname), O_RDONLY)) == -1) { in getnfile()
171 if ((fd = open(module->name, O_RDONLY)) == -1) { in process_namelist()
/illumos-gate/usr/src/lib/iconv_modules/euro/utils/gentbl/
H A Ddebug.c43 if ((fd = open(argv[1], O_RDONLY)) == -1) { in main()
/illumos-gate/usr/src/lib/libmail/common/
H A Dxgetenv.c95 infd = open(xfile, O_RDONLY); in xsetenv()
/illumos-gate/usr/src/test/libc-tests/tests/
H A Disatty.c78 int fd = open(notttys[i], O_RDONLY); in main()
/illumos-gate/usr/src/lib/sun_fc/common/
H A DSun_fcAdapterCreateWWN.cc41 int fd = open("/dev/urandom", O_RDONLY); in get_random_bytes()
/illumos-gate/usr/src/common/ficl/ficlplatform/
H A Dpager.c159 if ((fd = open(fname, O_RDONLY)) == -1) { in pager_file()
/illumos-gate/usr/src/cmd/fs.d/smbclnt/lsacl/
H A Dlsacl.c104 fd = open(file, O_RDONLY, 0); in lsacl()
/illumos-gate/usr/src/boot/i386/loader/
H A Dchain.c60 fd = open(argv[1], O_RDONLY); in command_chain()
/illumos-gate/usr/src/cmd/backup/restore/
H A Drestore.c954 if ((fromfd = openat64(tfd, from, O_RDONLY|O_NONBLOCK)) == -1) { in movexattrs()
967 O_RDONLY|O_NONBLOCK|O_XATTR)) == -1) { in movexattrs()
978 if ((tofd = openat64(tfd, to, O_RDONLY|O_NONBLOCK)) == -1 || in movexattrs()
979 (todir = openat64(tofd, ".", O_RDONLY|O_NONBLOCK|O_XATTR)) == -1) { in movexattrs()
/illumos-gate/usr/src/cmd/whodo/
H A Dwhodo.c372 dirfd = priv_proc_open(pname, O_RDONLY | O_DIRECTORY); in main()
377 procfd = priv_proc_openat(dirfd, "psinfo", O_RDONLY); in main()
401 procfd = priv_proc_openat(dirfd, "status", O_RDONLY); in main()
423 procfd = priv_proc_openat(dirfd, "sigact", O_RDONLY); in main()
/illumos-gate/usr/src/lib/storage/libg_fc/common/
H A Dhot.c178 if ((fp_fd = g_object_open(fp_path, O_RDONLY | O_EXCL)) < 0) { in issue_lip()
314 O_NDELAY | O_RDONLY)) == -1) in g_force_lip()
/illumos-gate/usr/src/cmd/cmd-inet/lib/ipmgmtd/
H A Dipmgmt_main.c138 if ((fd = open(ADDROBJ_MAPPING_DB_FILE, O_CREAT|O_RDONLY, in ipmgmt_db_init()
176 if ((fd = open(IPMGMT_DOOR, O_CREAT|O_RDONLY, IPADM_FILE_MODE)) == -1) { in ipmgmt_door_init()
/illumos-gate/usr/src/psm/stand/boot/sparc/common/
H A Dboot_plat.c146 if ((fd = open(BOOT_REDIRECT, O_RDONLY)) != -1) { in read_redirect()
238 return (open(pathname, O_RDONLY)); in boot_open()
/illumos-gate/usr/src/cmd/bnu/
H A Dulockf.c40 #define O_RDONLY 0 macro
116 fd = open(name, O_RDONLY);
H A Dcallers.c288 (void) close(nullfd = open("/", O_RDONLY));
756 (void) close(nullfd = open("/", O_RDONLY));
857 (void) close(nullfd = open("/dev/null", O_RDONLY));/* partial open hack */
924 (void) close(nullfd = open("/", O_RDONLY)); /* partial open hack */
974 (void) close(nullfd = open("/", O_RDONLY)); /* partial open hack */
/illumos-gate/usr/src/boot/forth/
H A Dbeadm.4th64 O_RDONLY fopen fd !
85 O_RDONLY fopen fd !
114 2dup O_RDONLY fopen fd !
341 O_RDONLY fopen fd !
411 O_RDONLY fopen fd !
/illumos-gate/usr/src/tools/btxld/
H A Dversion.c59 fd = open(ifile, O_RDONLY); in add_version()
/illumos-gate/usr/src/test/os-tests/tests/regression/
H A Dillumos-15036.c71 result_fds[nvalid] = open(path, O_RDONLY, 0); in find_test_files()
/illumos-gate/usr/src/cmd/dumpadm/
H A Dminfree.c56 FILE *fp = minfree_open(dir, O_RDONLY, "r"); in minfree_read()
/illumos-gate/usr/src/cmd/boot/symdef/
H A Dsymdef.c74 fd = open(argv[1], O_RDONLY); in main()
/illumos-gate/usr/src/cmd/fs.d/ufs/fssnap/
H A Dfssnap.c208 if ((mountfd = open(mountpoint, O_RDONLY)) < 0) in main()
299 if ((ctlfd = open(SNAP_CTL_PATH, O_RDONLY | O_EXCL)) == -1) { in create_snap()
350 if ((ctlfd = open(SNAP_CTL_PATH, O_RDONLY | O_EXCL)) == -1) in delete_snap()
/illumos-gate/usr/src/lib/libgrubmgmt/common/
H A Dlibgrub_fs.c80 fd = open(path, O_RDONLY); in slice_ufs()
114 if ((fd = open(rdev, O_RDONLY|O_NDELAY)) >= 0) { in get_sol_prtnum()
132 fd = open(rdev, O_RDONLY); in get_sol_prtnum()
/illumos-gate/usr/src/lib/madv/common/
H A Dmadv.c170 int fd = open("/proc/self/auxv", O_RDONLY); in mygetexecname()
194 fd = open("/proc/self/status", O_RDONLY); in mygetbrk()
256 fd = open("/proc/self/psinfo", O_RDONLY); in argmatch()
/illumos-gate/usr/src/cmd/rmformat/
H A Drmf_misc.c1347 fd = open(devnode, O_RDONLY|O_NDELAY); in get_device()
1439 ((fd = open(supplied, O_RDONLY|O_NDELAY)) >= 0)) { in lookup_device()
1456 if ((fd = open(tmpstr, O_RDONLY|O_NDELAY)) >= 0) { in lookup_device()
1473 if ((fd = open(tmpstr, O_RDONLY|O_NDELAY)) >= 0) { in lookup_device()
1490 fd = open(node, O_RDONLY|O_NDELAY); in is_cd()
2070 fd = my_open(sn, O_RDONLY|O_NDELAY); in get_media_info()
2073 fd = my_open(sdev, O_RDONLY|O_NDELAY); in get_media_info()
/illumos-gate/usr/src/cmd/lp/lib/lp/
H A Disterminfo.c193 if (!(fd = Open(path, O_RDONLY))) {

12345678910>>...35