dup.c 94 字节
Newer Older
R
Rich Felker 已提交
1 2 3 4 5 6 7
#include <unistd.h>
#include "syscall.h"

int dup(int fd)
{
	return syscall1(__NR_dup, fd);
}