diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2022-12-14 18:26:49 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2022-12-14 18:26:49 +0100 |
| commit | d179f1846f9372920ef02f08cfb4d3abe99b383f (patch) | |
| tree | 4b6ddc71566be95a1ce520ef9d957f4cac1af6c9 /lib/sys/write.h | |
first commit
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 |