/external/igt-gpu-tools/tests/ |
D | prime_self_import.c | 57 check_bo(int fd1, uint32_t handle1, int fd2, uint32_t handle2) in check_bo() argument 64 ptr2 = gem_mmap__cpu(fd2, handle2, 0, BO_SIZE, PROT_READ | PROT_WRITE); in check_bo() 67 gem_set_domain(fd2, handle2, I915_GEM_DOMAIN_CPU, I915_GEM_DOMAIN_CPU); in check_bo() 86 int fd1, fd2; in test_with_fd_dup() local 93 fd2 = drm_open_driver(DRIVER_INTEL); in test_with_fd_dup() 102 handle_import = prime_fd_to_handle(fd2, dma_buf_fd2); in test_with_fd_dup() 103 check_bo(fd2, handle_import, fd2, handle_import); in test_with_fd_dup() 106 check_bo(fd2, handle_import, fd2, handle_import); in test_with_fd_dup() 109 close(fd2); in test_with_fd_dup() 114 int fd1, fd2; in test_with_two_bos() local [all …]
|
D | kms_prop_blob.c | 157 int fd2; in test_lifetime() local 160 fd2 = drm_open_driver(DRIVER_ANY); in test_lifetime() 161 igt_assert_fd(fd2); in test_lifetime() 166 igt_assert_eq(validate_prop(fd2, prop_id), 0); in test_lifetime() 169 igt_assert_eq(destroy_prop(fd2, prop_id), EPERM); in test_lifetime() 172 prop_id2 = create_prop(fd2); in test_lifetime() 173 igt_assert_eq(validate_prop(fd2, prop_id2), 0); in test_lifetime() 174 igt_assert_eq(destroy_prop(fd2, prop_id2), 0); in test_lifetime() 175 igt_assert_eq(validate_prop(fd2, prop_id2), ENOENT); in test_lifetime() 179 prop_id2 = create_prop(fd2); in test_lifetime() [all …]
|
/external/ltp/testcases/kernel/syscalls/eventfd2/ |
D | eventfd2_03.c | 80 static void sem_player(int fd1, int fd2) in sem_player() argument 85 fprintf(stdout, "[%u] waiting on %d\n", getpid(), fd2); in sem_player() 86 xsem_wait(fd2); in sem_player() 91 fprintf(stdout, "[%u] waiting on %d\n", getpid(), fd2); in sem_player() 92 xsem_wait(fd2); in sem_player() 97 fprintf(stdout, "[%u] waiting 5 times on %d\n", getpid(), fd2); in sem_player() 98 xsem_wait(fd2); in sem_player() 99 xsem_wait(fd2); in sem_player() 100 xsem_wait(fd2); in sem_player() 101 xsem_wait(fd2); in sem_player() [all …]
|
/external/ltp/testcases/kernel/syscalls/kcmp/ |
D | kcmp02.c | 26 static int fd2; variable 41 int *fd2; member 44 {&pid1, &pid_unused, KCMP_FILE, &fd1, &fd2, ESRCH}, 45 {&pid1, &pid1, KCMP_TYPES + 1, &fd1, &fd2, EINVAL}, 46 {&pid1, &pid1, -1, &fd1, &fd2, EINVAL}, 47 {&pid1, &pid1, INT_MIN, &fd1, &fd2, EINVAL}, 48 {&pid1, &pid1, INT_MAX, &fd1, &fd2, EINVAL}, 58 fd2 = SAFE_OPEN(TEST_FILE2, O_CREAT | O_RDWR | O_TRUNC); in setup() 66 if (fd2 > 0) in cleanup() 67 SAFE_CLOSE(fd2); in cleanup() [all …]
|
D | kcmp01.c | 24 static int fd2; variable 34 int *fd2; member 38 {&pid2, &pid2, KCMP_FILE, &fd1, &fd2, 0}, 40 {&pid1, &pid2, KCMP_FILE, &fd1, &fd2, 0}, 61 fd2 = dup(fd1); in do_child() 62 if (fd2 == -1) { in do_child() 69 *(test->fd1), *(test->fd2))); in do_child() 71 SAFE_CLOSE(fd2); in do_child()
|
/external/llvm-project/clang/test/Sema/ |
D | zvector2.c | 21 vector double fd, fd2; variable 50 ff = fd2; // expected-error {{incompatible type}} in foo() 96 ff += fd2; // expected-error {{cannot convert}} in foo() 104 ff -= fd2; // expected-error {{cannot convert}} in foo() 112 ff *= fd2; // expected-error {{cannot convert}} in foo() 120 ff /= fd2; // expected-error {{cannot convert}} in foo() 128 ff %= fd2; // expected-error {{invalid operands}} in foo() 143 ff &= fd2; // expected-error {{invalid operands}} in foo() 153 ff |= fd2; // expected-error {{invalid operands}} in foo() 163 ff ^= fd2; // expected-error {{invalid operands}} in foo() [all …]
|
D | zvector.c | 21 vector double fd, fd2; variable 104 fd = fd2; in foo() 123 sc = fd2; // expected-error {{incompatible type}} in foo() 133 uc = fd2; // expected-error {{incompatible type}} in foo() 143 bc = fd2; // expected-error {{incompatible type}} in foo() 168 ul = (vector unsigned long long)fd2; in foo() 177 uc = (vector unsigned char)fd2; in foo() 181 us = (vector unsigned short)fd2; in foo() 185 ui = (vector unsigned int)fd2; in foo() 212 ++fd2; in foo() [all …]
|
/external/ltp/testcases/kernel/syscalls/memfd_create/ |
D | memfd_create01.c | 129 int fd2; in test_share_dup() local 133 fd2 = SAFE_DUP(fd); in test_share_dup() 134 CHECK_MFD_HAS_SEALS(fd2, 0); in test_share_dup() 138 CHECK_MFD_HAS_SEALS(fd2, F_SEAL_WRITE); in test_share_dup() 140 CHECK_MFD_ADD_SEALS(fd2, F_SEAL_SHRINK); in test_share_dup() 142 CHECK_MFD_HAS_SEALS(fd2, F_SEAL_WRITE | F_SEAL_SHRINK); in test_share_dup() 146 CHECK_MFD_HAS_SEALS(fd2, F_SEAL_WRITE | F_SEAL_SHRINK | F_SEAL_SEAL); in test_share_dup() 149 CHECK_MFD_FAIL_ADD_SEALS(fd2, F_SEAL_GROW); in test_share_dup() 151 CHECK_MFD_FAIL_ADD_SEALS(fd2, F_SEAL_SEAL); in test_share_dup() 153 SAFE_CLOSE(fd2); in test_share_dup() [all …]
|
/external/clang/test/Sema/ |
D | zvector.c | 21 vector double fd, fd2; variable 61 fd = fd2; in foo() 80 sc = fd2; // expected-error {{incompatible type}} in foo() 90 uc = fd2; // expected-error {{incompatible type}} in foo() 100 bc = fd2; // expected-error {{incompatible type}} in foo() 125 ul = (vector unsigned long long)fd2; in foo() 134 uc = (vector unsigned char)fd2; in foo() 138 us = (vector unsigned short)fd2; in foo() 142 ui = (vector unsigned int)fd2; in foo() 169 ++fd2; in foo() [all …]
|
/external/python/cpython3/Python/ |
D | dup2.c | 20 dup2(int fd1, int fd2) in dup2() argument 22 if (fd1 != fd2) { in dup2() 25 if (fcntl(fd2, F_GETFL) >= 0) in dup2() 26 close(fd2); in dup2() 27 if (fcntl(fd1, F_DUPFD, fd2) < 0) in dup2() 30 return fd2; in dup2()
|
/external/python/cpython2/Python/ |
D | dup2.c | 20 dup2(int fd1, int fd2) in dup2() argument 22 if (fd1 != fd2) { in dup2() 25 if (fcntl(fd2, F_GETFL) >= 0) in dup2() 26 close(fd2); in dup2() 27 if (fcntl(fd1, F_DUPFD, fd2) < 0) in dup2() 30 return fd2; in dup2()
|
/external/mesa3d/src/util/ |
D | libsync.h | 59 int32_t fd2; 94 static inline int sync_merge(const char *name, int fd1, int fd2) 99 data.fd2 = fd2; 131 static inline int sync_accumulate(const char *name, int *fd1, int fd2) in sync_accumulate() argument 135 assert(fd2 >= 0); in sync_accumulate() 138 *fd1 = dup(fd2); in sync_accumulate() 142 ret = sync_merge(name, *fd1, fd2); in sync_accumulate()
|
/external/libdrm/ |
D | libsync.h | 51 int32_t fd2; member 86 static inline int sync_merge(const char *name, int fd1, int fd2) in sync_merge() argument 91 data.fd2 = fd2; in sync_merge() 121 static inline int sync_accumulate(const char *name, int *fd1, int fd2) in sync_accumulate() argument 125 assert(fd2 >= 0); in sync_accumulate() 128 *fd1 = dup(fd2); in sync_accumulate() 132 ret = sync_merge(name, *fd1, fd2); in sync_accumulate()
|
/external/linux-kselftest/tools/testing/selftests/memfd/ |
D | memfd_test.c | 473 int r, fd2; in mfd_assert_shrink() local 483 fd2 = mfd_assert_open(fd, in mfd_assert_shrink() 486 close(fd2); in mfd_assert_shrink() 770 int fd, fd2; in test_seal_future_write() local 791 fd2 = mfd_assert_reopen_fd(fd); in test_seal_future_write() 793 mfd_assert_read(fd2); in test_seal_future_write() 794 mfd_assert_read_shared(fd2); in test_seal_future_write() 795 mfd_fail_write(fd2); in test_seal_future_write() 800 close(fd2); in test_seal_future_write() 888 int fd, fd2; in test_share_dup() local [all …]
|
/external/strace/tests-m32/ |
D | redirect-fds.test | 40 fd2="$LOG.fd2" 51 rm -f "$LOG" "$fd0" "$fd1" "$fd2" 64 check_fd "$fd0" "$fd1" "$fd2" 65 check_fd '' "$fd1" "$fd2" 66 check_fd "$fd0" '' "$fd2" 68 check_fd '' '' "$fd2"
|
/external/strace/tests/ |
D | redirect-fds.test | 40 fd2="$LOG.fd2" 51 rm -f "$LOG" "$fd0" "$fd1" "$fd2" 64 check_fd "$fd0" "$fd1" "$fd2" 65 check_fd '' "$fd1" "$fd2" 66 check_fd "$fd0" '' "$fd2" 68 check_fd '' '' "$fd2"
|
/external/strace/tests-mx32/ |
D | redirect-fds.test | 40 fd2="$LOG.fd2" 51 rm -f "$LOG" "$fd0" "$fd1" "$fd2" 64 check_fd "$fd0" "$fd1" "$fd2" 65 check_fd '' "$fd1" "$fd2" 66 check_fd "$fd0" '' "$fd2" 68 check_fd '' '' "$fd2"
|
/external/ltp/testcases/kernel/syscalls/dup2/ |
D | dup203.c | 62 int fd0, fd1, fd2, rval; in main() local 104 if ((fd2 = TEST_RETURN) == -1) { in main() 107 if (fd1 != fd2) { in main() 113 if (read(fd2, buf, sizeof(buf)) == -1) in main() 122 close(fd2); in main() 143 if ((fd2 = creat(filename1, 0666)) == -1) { in main() 148 rval = fd2; in main() 151 TEST(dup2(fd0, fd2)); in main() 156 if (fd1 != fd2) { in main()
|
/external/ltp/testcases/kernel/input/ |
D | input02.c | 39 static int fd2; variable 55 fd2 = open_device(); in main() 64 if (no_events_queued(fd2, 0)) in main() 68 SAFE_CLOSE(NULL, fd2); in main() 92 SAFE_IOCTL(NULL, fd2, EVIOCGRAB, 1); in send_information() 100 SAFE_CLOSE(NULL, fd2); in send_information()
|
D | input04.c | 37 static int fd, fd2; variable 60 if (no_events_queued(fd2, 1)) in main() 84 fd2 = open_device(); in setup() 99 if (fd2 > 0 && close(fd2)) in cleanup()
|
/external/ltp/testcases/kernel/syscalls/fcntl/ |
D | fcntl01.c | 48 int fd[10], fd2[10]; in main() local 67 fd2[i] = fd[i]; in main() 78 if (fd[2] < fd2[2]) in main() 82 if ((fd[4] = fcntl(fd[1], F_DUPFD, fd2[3])) < 0) in main() 85 if (fd[4] < fd2[3]) in main() 87 "expect greater than %d", fd[4], fd2[3]); in main() 89 if ((fd[8] = fcntl(fd[1], F_DUPFD, fd2[5])) < 0) in main() 92 if (fd[8] != fd2[5]) in main() 94 "got %d, expected %d", fd[8], fd2[5]); in main()
|
D | fcntl32.c | 36 static int fd2; variable 102 fd2 = SAFE_OPEN(cleanup, "file", test_cases[i].fd2_flag); in verify_fcntl() 124 SAFE_CLOSE(cleanup, fd2); in verify_fcntl() 125 fd2 = 0; in verify_fcntl() 133 if (fd2 > 0 && close(fd2)) in cleanup()
|
/external/libdrm/tests/nouveau/ |
D | threaded.c | 78 int err, fd, fd2; in main() local 88 fd2 = drmOpenWithType("nouveau", NULL, DRM_NODE_RENDER); in main() 94 fd2 = open(device, O_RDWR); in main() 96 fd2 = fd = -errno; in main() 104 if (fd2 < 0) { in main() 122 err = nouveau_device_wrap(fd2, 0, &nvdev2); in main() 144 close(fd2); in main() 147 drmClose(fd2); in main()
|
/external/ltp/testcases/kernel/syscalls/lseek/ |
D | lseek07.c | 24 static int fd1, fd2; variable 34 {&fd2, TFILE2, 2, 2, 7, "abijkfg"}, 77 fd2 = SAFE_OPEN(TFILE2, O_RDWR | O_CREAT, 0644); in setup() 80 SAFE_WRITE(1, fd2, WR_STR1, sizeof(WR_STR1) - 1); in setup() 88 if (fd2 > 0) in cleanup() 89 SAFE_CLOSE(fd2); in cleanup()
|
/external/ltp/testcases/kernel/syscalls/flock/ |
D | flock06.c | 24 int fd1, fd2; in verify_flock() local 33 fd2 = SAFE_OPEN("testfile", O_RDWR); in verify_flock() 34 TEST(flock(fd2, LOCK_EX | LOCK_NB)); in verify_flock() 46 TEST(flock(fd2, LOCK_EX | LOCK_NB)); in verify_flock() 53 SAFE_CLOSE(fd2); in verify_flock()
|