Home
last modified time | relevance | path

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

123456789

/external/openssh/openbsd-compat/
Dbsd-openpty.c83 if ((slave = _getpty(amaster, O_RDWR, 0622, 0)) == NULL) in openpty()
87 if ((*aslave = open(slave, O_RDWR | O_NOCTTY)) == -1) { in openpty()
102 if ((ptm = open("/dev/ptmx", O_RDWR | O_NOCTTY)) == -1) in openpty()
119 if ((*aslave = open(pts, O_RDWR | O_NOCTTY)) == -1) { in openpty()
142 if ((*amaster = open("/dev/ptc", O_RDWR | O_NOCTTY)) == -1) in openpty()
146 if ((*aslave = open(ttname, O_RDWR | O_NOCTTY)) == -1) { in openpty()
166 if ((*amaster = open(ptbuf, O_RDWR|O_NOCTTY)) == -1) in openpty()
169 if ((*aslave = open(ttbuf, O_RDWR|O_NOCTTY)) == -1) { in openpty()
194 if ((*amaster = open(ptbuf, O_RDWR | O_NOCTTY)) == -1) { in openpty()
198 if ((*amaster = open(ptbuf, O_RDWR | O_NOCTTY)) == -1) in openpty()
[all …]
Dport-tun.c64 if ((fd = open("/dev/net/tun", O_RDWR)) == -1) { in sys_tun_open()
137 fd = open(name, O_RDWR); in sys_tun_open()
142 if ((fd = open(name, O_RDWR)) >= 0) in sys_tun_open()
Ddaemon.c71 if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) { in daemon()
/external/dropbear/
Dsshpty.c77 slave = _getpty(ptyfd, O_RDWR, 0622, 0); in pty_allocate()
85 *ttyfd = open(namebuf, O_RDWR | O_NOCTTY); in pty_allocate()
104 ptm = open("/dev/ptmx", O_RDWR | O_NOCTTY); in pty_allocate()
129 *ttyfd = open(namebuf, O_RDWR | O_NOCTTY); in pty_allocate()
162 *ptyfd = open("/dev/ptc", O_RDWR | O_NOCTTY); in pty_allocate()
173 *ttyfd = open(name, O_RDWR | O_NOCTTY); in pty_allocate()
199 *ptyfd = open(buf, O_RDWR | O_NOCTTY); in pty_allocate()
204 *ptyfd = open(buf, O_RDWR | O_NOCTTY); in pty_allocate()
211 *ttyfd = open(namebuf, O_RDWR | O_NOCTTY); in pty_allocate()
278 fd = open(_PATH_TTY, O_RDWR | O_NOCTTY); in pty_make_controlling_tty()
[all …]
/external/yaffs2/yaffs2/direct/
Ddtest.c23 outh = yaffs_open(yaffsName, O_CREAT | O_RDWR | O_TRUNC, S_IREAD | S_IWRITE); in copy_in_a_file()
45 outh = yaffs_open(yaffsName, O_CREAT | O_RDWR | O_TRUNC, S_IREAD | S_IWRITE); in make_a_file()
68 outh = yaffs_open(fn, O_CREAT | O_RDWR | O_TRUNC, S_IREAD | S_IWRITE); in make_pattern_file()
90 h = yaffs_open(fn, O_RDWR,0); in check_pattern_file()
121 h = yaffs_open(fn, O_RDWR,0); in dump_file_data()
173 h = yaffs_open(fn, O_CREAT | O_RDWR | O_TRUNC, S_IREAD | S_IWRITE); in create_file_of_size()
221 h = yaffs_open(fn, O_CREAT | O_RDWR | O_TRUNC, S_IREAD | S_IWRITE); in create_resized_file_of_size()
302 h = yaffs_open(fn, O_CREAT | O_RDWR | O_TRUNC, S_IWRITE | S_IREAD); in yaffs_device_flush_test()
378 h = yaffs_open(str, O_CREAT | O_RDWR | O_TRUNC, S_IREAD | S_IWRITE); in fill_disk()
423 h = yaffs_open(str, O_CREAT | O_TRUNC | O_RDWR,S_IREAD | S_IWRITE); in fill_files()
[all …]
Dyaffsfs.h31 #ifndef O_RDWR
32 #define O_RDWR 02 macro
/external/openssh/
Dsshpty.c115 fd = open(tty, O_RDWR|O_NOCTTY); in pty_make_controlling_tty()
128 fd = open("/dev/tty", O_RDWR); in pty_make_controlling_tty()
137 fd = open(_PATH_TTY, O_RDWR | O_NOCTTY); in pty_make_controlling_tty()
150 fd = open(_PATH_TTY, O_RDWR | O_NOCTTY); in pty_make_controlling_tty()
170 fd = open(tty, O_RDWR); in pty_make_controlling_tty()
/external/dnsmasq/contrib/dynamic-dnsmasq/
Ddynamic-dnsmasq.pl64 my $X = tie my %h, "DB_File", $accountdb, O_RDWR|O_CREAT, 0600, $DB_HASH;
143 my $X = tie my %h, "DB_File", $accountdb, O_RDWR|O_CREAT, 0600, $DB_HASH;
151 my $X = tie my %h, "DB_File", $accountdb, O_RDWR|O_CREAT, 0600, $DB_HASH;
163 my $X = tie my %h, "DB_File", $accountdb, O_RDWR|O_CREAT, 0600, $DB_HASH;
/external/stlport/src/details/
Dfstream_unistd.cpp53 # define O_ACCMODE (O_RDONLY|O_WRONLY|O_RDWR)
89 case O_RDWR: in flag_to_openmode()
180 flags = O_RDWR; in _M_open()
183 flags = O_RDWR | O_CREAT | O_TRUNC; in _M_open()
187 flags = O_RDWR | O_CREAT | O_APPEND; in _M_open()
Dfstream_win32io.cpp40 # define O_ACCMODE (O_RDONLY|O_WRONLY|O_RDWR)
54 case O_RDWR: in flag_to_openmode()
151 mode |= O_RDWR;
186 mode |= O_RDWR;
/external/qemu/
Darm-semi.c90 O_RDWR,
91 O_RDWR | O_BINARY,
94 O_RDWR | O_CREAT | O_TRUNC,
95 O_RDWR | O_CREAT | O_TRUNC | O_BINARY,
98 O_RDWR | O_CREAT | O_APPEND,
99 O_RDWR | O_CREAT | O_APPEND | O_BINARY
Dbt-vhci.c144 fd = open(VHCI_DEV, O_RDWR); in bt_vhci_init()
147 fd = open(VHCI_UDEV, O_RDWR); in bt_vhci_init()
/external/qemu/target-i386/
Dhax-darwin.c24 int fd = open("/dev/HAX", O_RDWR); in hax_mod_open()
178 fd = open(vm_name, O_RDWR); in hax_host_open_vm()
229 fd = open(devfs_path, O_RDWR); in hax_host_open_vcpu()
/external/iproute2/ip/
Diptuntap.c50 int fd = open(TUNDEV, O_RDWR); in tap_add_ioctl()
57 fd = open(TUNDEV, O_RDWR); in tap_add_ioctl()
86 int fd = open(TUNDEV, O_RDWR); in tap_del_ioctl()
/external/valgrind/main/none/tests/
Dfdleak_cmsg.c41 fd1 = DO( open(filea, O_RDWR | O_CREAT | O_TRUNC, 0750) ); in server()
42 fd2 = DO( open(fileb, O_RDWR | O_CREAT | O_TRUNC, 0750) ); in server()
/external/qemu/distrib/sdl-1.2.15/src/video/ipod/
DSDL_ipodvideo.c190 tty0_fd = open("/dev/tty", O_RDWR, 0); in iPod_VideoInit()
201 kbfd = open(vtpath, O_RDWR); in iPod_VideoInit()
256 if ((fbfd = open ("/dev/fb0", O_RDWR)) < 0) { in iPod_VideoInit()
288 fcntl (kbfd, F_SETFL, O_RDWR | O_NONBLOCK); in iPod_VideoInit()
316 if ((fd = open ("/dev/fb0", O_RDWR)) < 0) { in iPod_ListModes()
/external/libselinux/src/
Dcheck_context.c23 fd = open(path, O_RDWR); in security_check_context()
Dload_policy.c30 fd = open(path, O_RDWR); in security_load_policy()
Dsetenforce.c24 fd = open(path, O_RDWR); in security_setenforce()
/external/dhcpcd/
Dbpf.c64 fd = open(_PATH_BPF, O_RDWR | O_NONBLOCK); in open_socket()
72 fd = open(device, O_RDWR | O_NONBLOCK); in open_socket()
/external/webkit/Source/WebKit2/Platform/unix/
DSharedMemoryUnix.cpp196 return O_RDWR; in accessModeFile()
200 return O_RDWR; in accessModeFile()
/external/elfutils/tests/
Drdwrmmap.c11 int fd = open (argv[1], O_RDWR); in main()
/external/e2fsprogs/misc/
Duuidd.c77 open("/dev/null", O_RDWR); in create_daemon()
78 open("/dev/null", O_RDWR); in create_daemon()
79 open("/dev/null", O_RDWR); in create_daemon()
242 fd_pidfile = open(pidfile_path, O_CREAT | O_RDWR, 0664); in server_loop()
/external/qemu/android/utils/
Dmapfile.c42 if ((oflag & O_RDWR) == O_RDWR) { in mapfile_open()
/external/e2fsprogs/include/nonunix/
Dunistd.h13 #define O_RDWR _O_RDWR macro

123456789