/openbsd/regress/sys/ffs/tests/open/ |
H A D | 06.t | 17 expect 0 -u 65534 -g 65534 open ${n1} O_RDONLY 21 expect 0 -u 65533 -g 65534 open ${n1} O_RDONLY 25 expect 0 -u 65533 -g 65533 open ${n1} O_RDONLY 30 expect 0 -u 65534 -g 65534 open ${n1} O_RDONLY 34 expect 0 -u 65533 -g 65534 open ${n1} O_RDONLY 38 expect 0 -u 65533 -g 65533 open ${n1} O_RDONLY 43 expect EACCES -u 65534 -g 65534 open ${n1} O_RDONLY 47 expect EACCES -u 65533 -g 65534 open ${n1} O_RDONLY 51 expect EACCES -u 65533 -g 65533 open ${n1} O_RDONLY 56 expect EACCES -u 65534 -g 65534 open ${n1} O_RDONLY [all …]
|
H A D | 18.t | 9 expect 0 open ${n0} O_RDONLY,O_SHLOCK : open ${n0} O_RDONLY,O_SHLOCK,O_NONBLOCK 10 expect "EWOULDBLOCK|EAGAIN" open ${n0} O_RDONLY,O_EXLOCK : open ${n0} O_RDONLY,O_EXLOCK,O_NONBLOCK 11 expect "EWOULDBLOCK|EAGAIN" open ${n0} O_RDONLY,O_SHLOCK : open ${n0} O_RDONLY,O_EXLOCK,O_NONBLOCK 12 expect "EWOULDBLOCK|EAGAIN" open ${n0} O_RDONLY,O_EXLOCK : open ${n0} O_RDONLY,O_SHLOCK,O_NONBLOCK
|
H A D | 07.t | 17 expect EACCES -u 65534 -g 65534 open ${n1} O_RDONLY,O_TRUNC 19 expect EACCES -u 65533 -g 65534 open ${n1} O_RDONLY,O_TRUNC 21 expect EACCES -u 65533 -g 65533 open ${n1} O_RDONLY,O_TRUNC 24 expect EACCES -u 65534 -g 65534 open ${n1} O_RDONLY,O_TRUNC 26 expect EACCES -u 65533 -g 65534 open ${n1} O_RDONLY,O_TRUNC 28 expect EACCES -u 65533 -g 65533 open ${n1} O_RDONLY,O_TRUNC 31 expect EACCES -u 65534 -g 65534 open ${n1} O_RDONLY,O_TRUNC 33 expect EACCES -u 65533 -g 65534 open ${n1} O_RDONLY,O_TRUNC 35 expect EACCES -u 65533 -g 65533 open ${n1} O_RDONLY,O_TRUNC
|
H A D | 09.t | 11 expect 0 open ${n0}/${n1} O_RDONLY,O_CREAT 0644 15 expect EPERM open ${n0}/${n1} O_RDONLY,O_CREAT 0644 17 expect 0 open ${n0}/${n1} O_RDONLY,O_CREAT 0644 21 expect EPERM open ${n0}/${n1} O_RDONLY,O_CREAT 0644 23 expect 0 open ${n0}/${n1} O_RDONLY,O_CREAT 0644 27 expect 0 open ${n0}/${n1} O_RDONLY,O_CREAT 0644 32 expect 0 open ${n0}/${n1} O_RDONLY,O_CREAT 0644
|
H A D | 11.t | 14 expect EPERM open ${n0} O_RDONLY,O_TRUNC 15 expect EPERM open ${n0} O_RDONLY,O_APPEND,O_TRUNC 27 expect EPERM open ${n0} O_RDONLY,O_TRUNC 28 expect EPERM open ${n0} O_RDONLY,O_APPEND,O_TRUNC
|
H A D | 05.t | 16 expect 0 -u 65534 -g 65534 open ${n1}/${n2} O_RDONLY 18 expect EACCES -u 65534 -g 65534 open ${n1}/${n2} O_RDONLY 20 expect 0 -u 65534 -g 65534 open ${n1}/${n2} O_RDONLY
|
H A D | 21.t | 6 expect EFAULT open NULL O_RDONLY 7 expect EFAULT open DEADCODE O_RDONLY
|
H A D | 12.t | 11 expect ELOOP open ${n0}/test O_RDONLY 12 expect ELOOP open ${n1}/test O_RDONLY
|
H A D | 16.t | 10 expect EMLINK open ${n1} O_RDONLY,O_CREAT,O_NOFOLLOW 0644 11 expect EMLINK open ${n1} O_RDONLY,O_NOFOLLOW
|
/openbsd/regress/sys/kern/unveil/ |
H A D | syscalls.c | 64 UV_SHOULD_ENOENT((openat(slashbefore, "etc/hosts", O_RDONLY) == -1), "openat"); in test_openat() 68 UV_SHOULD_ENOENT((openat(dirfd1before, "/etc/hosts", O_RDONLY) == -1), "openat"); in test_openat() 78 UV_SHOULD_ENOENT((openat(dirfd1after, "/etc/hosts", O_RDONLY) == -1), "openat"); in test_openat() 104 UV_SHOULD_SUCCEED(((dirfd = open("/", O_RDONLY | O_DIRECTORY)) == -1), "open"); in test_open() 249 UV_SHOULD_SUCCEED((open(uv_file1, O_RDONLY) == -1), "open"); in test_r() 265 UV_SHOULD_SUCCEED((open(uv_file1, O_RDONLY) == -1), "open"); in test_rw() 281 UV_SHOULD_EACCES((open(uv_file1, O_RDONLY) == -1), "open"); in test_x() 282 UV_SHOULD_EACCES((open(uv_file1, O_RDONLY) == -1), "open"); in test_x() 464 if ((dirfd1 = open(uv_dir1, O_RDONLY | O_DIRECTORY)) == -1) in test_rename() 466 if ((dirfd2 = open(uv_dir2, O_RDONLY | O_DIRECTORY)) == -1) in test_rename() [all …]
|
/openbsd/regress/lib/libpthread/blocked_fifo/ |
H A D | blocked_fifo.c | 55 CHECKe(fd = open(FILE, O_RDONLY)); in fifo_deadlocker() 75 CHECKe(fd = open(FILE, O_RDONLY)); in fifo_closer() 110 CHECKe(fd = open(FIFO, O_RDONLY)); in main() 128 free_fd = open("/dev/null", O_RDONLY); in main() 133 CHECKe(fd = open(FIFO, O_RDONLY)); in main()
|
/openbsd/regress/lib/libc/sys/ |
H A D | t_chroot.c | 83 fd = open("file", O_RDONLY | O_CREAT, 0600); in ATF_TC_BODY() 102 fd = open(buf, O_RDONLY); in ATF_TC_BODY() 192 fd = open(buf, O_RDONLY); in ATF_TC_BODY() 206 fd = open("file", O_RDONLY | O_CREAT, 0600); in ATF_TC_BODY() 225 fd = open(buf, O_RDONLY); in ATF_TC_BODY() 245 fd = open("/etc/passwd", O_RDONLY); in ATF_TC_BODY() 275 fd = open(buf, O_RDONLY); in ATF_TC_BODY()
|
H A D | t_dup.c | 56 int mode[3] = { O_RDONLY, O_WRONLY, O_RDWR }; in check_mode() 71 fd2 = open("/etc/passwd", O_RDONLY); in check_mode() 115 fd1 = open("/etc/passwd", O_RDONLY); in ATF_TC_BODY() 116 fd2 = open("/etc/passwd", O_RDONLY); in ATF_TC_BODY() 143 fd = open("/etc/passwd", O_RDONLY); in ATF_TC_BODY() 208 fd = open("/etc/passwd", O_RDONLY); in ATF_TC_BODY() 340 buf[i] = open(path, O_RDONLY);
|
/openbsd/gnu/usr.bin/binutils/gdb/testsuite/gdb.base/ |
H A D | fileio.c | 99 ret = open (NONEXISTANT, O_RDONLY); in test_open() 106 ret = open (NOWRITE, O_CREAT | O_RDONLY, S_IRUSR); in test_open() 146 fd = open (FILENAME, O_RDONLY); in test_write() 166 fd = open (FILENAME, O_RDONLY); in test_read() 196 fd = open (FILENAME, O_RDONLY); in test_lseek() 230 fd = open (FILENAME, O_RDONLY); in test_close() 286 fd = open (FILENAME, O_RDONLY); in test_fstat() 319 fd = open (FILENAME, O_RDONLY); in test_isatty() 414 ret = open (name, O_CREAT | O_RDONLY, S_IRUSR | S_IWUSR); in test_unlink()
|
/openbsd/regress/sys/kern/pledge/sendrecvfd/ |
H A D | sendrecvfd.c | 187 if ((fd = open("/etc/passwd", O_RDONLY)) == -1) in main() 191 if ((fd = open("/dev", O_RDONLY)) == -1) in main() 195 if ((fd = open("/dev/vnd0c", O_RDONLY)) == -1) in main() 199 if ((fd = open("/dev/null", O_RDONLY)) == -1) in main() 203 if ((fd = open("/etc/termcap", O_RDONLY)) == -1) in main() 220 if ((fd = open("fifo", O_RDONLY|O_NONBLOCK)) == -1) in main()
|
/openbsd/gnu/usr.bin/perl/ext/SDBM_File/ |
H A D | dbu.c | 38 "fetch", DLOOK, O_RDONLY, 39 "get", DLOOK, O_RDONLY, 40 "look", DLOOK, O_RDONLY, 46 "dump", DCAT, O_RDONLY, 47 "list", DCAT, O_RDONLY, 48 "cat", DCAT, O_RDONLY,
|
/openbsd/gnu/usr.bin/binutils/bfd/ |
H A D | sysdep.h | 86 #ifndef O_RDONLY 87 #define O_RDONLY 0 macro 96 #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
|
/openbsd/gnu/usr.bin/binutils-2.17/bfd/ |
H A D | sysdep.h | 91 #ifndef O_RDONLY 92 #define O_RDONLY 0 macro 101 #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
|
/openbsd/gnu/usr.sbin/mkhybrid/src/include/ |
H A D | fctldefs.h | 47 #ifndef O_RDONLY 48 #define O_RDONLY 0 macro
|
/openbsd/gnu/usr.bin/perl/cpan/autodie/t/ |
H A D | sysopen.t | 12 sysopen($fh, $0, O_RDONLY); 20 sysopen(my $fh2, NO_SUCH_FILE, O_RDONLY);
|
/openbsd/lib/libutil/ |
H A D | readlabel.c | 62 if ((fd = open("/dev/diskmap", O_RDONLY|O_CLOEXEC)) != -1) { in readlabelfs() 108 fd = open(rpath, O_RDONLY|O_CLOEXEC); in readlabelfs() 113 fd = open(rpath, O_RDONLY|O_CLOEXEC); in readlabelfs()
|
/openbsd/regress/sys/kern/pledge/filedescriptor/ |
H A D | dev.c | 37 if (open(devpre, O_RDONLY) == -1) in fdops() 39 if (open(devpost, O_RDONLY) == -1) in fdops()
|
H A D | main.c | 33 if ((fdpre = open("/dev/null", O_RDONLY)) == -1) in main() 37 if ((fdpost = open("/dev/null", O_RDONLY)) == -1) in main()
|
/openbsd/usr.bin/ssh/ |
H A D | ssh-keysign.c | 199 key_fd[i++] = open(_PATH_HOST_DSA_KEY_FILE, O_RDONLY); in main() 201 key_fd[i++] = open(_PATH_HOST_ECDSA_KEY_FILE, O_RDONLY); in main() 202 key_fd[i++] = open(_PATH_HOST_ED25519_KEY_FILE, O_RDONLY); in main() 203 key_fd[i++] = open(_PATH_HOST_XMSS_KEY_FILE, O_RDONLY); in main() 204 key_fd[i++] = open(_PATH_HOST_RSA_KEY_FILE, O_RDONLY); in main()
|
/openbsd/regress/sys/dev/fdesc/ |
H A D | confuse.c | 20 if ((fd = open("/dev/null", O_RDONLY)) < 0) in main() 28 if ((newfd = open(fname, O_RDONLY)) == fd) in main()
|