From 8708e137d68480f4b996bfec2cd2ca596f1105d7 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Fri, 6 Dec 2013 21:59:01 -0500 Subject: add posix_close, accepted for inclusion in the next issue of POSIX this is purely a wrapper for close since Linux does not support EINTR semantics for the close syscall. --- src/unistd/posix_close.c | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/unistd/posix_close.c (limited to 'src') diff --git a/src/unistd/posix_close.c b/src/unistd/posix_close.c new file mode 100644 index 00000000..90f51a82 --- /dev/null +++ b/src/unistd/posix_close.c @@ -0,0 +1,6 @@ +#include + +int posix_close(int fd, int flags) +{ + return close(fd); +} -- cgit v1.2.1