newlib-cygwin/libgloss/riscv/sys_read.c

10 lines
219 B
C
Raw Normal View History

#include <machine/syscall.h>
#include <sys/types.h>
#include "internal_syscall.h"
/* Read from a file. */
ssize_t _read(int file, void *ptr, size_t len)
{
return syscall_errno (SYS_read, file, ptr, len, 0, 0, 0);
}