diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2022-12-14 22:12:20 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2022-12-14 22:12:20 +0100 |
| commit | 7536d000ac9a5188378f2749ecfd7f0ccb437573 (patch) | |
| tree | e19b0da62b826dd9c6a7b0425ac3ec568a0fe434 /lib/sys/close.h | |
| parent | d179f1846f9372920ef02f08cfb4d3abe99b383f (diff) | |
first try to pipe stuff
Diffstat (limited to 'lib/sys/close.h')
| -rw-r--r-- | lib/sys/close.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/sys/close.h b/lib/sys/close.h new file mode 100644 index 0000000..2aa3a71 --- /dev/null +++ b/lib/sys/close.h @@ -0,0 +1,11 @@ +#ifndef CLOSE_H +#define CLOSE_H + +#include "syscalls.h" + +int close(unsigned int fd) +{ + syscall(CLOSE, fd); +} + +#endif |