7 lines
74 B
C
7 lines
74 B
C
int
|
|
dup2(oldfd, newfd)
|
|
{
|
|
close(newfd);
|
|
return fcntl(oldfd, 0, newfd);
|
|
}
|