HomeSort by relevance Sort by last modified time
    Searched refs:fd2 (Results 26 - 50 of 241) sorted by null

12 3 4 5 6 7 8 910

  /hardware/qcom/display/msm8998/sdm/include/core/
buffer_sync_handler.h 73 @param[in] fd2
79 virtual DisplayError SyncMerge(int fd1, int fd2, int *merged_fd) = 0;
  /external/ltp/testcases/kernel/syscalls/kcmp/
kcmp01.c 37 static int fd2; variable
47 int *fd2; member in struct:test_case
51 {&pid2, &pid2, KCMP_FILE, &fd1, &fd2, 0},
53 {&pid1, &pid2, KCMP_FILE, &fd1, &fd2, 0},
74 fd2 = dup(fd1);
75 if (fd2 == -1) {
82 *(test->fd1), *(test->fd2)));
84 SAFE_CLOSE(fd2);
  /external/ltp/testcases/kernel/syscalls/dup2/
dup203.c 62 int fd0, fd1, fd2, rval; local
104 if ((fd2 = TEST_RETURN) == -1) {
107 if (fd1 != fd2) {
113 if (read(fd2, buf, sizeof(buf)) == -1)
122 close(fd2);
143 if ((fd2 = creat(filename1, 0666)) == -1) {
148 rval = fd2;
151 TEST(dup2(fd0, fd2));
156 if (fd1 != fd2) {
  /external/ltp/testcases/kernel/syscalls/pwritev/
pwritev02.c 47 static int fd2; variable
77 {&fd2, wr_iovec2, 1, 0, EBADF},
104 fd2 = SAFE_OPEN("file", O_RDONLY | O_CREAT, 0644);
113 if (fd2 > 0)
114 SAFE_CLOSE(fd2);
  /external/ltp/testcases/kernel/syscalls/fcntl/
fcntl32.c 36 static int fd2; variable
102 fd2 = SAFE_OPEN(cleanup, "file", test_cases[i].fd2_flag);
124 SAFE_CLOSE(cleanup, fd2);
125 fd2 = 0;
133 if (fd2 > 0 && close(fd2))
fcntl01.c 25 * 09/2002 added fd2 array to remove statid fds
48 int fd[10], fd2[10]; local
67 fd2[i] = fd[i];
78 if (fd[2] < fd2[2])
82 if ((fd[4] = fcntl(fd[1], F_DUPFD, fd2[3])) < 0)
83 tst_resm(TFAIL | TERRNO, "fcntl(.., fd2[3]) failed");
85 if (fd[4] < fd2[3])
87 "expect greater than %d", fd[4], fd2[3]);
89 if ((fd[8] = fcntl(fd[1], F_DUPFD, fd2[5])) < 0)
90 tst_resm(TFAIL | TERRNO, "fcntl(.., fd2[5]) failed")
    [all...]
  /external/ltp/testcases/kernel/syscalls/flock/
flock06.c 90 int fd1, fd2; local
107 fd2 = open(filename, O_RDWR);
108 if (fd2 == -1)
112 TEST(flock(fd2, LOCK_EX | LOCK_NB));
124 TEST(flock(fd2, LOCK_EX | LOCK_NB));
130 close(fd2);
flock03.c 127 int fd2; local
131 fd2 = open(FILE_NAME, O_RDWR);
133 if (fd2 == -1) {
139 if (flock(fd2, LOCK_EX | LOCK_NB) != -1) {
156 TEST(flock(fd2, LOCK_EX | LOCK_NB));
167 close(fd2);
  /external/ltp/testcases/kernel/syscalls/lseek/
lseek07.c 36 static int fd1, fd2; variable
46 {&fd2, TFILE2, 2, 2, 7, "abijkfg"},
89 fd2 = SAFE_OPEN(TFILE2, O_RDWR | O_CREAT, 0644);
92 SAFE_WRITE(1, fd2, WR_STR1, sizeof(WR_STR1) - 1);
100 if (fd2 > 0)
101 SAFE_CLOSE(fd2);
  /external/libdrm/tests/nouveau/
threaded.c 78 int err, fd, fd2; local
88 fd2 = drmOpenWithType("nouveau", NULL, DRM_NODE_RENDER);
94 fd2 = open(device, O_RDWR);
96 fd2 = fd = -errno;
104 if (fd2 < 0) {
122 err = nouveau_device_wrap(fd2, 0, &nvdev2);
144 close(fd2);
147 drmClose(fd2);
  /external/ltp/testcases/kernel/syscalls/memfd_create/
memfd_create01.c 139 int fd2; local
143 fd2 = SAFE_DUP(fd);
144 CHECK_MFD_HAS_SEALS(fd2, 0);
148 CHECK_MFD_HAS_SEALS(fd2, F_SEAL_WRITE);
150 CHECK_MFD_ADD_SEALS(fd2, F_SEAL_SHRINK);
152 CHECK_MFD_HAS_SEALS(fd2, F_SEAL_WRITE | F_SEAL_SHRINK);
156 CHECK_MFD_HAS_SEALS(fd2, F_SEAL_WRITE | F_SEAL_SHRINK | F_SEAL_SEAL);
159 CHECK_MFD_FAIL_ADD_SEALS(fd2, F_SEAL_GROW);
161 CHECK_MFD_FAIL_ADD_SEALS(fd2, F_SEAL_SEAL);
163 SAFE_CLOSE(fd2);
203 int fd2; local
    [all...]
  /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));
92 FAIL_IF((read(fd2[READ_FD], &c, 1)) != 1);
100 FAIL_IF((write(fd2[WRITE_FD], &c, 1) != 1));
  /external/valgrind/memcheck/tests/linux/
syscalls-2007.c 38 int fd, fd2; local
48 fd2 = eventfd (5, 0);
49 eventfd_read (fd2, &ev);
52 pfd[1].fd = fd2;
  /hardware/qcom/display/msm8909/sdm/libs/hwc/
hwc_buffer_sync_handler.h 46 virtual DisplayError SyncMerge(int fd1, int fd2, int *merged_fd);
  /hardware/qcom/display/msm8909w_3100/sdm/libs/hwc/
hwc_buffer_sync_handler.h 46 virtual DisplayError SyncMerge(int fd1, int fd2, int *merged_fd);
  /hardware/qcom/display/msm8996/sdm/libs/hwc/
hwc_buffer_sync_handler.h 46 virtual DisplayError SyncMerge(int fd1, int fd2, int *merged_fd);
  /hardware/qcom/display/msm8998/sdm/libs/hwc2/
hwc_buffer_sync_handler.h 46 virtual DisplayError SyncMerge(int fd1, int fd2, int *merged_fd);
  /external/ltp/testcases/kernel/input/
input01.c 40 static int fd2; variable
85 fd2 = open_device();
107 rd = read(fd2, iev, sizeof(iev));
183 if (fd2 > 0 && close(fd2))
184 tst_resm(TWARN | TERRNO, "close(fd2)");
input03.c 40 static int fd, fd2; variable
90 fd2 = SAFE_OPEN(NULL, "/dev/input/mice", O_RDONLY);
115 rd = read(fd2, buf, sizeof(buf));
141 if (fd2 > 0 && close(fd2))
142 tst_resm(TWARN, "close(fd2) failed");
  /external/ltp/testcases/kernel/syscalls/preadv/
preadv02.c 49 static int fd2; variable
80 {&fd2, rd_iovec2, 1, 0, EBADF},
109 fd2 = SAFE_OPEN("file2", O_WRONLY | O_CREAT, 0644);
119 if (fd2 > 0)
120 SAFE_CLOSE(fd2);
  /external/ltp/testcases/kernel/syscalls/read/
read02.c 52 static int fd2, fd3, fd4 = -1; variable
67 {&fd2, &bufaddr, 1, EISDIR},
108 fd2 = SAFE_OPEN(".", O_DIRECTORY);
137 if (fd2 > 0)
138 SAFE_CLOSE(fd2);
  /external/linux-kselftest/tools/testing/selftests/memfd/
memfd_test.c 434 int r, fd2; local
444 fd2 = mfd_assert_open(fd,
447 close(fd2);
851 int fd, fd2; local
859 fd2 = mfd_assert_dup(fd);
864 mfd_assert_shrink(fd2);
865 mfd_assert_grow(fd2);
867 close(fd2);
877 int fd, fd2; local
895 fd2 = mfd_assert_dup(fd)
964 int fd, fd2; local
992 int fd, fd2; local
    [all...]
  /external/ltp/testcases/kernel/io/direct_io/
diotest1.c 57 static int fd1, fd2; variable
73 if (fd2 > 0)
74 close(fd2);
130 fd2 = SAFE_OPEN(cleanup, outfile, O_DIRECT | O_RDWR | O_CREAT, 0666);
148 SAFE_LSEEK(cleanup, fd2, offset, SEEK_SET);
150 SAFE_WRITE(cleanup, 1, fd2, buf, n);
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/
3-1.c 50 int fd2; local
70 fd2 = open(tmpfname2, O_CREAT | O_RDWR | O_EXCL, S_IRUSR | S_IWUSR);
71 if (fd == -1 || fd2 == -1) {
88 if (write(fd2, data, total_size) != total_size) {
110 mmap(pa, size2, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_FIXED, fd2,
130 close(fd2);
  /external/valgrind/memcheck/tests/
file_locking.c 80 int fd2; local
102 fd2 = open_lock_and_map("child", filename);
103 if (fd2 >= 0)
105 close(fd2);

Completed in 1418 milliseconds

12 3 4 5 6 7 8 910