Home
last modified time | relevance | path

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

/third_party/ltp/testcases/kernel/syscalls/mmap/
Dmmap16.c43 static int parentfd = -1; variable
112 parentfd = SAFE_OPEN(FILE_PARENT, O_RDWR | O_CREAT, 0666); in run_single()
119 ret = write(parentfd, buf, FS_BLOCKSIZE); in run_single()
128 SAFE_CLOSE(parentfd); in run_single()
167 if (parentfd >= 0) in cleanup()
168 SAFE_CLOSE(parentfd); in cleanup()
/third_party/ltp/testcases/kernel/syscalls/ioctl/
Dioctl02.c79 static int parentfd, childfd; variable
150 parentfd = do_parent_setup(); in main()
151 if (parentfd < 0) { in main()
184 if (ioctl(parentfd, TCSETA, &save_io) == -1) in main()
186 SAFE_CLOSE(cleanup, parentfd); in main()
251 TEST(ioctl(parentfd, TCSETA, &termio)); in run_ptest()
260 rval = ioctl(parentfd, TCGETA, &termio); in run_ptest()
463 if (ioctl(parentfd, TCSETA, &save_io) == -1) in cleanup()
465 if (close(parentfd) == -1) in cleanup()