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

int dup(int fd)
{
W
w00349915 已提交
7
	unsupported_api(__FUNCTION__);
8
	return syscall(SYS_dup, fd);
R
Rich Felker 已提交
9
}