summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013-12-06 21:59:01 -0500
committerRich Felker <dalias@aerifal.cx>2013-12-06 21:59:01 -0500
commit8708e137d68480f4b996bfec2cd2ca596f1105d7 (patch)
tree557cdc970bfca0581f4119d352bf01f59d3d2199 /src
parentae71a43b02b2f672b47d305f4d15a9011756e301 (diff)
downloadmusl-8708e137d68480f4b996bfec2cd2ca596f1105d7.tar.gz
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.
Diffstat (limited to 'src')
-rw-r--r--src/unistd/posix_close.c6
1 files changed, 6 insertions, 0 deletions
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 <unistd.h>
+
+int posix_close(int fd, int flags)
+{
+ return close(fd);
+}