/third_party/node/test/parallel/ |
D | test-fs-open-flags.js | 33 const { O_APPEND = 0, 51 assert.strictEqual(stringToFlags('a'), O_APPEND | O_CREAT | O_WRONLY); 52 assert.strictEqual(stringToFlags('a+'), O_APPEND | O_CREAT | O_RDWR); 58 assert.strictEqual(stringToFlags('ax'), O_APPEND | O_CREAT | O_WRONLY | O_EXCL); 59 assert.strictEqual(stringToFlags('xa'), O_APPEND | O_CREAT | O_WRONLY | O_EXCL); 60 assert.strictEqual(stringToFlags('as'), O_APPEND | O_CREAT | O_WRONLY | O_SYNC); 61 assert.strictEqual(stringToFlags('sa'), O_APPEND | O_CREAT | O_WRONLY | O_SYNC); 62 assert.strictEqual(stringToFlags('ax+'), O_APPEND | O_CREAT | O_RDWR | O_EXCL); 63 assert.strictEqual(stringToFlags('xa+'), O_APPEND | O_CREAT | O_RDWR | O_EXCL); 64 assert.strictEqual(stringToFlags('as+'), O_APPEND | O_CREAT | O_RDWR | O_SYNC); [all …]
|
/third_party/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() 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() 110 show_result(fcntl(fd, F_SETFL, fcntl(fd, F_GETFL) & ~O_APPEND)); in stage_rewrite_test() 127 fd = open(REWRITE_PATH, O_WRONLY | O_APPEND); in stage_rewrite_test() 142 fd = open(REWRITE_PATH, O_WRONLY | O_TRUNC | O_APPEND); in stage_rewrite_test() 149 fd = open(REWRITE_PATH, O_WRONLY | O_APPEND); in stage_rewrite_test() 154 show_result(fcntl(fd, F_SETFL, fcntl(fd, F_GETFL) & ~O_APPEND)); in stage_rewrite_test()
|
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_CREAT | O_RDWR, 0600); in test_file_open_21() [all …]
|
D | tomoyo_new_file_test.c | 561 fd = open(filename, O_WRONLY | O_APPEND); in stage_file_test() 576 fd = open(filename, O_WRONLY | O_TRUNC | O_APPEND); in stage_file_test() 584 fd = open(filename, O_WRONLY | O_APPEND); in stage_file_test() 588 show_result(fcntl(fd, F_SETFL, fcntl(fd, F_GETFL) & ~O_APPEND), 0); in stage_file_test()
|
/third_party/ltp/testcases/kernel/syscalls/fcntl/ |
D | fcntl01.c | 112 if (fcntl(fd[2], F_SETFL, O_APPEND) == -1) 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() 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/musl/porting/linux/user/src/stdio/ |
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/ |
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/trace/ |
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/toybox/toys/posix/ |
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/supplement/fcntl/ |
D | open.c | 93 int fd = open(path, O_RDWR | O_APPEND + O_CREAT, TEST_MODE); in open_0500() 112 int fd = open(path, O_RDWR | O_APPEND); in open_0600() 128 int fd = open(path, O_RDWR | O_APPEND); in open_0700()
|
/third_party/musl/porting/liteos_m/kernel/src/stdio/ |
D | __fdopen.c | 33 if (!(flags & O_APPEND)) in __fdopen() 34 fcntl(fd, F_SETFL, flags | O_APPEND); in __fdopen()
|
D | __fmodeflags.c | 14 if (*mode == 'a') flags |= O_APPEND; in __fmodeflags()
|
/third_party/musl/porting/uniproton/kernel/src/stdio/ |
D | __fdopen.c | 33 if (!(flags & O_APPEND)) in __fdopen() 34 fcntl(fd, F_SETFL, flags | O_APPEND); in __fdopen()
|
D | __fmodeflags.c | 14 if (*mode == 'a') flags |= O_APPEND; in __fmodeflags()
|
/third_party/musl/porting/liteos_a/kernel/src/stdio/ |
D | __fdopen.c | 37 if (!(flags & O_APPEND)) in __fdopen() 38 fcntl(fd, F_SETFL, flags | O_APPEND); in __fdopen()
|
D | __fmodeflags.c | 14 if (*mode == 'a') flags |= O_APPEND; in __fmodeflags()
|
/third_party/node/lib/internal/fs/ |
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/libc-test/src/functionalext/supplement/temp/ |
D | mkostemp.c | 29 int fd = mkostemp(tmpfile, O_APPEND); in mkostemp_0100() 98 int fd = mkostemp(tmpfile, O_APPEND); in mkostemp_0400()
|
/third_party/musl/src/trace/linux/ |
D | trace_marker.c | 85 …MUSL_TEMP_FAILURE_RETRY(open("/sys/kernel/tracing/trace_marker", O_CLOEXEC | O_WRONLY | O_APPEND)); in get_trace_marker_fd() 87 …EMP_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/ |
D | open12.c | 115 TEST(open(TEST_FILE, O_RDWR | O_APPEND, 0777)); in test_append() 172 TEST(open(TEST_FILE, O_RDWR | O_APPEND | O_CLOEXEC, 0777)); in test_cloexec()
|
/third_party/musl/porting/linux/user/src/trace/ |
D | trace_marker.c | 84 …MUSL_TEMP_FAILURE_RETRY(open("/sys/kernel/tracing/trace_marker", O_CLOEXEC | O_WRONLY | O_APPEND)); in get_trace_marker_fd() 86 …EMP_FAILURE_RETRY(open("/sys/kernel/debug/tracing/trace_marker", O_CLOEXEC | O_WRONLY | O_APPEND)); in get_trace_marker_fd()
|
/third_party/musl/arch/mips/bits/ |
D | fcntl.h | 5 #define O_APPEND 0010 macro
|
/third_party/musl/arch/riscv64/bits/ |
D | fcntl.h | 5 #define O_APPEND 02000 macro
|
/third_party/musl/arch/arm/bits/ |
D | fcntl.h | 5 #define O_APPEND 02000 macro
|
/third_party/musl/arch/powerpc/bits/ |
D | fcntl.h | 5 #define O_APPEND 02000 macro
|