Home
last modified time | relevance | path

Searched refs:open (Results 101 – 125 of 1565) sorted by relevance

12345678910>>...63

/illumos-gate/usr/src/cmd/cdrw/
H A Dbstream.c274 fd = open(file, O_RDONLY); in open_file_read_stream()
396 fd = open(fname, O_RDONLY); in open_au_read_stream()
477 fd = open(fname, O_RDONLY); in open_wav_read_stream()
557 fd = open(fname, O_RDWR|O_CREAT|O_TRUNC, 0666); in open_au_write_stream()
586 fd = open(fname, O_RDWR|O_CREAT|O_TRUNC, 0666); in open_wav_write_stream()
613 fd = open(fname, O_WRONLY|O_CREAT|O_TRUNC, 0666); in open_aur_write_stream()
630 fd = open(fname, O_WRONLY|O_CREAT|O_TRUNC, 0666); in open_file_write_stream()
/illumos-gate/usr/src/cmd/print/conv_fix/
H A Dconv_fix.c120 fd = open(ofile, O_RDWR|O_APPEND); in main()
122 fd = open(ofile, O_RDWR|O_CREAT|O_EXCL, 0644); in main()
/illumos-gate/usr/src/test/os-tests/tests/ksensor/
H A Dksensor_err.c93 int fd = open(error_sensor, O_RDONLY); in main()
107 fd = open(error_sensor, flags[i]); in main()
/illumos-gate/usr/src/cmd/mail/
H A Dcreatemf.c73 mbfd = open(path,
101 mbfd = open(path, O_APPEND|O_WRONLY, 0);
/illumos-gate/usr/src/cmd/dtrace/test/cmd/badioctl/
H A Dbadioctl.c64 if ((random = open("/dev/random", O_RDONLY)) == -1) in badioctl()
89 fd = open("/devices/pseudo/dtrace@0:dtrace", O_RDONLY); in badioctl()
/illumos-gate/usr/src/cmd/audio/audioplay/
H A Daudioplay.c202 Audio_fd = open(Audio_dev, O_WRONLY | O_NONBLOCK); in open_audio()
215 Audio_fd = open(Audio_dev, O_WRONLY); in open_audio()
347 Audio_fd = open(Audio_dev, O_WRONLY | O_NONBLOCK); in main()
360 Audio_ctlfd = open(ctldev, O_RDWR); in main()
367 Audio_fd = open(Audio_dev, O_WRONLY); in main()
943 return (open(fname, flags, mode)); in path_open()
990 return (open(fullpath, flags, mode)); in path_open()
1001 return (open(fname, flags, mode)); in path_open()
/illumos-gate/usr/src/test/os-tests/tests/uccid/
H A Dstatus.c48 if ((fd = open(argv[1], O_RDWR)) < 0) { in main()
52 if ((efd = open(argv[1], O_RDWR)) < 0) { in main()
/illumos-gate/usr/src/tools/btxld/
H A Dversion.c59 fd = open(ifile, O_RDONLY); in add_version()
117 fd = open(ofile, O_CREAT | O_WRONLY | O_TRUNC, 0644); in add_version()
/illumos-gate/usr/src/cmd/ipf/tools/
H A Dipf.c203 if ((fd = open(ipfdev, O_RDWR)) == -1)
204 if ((fd = open(ipfdev, O_RDONLY)) == -1)
331 xfd = open(IPSTATE_NAME, O_RDWR);
353 xfd = open(IPNAT_NAME, O_RDWR);
546 if ((vfd = open(ipfname, O_RDONLY)) == -1) { in showversion()
/illumos-gate/usr/src/cmd/sgs/link_audit/common/
H A Dbindings.c77 if ((fd = open("/tmp/bind_err", O_RDWR | O_CREAT, 0666)) == -1) { in output_err_message()
141 if ((fd = open(buffer_name, O_RDWR)) == -1) { in grow_buffer()
245 if ((fd = open(buffer_name, O_RDWR | O_CREAT | O_EXCL, 0666)) != -1) { in la_version()
277 } else if ((fd = open(buffer_name, O_RDWR)) != -1) { in la_version()
405 if ((fd = open(buffer_name, O_RDWR)) == -1) { in la_sparcv9_pltenter()
/illumos-gate/usr/src/lib/sun_fc/common/
H A DFCHBA.cc89 if ((fd = open(port->getPath().c_str(), O_NDELAY | O_RDONLY)) == in FCHBA()
157 if ((fd = open(port->getPath().c_str(), O_NDELAY | O_RDONLY)) == -1) { in getHBAAttributes()
223 if ((fd = open(port->getPath().c_str(), O_RDONLY | O_EXCL)) == -1) { in doForceLip()
266 if ((fd = open(port->getPath().c_str(), O_NDELAY | O_RDONLY)) == -1) { in npivGetHBAAttributes()
359 if ((fd = open(FCSM_DRIVER_PATH.c_str(), O_RDONLY)) < 0) { in loadAdapters()
H A DTrace.cc76 fd = open(DEBUG_FILE, O_WRONLY|O_APPEND); /* will only open if exists */ in message()
82 fd = open(LOG_FILE, O_WRONLY|O_APPEND); in message()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetut.c147 if ((fd = open(_compat_utmpfile, O_RDWR|O_CREAT, 0644)) < 0) { in getutent_frec()
154 if ((fd = open(_compat_utmpfile, O_RDONLY)) < 0) in getutent_frec()
430 fd = open(file, O_WRONLY | O_APPEND); in _compat_updwtmp()
433 if ((fd = open(file, O_WRONLY|O_CREAT, 0644)) < 0) in _compat_updwtmp()
669 if ((fd = open(_compat_utmpfile, O_RDWR|O_CREAT, 0644)) < 0) in lockut()
H A Dlfmt_log.c92 ((fd = open(LOGNAME, O_WRONLY)) == -1 || in __lfmt_log()
113 fdd = open(LOG_CONSOLE, O_WRONLY); in __lfmt_log()
/illumos-gate/usr/src/tools/smatch/src/smatch_scripts/implicit_dependencies/with_structs/
H A Dimplicit_dependencies82 'open',
244 'open',
1198 'open',
1295 'open',
1423 'open',
1549 'open',
1944 'open',
2682 'open',
8569 'open',
10403 'open',
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/ctime/
H A Dctime_001_pos.c111 if ((fd = open(pfile, O_RDONLY, ALL_MODE)) == -1) { in do_read()
134 if ((fd = open(pfile, O_WRONLY, ALL_MODE)) == -1) { in do_write()
305 if ((fd = open(tfile, O_WRONLY | O_CREAT | O_TRUNC, ALL_MODE)) == -1) { in main()
/illumos-gate/usr/src/cmd/ttymon/
H A Dtmlog.c65 if ((fd = open(logfile, O_WRONLY | O_CREAT | O_APPEND, 0444)) != -1) in openttymonlog()
165 } else if ((fd = open(CONSOLE, O_WRONLY|O_NOCTTY)) != -1) { in vlog()
232 if ((fd = open(EX_DBG, O_WRONLY|O_APPEND|O_CREAT)) < 0) in opendebug()
/illumos-gate/usr/src/test/zfs-tests/cmd/rm_lnkcnt_zero_file/
H A Drm_lnkcnt_zero_file.c106 *fd = open(filebase, O_APPEND | O_RDWR | O_CREAT, 0644); in writer()
127 fd = open(filebase, O_APPEND | O_RDWR | O_CREAT, 0644); in main()
/illumos-gate/usr/src/cmd/fm/mcdecode/
H A Dmcdecode.c176 if ((fd = open(file, O_RDONLY)) < 0) { in mcdecode_from_file()
232 if ((fd = open(device, O_RDONLY)) < 0) { in mcdecode_pa()
297 if ((fd = open(device, O_RDONLY)) < 0) { in mcdecode_dump()
316 if ((fd = open(outfile, O_RDWR | O_CREAT | O_TRUNC, 0644)) < 0) { in mcdecode_dump()
/illumos-gate/usr/src/cmd/tip/aculib/
H A Ddn11.c31 if ((dn = open(acu, 1)) < 0) { in dn_dialer()
60 if ((FD = open(DV, 2)) < 0) { in dn_dialer()
/illumos-gate/usr/src/test/libc-tests/tests/
H A Dutimes.c154 if ((fd = open(path, O_CREAT, 0644)) == -1) in runtest()
163 if ((lfd = open(lpath, O_RDWR)) == -1) in runtest()
166 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/sgs/demo_rdb/common/
H A Dps.c79 if ((pauxvfd = open(pname, O_RDONLY)) == -1) in get_ldbase()
140 if ((procp->pp_mapfd = open(procname, O_RDONLY)) == -1) in ps_init()
145 if ((procp->pp_asfd = open(procname, O_RDWR)) == -1) in ps_init()
327 if ((lwpfd = open(procname, O_RDONLY)) == -1) in ps_lgetregs()
H A Dmain.c67 if ((pfd = open(procname, O_WRONLY)) < 0) { in init_proc()
205 if ((pctlfd = open(procname, O_WRONLY)) < 0) { in main()
225 if ((pstatusfd = open(procname, O_RDONLY)) == -1) in main()
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Docfile.c176 n = open(tmpcf, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, 0644); in set_cfdir()
569 lock_fd = open(lockpath, O_RDWR|O_CREAT|O_TRUNC|O_EXCL, 0644); in pkgWlock()
578 if ((lock_fd = open(lockpath, O_RDWR)) == -1) { in pkgWlock()
681 fd = open(contents, O_WRONLY | O_CREAT | O_EXCL, 0644); in vcfile()
/illumos-gate/usr/src/cmd/mailx/
H A Dquit.c172 if ((fd = open(tempQuit, O_RDWR|O_CREAT|O_EXCL, 0600)) < 0 || in quit()
197 if ((fd = open(mbox, O_RDWR|O_CREAT|O_TRUNC, MBOXPERM)) < 0 || in quit()
206 if ((fd = open(mbox, O_RDWR|O_CREAT, MBOXPERM)) < 0 || in quit()
299 fd = open(tempResid,O_RDWR|O_CREAT|O_EXCL, 0600); in writeback()

12345678910>>...63