source:
trunk/libs/newlib/src/libgloss/riscv/sys_read.c
@
445
Last change on this file since 445 was 444, checked in by , 6 years ago | |
---|---|
File size: 219 bytes |
Rev | Line | |
---|---|---|
[444] | 1 | #include <machine/syscall.h> |
2 | #include <sys/types.h> | |
3 | #include "internal_syscall.h" | |
4 | ||
5 | /* Read from a file. */ | |
6 | ssize_t _read(int file, void *ptr, size_t len) | |
7 | { | |
8 | return syscall_errno (SYS_read, file, ptr, len, 0, 0, 0); | |
9 | } |
Note: See TracBrowser
for help on using the repository browser.