Home
last modified time | relevance | path

Searched refs:parentfd (Results 1 – 2 of 2) sorted by relevance

/external/ltp/testcases/kernel/syscalls/ioctl/
Dioctl02.c80 static int parentfd, childfd; variable
151 parentfd = do_parent_setup(); in main()
152 if (parentfd < 0) { in main()
185 if (ioctl(parentfd, TCSETA, &save_io) == -1) in main()
187 SAFE_CLOSE(cleanup, parentfd); in main()
252 TEST(ioctl(parentfd, TCSETA, &termio)); in run_ptest()
261 rval = ioctl(parentfd, TCGETA, &termio); in run_ptest()
464 if (ioctl(parentfd, TCSETA, &save_io) == -1) in cleanup()
466 if (close(parentfd) == -1) in cleanup()
/external/ltp/testcases/kernel/syscalls/mmap/
Dmmap16.c51 static int parentfd = -1; variable
109 parentfd = SAFE_OPEN(cleanup, "testfilep", O_RDWR); in do_test()
114 ret = write(parentfd, buf, FS_BLOCKSIZE); in do_test()
124 SAFE_CLOSE(cleanup, parentfd); in do_test()
235 if (parentfd >= 0) in cleanup()
236 close(parentfd); in cleanup()