Home
last modified time | relevance | path

Searched refs:O_CREAT (Results 1 – 25 of 1015) sorted by relevance

12345678910>>...41

/third_party/node/test/parallel/
Dtest-fs-open-flags.js34 O_CREAT = 0,
49 assert.strictEqual(stringToFlags('w'), O_TRUNC | O_CREAT | O_WRONLY);
50 assert.strictEqual(stringToFlags('w+'), O_TRUNC | O_CREAT | O_RDWR);
51 assert.strictEqual(stringToFlags('a'), O_APPEND | O_CREAT | O_WRONLY);
52 assert.strictEqual(stringToFlags('a+'), O_APPEND | O_CREAT | O_RDWR);
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);
56 assert.strictEqual(stringToFlags('wx+'), O_TRUNC | O_CREAT | O_RDWR | O_EXCL);
57 assert.strictEqual(stringToFlags('xw+'), O_TRUNC | O_CREAT | O_RDWR | O_EXCL);
58 assert.strictEqual(stringToFlags('ax'), O_APPEND | O_CREAT | O_WRONLY | O_EXCL);
[all …]
/third_party/ltp/testcases/kernel/syscalls/openat2/
Dopenat203.c26 {"invalid-dfd", -1, TEST_FILE, O_RDWR | O_CREAT, S_IRWXU, 0, &how, sizeof(*how), EBADF},
27 {"invalid-pathname", AT_FDCWD, NULL, O_RDONLY | O_CREAT, S_IRUSR, 0, &how, sizeof(*how), EFAULT},
29 {"invalid-mode", AT_FDCWD, TEST_FILE, O_RDWR | O_CREAT, -1, 0, &how, sizeof(*how), EINVAL},
30 …{"invalid-resolve", AT_FDCWD, TEST_FILE, O_RDWR | O_CREAT, S_IRWXU, -1, &how, sizeof(*how), EINVAL…
31 {"invalid-size-zero", AT_FDCWD, TEST_FILE, O_RDWR | O_CREAT, S_IRWXU, 0, &how, 0, EINVAL},
32 …{"invalid-size-small", AT_FDCWD, TEST_FILE, O_RDWR | O_CREAT, S_IRWXU, 0, &how, sizeof(*how) - 1, …
33 …{"invalid-size-big", AT_FDCWD, TEST_FILE, O_RDWR | O_CREAT, S_IRWXU, 0, &how, sizeof(*how) + 1, EF…
34 …{"invalid-size-big-with-pad", AT_FDCWD, TEST_FILE, O_RDWR | O_CREAT, S_IRWXU, 0, (struct open_how …
/third_party/ltp/testcases/kernel/syscalls/mq_open/
Dmq_open01.c54 .oflag = O_CREAT,
62 .oflag = O_CREAT,
75 .oflag = O_CREAT,
88 .oflag = O_CREAT,
96 .oflag = O_CREAT,
111 .oflag = O_CREAT | O_EXCL,
120 .oflag = O_CREAT,
136 .oflag = O_CREAT,
146 fd2 = SAFE_MQ_OPEN(QUEUE_NAME, O_CREAT | O_EXCL | O_RDWR, S_IRWXU, NULL); in create_queue()
198 fd3 = SAFE_MQ_OPEN(QUEUE_INIT, O_CREAT | O_EXCL | O_RDWR, S_IRWXU, NULL); in setup()
/third_party/ltp/testcases/kernel/syscalls/copy_file_range/
Dcopy_file_range02.c201 fd_src = SAFE_OPEN(FILE_SRC_PATH, O_RDWR | O_CREAT, 0664); in setup()
202 fd_dest = SAFE_OPEN(FILE_DEST_PATH, O_RDWR | O_CREAT, 0664); in setup()
203 fd_rdonly = SAFE_OPEN(FILE_RDONL_PATH, O_RDONLY | O_CREAT, 0664); in setup()
207 O_RDWR | O_CREAT | O_APPEND, 0664); in setup()
208 fd_immutable = SAFE_OPEN(FILE_IMMUTABLE_PATH, O_RDWR | O_CREAT, 0664); in setup()
209 fd_swapfile = SAFE_OPEN(FILE_SWAP_PATH, O_RDWR | O_CREAT, 0600); in setup()
222 fd_dup = SAFE_OPEN(FILE_SRC_PATH, O_WRONLY|O_CREAT, 0666); in setup()
224 fd_copy = SAFE_OPEN(FILE_COPY_PATH, O_RDWR | O_CREAT | O_TRUNC, 0664); in setup()
/third_party/ltp/testcases/kernel/security/tomoyo/
Dtomoyo_new_test.c205 result = open("/tmp/testfile1", O_CREAT | O_RDONLY, 0600); in test_file_open_1()
215 result = open("/tmp/testfile3", O_TRUNC | O_CREAT | O_RDONLY, 0600); in test_file_open_3()
225 result = open("/tmp/testfile5", O_APPEND | O_CREAT | O_RDONLY, 0600); in test_file_open_5()
236 O_APPEND | O_TRUNC | O_CREAT | O_RDONLY, 0600); in test_file_open_7()
246 result = open("/tmp/testfile9", O_CREAT | O_WRONLY, 0600); in test_file_open_9()
256 result = open("/tmp/testfile11", O_TRUNC | O_CREAT | O_WRONLY, 0600); in test_file_open_11()
266 result = open("/tmp/testfile13", O_APPEND | O_CREAT | O_WRONLY, 0600); in test_file_open_13()
277 O_APPEND | O_TRUNC | O_CREAT | O_WRONLY, 0600); in test_file_open_15()
287 result = open("/tmp/testfile17", O_CREAT | O_RDWR, 0600); in test_file_open_17()
297 result = open("/tmp/testfile19", O_TRUNC | O_CREAT | O_RDWR, 0600); in test_file_open_19()
[all …]
/third_party/ltp/testcases/kernel/syscalls/open/
Dopen11.c219 .flags = O_RDWR | O_CREAT,
227 .flags = O_RDONLY | O_CREAT,
234 .flags = O_RDONLY | O_CREAT,
241 .flags = O_RDONLY | O_CREAT,
248 .flags = O_RDONLY | O_CREAT,
255 .flags = O_RDONLY | O_CREAT,
302 fd = SAFE_OPEN(T_REG, O_WRONLY | O_CREAT, 0644); in setup()
Dopen04.c60 TEST(open(fname, O_RDWR | O_CREAT, 0777)); in main()
92 first = fd = open(fname, O_RDWR | O_CREAT, 0777); in setup()
107 fd = open(fname, O_RDWR | O_CREAT, 0777); in setup()
/third_party/musl/porting/liteos_a/user/src/thread/
Dsem_open.c66 flags &= (O_CREAT|O_EXCL); in sem_open()
72 if (flags == (O_CREAT|O_EXCL) && access(name, F_OK) == 0) { in sem_open()
80 if (flags != (O_CREAT|O_EXCL)) { in sem_open()
93 if (!(flags & O_CREAT)) in sem_open()
111 fd = open(tmp, O_CREAT|O_EXCL|FLAGS, mode); in sem_open()
129 if (e != EEXIST || flags == (O_CREAT|O_EXCL)) in sem_open()
/third_party/musl/src/thread/
Dsem_open.c66 flags &= (O_CREAT|O_EXCL); in sem_open()
72 if (flags == (O_CREAT|O_EXCL) && access(name, F_OK) == 0) { in sem_open()
80 if (flags != (O_CREAT|O_EXCL)) { in sem_open()
94 if (!(flags & O_CREAT)) in sem_open()
112 fd = open(tmp, O_CREAT|O_EXCL|FLAGS, mode); in sem_open()
131 if (e != EEXIST || flags == (O_CREAT|O_EXCL)) in sem_open()
/third_party/ltp/testcases/kernel/io/direct_io/
Ddiotest5.c217 if ((fd_w = open(filename, O_WRONLY | O_CREAT, 0666)) < 0) { in main()
221 if ((fd_r = open64(filename, O_DIRECT | O_RDONLY | O_CREAT, 0666)) < 0) { in main()
239 if ((fd_w = open(filename, O_DIRECT | O_WRONLY | O_CREAT, 0666)) < 0) { in main()
243 if ((fd_r = open64(filename, O_RDONLY | O_CREAT, 0666)) < 0) { in main()
260 if ((fd_w = open(filename, O_DIRECT | O_WRONLY | O_CREAT, 0666)) < 0) { in main()
264 if ((fd_r = open64(filename, O_DIRECT | O_RDONLY | O_CREAT, 0666)) < 0) { in main()
295 if ((fd1 = open(filename, O_CREAT | O_EXCL, 0600)) < 0) { in setup()
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()
204 if ((fd_r = open(filename, O_RDONLY | O_CREAT, 0666)) == -1) in main()
220 if ((fd_w = open(filename, O_DIRECT | O_WRONLY | O_CREAT, 0666)) == -1) in main()
224 if ((fd_r = open(filename, O_DIRECT | O_RDONLY | O_CREAT, 0666)) == -1) in main()
254 if ((fd1 = open(filename, O_CREAT | O_EXCL, 0600)) == -1) in setup()
Ddiotest1.c122 int fd = open(infile, O_DIRECT | O_RDWR | O_CREAT, 0666); in main()
129 fd1 = SAFE_OPEN(cleanup, infile, O_DIRECT | O_RDWR | O_CREAT, 0666); in main()
130 fd2 = SAFE_OPEN(cleanup, outfile, O_DIRECT | O_RDWR | O_CREAT, 0666); in main()
/third_party/ffmpeg/libavutil/
Dfile_open.c56 if (fd != -1 || (oflag & O_CREAT)) in win32_open()
73 if (flags & O_CREAT) in avpriv_open()
137 fd = open(*filename, O_RDWR | O_BINARY | O_CREAT | O_EXCL, 0600); in avpriv_tempfile()
166 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()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_close/
D3-2.c98 sem = sem_open(SEM_NAME, O_CREAT | O_EXCL, 0777, 2); in main()
102 sem = sem_open(SEM_NAME, O_CREAT | O_EXCL, 0777, 2); in main()
126 sem = sem_open(SEM_NAME, O_CREAT, 0777, 3); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_unlink/
D6-1.c94 sem1 = sem_open(SEM_NAME, O_CREAT | O_EXCL, 0777, 1); in main()
98 sem1 = sem_open(SEM_NAME, O_CREAT | O_EXCL, 0777, 1); in main()
126 sem2 = sem_open(SEM_NAME, O_CREAT | O_EXCL, 0777, 3); in main()
/third_party/ltp/testcases/misc/math/float/bessel/
Dgenlgamma.c57 fp = open(F_name, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Result_file()
58 fpsi = open(F_namesign, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Result_file()
92 fp = open(F_name, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Data_file()
/third_party/ltp/testcases/misc/math/float/exp_log/
Dgenfrexp.c57 fp = open(F_name, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Result_file()
58 fp1 = open(F_name1, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Result_file()
91 fp = open(F_name, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Data_file()
Dgenmodf.c71 fp = open(F_name, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Result_file()
72 fp1 = open(F_name1, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Result_file()
105 fp = open(F_name, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Data_file()
Dgenldexp.c80 fp = open(F_name, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Result_file()
121 fp = open(F_named, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Data_file()
122 fpi = open(F_namei, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Data_file()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_open/
D23-1.c61 fd = shm_open(name, O_RDONLY | O_CREAT | O_EXCL, in child_func()
83 sem = sem_open(semname, O_CREAT, 0777, 1); in main()
91 O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); in main()
/third_party/NuttX/fs/vfs/
Dfs_open.c75 if (oflags & O_CREAT) in oflag_convert_mode()
198 if ((oflags & O_CREAT) && (oflags & O_EXCL)) in fp_open()
219 if ((ret != OK) && (oflags & O_CREAT) && vnode) in fp_open()
318 if ((oflags & (O_WRONLY | O_CREAT)) != 0) in do_open()
366 if ((__oflag & (O_WRONLY | O_CREAT)) != 0) in open64()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_open/
D4-1.c35 mysemp = sem_open(semname, O_CREAT, 0444, 1); in main()
39 mysemp = sem_open(semname, O_CREAT | O_EXCL, 0444, 1); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_open/
D16-1.c58 fd = open(fname, O_CREAT | O_RDWR | O_EXCL, S_IRUSR | S_IWUSR); in main()
88 childqueue = mq_open(qname, O_CREAT | O_EXCL | O_RDWR, in main()
105 queue = mq_open(qname, O_CREAT | O_EXCL | O_RDWR, in main()
/third_party/ltp/testcases/misc/math/float/power/
Dgenfmod.c75 fp = open(F_name, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Result_file()
109 fp = open(F_name, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Data_file()
110 fp1 = open(F_name1, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Data_file()
Dgenpow.c66 fp = open(F_name, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Result_file()
101 fp = open(F_name, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Data_file()
102 fp2 = open(F_name_pow, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Data_file()

12345678910>>...41