Home
last modified time | relevance | path

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

12345678910>>...26

/titanic_41/usr/src/cmd/ssh/sshd/
H A Dsshpty.c77 slave = _getpty(ptyfd, O_RDWR, 0622, 0); in pty_allocate()
84 *ttyfd = open(namebuf, O_RDWR | O_NOCTTY); in pty_allocate()
101 ptm = open("/dev/ptmx", O_RDWR | O_NOCTTY); in pty_allocate()
123 *ttyfd = open(namebuf, O_RDWR | O_NOCTTY); in pty_allocate()
149 *ptyfd = open("/dev/ptc", O_RDWR | O_NOCTTY); in pty_allocate()
158 *ttyfd = open(name, O_RDWR | O_NOCTTY); in pty_allocate()
182 *ptyfd = open(buf, O_RDWR|O_NOCTTY); in pty_allocate()
187 *ttyfd = open(namebuf, O_RDWR|O_NOCTTY); in pty_allocate()
212 *ptyfd = open(buf, O_RDWR | O_NOCTTY); in pty_allocate()
217 *ptyfd = open(buf, O_RDWR | O_NOCTTY); in pty_allocate()
[all …]
/titanic_41/usr/src/cmd/sendmail/libsm/
H A Dstdio.c74 oflags = O_RDWR;
77 oflags = O_RDWR | O_CREAT | O_TRUNC;
89 oflags = O_APPEND | O_RDWR | O_CREAT;
417 oflags = O_RDWR | O_CREAT;
429 oflags = O_APPEND | O_RDWR | O_CREAT;
444 if (tmp != O_RDWR && (tmp != (oflags & O_ACCMODE)))
505 case O_RDWR:
/titanic_41/usr/src/lib/libbc/libc/stdio/4.2/
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()
/titanic_41/usr/src/lib/libbc/libc/stdio/sys5/
H A Dfopen.c58 oflag = (plus ? O_RDWR : O_WRONLY) | O_TRUNC | O_CREAT; in _endopen()
61 oflag = (plus ? O_RDWR : O_WRONLY) | O_APPEND | O_CREAT; in _endopen()
64 oflag = plus ? O_RDWR : O_RDONLY; in _endopen()
/titanic_41/usr/src/cmd/dtrace/test/tst/common/io/
H A Dtst.fds.c81 fds[n++] = open(file, O_RDWR); in main()
83 fds[n++] = open(file, O_RDWR | O_APPEND | O_CREAT | O_DSYNC | in main()
87 fds[n++] = open(file, O_RDWR); in main()
/titanic_41/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()
/titanic_41/usr/src/cmd/lp/lib/lp/
H A Dfiles.c139 oflag = plus? O_RDWR : O_WRONLY; in open_locked()
144 oflag = (plus? O_RDWR : O_WRONLY) | O_APPEND; in open_locked()
148 oflag = plus? O_RDWR : O_RDONLY; in open_locked()
177 l.l_type = (oflag & (O_WRONLY|O_RDWR)? F_WRLCK : F_RDLCK); in open_locked()
/titanic_41/usr/src/lib/krb5/plugins/kdb/db2/
H A Dadb_openclose.c65 db = dbopen(filename, O_RDWR | O_CREAT | O_EXCL, 0600, DB_BTREE, &btinfo); in osa_adb_create_db()
72 lf = THREEPARAMOPEN(lockfilename, O_RDWR | O_CREAT | O_EXCL, 0600); in osa_adb_create_db()
380 fd = THREEPARAMOPEN(db->lock->filename,O_RDWR | O_CREAT | O_EXCL, in osa_adb_release_lock()
404 db->db = dbopen(db->filename, O_RDWR, 0600, DB_BTREE, &db->btinfo); in osa_adb_open_and_lock()
412 db->db = dbopen(db->filename, O_RDWR, 0600, DB_HASH, &db->info); in osa_adb_open_and_lock()
/titanic_41/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()
/titanic_41/usr/src/lib/libast/common/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)
/titanic_41/usr/src/cmd/print/conv_fix/
H A Dconv_fix.c122 fd = open(ofile, O_RDWR|O_APPEND); in main()
124 fd = open(ofile, O_RDWR|O_CREAT|O_EXCL, 0644); in main()
/titanic_41/usr/src/lib/libbc/inc/include/sys/
H A Dfcntlcom.h61 #define O_ACCMODE (O_RDONLY|O_WRONLY|O_RDWR)
70 #define O_RDWR 2 /* +1 == FREAD|FWRITE */ macro
/titanic_41/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()
/titanic_41/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()
/titanic_41/usr/src/lib/krb5/plugins/kdb/db2/libdb2/recno/
H A Drec_open.c90 O_RDWR | O_BINARY, S_IRUSR | S_IWUSR, &btopeninfo, dflags);
92 dbp = __bt_open(NULL, O_RDWR | O_BINARY, S_IRUSR | S_IWUSR, NULL, dflags);
145 case O_RDWR:
/titanic_41/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()
/titanic_41/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()
/titanic_41/usr/src/lib/libtnfprobe/
H A Dtrace_init.c172 fd = open(tnf_trace_file_name, O_RDWR, TNF_FILE_MODE); in _tnf_trace_initialize()
185 O_CREAT | O_RDWR | O_TRUNC, TNF_FILE_MODE); in _tnf_trace_initialize()
/titanic_41/usr/src/lib/libdscfg/common/
H A Dcfg_lockdlck.c49 local_lockfd = open(CFG_RDEV_LOCKFILE, O_RDWR|O_CREAT, 0644); in cfg_lfinit()
50 local_lockfda = open(CFG_RDEV_LOCKFILE, O_RDWR|O_APPEND, 0644); in cfg_lfinit()
/titanic_41/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()
/titanic_41/usr/src/cmd/mt/
H A Dmt.c52 #define O_UNLOAD (O_RDWR | O_NDELAY)
60 { "weof", MTWEOF, O_RDWR, 1 },
61 { "eof", MTWEOF, O_RDWR, 1 },
72 { "erase", MTERASE, O_RDWR, 0 },
/titanic_41/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()
/titanic_41/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()
291 if ((fd = g_object_open(VHCI_NODE, O_RDWR)) < 0) { in get_pathlist()
540 if ((fd = g_object_open(VHCI_NODE, O_RDWR)) < 0) { in g_get_pathcount()
589 if ((fd = g_object_open(VHCI_NODE, O_RDWR)) < 0) { in g_failover()
673 if ((fd = g_object_open(VHCI_NODE, O_RDWR)) < 0) { in stms_path_enable_disable()
772 if ((fd = g_object_open(VHCI_NODE, O_RDWR)) < 0) { in stms_path_enable_disable_all()
/titanic_41/usr/src/lib/libdevice/
H A Ddevctl.c119 oflags = ((flags & DC_EXCL) != 0) ? O_EXCL|O_RDWR : O_RDWR; in devctl_bus_acquire()
142 oflags = ((flags & DC_EXCL) != 0) ? O_EXCL|O_RDWR : O_RDWR; in devctl_device_acquire()
169 oflags |= ((flags & DC_RDONLY) != 0) ? O_RDONLY : O_RDWR; in devctl_ap_acquire()
194 oflags = ((flags & DC_EXCL) != 0) ? (O_EXCL | O_RDWR) : O_RDWR; in devctl_pm_bus_acquire()
218 oflags = ((flags & DC_EXCL) != 0) ? (O_EXCL | O_RDWR) : O_RDWR; in devctl_pm_dev_acquire()
/titanic_41/usr/src/cmd/bnu/
H A Dcallers.c304 dcf = open(dcname, (O_RDWR | O_NDELAY) );
305 saved_mode = O_RDWR | O_NDELAY;
307 dcf = open(dcname, O_RDWR );
308 saved_mode = O_RDWR;
772 dcr2 = open(dcname,O_RDWR);
890 dcf = open(dcname, O_RDWR);
952 if ( (dcf = open(dcname, O_RDWR | O_NDELAY)) < 0 ) {
979 ret = open(dcname, O_RDWR); /* wait for carrier */
1080 fd = t_open(devname, O_RDWR, &tinfo);

12345678910>>...26