diff options
Diffstat (limited to 'lib/sys/read.h')
| -rw-r--r-- | lib/sys/read.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/sys/read.h b/lib/sys/read.h new file mode 100644 index 0000000..7dba6e7 --- /dev/null +++ b/lib/sys/read.h @@ -0,0 +1,9 @@ +#ifndef READ_H +#define READ_H +#include "syscalls.h" + +static int read(unsigned int fd, char * buf, unsigned long count) { + return syscall(READ, fd, buf, count, 0, 0); +} + +#endif |