From 7536d000ac9a5188378f2749ecfd7f0ccb437573 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Wed, 14 Dec 2022 22:12:20 +0100 Subject: first try to pipe stuff --- lib/sys/close.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lib/sys/close.h (limited to 'lib/sys/close.h') 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 -- cgit v1.2.3-70-g09d2