Home
last modified time | relevance | path

Searched refs:O_RDWR (Results 1 – 25 of 647) sorted by relevance

12345678910>>...26

/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dstdio.c72 oflags = O_RDWR;
75 oflags = O_RDWR | O_CREAT | O_TRUNC;
87 oflags = O_APPEND | O_RDWR | O_CREAT;
415 oflags = O_RDWR | O_CREAT;
427 oflags = O_APPEND | O_RDWR | O_CREAT;
442 if (tmp != O_RDWR && (tmp != (oflags & O_ACCMODE)))
503 case O_RDWR:
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/io/
H A Dtst.fds.c79 fds[n++] = open(file, O_RDWR); in main()
81 fds[n++] = open(file, O_RDWR | O_APPEND | O_CREAT | O_DSYNC | in main()
85 fds[n++] = open(file, O_RDWR); in main()
/illumos-gate/usr/src/test/bhyve-tests/tests/common/
H A Dcommon.c81 return (open("/dev/vmm_drv_test", O_RDWR)); in open_drv_test()
97 int fd = open(vm_path, O_RDWR, 0); in check_instance_usable()
130 int ctl_fd = open(VMM_CTL_DEV, O_EXCL | O_RDWR); in destroy_instance()
/illumos-gate/usr/src/ucblib/libucb/port/stdio/
H A Dfopen.c64 oflag = (plus ? O_RDWR : O_WRONLY) | O_TRUNC | O_CREAT; in _endopen()
67 oflag = (plus ? O_RDWR : O_WRONLY) | O_CREAT; in _endopen()
70 oflag = plus ? O_RDWR : O_RDONLY; in _endopen()
/illumos-gate/usr/src/cmd/lp/lib/lp/
H A Dfiles.c138 oflag = plus? O_RDWR : O_WRONLY; in open_locked()
143 oflag = (plus? O_RDWR : O_WRONLY) | O_APPEND; in open_locked()
147 oflag = plus? O_RDWR : O_RDONLY; in open_locked()
176 l.l_type = (oflag & (O_WRONLY|O_RDWR)? F_WRLCK : F_RDLCK); in open_locked()
/illumos-gate/usr/src/test/libc-tests/tests/common/
H A Dopenpty.c32 int mfd = posix_openpt(O_RDWR | O_NOCTTY); in openpty()
53 sfd = open(name, O_RDWR | O_NOCTTY); in openpty()
/illumos-gate/usr/src/test/os-tests/tests/sdevfs/
H A Dsdevfs_eisdir.c60 ret = open(SD_TEST_DIR, O_RDWR, 0); in main()
68 ret = open(SD_TEST_DIR, O_RDWR | O_CREAT, 0); in main()
/illumos-gate/usr/src/test/os-tests/tests/uccid/
H A Dexcl-close.c49 fd = open(argv[1], O_RDWR); in main()
71 fd = open(argv[1], O_RDWR); in main()
H A Dexcl-loop.c45 if ((fd = open(argv[1], O_RDWR)) < 0) { in main()
70 if ((fd = open(argv[1], O_RDWR)) < 0) { in main()
H A Dexcl-nonblock.c66 if ((fda = open(argv[1], O_RDWR)) < 0) { in main()
70 if ((fdb = open(argv[1], O_RDWR)) < 0) { in main()
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/lib/krb5/plugins/kdb/db2/
H A Dadb_openclose.c58 db = dbopen(filename, O_RDWR | O_CREAT | O_EXCL, 0600, DB_BTREE, &btinfo); in osa_adb_create_db()
65 lf = THREEPARAMOPEN(lockfilename, O_RDWR | O_CREAT | O_EXCL, 0600); in osa_adb_create_db()
373 fd = THREEPARAMOPEN(db->lock->filename,O_RDWR | O_CREAT | O_EXCL, in osa_adb_release_lock()
397 db->db = dbopen(db->filename, O_RDWR, 0600, DB_BTREE, &db->btinfo); in osa_adb_open_and_lock()
405 db->db = dbopen(db->filename, O_RDWR, 0600, DB_HASH, &db->info); in osa_adb_open_and_lock()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/features/
H A Dmmap66 if ((fd = open(file, O_RDWR)) < 0)
80 if((fd = open(file, O_RDWR)) < 0)
91 if ((fd = open(file, O_RDWR)) < 0)
163 if (close(fd) < 0 || (fd = open64(file, O_RDWR)) < 0)
215 if((fd = open("/dev/zero", O_RDWR)) < 0)
274 { if((fd = open(file, O_RDWR)) < 0)
289 { if ((fd = open(file, O_RDWR)) < 0)
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dmkstemp.c96 if ((fd = open64(as, O_CREAT|O_EXCL|O_RDWR|flags, in libc_mkstemps()
101 if ((fd = open(as, O_CREAT|O_EXCL|O_RDWR|flags, in libc_mkstemps()
/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/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/cmd/luxadm/
H A Dfcalupdate.c215 if ((fd = open(socal, O_RDWR)) < 0) { in fcal_update()
217 if ((fd = open(socal, O_RDWR)) < 0) { in fcal_update()
237 fd = open(slotname, O_RDWR); in fcal_update()
320 if ((fd = open(socal, O_RDWR)) < 0) { in findversion()
322 if ((fd = open(socal, O_RDWR)) < 0) { in findversion()
371 if ((fd = open(fp, O_RDWR)) < 0) { in findversion()
374 if ((fd = open(fp, O_RDWR)) < 0) { in findversion()
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/recno/
H A Drec_open.c88 O_RDWR | O_BINARY, S_IRUSR | S_IWUSR, &btopeninfo, dflags);
90 dbp = __bt_open(NULL, O_RDWR | O_BINARY, S_IRUSR | S_IWUSR, NULL, dflags);
143 case O_RDWR:
/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/lib/libdtrace/common/
H A Ddlink_common.c140 if ((fd = open64(devname, O_RDWR)) < 0) { in dtrace_link_dof()
152 if ((fd = open64(devname, O_RDWR)) < 0) { in dtrace_link_dof()
/illumos-gate/usr/src/lib/storage/libg_fc/common/
H A Dmpath.c120 if ((fd = g_object_open(VHCI_NODE, O_RDWR)) < 0) { in g_get_lun_str()
289 if ((fd = g_object_open(VHCI_NODE, O_RDWR)) < 0) { in get_pathlist()
538 if ((fd = g_object_open(VHCI_NODE, O_RDWR)) < 0) { in g_get_pathcount()
587 if ((fd = g_object_open(VHCI_NODE, O_RDWR)) < 0) { in g_failover()
671 if ((fd = g_object_open(VHCI_NODE, O_RDWR)) < 0) { in stms_path_enable_disable()
770 if ((fd = g_object_open(VHCI_NODE, O_RDWR)) < 0) { in stms_path_enable_disable_all()
/illumos-gate/usr/src/lib/libnsl/dial/
H A Dcallers.c248 dcf = open(dcname, (O_RDWR | O_NDELAY)); in processdev()
249 saved_mode = O_RDWR | O_NDELAY; in processdev()
251 dcf = open(dcname, O_RDWR); in processdev()
252 saved_mode = O_RDWR; in processdev()
497 fd = t_open(devname, O_RDWR, &tinfo); in tlicall()
/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()
/illumos-gate/usr/src/cmd/mt/
H A Dmt.c50 #define O_UNLOAD (O_RDWR | O_NDELAY)
58 { "weof", MTWEOF, O_RDWR, 1 },
59 { "eof", MTWEOF, O_RDWR, 1 },
70 { "erase", MTERASE, O_RDWR, 0 },
/illumos-gate/usr/src/cmd/bnu/
H A Dcallers.c300 dcf = open(dcname, (O_RDWR | O_NDELAY) );
301 saved_mode = O_RDWR | O_NDELAY;
303 dcf = open(dcname, O_RDWR );
304 saved_mode = O_RDWR;
768 dcr2 = open(dcname,O_RDWR);
886 dcf = open(dcname, O_RDWR);
948 if ( (dcf = open(dcname, O_RDWR | O_NDELAY)) < 0 ) {
975 ret = open(dcname, O_RDWR); /* wait for carrier */
1076 fd = t_open(devname, O_RDWR, &tinfo);

12345678910>>...26