/freebsd-11-stable/contrib/pjdfstest/tests/open/ |
H A D | 18.t | 16 expect 0 open ${n0} O_RDONLY,O_SHLOCK : open ${n0} O_RDONLY,O_SHLOCK,O_NONBLOCK 17 expect "EWOULDBLOCK|EAGAIN" open ${n0} O_RDONLY,O_EXLOCK : open ${n0} O_RDONLY,O_EXLOCK,O_NONBLOCK 18 expect "EWOULDBLOCK|EAGAIN" open ${n0} O_RDONLY,O_SHLOCK : open ${n0} O_RDONLY,O_EXLOCK,O_NONBLOCK 19 expect "EWOULDBLOCK|EAGAIN" open ${n0} O_RDONLY,O_EXLOCK : open ${n0} O_RDONLY,O_SHLOCK,O_NONBLOCK
|
H A D | 21.t | 11 expect EFAULT open NULL O_RDONLY 12 expect EFAULT open DEADCODE O_RDONLY
|
H A D | 07.t | 22 expect EACCES -u 65534 -g 65534 open ${n1} O_RDONLY,O_TRUNC 24 expect EACCES -u 65533 -g 65534 open ${n1} O_RDONLY,O_TRUNC 26 expect EACCES -u 65533 -g 65533 open ${n1} O_RDONLY,O_TRUNC 29 expect EACCES -u 65534 -g 65534 open ${n1} O_RDONLY,O_TRUNC 31 expect EACCES -u 65533 -g 65534 open ${n1} O_RDONLY,O_TRUNC 33 expect EACCES -u 65533 -g 65533 open ${n1} O_RDONLY,O_TRUNC 36 expect EACCES -u 65534 -g 65534 open ${n1} O_RDONLY,O_TRUNC 38 expect EACCES -u 65533 -g 65534 open ${n1} O_RDONLY,O_TRUNC 40 expect EACCES -u 65533 -g 65533 open ${n1} O_RDONLY,O_TRUNC
|
H A D | 09.t | 27 expect 0 open ${n0}/${n1} O_RDONLY,O_CREAT 0644 31 expect EPERM open ${n0}/${n1} O_RDONLY,O_CREAT 0644 33 expect 0 open ${n0}/${n1} O_RDONLY,O_CREAT 0644 37 expect 0 open ${n0}/${n1} O_RDONLY,O_CREAT 0644 42 expect 0 open ${n0}/${n1} O_RDONLY,O_CREAT 0644 49 expect EPERM open ${n0}/${n1} O_RDONLY,O_CREAT 0644 51 expect 0 open ${n0}/${n1} O_RDONLY,O_CREAT 0644 60 expect 0 open ${n0}/${n1} O_RDONLY,O_CREAT 0644
|
H A D | 12.t | 16 expect ELOOP open ${n0}/test O_RDONLY 17 expect ELOOP open ${n1}/test O_RDONLY
|
H A D | 23.t | 4 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" 14 expect "0|EINVAL" open ${n0} O_RDONLY,O_RDWR 16 expect "0|EINVAL" open ${n0} O_RDONLY,O_WRONLY,O_RDWR
|
H A D | 06.t | 24 expect 0 -u 65534 -g 65534 open ${n1} O_RDONLY, 28 expect 0 -u 65533 -g 65534 open ${n1} O_RDONLY, 32 expect 0 -u 65533 -g 65533 open ${n1} O_RDONLY, 37 expect 0 -u 65534 -g 65534 open ${n1} O_RDONLY, 41 expect 0 -u 65533 -g 65534 open ${n1} O_RDONLY, 45 expect 0 -u 65533 -g 65533 open ${n1} O_RDONLY, 50 expect EACCES -u 65534 -g 65534 open ${n1} O_RDONLY, 54 expect EACCES -u 65533 -g 65534 open ${n1} O_RDONLY, 58 expect EACCES -u 65533 -g 65533 open ${n1} O_RDONLY, 63 expect EACCES -u 65534 -g 65534 open ${n1} O_RDONLY, [all...] |
H A D | 05.t | 21 expect 0 -u 65534 -g 65534 open ${n1}/${n2} O_RDONLY 23 expect EACCES -u 65534 -g 65534 open ${n1}/${n2} O_RDONLY 25 expect 0 -u 65534 -g 65534 open ${n1}/${n2} O_RDONLY
|
H A D | 04.t | 16 expect ENOENT open ${n0}/${n1} O_RDONLY
|
H A D | 08.t | 17 expect EACCES -u 65534 -g 65534 open ${n1} O_RDONLY,O_CREAT 0644
|
H A D | 24.t | 14 expect "EOPNOTSUPP" open ${n0} O_RDONLY
|
H A D | 13.t | 17 expect 0 open ${n0} O_RDONLY 20 expect EISDIR open ${n0} O_RDONLY,O_TRUNC
|
H A D | 16.t | 23 expect $error open ${n1} O_RDONLY,O_CREAT,O_NOFOLLOW 0644 24 expect $error open ${n1} O_RDONLY,O_NOFOLLOW
|
H A D | 01.t | 17 expect ENOTDIR open ${n0}/${n1}/test O_RDONLY
|
H A D | 10.t | 28 expect EPERM open ${n0} O_RDONLY,O_TRUNC 36 expect 0 open ${n0} O_RDONLY,O_TRUNC 46 expect EPERM open ${n0} O_RDONLY,O_TRUNC 54 expect 0 open ${n0} O_RDONLY,O_TRUNC
|
/freebsd-11-stable/contrib/mdocml/ |
H A D | test-O_DIRECTORY.c | 6 return open(".", O_RDONLY | O_DIRECTORY) == -1;
|
/freebsd-11-stable/tools/regression/security/cap_test/ |
H A D | cap_test_relative.c | 63 REQUIRE(etc = open("/etc/", O_RDONLY)); 76 CHECK_SYSCALL_SUCCEEDS(openat, etc, "/etc/passwd", O_RDONLY); 77 CHECK_SYSCALL_SUCCEEDS(openat, AT_FDCWD, "/etc/passwd", O_RDONLY); 78 CHECK_SYSCALL_SUCCEEDS(openat, etc, "passwd", O_RDONLY); 79 CHECK_SYSCALL_SUCCEEDS(openat, etc, "../etc/passwd", O_RDONLY); 86 CHECK_SYSCALL_SUCCEEDS(openat, etc_cap_ro, "passwd", O_RDONLY); 87 CHECK_SYSCALL_SUCCEEDS(openat, etc_cap_base, "passwd", O_RDONLY); 88 CHECK_SYSCALL_SUCCEEDS(openat, etc_cap_all, "passwd", O_RDONLY); 90 CHECK_NOTCAPABLE(openat, etc_cap_ro, "../etc/passwd", O_RDONLY); 91 CHECK_NOTCAPABLE(openat, etc_cap_base, "../etc/passwd", O_RDONLY); [all...] |
/freebsd-11-stable/cddl/compat/opensolaris/include/ |
H A D | libproc.h | 41 #define PGRAB_RDONLY O_RDONLY
|
/freebsd-11-stable/contrib/groff/src/include/ |
H A D | posix.h | 57 #ifndef O_RDONLY 58 #define O_RDONLY 0 macro
|
/freebsd-11-stable/lib/libkvm/tests/ |
H A D | kvm_open_test.c | 48 ATF_CHECK(kvm_open(NULL, "/nonexistent", NULL, O_RDONLY, NULL) == NULL); 49 ATF_CHECK(kvm_open(NULL, "/nonexistent", NULL, O_RDONLY, 57 ATF_CHECK(kvm_open("/nonexistent", _PATH_DEVZERO, NULL, O_RDONLY, 59 ATF_CHECK(kvm_open("/nonexistent", _PATH_DEVZERO, NULL, O_RDONLY, 75 kd = kvm_open(NULL, "some-file", NULL, O_RDONLY, getprogname()); 91 kd = kvm_open("some-file", "/bin/sh", NULL, O_RDONLY, getprogname());
|
H A D | kvm_open2_test.c | 49 ATF_CHECK(kvm_open2(NULL, "/nonexistent", O_RDONLY, NULL, NULL) == NULL); 52 ATF_CHECK(kvm_open2(NULL, "/nonexistent", O_RDONLY, 62 ATF_CHECK(kvm_open2("/nonexistent", _PATH_DEVZERO, O_RDONLY, 66 ATF_CHECK(kvm_open2("/nonexistent", _PATH_DEVZERO, O_RDONLY, 84 kd = kvm_open2(NULL, "some-file", O_RDONLY, errbuf, NULL); 102 kd = kvm_open2("some-file", "/bin/sh", O_RDONLY, errbuf, NULL);
|
/freebsd-11-stable/crypto/openssl/util/ |
H A D | copy-if-different.pl | 53 sysopen(IN, $_, O_RDONLY|O_BINARY) || die "Can't Open $_"; 54 sysopen(OUT, $dfile, O_RDONLY|O_BINARY) 68 sysopen(IN, $_, O_RDONLY|O_BINARY) || die "Can't Open $_";
|
/freebsd-11-stable/stand/libsa/ |
H A D | stat.c | 46 fd = open(str, O_RDONLY);
|
/freebsd-11-stable/contrib/libpcap/testprogs/ |
H A D | unix.h | 47 #define O_RDONLY _O_RDONLY macro
|
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/c063/ |
H A D | t_openat.c | 64 ATF_REQUIRE((dfd = open(DIR, O_RDONLY, 0)) != -1); 65 ATF_REQUIRE((fd = openat(dfd, BASEFILE, O_RDONLY, 0)) != -1); 85 ATF_REQUIRE((fd = openat(AT_FDCWD, BASEFILE, O_RDONLY, 0)) != -1); 100 ATF_REQUIRE((fd = openat(AT_FDCWD, FILEERR, O_RDONLY, 0)) == -1); 114 ATF_REQUIRE((dfd = open(DIR, O_RDONLY, 0)) != -1); 115 ATF_REQUIRE((fd = openat(dfd, FILEERR, O_RDONLY, 0)) == -1); 134 ATF_REQUIRE((dfd = open(getcwd(cwd, MAXPATHLEN), O_RDONLY, 0)) != -1); 135 ATF_REQUIRE((fd = openat(dfd, BASEFILE, O_RDONLY, 0)) == -1); 152 ATF_REQUIRE((fd = openat(-1, FILE, O_RDONLY, 0)) == -1);
|