/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 …]
|
/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/libc-test/src/functionalext/trace/ |
D | trace_marker.c | 215 int trace_fd = open("/sys/kernel/tracing/trace", O_CLOEXEC | O_RDONLY | O_APPEND); in trace_marker_0040() 217 trace_fd = open("/sys/kernel/debug/tracing/trace", O_CLOEXEC | O_RDONLY | O_APPEND); in trace_marker_0040() 253 int trace_fd = open("/sys/kernel/tracing/trace", O_CLOEXEC | O_RDONLY | O_APPEND); in trace_marker_0040() 255 trace_fd = open("/sys/kernel/debug/tracing/trace", O_CLOEXEC | O_RDONLY | O_APPEND); in trace_marker_0040() 311 int trace_fd = open("/sys/kernel/tracing/trace", O_CLOEXEC | O_RDONLY | O_APPEND); in trace_marker_0050() 313 trace_fd = open("/sys/kernel/debug/tracing/trace", O_CLOEXEC | O_RDONLY | O_APPEND); in trace_marker_0050() 349 int trace_fd = open("/sys/kernel/tracing/trace", O_CLOEXEC | O_RDONLY | O_APPEND); in trace_marker_0050() 351 trace_fd = open("/sys/kernel/debug/tracing/trace", O_CLOEXEC | O_RDONLY | O_APPEND); in trace_marker_0050() 407 int trace_fd = open("/sys/kernel/tracing/trace", O_CLOEXEC | O_RDONLY | O_APPEND); in trace_marker_0060() 409 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); 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/src/stdio/ |
D | __fdopen.c | 35 if (!(flags & O_APPEND)) in __fdopen() 36 __syscall(SYS_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/musl/porting/linux/user/src/stdio/ |
D | __fdopen.c | 76 if (!(flags & O_APPEND)) in __fdopen() 77 __syscall(SYS_fcntl, fd, F_SETFL, flags | O_APPEND); in __fdopen()
|
/third_party/node/lib/internal/fs/ |
D | utils.js | 62 O_APPEND, 563 case 'a' : return O_APPEND | O_CREAT | O_WRONLY; 565 case 'xa' : return O_APPEND | O_CREAT | O_WRONLY | O_EXCL; 567 case 'sa' : return O_APPEND | O_CREAT | O_WRONLY | O_SYNC; 569 case 'a+' : return O_APPEND | O_CREAT | O_RDWR; 571 case 'xa+': return O_APPEND | O_CREAT | O_RDWR | O_EXCL; 573 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/porting/linux/user/src/trace/ |
D | trace_marker.c | 48 …MUSL_TEMP_FAILURE_RETRY(open("/sys/kernel/tracing/trace_marker", O_CLOEXEC | O_WRONLY | O_APPEND)); in get_trace_marker_fd() 50 …EMP_FAILURE_RETRY(open("/sys/kernel/debug/tracing/trace_marker", O_CLOEXEC | O_WRONLY | O_APPEND)); in get_trace_marker_fd()
|
/third_party/glib/glib/ |
D | giounix.c | 378 fcntl_flags |= O_APPEND; in g_io_unix_set_flags() 415 if (fcntl_flags & O_APPEND) in g_io_unix_get_flags() 509 flags = O_WRONLY | O_APPEND | O_CREAT; in g_io_channel_new_file() 518 flags = O_RDWR | O_APPEND | O_CREAT; in g_io_channel_new_file()
|
/third_party/ltp/testcases/kernel/syscalls/open/ |
D | open12.c | 124 TEST(open(TEST_FILE, O_RDWR | O_APPEND, 0777)); in test_append() 194 TEST(open(TEST_FILE, O_RDWR | O_APPEND | O_CLOEXEC, 0777)); in test_cloexec()
|
/third_party/musl/porting/liteos_m/user/include/bits/ |
D | fcntl.h | 5 #define O_APPEND 02000 macro
|
/third_party/musl/arch/powerpc64/bits/ |
D | fcntl.h | 5 #define O_APPEND 02000 macro
|
/third_party/musl/arch/m68k/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
|