Home
last modified time | relevance | path

Searched refs:O_APPEND (Results 1 – 25 of 137) sorted by relevance

123456

/third_party/node/test/parallel/
Dtest-fs-open-flags.js33 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/
Dtomoyo_rewrite_test.c71 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()
Dtomoyo_new_test.c220 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/
Dfcntl01.c112 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/
Dtrace_marker.c215 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/
Dnohup.c28 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/
Dopen.c93 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.c33 if (!(flags & O_APPEND)) in __fdopen()
34 fcntl(fd, F_SETFL, flags | O_APPEND); in __fdopen()
D__fmodeflags.c14 if (*mode == 'a') flags |= O_APPEND; in __fmodeflags()
/third_party/musl/porting/uniproton/kernel/src/stdio/
D__fdopen.c33 if (!(flags & O_APPEND)) in __fdopen()
34 fcntl(fd, F_SETFL, flags | O_APPEND); in __fdopen()
D__fmodeflags.c14 if (*mode == 'a') flags |= O_APPEND; in __fmodeflags()
/third_party/musl/src/stdio/
D__fdopen.c35 if (!(flags & O_APPEND)) in __fdopen()
36 __syscall(SYS_fcntl, fd, F_SETFL, flags | O_APPEND); in __fdopen()
D__fmodeflags.c14 if (*mode == 'a') flags |= O_APPEND; in __fmodeflags()
/third_party/musl/porting/liteos_a/kernel/src/stdio/
D__fdopen.c37 if (!(flags & O_APPEND)) in __fdopen()
38 fcntl(fd, F_SETFL, flags | O_APPEND); in __fdopen()
D__fmodeflags.c14 if (*mode == 'a') flags |= O_APPEND; in __fmodeflags()
/third_party/musl/porting/linux/user/src/stdio/
D__fdopen.c76 if (!(flags & O_APPEND)) in __fdopen()
77 __syscall(SYS_fcntl, fd, F_SETFL, flags | O_APPEND); in __fdopen()
/third_party/node/lib/internal/fs/
Dutils.js62 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/
Dmkostemp.c29 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/
Dtrace_marker.c48 …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/
Dgiounix.c378 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/
Dopen12.c124 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/
Dfcntl.h5 #define O_APPEND 02000 macro
/third_party/musl/arch/powerpc64/bits/
Dfcntl.h5 #define O_APPEND 02000 macro
/third_party/musl/arch/m68k/bits/
Dfcntl.h5 #define O_APPEND 02000 macro
/third_party/musl/arch/arm/bits/
Dfcntl.h5 #define O_APPEND 02000 macro

123456