Home
last modified time | relevance | path

Searched refs:O_RDWR (Results 176 – 200 of 647) sorted by relevance

12345678910>>...26

/illumos-gate/usr/src/cmd/luxadm/
H A Dsetboot.c161 if ((fd = open("/dev/openprom", O_RDWR)) < 0) { in setprom()
/illumos-gate/usr/src/test/zfs-tests/cmd/file_trunc/
H A Dfile_trunc.c84 fd = open(filename, O_RDWR|O_CREAT|O_TRUNC, 0666); in main()
/illumos-gate/usr/src/cmd/ttymon/
H A Dtmsac.c86 Pfd = open(PMPIPE, O_RDWR|O_NONBLOCK); in openpipes()
H A Dtmutil.c199 if ((fd = open(USERDEV, O_RDWR)) == -1) { in vml()
/illumos-gate/usr/src/cmd/keyserv/
H A Dkey_generic.c112 if ((fd = t_open(nconf->nc_device, O_RDWR, NULL)) < 0) {
/illumos-gate/usr/src/boot/sys/sys/
H A Dfcntl.h75 #define O_RDWR 0x0002 /* open for reading and writing */ macro
/illumos-gate/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_tape.c144 O_RDWR | O_NDELAY)) < 0) { in ndmpd_tape_open_v2()
192 mode = (request->mode == NDMP_TAPE_READ_MODE) ? O_RDONLY : O_RDWR; in ndmpd_tape_open_v2()
1229 (devid = open(devname, O_RDWR | O_NDELAY)) < 0) { in common_tape_open()
1257 mode = (ndmpmode == NDMP_TAPE_READ_MODE) ? O_RDONLY : O_RDWR; in common_tape_open()
/illumos-gate/usr/src/cmd/power/
H A Dpowerd.c229 pm_fd = open(PM, O_RDWR); in main()
404 fd = open(SRN, O_RDWR|O_EXCL|O_NDELAY); in autos3_monitor()
718 tod_fd = open(TOD, O_RDWR); in check_shutdown()
786 if ((prom_fd = open(PROM, O_RDWR)) == -1 && in is_ok2shutdown()
/illumos-gate/usr/src/lib/libc/port/rt/
H A Dmqueue.c402 oflag = oflag & (O_RDONLY|O_WRONLY|O_RDWR|O_CREAT|O_EXCL|O_NONBLOCK); in mq_open()
451 (O_RDWR|O_CREAT|O_EXCL), mode, &err)) < 0) in mq_open()
464 O_RDWR, 0666, &err)) < 0) in mq_open()
502 if ((fd = __pos4obj_open(path, MQ_DSCN_TYPE, O_RDWR | O_CREAT, in mq_open()
/illumos-gate/usr/src/cmd/format/
H A Dmisc.c422 O_RDWR | O_NDELAY)) < 0) { in echo_off()
483 O_RDWR | O_NDELAY)) < 0) { in charmode_on()
/illumos-gate/usr/src/cmd/rpcsvc/rpc.bootparamd/
H A Dbootparam_ip_route.c251 sd = open("/dev/ip", O_RDWR); in get_ip_route()
449 sd = open("/dev/ip", O_RDWR); in find_best_server_int()
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Dlockinst.c189 if ((fd = open(lockpath, O_RDWR | O_CREAT, 0600)) == -1) { in lockinst()
/illumos-gate/usr/src/test/libc-tests/tests/stdio/
H A Dfileno.c113 fd = open("/dev/null", O_RDWR); in check_fdopen()
/illumos-gate/usr/src/test/zfs-tests/cmd/mkbusy/
H A Dmkbusy.c162 flags = rflag == B_FALSE ? O_CREAT | O_RDWR : O_RDONLY; in main()
/illumos-gate/usr/src/test/zfs-tests/cmd/randwritecomp/
H A Drandwritecomp.c159 fd = open(filename, O_RDWR|O_CREAT, 0666); in main()
/illumos-gate/usr/src/test/smbclient-tests/cmd/cp_mmap/
H A Dcp_mmap.c112 des_fid = open(des_file, O_RDWR | O_CREAT | O_TRUNC, in main()
/illumos-gate/usr/src/test/smbclient-tests/cmd/rw_mmap/
H A Drw_mmap.c105 fid = open(filename, O_RDWR | O_CREAT | O_TRUNC, in main()
/illumos-gate/usr/src/cmd/oplhpd/
H A Doplhpd.c167 if ((pid_fd = open(OPLHPD_PID_FILE, O_RDWR | O_CREAT, 0644)) < 0) { in init_daemon()
/illumos-gate/usr/src/cmd/zlogin/
H A Dzlogin.c341 if ((masterfd = open("/dev/ptmx", O_RDWR|O_NONBLOCK)) < 0) { in get_master_pty()
400 if ((slavefd = open(zoneslavename, O_RDWR)) < 0) { in init_slave_pty()
1422 if ((*lockfd = open(pathbuf, O_RDWR|O_CREAT, S_IRUSR|S_IWUSR)) < 0) { in grab_lock_file()
1512 fd = open64(CTFS_ROOT "/process/template", O_RDWR); in init_template()
2223 if ((newslave = open(slavename, O_RDWR)) == -1) { in main()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.rlogind.c1057 if ((p = open("/dev/ptmx", O_RDWR)) == -1) in doit()
1065 if ((t = open(line, O_RDWR)) == -1) in doit()
1163 if ((tt = open(line, O_RDWR)) == -1) in doit()
1357 if ((ptmfd = open("/dev/logindmux", O_RDWR)) == -1) in protocol()
1360 if ((netfd = open("/dev/logindmux", O_RDWR)) == -1) in protocol()
/illumos-gate/usr/src/lib/libkmf/libkmf/common/
H A Dclient.c530 if ((respfd = open(respfile, O_CREAT |O_RDWR | O_EXCL, 0600)) == -1) { in kmf_get_encoded_ocsp_response()
678 if ((fd = open(crlfile, O_CREAT |O_RDWR | O_EXCL, 0644)) == -1) in kmf_download_crl()
752 if ((fd = open(certfile, O_CREAT |O_RDWR | O_EXCL, 0644)) == -1) in kmf_download_cert()
/illumos-gate/usr/src/cmd/sgs/link_audit/common/
H A Ddumpbind.c161 if ((fd = open(fname, O_RDWR)) == -1) { in main()
/illumos-gate/usr/src/cmd/fs.d/smbclnt/fksmbcl/
H A Dshares.c257 fd = smb_fh_open(ctx, path, O_RDWR); in list_shares()
/illumos-gate/usr/src/lib/libdhcpagent/common/
H A Ddhcpagent_util.c92 fd = open64(CTFS_ROOT "/process/template", O_RDWR); in init_template()
/illumos-gate/usr/src/test/libc-tests/cfg/symbols/
H A Dfcntl_h.cfg41 value | O_RDWR | int | fcntl.h | POSIX+ SUS+

12345678910>>...26