Home
last modified time | relevance | path

Searched refs:fd2 (Results 1 – 3 of 3) sorted by relevance

/posix/
A Dtst-exec.c78 int fd2; in handle_restart() local
82 fd2 = atol (fd2s); in handle_restart()
85 if (fd1 == fd2) in handle_restart()
90 if (lseek (fd2, 0, SEEK_CUR) != strlen (fd2string)) in handle_restart()
92 if (lseek (fd2, 0, SEEK_SET) != 0) in handle_restart()
94 if (read (fd2, buf, sizeof buf) != strlen (fd2string)) in handle_restart()
A Dtst-execvpe6.c48 int fd2 = create_temp_file ("testscript", &fname2); in do_prepare() local
49 dprintf (fd2, "echo foo > %s\n", logname); in do_prepare()
50 fchmod (fd2, 0700); in do_prepare()
51 close (fd2); in do_prepare()
A Dtst-spawn.c87 int fd2; in handle_restart() local
94 fd2 = atol (fd2s); in handle_restart()
100 TEST_VERIFY_EXIT (fd1 != fd2); in handle_restart()
103 TEST_VERIFY_EXIT (fd2 != fd3); in handle_restart()
104 TEST_VERIFY_EXIT (fd2 != fd4); in handle_restart()
110 TEST_COMPARE (xlseek (fd2, 0, SEEK_CUR), strlen (fd2string)); in handle_restart()
113 TEST_COMPARE (xlseek (fd2, 0, SEEK_SET), 0); in handle_restart()
115 TEST_COMPARE (read (fd2, buf, sizeof buf), strlen (fd2string)); in handle_restart()

Completed in 6 milliseconds