Searched refs:orgfd (Results 1 - 3 of 3) sorted by relevance

/openbsd-current/regress/sys/kern/dup2/
H A Ddup2test.c14 int orgfd, fd1, fd2; local
17 if ((orgfd = mkstemp(temp)) < 0)
21 if (ftruncate(orgfd, 1024) != 0)
24 if ((fd1 = dup(orgfd)) < 0)
/openbsd-current/regress/sys/kern/dup2_self/
H A Ddup2_self.c34 int orgfd, fd1, fd2; local
37 if ((orgfd = mkstemp(temp)) < 0)
41 if (ftruncate(orgfd, 1024) != 0)
44 if ((fd1 = dup(orgfd)) < 0)
/openbsd-current/regress/sys/kern/fcntl_dup/
H A Dfcntl_dup.c14 int orgfd, fd1, fd2; local
17 if ((orgfd = mkstemp(temp)) < 0)
21 if (ftruncate(orgfd, 1024) != 0)
24 if ((fd1 = dup(orgfd)) < 0)

Completed in 65 milliseconds