/external/strace/xlat/ |
open_access_modes.h | 20 #if defined(O_RDWR) || (defined(HAVE_DECL_O_RDWR) && HAVE_DECL_O_RDWR) 22 static_assert((O_RDWR) == (2), "O_RDWR != 2"); 25 # define O_RDWR 2 42 [O_RDWR] = XLAT(O_RDWR),
|
/external/toybox/toys/other/ |
freeramdisk.c | 24 fd = xopen(toys.optargs[0], O_RDWR);
|
chvt.c | 29 if (-1 != (fd = open(*cc, O_RDWR))) break;
|
fallocate.c | 29 int fd = xcreate(*toys.optargs, O_RDWR | O_CREAT, 0644);
|
/external/ltp/testcases/kernel/syscalls/fcntl/ |
fcntl04.c | 59 if ((TST_RET & O_ACCMODE) != O_RDWR) { 62 TST_RET & O_ACCMODE, O_RDWR); 73 fd = SAFE_OPEN(fname, O_RDWR | O_CREAT, 0700);
|
fcntl32.c | 45 {O_RDONLY, O_RDWR}, 48 {O_WRONLY, O_RDWR}, 49 {O_RDWR, O_RDONLY}, 50 {O_RDWR, O_WRONLY}, 51 {O_RDWR, O_RDWR},
|
/external/ltp/testcases/kernel/syscalls/flock/ |
flock06.c | 26 fd1 = SAFE_OPEN("testfile", O_RDWR); 33 fd2 = SAFE_OPEN("testfile", O_RDWR); 60 fd = SAFE_OPEN("testfile", O_CREAT | O_TRUNC | O_RDWR, 0666);
|
flock02.c | 37 fd = SAFE_OPEN("testfile", O_RDWR); 59 fd1 = SAFE_OPEN("testfile", O_CREAT | O_TRUNC | O_RDWR, 0666);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_unlink/ |
5-1.c | 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/openssh/openbsd-compat/ |
bsd-openpty.c | 83 if ((slave = _getpty(amaster, O_RDWR, 0622, 0)) == NULL) 87 if ((*aslave = open(slave, O_RDWR | O_NOCTTY)) == -1) { 102 if ((ptm = open("/dev/ptmx", O_RDWR | O_NOCTTY)) == -1) 119 if ((*aslave = open(pts, O_RDWR | O_NOCTTY)) == -1) { 142 if ((*amaster = open("/dev/ptc", O_RDWR | O_NOCTTY)) == -1) 146 if ((*aslave = open(ttname, O_RDWR | O_NOCTTY)) == -1) { 166 if ((*amaster = open(ptbuf, O_RDWR|O_NOCTTY)) == -1) 169 if ((*aslave = open(ttbuf, O_RDWR|O_NOCTTY)) == -1) { 194 if ((*amaster = open(ptbuf, O_RDWR | O_NOCTTY)) == -1) { 198 if ((*amaster = open(ptbuf, O_RDWR | O_NOCTTY)) == -1 [all...] |
/external/libpcap/testprogs/ |
unix.h | 49 #define O_RDWR _O_RDWR
|
/external/ltp/lib/newlib_tests/ |
test14.c | 28 SAFE_OPEN("foo", O_RDWR);
|
/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/mesa3d/src/gallium/winsys/imx/drm/ |
imx_drm_winsys.c | 39 .gpu_fd = open("/dev/dri/renderD128", O_RDWR | O_CLOEXEC)
|
/external/android-clat/ |
tun.c | 34 fd = open("/dev/tun", O_RDWR | O_NONBLOCK | O_CLOEXEC); 36 fd = open("/dev/net/tun", O_RDWR | O_NONBLOCK | O_CLOEXEC);
|
/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 | 32 queue = mq_open(qname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, NULL); 42 queue2 = mq_open(qname, O_CREAT | O_EXCL | O_RDWR,
|
23-1.c | 33 queue = mq_open(qname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, NULL); 43 queue2 = mq_open(qname, O_CREAT | O_EXCL | O_RDWR,
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_unlink/ |
1-1.c | 38 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0); 44 if (mq_open(mqname, O_RDWR, S_IRUSR | S_IWUSR, 0) == -1) {
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_open/ |
14-2.c | 11 * the value of O_RDWR. 17 * 3. Reopen the file with shm_open() and O_RDWR set. 39 fd = shm_open(SHM_NAME, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); 58 fd = shm_open(SHM_NAME, O_RDWR, S_IRUSR | S_IWUSR);
|
25-1.c | 11 * shared memory object exists and it is successfully opened O_RDWR. 15 * 2. Call shm_open with O_TRUNC and O_RDWR set. 35 fd = shm_open(SHM_NAME, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); 46 fd = shm_open(SHM_NAME, O_RDWR | O_TRUNC, S_IRUSR | S_IWUSR);
|
26-1.c | 11 * object exists and it is successfully opened O_RDWR. 15 * 2. Call shm_open with O_TRUNC and O_RDWR set and with differents permission 36 fd = shm_open(SHM_NAME, O_RDWR | O_CREAT, CREATION_MODE); 49 fd = shm_open(SHM_NAME, O_RDWR | O_TRUNC, OPEN_MODE);
|
32-1.c | 72 fd = shm_open(SHM_NAME, O_RDWR | O_CREAT, 0); 78 fd = shm_open(SHM_NAME, O_RDWR, 0);
|