/external/linux-kselftest/tools/testing/selftests/kcmp/ |
kcmp_test.c | 42 fd1 = open(kpath, O_RDWR | O_CREAT | O_TRUNC, 0644); 91 fd2 = open(kpath, O_RDWR);
|
/external/ltp/testcases/kernel/device-drivers/agp/user_space/ |
user_tagp.c | 113 tagp_fd = open(DEVICE_NAME, O_RDWR); 142 if ((tagp_fd = open("/dev/agpgart", O_RDWR)) < 0) {
|
/external/ltp/testcases/kernel/io/aio/ |
aio02.c | 38 DESC_FLAGS_OPR(IO_CMD_PWRITE, O_RDWR | O_TRUNC), 41 DESC_FLAGS_OPR(IO_CMD_PREAD, O_RDWR),
|
/external/ltp/testcases/kernel/syscalls/fallocate/ |
fallocate01.c | 149 fd_mode1 = SAFE_OPEN(cleanup, fname_mode1, O_RDWR | O_CREAT, 0700); 154 fd_mode2 = SAFE_OPEN(cleanup, fname_mode2, O_RDWR | O_CREAT, 0700);
|
/external/ltp/testcases/kernel/syscalls/ftruncate/ |
ftruncate04.c | 172 fd = SAFE_OPEN(cleanup, filename, O_RDWR | O_NONBLOCK); 198 fd = SAFE_OPEN(NULL, filename, O_RDWR);
|
/external/ltp/testcases/kernel/syscalls/memfd_create/ |
memfd_create03.c | 220 fd = open(TOTAL_HP_PATH, O_RDWR | O_TRUNC); 246 fd = open(TOTAL_HP_PATH, O_RDWR | O_TRUNC);
|
/external/ltp/testcases/kernel/syscalls/mmap/ |
mmap16.c | 109 parentfd = SAFE_OPEN(cleanup, "testfilep", O_RDWR); 192 fd = SAFE_OPEN(NULL, "testfilec", O_RDWR);
|
/external/ltp/testcases/kernel/syscalls/pwrite/ |
pwrite04.c | 85 if ((fd = open(fname, O_RDWR | O_CREAT, 0666)) < 0) { 164 if ((fd = open(fname, O_RDWR | O_APPEND, 0666)) < 0) {
|
/external/ltp/testcases/kernel/syscalls/remap_file_pages/ |
remap_file_pages01.c | 246 if ((fd1 = open(fname, O_RDWR | O_CREAT | O_TRUNC, S_IRWXU)) < 0) { 248 "open(%s, O_RDWR|O_CREAT|O_TRUNC,S_IRWXU) Failed, errno=%d : %s", 252 if ((fd2 = open("cache", O_RDWR | O_CREAT | O_TRUNC, S_IRWXU)) < 0) { 254 "open(%s, O_RDWR|O_CREAT|O_TRUNC,S_IRWXU) Failed, errno=%d : %s",
|
/external/ltp/testcases/kernel/syscalls/stat/ |
stat03.c | 262 if ((fd = open(TEST_FILE1, O_RDWR | O_CREAT, 0666)) == -1) { 264 "open(%s, O_RDWR|O_CREAT, 0666) failed, errno=%d : %s", 289 if ((fd = open("t_file", O_RDWR | O_CREAT, MODE_RWX)) == -1) {
|
/external/ltp/testcases/kernel/syscalls/sync_file_range/ |
sync_file_range01.c | 185 if ((filed = open(filename, O_RDWR | O_CREAT, 0700)) == -1) { 187 "open(%s, O_RDWR|O_CREAT,0700) failed", filename); 190 sfd = open(spl_file, O_RDWR | O_CREAT, 0700);
|
/external/ltp/testcases/kernel/syscalls/utils/ |
common_j_h.c | 151 O_CREAT | O_EXCL | O_RDWR, S_IRUSR | S_IWUSR); 187 fd = open(path, O_CREAT | O_EXCL | O_RDWR, S_IRUSR | S_IWUSR);
|
/external/ltp/testcases/kernel/syscalls/utimensat/ |
utimensat01.c | 87 "descriptor with O_RDWR|O_APPEND\n" 142 oflag = O_RDWR | O_APPEND; 160 if ((oflag & O_ACCMODE) == O_RDWR) 161 printf(" O_RDWR");
|
/external/ltp/testcases/network/nfs/nfs_stress/ |
nfs05_make_tree.c | 156 fd = openat(dirfd, "makefile", O_CREAT | O_RDWR, 170 fd = openat(dirfd, cfile, O_CREAT | O_RDWR,
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_close/ |
2-1.c | 102 queue = open_queue(qname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR); 173 queue = open_queue(qname, O_RDWR, 0);
|
/external/toybox/toys/other/ |
losetup.c | 60 int i, cfd = open("/dev/loop-control", O_RDWR); 148 TT.openflags = (toys.optflags & FLAG_r) ? O_RDONLY : O_RDWR;
|
/bionic/libc/kernel/uapi/asm-generic/ |
fcntl.h | 25 #define O_RDWR 00000002
|
/bionic/tests/headers/posix/ |
fcntl_h.c | 79 MACRO(O_RDWR);
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-13273/ |
poc.c | 87 ctrl_fd = open("/proc/net/xt_qtaguid/ctrl", O_RDWR);
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-6262/ |
poc.c | 80 fd = open(DRMDEV_NAME, O_RDWR);
|
/cts/tests/tests/content/jni/ |
NativeCursorWindow.cpp | 85 int fd = open(chars, O_CREAT | O_RDWR | O_CLOEXEC, 0700);
|
/device/google/marlin/camera/usbcamcore/inc/ |
QCameraUsbPriv.h | 101 camHal->fd = open(camHal->dev_name, O_RDWR | O_NONBLOCK, 0);\
|
/device/linaro/bootloader/edk2/StdLib/BsdSocketLib/ |
socket.c | 149 pDescriptor->Oflags = O_RDWR;
|
/external/e2fsprogs/misc/ |
e2label.c | 93 fd = open_e2fs(dev, O_RDWR);
|
/external/elfutils/tests/ |
arextract.c | 98 outfd = open (argv[3], O_CREAT | O_TRUNC | O_RDWR, 0666);
|