/external/ltp/testcases/kernel/security/tomoyo/ |
D | tomoyo_rewrite_test.c | 71 close(open(REWRITE_PATH, O_WRONLY | O_APPEND | O_CREAT, 0600)); in stage_rewrite_test() 82 fd = open(REWRITE_PATH, O_WRONLY | O_APPEND); in stage_rewrite_test() 88 fd = open(REWRITE_PATH, O_WRONLY); in stage_rewrite_test() 93 fd = open(REWRITE_PATH, O_WRONLY | O_TRUNC); in stage_rewrite_test() 98 fd = open(REWRITE_PATH, O_WRONLY | O_TRUNC | O_APPEND); in stage_rewrite_test() 105 fd = open(REWRITE_PATH, O_WRONLY | O_APPEND); in stage_rewrite_test() 127 fd = open(REWRITE_PATH, O_WRONLY | O_APPEND); in stage_rewrite_test() 132 fd = open(REWRITE_PATH, O_WRONLY); in stage_rewrite_test() 137 fd = open(REWRITE_PATH, O_WRONLY | O_TRUNC); in stage_rewrite_test() 142 fd = open(REWRITE_PATH, O_WRONLY | O_TRUNC | O_APPEND); in stage_rewrite_test() [all …]
|
D | tomoyo_new_file_test.c | 252 fd = open(filename, O_WRONLY); in stage_file_test() 257 fd = open(filename, O_WRONLY); in stage_file_test() 289 fd = open("/dev/null", O_WRONLY); in stage_file_test() 294 fd = open("/dev/null", O_WRONLY); in stage_file_test() 315 fd = open("/tmp/open_test", O_WRONLY | O_CREAT | O_EXCL, 0644); in stage_file_test() 321 fd = open("/tmp/open_test", O_WRONLY | O_CREAT | O_EXCL, 0644); in stage_file_test() 334 fd = open("/tmp/open_test", O_WRONLY | O_CREAT | O_EXCL, 0644); in stage_file_test() 340 fd = open("/tmp/open_test", O_WRONLY | O_CREAT | O_EXCL, 0644); in stage_file_test() 355 fd = open(filename, O_WRONLY | O_TRUNC); in stage_file_test() 360 fd = open(filename, O_WRONLY | O_TRUNC); in stage_file_test() [all …]
|
D | tomoyo_new_test.c | 55 result = open("/dev/null", O_WRONLY); in test_write_dev_null() 241 result = open("/tmp/testfile8", O_WRONLY, 0600); in test_file_open_8() 246 result = open("/tmp/testfile9", O_CREAT | O_WRONLY, 0600); in test_file_open_9() 251 result = open("/tmp/testfile10", O_TRUNC | O_WRONLY, 0600); in test_file_open_10() 256 result = open("/tmp/testfile11", O_TRUNC | O_CREAT | O_WRONLY, 0600); in test_file_open_11() 261 result = open("/tmp/testfile12", O_APPEND | O_WRONLY, 0600); in test_file_open_12() 266 result = open("/tmp/testfile13", O_APPEND | O_CREAT | O_WRONLY, 0600); in test_file_open_13() 271 result = open("/tmp/testfile14", O_APPEND | O_TRUNC | O_WRONLY, 0600); in test_file_open_14() 277 O_APPEND | O_TRUNC | O_CREAT | O_WRONLY, 0600); in test_file_open_15() 328 close(open(buffer, O_WRONLY | O_CREAT, 0600)); in setup_test_file() [all …]
|
/external/ltp/testcases/kernel/syscalls/fcntl/ |
D | fcntl01.c | 65 open(fname, O_WRONLY | O_CREAT, 0666)) == -1) in main() 97 if ((flags & O_WRONLY) == 0) in main() 99 flags, O_WRONLY); in main() 106 if ((flags & (O_NDELAY | O_WRONLY)) == 0) in main() 108 flags, O_NDELAY | O_WRONLY); in main() 115 if ((flags & (O_APPEND | O_WRONLY)) == 0) in main() 117 flags, O_APPEND | O_WRONLY); in main() 124 if ((flags & (O_NDELAY | O_APPEND | O_WRONLY)) == 0) in main() 127 O_NDELAY | O_APPEND | O_SYNC | O_WRONLY); in main() 134 if ((flags & O_WRONLY) == 0) in main() [all …]
|
D | fcntl32.c | 44 {O_RDONLY, O_WRONLY}, 46 {O_WRONLY, O_RDONLY}, 47 {O_WRONLY, O_WRONLY}, 48 {O_WRONLY, O_RDWR}, 50 {O_RDWR, O_WRONLY},
|
/external/syslinux/com32/lib/ |
D | fopen.c | 21 flags = O_WRONLY | O_CREAT | O_TRUNC; in fopen() 24 flags = O_WRONLY | O_CREAT | O_APPEND; in fopen() 34 flags = (flags & ~(O_RDONLY | O_WRONLY)) | O_RDWR; in fopen()
|
D | fopendev.c | 21 flags = O_WRONLY | O_CREAT | O_TRUNC; in fopendev() 24 flags = O_WRONLY | O_CREAT | O_APPEND; in fopendev() 34 flags = (flags & ~(O_RDONLY | O_WRONLY)) | O_RDWR; in fopendev()
|
/external/syslinux/com32/lib/sys/ |
D | zfopen.c | 22 flags = O_WRONLY | O_CREAT | O_TRUNC; in zfopen() 25 flags = O_WRONLY | O_CREAT | O_APPEND; in zfopen() 35 flags = (flags & ~(O_RDONLY | O_WRONLY)) | O_RDWR; in zfopen()
|
D | openconsole.c | 44 if (opendev(idev, odev, O_WRONLY) != 1) in openconsole() 47 if (opendev(idev, odev, O_WRONLY) != 2) in openconsole()
|
/external/ltp/testcases/kernel/syscalls/open/ |
D | open11.c | 115 .flags = O_WRONLY, 177 .flags = O_WRONLY, 201 .flags = O_WRONLY, 222 .flags = O_WRONLY, 246 .flags = O_WRONLY, 374 fd = open(T_REG, O_WRONLY | O_CREAT, 0644); in setup()
|
/external/libmicrohttpd/src/testspdy/ |
D | test_proxies.c | 110 devnull = open("/dev/null", O_WRONLY); in main() 135 devnull = open("/dev/null", O_WRONLY); in main() 161 devnull = open("/dev/null", O_WRONLY); in main() 190 devnull = open("/dev/null", O_WRONLY); in main()
|
/external/ltp/testcases/kernel/containers/userns/ |
D | userns02.c | 94 fd = SAFE_OPEN(cleanup, path, O_WRONLY, 0644); in main() 100 fd = SAFE_OPEN(cleanup, path, O_WRONLY, 0644); in main() 107 fd = SAFE_OPEN(cleanup, path, O_WRONLY, 0644); in main()
|
D | userns03.c | 193 fd = SAFE_OPEN(cleanup, path, O_WRONLY, 0644); in main() 204 fd = SAFE_OPEN(cleanup, path, O_WRONLY, 0644); in main() 218 fd = SAFE_OPEN(cleanup, path, O_WRONLY, 0644); in main()
|
/external/libchrome/sandbox/linux/syscall_broker/ |
D | broker_file_permission_unittest.cc | 95 ASSERT_FALSE(perm.CheckOpen(path, O_WRONLY, &file_to_open, NULL)); in CheckPerm() 100 case O_WRONLY: in CheckPerm() 102 ASSERT_TRUE(perm.CheckOpen(path, O_WRONLY, &file_to_open, NULL)); in CheckPerm() 109 ASSERT_TRUE(perm.CheckOpen(path, O_WRONLY, &file_to_open, NULL)); in CheckPerm() 193 CheckPerm(perm, kPath, O_WRONLY, false); in TEST()
|
/external/compiler-rt/test/tsan/Darwin/ |
D | gcd-io-cleanup.mm | 17 dispatch_fd_t fd = open(path, O_CREAT | O_WRONLY, 0666); 29 …channel = dispatch_io_create_with_path(DISPATCH_IO_STREAM, path, O_CREAT | O_WRONLY, 0666, queue, … 39 …nnel = dispatch_io_create_with_path(DISPATCH_IO_STREAM, path, O_CREAT | O_WRONLY, 0666, queue, ^(i…
|
/external/strace/xlat/ |
D | open_access_modes.h | 9 #if defined(O_WRONLY) || (defined(HAVE_DECL_O_WRONLY) && HAVE_DECL_O_WRONLY) 10 XLAT(O_WRONLY),
|
/external/toybox/toys/posix/ |
D | nohup.c | 27 if (-1 == open("nohup.out", O_CREAT|O_APPEND|O_WRONLY, in nohup_main() 33 xcreate(temp, O_CREAT|O_APPEND|O_WRONLY, 0600); in nohup_main()
|
/external/strace/tests-m32/ |
D | open.c | 54 fd = syscall(__NR_open, sample, O_WRONLY|O_NONBLOCK|0x80000000); in main() 65 fd = syscall(__NR_open, sample, O_WRONLY|O_TMPFILE, 0600); in main()
|
/external/strace/tests/ |
D | open.c | 54 fd = syscall(__NR_open, sample, O_WRONLY|O_NONBLOCK|0x80000000); in main() 65 fd = syscall(__NR_open, sample, O_WRONLY|O_TMPFILE, 0600); in main()
|
/external/strace/tests-mx32/ |
D | open.c | 54 fd = syscall(__NR_open, sample, O_WRONLY|O_NONBLOCK|0x80000000); in main() 65 fd = syscall(__NR_open, sample, O_WRONLY|O_TMPFILE, 0600); in main()
|
/external/libchrome/sandbox/linux/suid/ |
D | process_util_linux.c | 55 int fd = openat(dirfd, "oom_score_adj", O_WRONLY); in AdjustOOMScore() 59 fd = openat(dirfd, "oom_adj", O_WRONLY); in AdjustOOMScore()
|
/external/libchrome/sandbox/linux/services/ |
D | namespace_utils.cc | 40 int fd = HANDLE_EINTR(open(map_file, O_WRONLY)); in WriteToIdMapFile() 106 int fd = HANDLE_EINTR(open(kProcSelfSetgroups, O_WRONLY)); in DenySetgroups()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_open/ |
D | 8-1.c | 44 woqueue = mq_open(qname, O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR, &attr); in main() 75 woqueue2 = mq_open(qname, O_WRONLY, S_IRUSR | S_IWUSR, &attr); in main()
|
/external/ltp/testcases/kernel/io/direct_io/ |
D | diotest2.c | 184 if ((fd_w = open(filename, O_WRONLY | O_CREAT, 0666)) < 0) in main() 203 if ((fd_w = open(filename, O_DIRECT | O_WRONLY | O_CREAT, 0666)) == -1) in main() 222 if ((fd_w = open(filename, O_DIRECT | O_WRONLY | O_CREAT, 0666)) == -1) in main()
|
/external/libese/libese-hw/nxp/pn80t/ |
D | linux_spidev.c | 50 fd = open(val_path, O_WRONLY); in gpio_set() 100 fd = open("/sys/class/gpio/export", O_WRONLY); in gpio_configure() 109 fd = open(dir_path, O_WRONLY); in gpio_configure()
|