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

ssize_t read(int fd, void *buf, size_t count)
{
R
Rich Felker 已提交
6
	return syscall_cp(SYS_read, fd, buf, count);
R
Rich Felker 已提交
7
}