/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_open/ |
8-1.c | 38 int fd1, fd2; local 41 fd1 = mkstemp(path); 42 if (fd1 == -1) { 57 if (fd2 == (fd1 + 1)) {
|
/external/valgrind/memcheck/tests/linux/ |
sys-openat.c | 12 __attribute__((unused)) int fd1 = openat (dfd, "abc", O_RDONLY); local
|
/external/libcxx/test/std/input.output/file.streams/fstreams/fstream.assign/ |
member_swap.pass.cpp | 28 std::FILE *fd1 = std::fopen(names.first.c_str(), "w"); local 33 std::fclose(fd1);
|
nonmember_swap.pass.cpp | 30 std::FILE *fd1 = std::fopen(names.first.c_str(), "w"); local 35 std::fclose(fd1);
|
/external/libcxx/test/std/input.output/file.streams/fstreams/ofstream.assign/ |
member_swap.pass.cpp | 28 std::FILE *fd1 = std::fopen(names.first.c_str(), "w"); local 33 std::fclose(fd1);
|
nonmember_swap.pass.cpp | 29 std::FILE *fd1 = std::fopen(names.first.c_str(), "w"); local 34 std::fclose(fd1);
|
/external/ltp/testcases/kernel/syscalls/flock/ |
flock06.c | 90 int fd1, fd2; local 95 fd1 = open(filename, O_RDWR); 96 if (fd1 == -1) 100 TEST(flock(fd1, LOCK_EX | LOCK_NB)); 118 TEST(flock(fd1, LOCK_UN)); 120 tst_resm(TFAIL | TTERRNO, "Failed to unlock fd1"); 122 tst_resm(TPASS, "Unlocked fd1"); 129 close(fd1);
|
flock04.c | 87 int fd, fd1, status; variable 110 fd1 = open(filename, O_RDONLY); 111 retval = flock(fd1, LOCK_SH | LOCK_NB); 131 fd1 = open(filename, O_RDWR); 132 retval = flock(fd1, LOCK_EX | LOCK_NB); 150 close(fd1);
|
flock05.c | 86 int fd, fd1, status; variable 111 fd1 = open(filename, O_RDWR); 112 retval = flock(fd1, LOCK_SH | LOCK_NB); 132 fd1 = open(filename, O_RDWR); 133 retval = flock(fd1, LOCK_EX | LOCK_NB); 157 close(fd1);
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/input.output/file.streams/fstreams/fstream.assign/ |
member_swap.pass.cpp | 28 std::FILE *fd1 = std::fopen(names.first.c_str(), "w"); local 33 std::fclose(fd1);
|
nonmember_swap.pass.cpp | 30 std::FILE *fd1 = std::fopen(names.first.c_str(), "w"); local 35 std::fclose(fd1);
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/input.output/file.streams/fstreams/ofstream.assign/ |
member_swap.pass.cpp | 28 std::FILE *fd1 = std::fopen(names.first.c_str(), "w"); local 33 std::fclose(fd1);
|
nonmember_swap.pass.cpp | 29 std::FILE *fd1 = std::fopen(names.first.c_str(), "w"); local 34 std::fclose(fd1);
|
/external/linux-kselftest/tools/testing/selftests/kcmp/ |
kcmp_test.c | 23 static long sys_kcmp(int pid1, int pid2, int type, unsigned long fd1, unsigned long fd2) 25 return syscall(__NR_kcmp, pid1, pid2, type, fd1, fd2); 37 int fd1, fd2; local 42 fd1 = open(kpath, O_RDWR | O_CREAT | O_TRUNC, 0644); 45 if (fd1 < 0) { 102 sys_kcmp(pid1, pid2, KCMP_FILE, fd1, fd2), 114 ret = sys_kcmp(pid1, pid2, KCMP_FILE, fd1, fd1);
|
/external/linux-kselftest/tools/testing/selftests/net/ |
reuseaddr_conflict.c | 89 int fd1, fd2; local 96 fd1 = open_port(0, 1); 97 if (fd1 >= 0) 100 fd1 = open_port(1, 1); 101 if (fd1 < 0) 107 close(fd1); 109 fd1 = open_port(0, 1); 110 if (fd1 >= 0)
|
/external/ltp/testcases/kernel/fs/fs_di/ |
frag.c | 48 int bytes_read = 0, bytes_written = 0, fd1 = -1, fd2 = -1; local 96 fd1 = fileno(fp_frag1); 99 fsync(fd1);
|
/external/ltp/testcases/kernel/syscalls/dup2/ |
dup203.c | 62 int fd0, fd1, fd2, rval; local 89 if ((fd1 = creat(filename1, 0666)) == -1) 91 if (write(fd1, filename1, strlen(filename1)) == -1) 98 SAFE_CLOSE(cleanup, fd1); 99 if ((fd1 = open(filename1, O_RDONLY)) == -1) 102 TEST(dup2(fd0, fd1)); 107 if (fd1 != fd2) { 121 close(fd1); 153 if ((fd1 = TEST_RETURN) == -1) { 156 if (fd1 != fd2) [all...] |
/external/ltp/testcases/kernel/syscalls/fcntl/ |
fcntl32.c | 35 static int fd1; variable 101 fd1 = SAFE_OPEN(cleanup, "file", test_cases[i].fd1_flag); 104 TEST(fcntl(fd1, F_SETLEASE, F_WRLCK)); 122 SAFE_CLOSE(cleanup, fd1); 123 fd1 = 0; 130 if (fd1 > 0 && close(fd1))
|
/external/ltp/testcases/kernel/syscalls/flistxattr/ |
flistxattr02.c | 46 static int fd1; variable 54 {&fd1, 1, ERANGE}, 83 fd1 = SAFE_OPEN("testfile", O_RDWR | O_CREAT, 0644); 85 SAFE_FSETXATTR(fd1, SECURITY_KEY, VALUE, VALUE_SIZE, XATTR_CREATE); 90 if (fd1 > 0) 91 SAFE_CLOSE(fd1);
|
/external/mesa3d/src/gallium/winsys/freedreno/drm/ |
freedreno_drm_winsys.c | 78 int fd1 = pointer_to_intptr(key1); local 81 fstat(fd1, &stat1);
|
/external/valgrind/memcheck/tests/ |
file_locking.c | 79 int fd1; local 89 if ((fd1 = open_lock_and_map("parent", filename)) >= 0) 122 close(fd1);
|
/external/webrtc/webrtc/base/ |
linuxfdwalk_unittest.cc | 58 int fd1 = open("/dev/null", O_RDONLY); local 59 EXPECT_LE(0, fd1); 66 EXPECT_TRUE(fds.insert(fd1).second); 71 EXPECT_EQ(0, close(fd1));
|
/external/clang/test/CXX/special/class.inhctor/ |
p3.cpp | 15 D1 fd1() { return 1; } function
|
/external/libchrome/base/posix/ |
file_descriptor_shuffle_unittest.cc | 26 fd1(in_fd1), 32 other.fd1 == fd1 && 37 int fd1; member in struct:base::Action
|
/external/linux-kselftest/tools/testing/selftests/powerpc/context_switch/ |
cp_abort.c | 70 int fd1[2], fd2[2], pid; local 84 FAIL_IF(pipe(fd1) || pipe(fd2)); 91 FAIL_IF((write(fd1[WRITE_FD], &c, 1)) != 1); 98 FAIL_IF((read(fd1[READ_FD], &c, 1)) != 1);
|