Home
last modified time | relevance | path

Searched refs:O_WRONLY (Results 1 – 25 of 465) sorted by relevance

12345678910>>...19

/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()
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 …]
Dtomoyo_new_file_test.c252 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 …]
Dtomoyo_new_test.c55 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 …]
/third_party/ltp/testcases/kernel/syscalls/fcntl/
Dfcntl01.c66 open(fname, O_WRONLY | O_CREAT, 0666)) == -1) in main()
98 if ((flags & O_WRONLY) == 0) in main()
100 flags, O_WRONLY); in main()
107 if ((flags & (O_NDELAY | O_WRONLY)) == 0) in main()
109 flags, O_NDELAY | O_WRONLY); in main()
116 if ((flags & (O_APPEND | O_WRONLY)) == 0) in main()
118 flags, O_APPEND | O_WRONLY); 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()
135 if ((flags & O_WRONLY) == 0) in main()
[all …]
Dfcntl32.c44 {O_RDONLY, O_WRONLY},
46 {O_WRONLY, O_RDONLY},
47 {O_WRONLY, O_WRONLY},
48 {O_WRONLY, O_RDWR},
50 {O_RDWR, O_WRONLY},
/third_party/node/test/parallel/
Dtest-fs-open-flags.js41 O_WRONLY = 0 } = fs.constants;
49 assert.strictEqual(stringToFlags('w'), O_TRUNC | O_CREAT | O_WRONLY);
51 assert.strictEqual(stringToFlags('a'), O_APPEND | O_CREAT | O_WRONLY);
54 assert.strictEqual(stringToFlags('wx'), O_TRUNC | O_CREAT | O_WRONLY | O_EXCL);
55 assert.strictEqual(stringToFlags('xw'), O_TRUNC | O_CREAT | O_WRONLY | O_EXCL);
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);
Dtest-fs-fmap.js11 O_WRONLY = 0,
24 const mw = UV_FS_O_FILEMAP | O_TRUNC | O_CREAT | O_WRONLY;
/third_party/ltp/testcases/kernel/syscalls/name_to_handle_at/
Dname_to_handle_at01.c35 {&dir_fd, TEST_FILE, 0, O_WRONLY},
38 {&dir_fd, TEST_FILE, AT_EMPTY_PATH, O_WRONLY},
41 {&dir_fd, TEST_FILE, AT_SYMLINK_FOLLOW, O_WRONLY},
44 {&dir_fd, TEST_FILE, AT_EMPTY_PATH | AT_SYMLINK_FOLLOW, O_WRONLY},
50 {&fd_atcwd, TEST_FILE, 0, O_WRONLY},
53 {&fd_atcwd, TEST_FILE, AT_EMPTY_PATH, O_WRONLY},
56 {&fd_atcwd, TEST_FILE, AT_SYMLINK_FOLLOW, O_WRONLY},
59 {&fd_atcwd, TEST_FILE, AT_EMPTY_PATH | AT_SYMLINK_FOLLOW, O_WRONLY},
/third_party/ltp/testcases/kernel/syscalls/open/
Dopen11.c81 .flags = O_WRONLY,
139 .flags = O_WRONLY,
161 .flags = O_WRONLY,
182 .flags = O_WRONLY,
204 .flags = O_WRONLY,
300 fd = SAFE_OPEN(T_REG, O_WRONLY | O_CREAT, 0644); in setup()
/third_party/skia/third_party/externals/microhttpd/src/testspdy/
Dtest_proxies.c110 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()
/third_party/ltp/testcases/kernel/containers/userns/
Duserns02.c94 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()
Duserns03.c192 fd = SAFE_OPEN(cleanup, path, O_WRONLY, 0644); in main()
203 fd = SAFE_OPEN(cleanup, path, O_WRONLY, 0644); in main()
217 fd = SAFE_OPEN(cleanup, path, O_WRONLY, 0644); in main()
Duserns08.c67 TST_EXP_FAIL(open("restricted", O_WRONLY), EACCES, in ns_level2()
119 int fd = SAFE_OPEN("restricted", O_CREAT | O_WRONLY, 0700); in setup()
/third_party/flutter/skia/third_party/externals/sdl/src/audio/
DSDL_audiodev_c.h29 #define OPEN_FLAGS_OUTPUT O_WRONLY
32 #define OPEN_FLAGS_OUTPUT (O_WRONLY|O_NONBLOCK)
/third_party/NuttX/drivers/pipes/
Dpipe_common.c210 if ((filep->f_oflags & O_WRONLY) != 0) in pipecommon_open()
229 if ((filep->f_oflags & O_WRONLY) == 0) in pipecommon_open()
241 if ((filep->f_oflags & O_WRONLY) == 0 && /* Read-only */ in pipecommon_open()
308 if ((filep->f_oflags & O_WRONLY) != 0) in pipecommon_close()
331 if ((filep->f_oflags & O_WRONLY) == 0) in pipecommon_close()
733 if (((filep->f_oflags & O_WRONLY) != 0) && (nbytes < (dev->d_bufsize - 1))) in pipecommon_poll()
740 if (((filep->f_oflags & O_WRONLY) == 0) && (nbytes > 0)) in pipecommon_poll()
/third_party/ltp/testcases/kernel/syscalls/open_by_handle_at/
Dopen_by_handle_at01.c35 {&dir_fd, &d_fhp, O_WRONLY},
38 {&file_fd, &f_fhp, O_WRONLY},
41 {&fd_atcwd, &at_fhp, O_WRONLY},
/third_party/libdrm/tests/etnaviv/
Dwrite_bmp.c108 fd = open(filename, O_WRONLY| O_TRUNC | O_CREAT, 0666); in bmp_dump32()
124 fd = open(filename, O_WRONLY| O_TRUNC | O_CREAT, 0666); in bmp_dump32_noflip()
140 fd = open(filename, O_WRONLY| O_TRUNC | O_CREAT, 0666); in bmp_dump32_ex()
/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/curl/lib/vquic/
Dvquic.c36 #define QLOGMODE O_WRONLY|O_CREAT|O_BINARY
38 #define QLOGMODE O_WRONLY|O_CREAT
/third_party/ffmpeg/libavutil/
Dfile_open.c166 case 'w': access = O_CREAT|O_WRONLY|O_TRUNC; break; in av_fopen_utf8()
167 case 'a': access = O_CREAT|O_WRONLY|O_APPEND; break; in av_fopen_utf8()
174 access &= ~(O_RDONLY | O_WRONLY); in av_fopen_utf8()
/third_party/ltp/lib/
Dtst_fill_file.c79 fd = open(path, O_CREAT|O_WRONLY|O_TRUNC, S_IRUSR|S_IWUSR); in tst_fill_file()
102 fd = open(path, O_CREAT|O_WRONLY|O_TRUNC, S_IRUSR|S_IWUSR); in tst_prealloc_file()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_open/
D8-1.c44 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()
/third_party/ltp/testcases/kernel/syscalls/splice/
Dsplice01.c59 fd_out = SAFE_OPEN(TESTFILE2, O_WRONLY | O_CREAT | O_TRUNC, 0666); in splice_test()
91 fd_in = SAFE_OPEN(TESTFILE1, O_WRONLY | O_CREAT | O_TRUNC, 0777); in setup()
/third_party/ltp/testcases/kernel/io/direct_io/
Ddiotest2.c182 if ((fd_w = open(filename, O_WRONLY | O_CREAT, 0666)) < 0) in main()
201 if ((fd_w = open(filename, O_DIRECT | O_WRONLY | O_CREAT, 0666)) == -1) in main()
220 if ((fd_w = open(filename, O_DIRECT | O_WRONLY | O_CREAT, 0666)) == -1) in main()
/third_party/ltp/testcases/kernel/syscalls/tee/
Dtee01.c56 fd_out = SAFE_OPEN(TESTFILE2, O_WRONLY | O_CREAT | O_TRUNC, 0777); in tee_test()
96 fd_in = SAFE_OPEN(TESTFILE1, O_WRONLY | O_CREAT | O_TRUNC, 0777); in setup()

12345678910>>...19