/freebsd-12-stable/contrib/pjdfstest/tests/open/ |
H A D | 23.t | 5 desc="open may return EINVAL when an attempt was made to open a descriptor with an illegal combination of O_RDONLY, O_WRONLY, and O_RDWR" 15 expect "0|EINVAL" open ${n0} O_RDONLY,O_RDWR 16 expect "0|EINVAL" open ${n0} O_WRONLY,O_RDWR 17 expect "0|EINVAL" open ${n0} O_RDONLY,O_WRONLY,O_RDWR
|
H A D | 11.t | 28 expect 0 open ${n0} O_RDWR,O_APPEND 30 expect EPERM open ${n0} O_RDWR 38 expect EPERM open ${n0} O_RDWR,O_APPEND,O_TRUNC 47 expect 0 open ${n0} O_RDWR,O_APPEND 49 expect EPERM open ${n0} O_RDWR 53 expect EPERM open ${n0} O_RDWR,O_APPEND,O_TRUNC
|
H A D | 13.t | 20 expect EISDIR open ${n0} O_RDWR 23 expect EISDIR open ${n0} O_RDWR,O_TRUNC
|
H A D | 06.t | 27 expect 0 -u 65534 -g 65534 open ${n1} O_RDWR, 31 expect 0 -u 65533 -g 65534 open ${n1} O_RDWR, 35 expect 0 -u 65533 -g 65533 open ${n1} O_RDWR, 40 expect EACCES -u 65534 -g 65534 open ${n1} O_RDWR, 44 expect EACCES -u 65533 -g 65534 open ${n1} O_RDWR, 48 expect EACCES -u 65533 -g 65533 open ${n1} O_RDWR, 53 expect EACCES -u 65534 -g 65534 open ${n1} O_RDWR, 57 expect EACCES -u 65533 -g 65534 open ${n1} O_RDWR, 61 expect EACCES -u 65533 -g 65533 open ${n1} O_RDWR, 66 expect EACCES -u 65534 -g 65534 open ${n1} O_RDWR, [all...] |
H A D | 10.t | 28 expect EPERM open ${n0} O_RDWR 36 expect 0 open ${n0} O_RDWR 46 expect EPERM open ${n0} O_RDWR 54 expect 0 open ${n0} O_RDWR
|
H A D | 24.t | 31 expect $expected_error open ${n0} O_RDWR
|
/freebsd-12-stable/lib/libutil/tests/ |
H A D | flopen_test.c | 55 fd = flopen(fn, O_RDWR|O_CREAT, 0640); 75 fd = open(fn, O_RDWR|O_CREAT, 0640); 80 fd = flopen(fn, O_RDWR); 102 fd1 = flopen(fn, O_RDWR|O_CREAT, 0640); 106 fd2 = flopen(fn, O_RDWR|O_NONBLOCK); 128 fd1 = flopen(fn, O_RDWR|O_CREAT, 0640); 134 fd2 = flopen(fn, O_RDWR|O_NONBLOCK); 160 fd1 = flopen(fn, O_RDWR|O_CREAT, 0640); 172 if ((fd2 = flopen(fn, O_RDWR|O_NONBLOCK)) != -1) {
|
/freebsd-12-stable/crypto/openssh/openbsd-compat/ |
H A D | bsd-openpty.c | 83 if ((slave = _getpty(amaster, O_RDWR, 0622, 0)) == NULL) 87 if ((*aslave = open(slave, O_RDWR | O_NOCTTY)) == -1) { 102 if ((ptm = open("/dev/ptmx", O_RDWR | O_NOCTTY)) == -1) 119 if ((*aslave = open(pts, O_RDWR | O_NOCTTY)) == -1) { 140 if ((*amaster = open("/dev/ptc", O_RDWR | O_NOCTTY)) == -1) 144 if ((*aslave = open(ttname, O_RDWR | O_NOCTTY)) == -1) { 167 if ((*amaster = open(ptbuf, O_RDWR | O_NOCTTY)) == -1) { 171 if ((*amaster = open(ptbuf, O_RDWR | O_NOCTTY)) == -1) 176 if ((*aslave = open(ttbuf, O_RDWR | O_NOCTTY)) == -1) {
|
H A D | daemon.c | 71 if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) {
|
/freebsd-12-stable/tools/regression/nfsmmap/test1/ |
H A D | test1.c | 17 fd = open("test1.data", O_RDWR|O_CREAT, 0666); 25 fd = open("test1.data", O_RDWR); 40 fd2 = open("test1.scratch", O_RDWR|O_CREAT, 0666);
|
/freebsd-12-stable/tools/regression/nfsmmap/test2/ |
H A D | test2.c | 17 fd = open("test2.data", O_RDWR|O_CREAT, 0666); 25 fd = open("test2.data", O_RDWR); 38 fd2 = open("test2.scratch", O_RDWR|O_CREAT, 0666);
|
/freebsd-12-stable/contrib/pjdfstest/tests/ftruncate/ |
H A D | 13.t | 15 expect EINVAL -- open ${n0} O_RDWR : ftruncate 0 -1
|
H A D | 00.t | 20 expect 0 open ${n0} O_RDWR : ftruncate 0 1234567 27 expect 0 open ${n0} O_RDWR : ftruncate 0 23456 37 expect 0 open ${n0} O_RDWR : ftruncate 0 123 52 expect 0 open ${n0} O_CREAT,O_RDWR 0 : ftruncate 0 0 55 expect 0 -u 65534 open ${n0} O_CREAT,O_RDWR 0 : ftruncate 0 0
|
/freebsd-12-stable/contrib/libpcap/testprogs/ |
H A D | unix.h | 49 #define O_RDWR _O_RDWR macro
|
/freebsd-12-stable/contrib/netbsd-tests/lib/libc/c063/ |
H A D | t_o_search.c | 82 ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1); 87 ATF_REQUIRE((fd = openat(dfd, BASEFILE, O_RDWR, 0)) != -1); 92 ATF_REQUIRE((fd = openat(dfd, BASEFILE, O_RDWR, 0)) == -1); 112 ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1); 117 ATF_REQUIRE((fd = openat(dfd, BASEFILE, O_RDWR, 0)) != -1); 122 ATF_REQUIRE((fd = openat(dfd, BASEFILE, O_RDWR, 0)) != -1); 127 ATF_REQUIRE((fd = openat(dfd, BASEFILE, O_RDWR, 0)) != -1); 144 ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1); 149 ATF_REQUIRE((fd = openat(dfd, BASEFILE, O_RDWR, 0)) != -1); 154 ATF_REQUIRE((fd = openat(dfd, BASEFILE, O_RDWR, [all...] |
H A D | t_symlinkat.c | 66 ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1); 91 ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1); 114 ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1); 135 ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
|
/freebsd-12-stable/contrib/netbsd-tests/fs/psshfs/ |
H A D | h_have_puffs.c | 39 fd = open("/dev/puffs", O_RDWR);
|
/freebsd-12-stable/contrib/pjdfstest/tests/chmod/ |
H A D | 12.t | 28 expect 0777 -u 65534 -g 65534 open ${n0} O_RDWR : write 0 x : fstat 0 mode 34 expect 0777 -u 65534 -g 65534 open ${n0} O_RDWR : write 0 x : fstat 0 mode
|
/freebsd-12-stable/contrib/ipfilter/lib/ |
H A D | poolio.c | 26 poolfd = open(IPLOOKUP_NAME, O_RDWR);
|
/freebsd-12-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/io/ |
H A D | tst.fds.c | 82 fds[n++] = open(file, O_RDWR); 84 fds[n++] = open(file, O_RDWR | O_APPEND | O_CREAT | 87 fds[n++] = open(file, O_RDWR);
|
/freebsd-12-stable/tools/regression/priv/ |
H A D | priv_vfs_read_write.c | 148 try_io("priv_vfs_readwrite_fowner(none, O_RDWR)", fpath_none, 149 asroot, injail, O_RDWR, asroot ? 0 : -1, EACCES); 155 try_io("priv_vfs_readwrite_fowner(read, O_RDWR)", fpath_read, 156 asroot, injail, O_RDWR, asroot ? 0 : -1, EACCES); 162 try_io("priv_vfs_readwrite_fowner(write, O_RDWR)", fpath_write, 163 asroot, injail, O_RDWR, asroot ? 0 : -1, EACCES); 169 try_io("priv_vfs_readwrite_fowner(write, O_RDWR)", fpath_readwrite, 170 asroot, injail, O_RDWR, 0, 0); 181 try_io("priv_vfs_readwrite_fgroup(none, O_RDWR)", fpath_none, 182 asroot, injail, O_RDWR, asroo [all...] |
/freebsd-12-stable/contrib/netbsd-tests/kernel/tty/ |
H A D | t_pr.c | 111 slave = rump_sys_open("/dev/ttyp1", O_RDWR|O_NONBLOCK); 114 master = rump_sys_open("/dev/ptyp1", O_RDWR); 139 master = rump_sys_open("/dev/ptyp1", O_RDWR); 142 slave = rump_sys_open("/dev/ttyp1", O_RDWR); 166 fd = rump_sys_open("/dev/ptyp1", O_RDWR);
|
/freebsd-12-stable/contrib/binutils/bfd/ |
H A D | sysdep.h | 97 #ifndef O_RDWR 98 #define O_RDWR 2 macro 101 #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
|
/freebsd-12-stable/tools/regression/ufs/uprintf/ |
H A D | ufs_uprintf.c | 74 fd = open(BLOCKS_FILENAME, O_CREAT | O_TRUNC | O_RDWR, 0600); 140 fd = open(path, O_CREAT | O_TRUNC | O_RDWR, 0600); 153 fd = open(path, O_CREAT | O_TRUNC | O_RDWR, 0600);
|
/freebsd-12-stable/contrib/netbsd-tests/fs/vfs/ |
H A D | t_io.c | 57 RL(fd = rump_sys_open("file", O_RDWR|O_CREAT|O_TRUNC, 0666)); 88 O_CREAT | O_RDWR | (seekcnt ? O_APPEND : 0))); 125 RL(fd = rump_sys_open("testi", O_CREAT | O_RDWR, 0666)); 129 RL(fd = rump_sys_open("testi", O_RDWR)); 164 RL(fd = rump_sys_open("file", O_RDWR|O_CREAT|O_TRUNC, 0666)); 181 RL(fd = rump_sys_open("file", O_RDWR|O_CREAT, 0666)); 189 RL(fd = rump_sys_open("file", O_RDWR)); 208 RL(fd = rump_sys_open("file", O_RDWR|O_CREAT, 0666)); 232 RL(fd = rump_sys_open("file", O_CREAT | O_RDWR, 0777));
|