Home
last modified time | relevance | path

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

12345678910>>...50

/external/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()
/external/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()
/external/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 …]
/external/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()
/external/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()
/external/strace/xlat/
Dopen_mode_flags.h7 #if defined(O_CREAT) || (defined(HAVE_DECL_O_CREAT) && HAVE_DECL_O_CREAT)
9 static_assert((O_CREAT) == (0400), "O_CREAT != 0400");
12 # define O_CREAT 0400
15 #if defined(O_CREAT) || (defined(HAVE_DECL_O_CREAT) && HAVE_DECL_O_CREAT)
17 static_assert((O_CREAT) == (01000), "O_CREAT != 01000");
20 # define O_CREAT 01000
23 #if defined(O_CREAT) || (defined(HAVE_DECL_O_CREAT) && HAVE_DECL_O_CREAT)
25 static_assert((O_CREAT) == (0100), "O_CREAT != 0100");
28 # define O_CREAT 0100
594 XLAT(O_CREAT),
[all …]
/external/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()
/external/llvm-project/compiler-rt/test/tsan/libdispatch/
Dio-cleanup.c19 dispatch_fd_t fd = open(path, O_CREAT | O_WRONLY, 0666); in main()
31 …channel = dispatch_io_create_with_path(DISPATCH_IO_STREAM, path, O_CREAT | O_WRONLY, 0666, queue, … in main()
41 …dispatch_io_t other_channel = dispatch_io_create_with_path(DISPATCH_IO_STREAM, path, O_CREAT | O_W… in main()
/external/rust/crates/nix/test/
Dtest_mq.rs16 let oflag0 = MQ_OFlag::O_CREAT | MQ_OFlag::O_WRONLY; in test_mq_send_and_receive()
27 let oflag1 = MQ_OFlag::O_CREAT | MQ_OFlag::O_RDONLY; in test_mq_send_and_receive()
47 let oflag = MQ_OFlag::O_CREAT | MQ_OFlag::O_WRONLY; in test_mq_getattr()
70 let oflag = MQ_OFlag::O_CREAT | MQ_OFlag::O_WRONLY; in test_mq_setattr()
107 let oflag = MQ_OFlag::O_CREAT | MQ_OFlag::O_WRONLY; in test_mq_set_nonblocking()
132 let oflag = MQ_OFlag::O_CREAT | MQ_OFlag::O_WRONLY; in test_mq_unlink()
/external/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()
/external/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()
/external/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()
/external/strace/tests-m32/
Dopenat.c55 flag_val & (O_CREAT | STRACE_O_TMPFILE) ? ", 000" : "", in test_mode_flag()
62 long fd = syscall(__NR_openat, -100, sample, O_RDONLY|O_CREAT, 0400); in main()
96 { ARG_STR(O_CREAT) }, in main()
/external/strace/tests/
Dopenat.c55 flag_val & (O_CREAT | STRACE_O_TMPFILE) ? ", 000" : "", in test_mode_flag()
62 long fd = syscall(__NR_openat, -100, sample, O_RDONLY|O_CREAT, 0400); in main()
96 { ARG_STR(O_CREAT) }, in main()
/external/kernel-headers/original/uapi/asm-generic/
Dfcntl.h23 #ifndef O_CREAT
24 #define O_CREAT 00000100 /* not fcntl */ macro
94 #define O_TMPFILE_MASK (__O_TMPFILE | O_DIRECTORY | O_CREAT)
/external/strace/tests-mx32/
Dopenat.c55 flag_val & (O_CREAT | STRACE_O_TMPFILE) ? ", 000" : "", in test_mode_flag()
62 long fd = syscall(__NR_openat, -100, sample, O_RDONLY|O_CREAT, 0400); in main()
96 { ARG_STR(O_CREAT) }, in main()
/external/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()
/external/clang/test/Sema/
Denable_if.c4 #define O_CREAT 0x100 macro
10 int open(const char *pathname, int flags) __attribute__((enable_if(!(flags & O_CREAT), "must specif…
15 open("path", O_CREAT); // expected-error{{no matching function for call to 'open'}} in test1()
17 open("path", O_CREAT, 0660); in test1()
/external/compiler-rt/test/tsan/Darwin/
Dgcd-io-cleanup.mm17 dispatch_fd_t fd = open(path, O_CREAT | O_WRONLY, 0666);
29 …channel = dispatch_io_create_with_path(DISPATCH_IO_STREAM, path, O_CREAT | O_WRONLY, 0666, queue, …
39 …dispatch_io_t other_channel = dispatch_io_create_with_path(DISPATCH_IO_STREAM, path, O_CREAT | O_W…
/external/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()
/external/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()

12345678910>>...50