Home
last modified time | relevance | path

Searched refs:badfd (Results 1 – 9 of 9) sorted by relevance

/external/ltp/testcases/kernel/syscalls/dup2/
Ddup201.c76 int badfd = -1; variable
86 {&badfd, &goodfd, EBADF, NULL},
90 {&mystdout, &badfd, EBADF, NULL},
/external/selinux/libsemanage/tests/
Dtest_semanage_store.c311 int sourcefd, goodfd, badfd, err; in test_semanage_nc_sort() local
338 badfd = open("nc_sort_malformed", O_RDONLY); in test_semanage_nc_sort()
339 if (badfd < 0) { in test_semanage_nc_sort()
343 fstat(badfd, &sb); in test_semanage_nc_sort()
346 (char *)mmap(NULL, bad_buf_len, PROT_READ, MAP_PRIVATE, badfd, 0); in test_semanage_nc_sort()
368 close(badfd); in test_semanage_nc_sort()
/external/ltp/testcases/kernel/syscalls/linkat/
Dlinkat01.c87 static int olddirfd, newdirfd = -1, cwd_fd = AT_FDCWD, stdinfd = 0, badfd = variable
143 &badfd, TEST_DIR1 "/" TEST_FILE1, &newdirfd, TEST_FILE1, 0,
147 &olddirfd, TEST_FILE1, &badfd, TEST_DIR2 "/" TEST_FILE1, 0,
151 &badfd, spathname, &newdirfd, TEST_FILE1, 0, 0, 0, 0},
154 &olddirfd, TEST_FILE1, &badfd, dpathname, 0,
/external/ltp/testcases/kernel/syscalls/splice/
Dsplice03.c42 static int badfd = -1; variable
56 { &badfd, NULL, &pipes[1], NULL, EBADF },
57 { &pipes[0], NULL, &badfd, NULL, EBADF },
/external/ltp/testcases/kernel/syscalls/flock/
Dflock02.c20 static int badfd = -1; variable
28 {&badfd, LOCK_SH, EBADF},
/external/ltp/testcases/kernel/syscalls/read/
Dread02.c38 static int badfd = -1; variable
53 {&badfd, &bufaddr, 1, EBADF},
/external/ltp/testcases/kernel/syscalls/renameat/
Drenameat01.c78 static int badfd = 100; variable
98 { &badfd, TESTFILE, &badfd, NEW_TESTFILE, EBADF },
/external/python/cpython2/Modules/_io/
Dfileio.c176 goto badfd; in check_fd()
184 goto badfd; in check_fd()
189 badfd: in check_fd()
/external/python/cpython3/Lib/test/
Dtest_socket.py3384 badfd = -0x5555 variable in SCMRightsTest
3596 array.array("i", [self.badfd]).tobytes()[:-1])])
3624 array.array("i", [fd0, self.badfd]).tobytes()[:-1]),