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