/third_party/ltp/testcases/kernel/security/tomoyo/ |
H A D | tomoyo_rewrite_test.c | 71 close(open(REWRITE_PATH, O_WRONLY | O_APPEND | O_CREAT, 0600)); in stage_rewrite_test() 81 show_prompt("open(O_WRONLY | O_APPEND)"); in stage_rewrite_test() 82 fd = open(REWRITE_PATH, O_WRONLY | O_APPEND); in stage_rewrite_test() 97 show_prompt("open(O_WRONLY | O_TRUNC | O_APPEND)"); 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() 109 show_prompt("fcntl(F_SETFL, ~O_APPEND)"); in stage_rewrite_test() 110 show_result(fcntl(fd, F_SETFL, fcntl(fd, F_GETFL) & ~O_APPEND)); in stage_rewrite_test() 126 show_prompt("open(O_WRONLY | O_APPEND)"); in stage_rewrite_test() 127 fd = open(REWRITE_PATH, O_WRONLY | O_APPEND); in stage_rewrite_test() [all...] |
H A D | tomoyo_new_test.c | 220 result = open("/tmp/testfile4", O_APPEND | O_RDONLY, 0600); in test_file_open_4() 225 result = open("/tmp/testfile5", O_APPEND | O_CREAT | O_RDONLY, 0600); in test_file_open_5() 230 result = open("/tmp/testfile6", O_APPEND | O_TRUNC | O_RDONLY, 0600); in test_file_open_6() 236 O_APPEND | O_TRUNC | O_CREAT | O_RDONLY, 0600); in test_file_open_7() 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() 302 result = open("/tmp/testfile20", O_APPEND | O_RDWR, 0600); in test_file_open_20() 307 result = open("/tmp/testfile21", O_APPEND | O_CREA in test_file_open_21() [all...] |
/third_party/ltp/testcases/kernel/syscalls/fcntl/ |
H A D | fcntl01.c | 16 * 2. Checking F_SETFL cmd with each valid flag (O_NDELAY, O_APPEND). 112 if (fcntl(fd[2], F_SETFL, O_APPEND) == -1) in main() 113 tst_resm(TFAIL | TERRNO, "fcntl(.., O_APPEND) failed"); in main() 116 if ((flags & (O_APPEND | O_WRONLY)) == 0) in main() 118 flags, O_APPEND | O_WRONLY); in main() 121 if (fcntl(fd[2], F_SETFL, O_NDELAY | O_APPEND) < 0) in main() 122 tst_resm(TFAIL, "fcntl(.., O_NDELAY|O_APPEND) failed"); in main() 125 if ((flags & (O_NDELAY | O_APPEND | O_WRONLY)) == 0) in main() 128 O_NDELAY | O_APPEND | O_SYNC | O_WRONLY); in main()
|
/third_party/toybox/toys/posix/ |
H A D | nohup.c | 28 if (-1 == open("nohup.out", O_CREAT|O_APPEND|O_WRONLY, in nohup_main() 34 xcreate(temp, O_CREAT|O_APPEND|O_WRONLY, 0600); in nohup_main()
|
/third_party/musl/libc-test/src/functionalext/trace/ |
H A D | trace_marker.c | 270 int trace_fd = open("/sys/kernel/tracing/trace", O_CLOEXEC | O_RDONLY | O_APPEND); in trace_marker_0040() 272 trace_fd = open("/sys/kernel/debug/tracing/trace", O_CLOEXEC | O_RDONLY | O_APPEND); in trace_marker_0040() 308 int trace_fd = open("/sys/kernel/tracing/trace", O_CLOEXEC | O_RDONLY | O_APPEND); in trace_marker_0040() 310 trace_fd = open("/sys/kernel/debug/tracing/trace", O_CLOEXEC | O_RDONLY | O_APPEND); in trace_marker_0040() 367 int trace_fd = open("/sys/kernel/tracing/trace", O_CLOEXEC | O_RDONLY | O_APPEND); in trace_marker_0050() 369 trace_fd = open("/sys/kernel/debug/tracing/trace", O_CLOEXEC | O_RDONLY | O_APPEND); in trace_marker_0050() 405 int trace_fd = open("/sys/kernel/tracing/trace", O_CLOEXEC | O_RDONLY | O_APPEND); in trace_marker_0050() 407 trace_fd = open("/sys/kernel/debug/tracing/trace", O_CLOEXEC | O_RDONLY | O_APPEND); in trace_marker_0050() 464 int trace_fd = open("/sys/kernel/tracing/trace", O_CLOEXEC | O_RDONLY | O_APPEND); in trace_marker_0060() 466 trace_fd = open("/sys/kernel/debug/tracing/trace", O_CLOEXEC | O_RDONLY | O_APPEND); in trace_marker_0060() [all...] |
/third_party/musl/porting/linux/user/src/stdio/ |
H A D | __fdopen.c | 88 if (mode_flags & O_APPEND) { in __fdopen() 90 if (!(flags & O_APPEND)) in __fdopen() 91 __syscall(SYS_fcntl, fd, F_SETFL, flags | O_APPEND); in __fdopen()
|
/third_party/musl/src/stdio/ |
H A D | __fdopen.c | 88 if (mode_flags & O_APPEND) { in __fdopen() 90 if (!(flags & O_APPEND)) in __fdopen() 91 __syscall(SYS_fcntl, fd, F_SETFL, flags | O_APPEND); in __fdopen()
|
/third_party/musl/libc-test/src/functionalext/supplement/fcntl/ |
H A D | open.c | 86 * @tc.desc : Verify file open mode is O_RDWR | O_APPEND 93 int fd = open(path, O_RDWR | O_APPEND + O_CREAT, TEST_MODE); in open_0500() 105 * @tc.desc : Verify file open mode is O_RDWR | O_APPEND(file does not exist) 112 int fd = open(path, O_RDWR | O_APPEND); in open_0600() 123 * @tc.desc : Verify file open mode is O_RDWR | O_APPEND(file pathname is invalid) 128 int fd = open(path, O_RDWR | O_APPEND); in open_0700()
|
/third_party/musl/porting/uniproton/kernel/src/stdio/ |
H A D | __fdopen.c | 33 if (!(flags & O_APPEND))
in __fdopen() 34 fcntl(fd, F_SETFL, flags | O_APPEND);
in __fdopen()
|
H A D | __fmodeflags.c | 14 if (*mode == 'a') flags |= O_APPEND;
in __fmodeflags()
|
/third_party/musl/porting/liteos_m/kernel/src/stdio/ |
H A D | __fdopen.c | 33 if (!(flags & O_APPEND))
in __fdopen() 34 fcntl(fd, F_SETFL, flags | O_APPEND);
in __fdopen()
|
H A D | __fmodeflags.c | 14 if (*mode == 'a') flags |= O_APPEND;
in __fmodeflags()
|
/third_party/musl/porting/liteos_a/kernel/src/stdio/ |
H A D | __fdopen.c | 37 if (!(flags & O_APPEND)) in __fdopen() 38 fcntl(fd, F_SETFL, flags | O_APPEND); in __fdopen()
|
H A D | __fmodeflags.c | 14 if (*mode == 'a') flags |= O_APPEND; in __fmodeflags()
|
/third_party/musl/libc-test/src/functionalext/supplement/temp/ |
H A D | mkostemp.c | 23 * specified in flags: O_APPEND, create a temporary file. 29 int fd = mkostemp(tmpfile, O_APPEND); in mkostemp_0100() 91 * @tc.desc : Verify mkostemp process fail. Provide error template, specified in flags: O_APPEND, 98 int fd = mkostemp(tmpfile, O_APPEND); in mkostemp_0400()
|
/third_party/node/lib/internal/fs/ |
H A D | utils.js | 75 O_APPEND, 613 case 'a' : return O_APPEND | O_CREAT | O_WRONLY; 615 case 'xa' : return O_APPEND | O_CREAT | O_WRONLY | O_EXCL; 617 case 'sa' : return O_APPEND | O_CREAT | O_WRONLY | O_SYNC; 619 case 'a+' : return O_APPEND | O_CREAT | O_RDWR; 621 case 'xa+': return O_APPEND | O_CREAT | O_RDWR | O_EXCL; 623 case 'sa+': return O_APPEND | O_CREAT | O_RDWR | O_SYNC;
|
/third_party/musl/porting/linux/user/src/trace/ |
H A D | trace_marker.c | 84 int trace_marker_fd = MUSL_TEMP_FAILURE_RETRY(open("/sys/kernel/tracing/trace_marker", O_CLOEXEC | O_WRONLY | O_APPEND)); in get_trace_marker_fd() 86 trace_marker_fd = MUSL_TEMP_FAILURE_RETRY(open("/sys/kernel/debug/tracing/trace_marker", O_CLOEXEC | O_WRONLY | O_APPEND)); in get_trace_marker_fd()
|
/third_party/musl/src/trace/linux/ |
H A D | trace_marker.c | 85 int trace_marker_fd = MUSL_TEMP_FAILURE_RETRY(open("/sys/kernel/tracing/trace_marker", O_CLOEXEC | O_WRONLY | O_APPEND)); in get_trace_marker_fd() 87 trace_marker_fd = MUSL_TEMP_FAILURE_RETRY(open("/sys/kernel/debug/tracing/trace_marker", O_CLOEXEC | O_WRONLY | O_APPEND)); in get_trace_marker_fd()
|
/third_party/ltp/testcases/kernel/syscalls/open/ |
H A D | open12.c | 19 * O_APPEND, O_NOATIME, O_CLOEXEC and O_LARGEFILE. 115 TEST(open(TEST_FILE, O_RDWR | O_APPEND, 0777)); in test_append() 129 tst_resm(TPASS, "test O_APPEND for open success"); in test_append() 131 tst_resm(TFAIL, "test O_APPEND for open failed"); in test_append() 172 TEST(open(TEST_FILE, O_RDWR | O_APPEND | O_CLOEXEC, 0777)); in test_cloexec()
|
/third_party/musl/porting/liteos_m/kernel/include/bits/ |
H A D | fcntl.h | 5 #define O_APPEND 02000 macro
|
/third_party/musl/porting/liteos_a/kernel/include/bits/ |
H A D | fcntl.h | 5 #define O_APPEND 02000 macro
|
/third_party/musl/porting/liteos_m_iccarm/kernel/include/bits/ |
H A D | fcntl.h | 5 #define O_APPEND 02000 macro
|
/third_party/musl/porting/liteos_m/user/include/bits/ |
H A D | fcntl.h | 5 #define O_APPEND 02000 macro
|
/third_party/musl/porting/uniproton/kernel/include/bits/ |
H A D | fcntl.h | 5 #define O_APPEND 02000 macro
|
/third_party/musl/arch/aarch64/bits/ |
H A D | fcntl.h | 5 #define O_APPEND 02000 macro
|