Welcome to mirror list, hosted at ThFree Co, Russian Federation.

sys_read.c « riscv « libgloss - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: dd3bc339caf9b9bf5ee5ac45af9a402a6806c504 (plain)
1
2
3
4
5
6
7
8
9
#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, 3, file, ptr, len, 0, 0, 0);
}