/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
flags.c | 61 o = O_CREAT | O_TRUNC; 67 o = O_CREAT | O_APPEND; 87 if (o & O_CREAT)
|
/external/toybox/toys/posix/ |
nohup.c | 28 if (-1 == open("nohup.out", O_CREAT|O_APPEND|O_WRONLY, 34 xcreate(temp, O_CREAT|O_APPEND|O_WRONLY, 0600);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_open/ |
4-1.c | 11 should fail when both O_CREAT and O_EXCL name exist during the opening 35 mysemp = sem_open(semname, O_CREAT, 0444, 1); 39 mysemp = sem_open(semname, O_CREAT | O_EXCL, 0444, 1);
|
10-1.c | 36 mysemp = sem_open(semname, O_CREAT, 0777, 5); 47 mysemp = sem_open(semname, O_CREAT, 0777, 1);
|
2-1.c | 12 should fail when both O_CREAT and O_EXCL name exist during the opening 36 mysemp = sem_open(semname, O_CREAT, 0777, 0); 47 mysemp = sem_open(semname, O_CREAT | O_EXCL, 0777, 1);
|
1-2.c | 33 mysemp = sem_open(semname, O_CREAT, 0777, 1);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_open/ |
22-1.c | 11 * O_CREAT are set. 29 fd = shm_open(SHM_NAME, O_RDONLY | O_CREAT, S_IRUSR | S_IWUSR); 35 fd = shm_open(SHM_NAME, O_RDONLY | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR);
|
11-1.c | 28 fd = shm_open(SHM_NAME, O_RDONLY | O_CREAT, S_IRUSR | S_IWUSR);
|
38-1.c | 28 fd = shm_open(SHM_NAME, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_unlink/ |
5-1.c | 11 * create a new shared memory object if O_CREAT is set even if the object 28 fd = shm_open(SHM_NAME, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); 39 fd = shm_open(SHM_NAME, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR);
|
6-1.c | 25 fd = shm_open(SHM_NAME, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
|
/external/libpcap/testprogs/ |
unix.h | 51 #define O_CREAT _O_CREAT
|
/external/ltp/testcases/kernel/syscalls/pwrite/ |
pwrite03.c | 42 fd = SAFE_OPEN("test_file", O_RDWR | O_CREAT, 0700);
|
/external/ltp/testcases/kernel/syscalls/write/ |
write02.c | 42 fd = SAFE_OPEN("test_file", O_RDWR | O_CREAT, 0700);
|
/external/toybox/toys/other/ |
fallocate.c | 29 int fd = xcreate(*toys.optargs, O_RDWR | O_CREAT, 0644);
|
/device/linaro/bootloader/edk2/StdLib/LibC/Stdio/ |
flags.c | 80 o = O_CREAT | O_TRUNC;
86 o = O_CREAT | O_APPEND;
|
/external/ltp/testcases/kernel/syscalls/flistxattr/ |
flistxattr03.c | 72 fd[0] = SAFE_OPEN("testfile1", O_RDWR | O_CREAT, 0644); 74 fd[1] = SAFE_OPEN("testfile2", O_RDWR | O_CREAT, 0644);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_open/ |
15-1.c | 10 * Test that if O_EXCL and O_CREAT are set and message queue name already 32 queue = mq_open(qname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, NULL); 40 * Open queue qname again with O_CREAT and O_EXCL set 42 queue2 = mq_open(qname, O_CREAT | O_EXCL | O_RDWR, 45 printf("mq_open() should have failed with O_CREAT and\n");
|
23-1.c | 10 * Test that mq_open() fails with EEXIST if O_CREAT and O_EXCL are set 33 queue = mq_open(qname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, NULL); 41 * Open queue qname again with O_CREAT and O_EXCL set 43 queue2 = mq_open(qname, O_CREAT | O_EXCL | O_RDWR, 46 printf("mq_open() should have failed with O_CREAT and\n");
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_close/ |
2-1.c | 33 mysemp = sem_open(semname, O_CREAT, 0777, 1); 46 mysemp = sem_open(semname, O_CREAT, 0777, 1);
|
/external/compiler-rt/test/sanitizer_common/TestCases/Posix/ |
sanitizer_set_report_fd_test.cc | 29 int fd = open(argv[1], O_CREAT | O_WRONLY | O_TRUNC, S_IRWXU);
|
/external/ltp/testcases/kernel/syscalls/futex/ |
futex_common.h | 31 fd = shm_open("/LTP_futex_wait", O_RDWR | O_CREAT | O_EXCL, 0); 35 "shm_open(/LTP_futex_wait,O_RDWR|O_CREAT|O_EXCL,775)");
|
/external/ltp/testcases/kernel/syscalls/splice/ |
splice02.c | 40 fd = SAFE_OPEN("splice02-temp", O_WRONLY | O_CREAT | O_TRUNC, 0644);
|
/bionic/libc/bionic/ |
open.cpp | 47 return ((flags & O_CREAT) == O_CREAT) || ((flags & O_TMPFILE) == O_TMPFILE); 51 return open(pathname, O_CREAT | O_TRUNC | O_WRONLY, mode); 70 if (needs_mode(flags)) __fortify_fatal("open: called with O_CREAT/O_TMPFILE but no mode"); 89 if (needs_mode(flags)) __fortify_fatal("open: called with O_CREAT/O_TMPFILE but no mode");
|
/device/google/contexthub/util/common/ |
file.cpp | 51 modeval = O_WRONLY | O_CREAT | O_TRUNC; 53 modeval = O_RDWR | O_CREAT; 57 if (modeval & O_CREAT) {
|