summaryrefslogtreecommitdiff
path: root/libgcompat
diff options
context:
space:
mode:
authorptrcnull <git@ptrcnull.me>2022-02-02 02:39:57 +0100
committerptrcnull <git@ptrcnull.me>2022-02-02 02:39:57 +0100
commit391b2706c6fc5aedf1881743efa2d0912eefe04a (patch)
tree7a65b69a4e9a011c1db21281a45534c17d309247 /libgcompat
parent8af2ff25620082c5fe275f1fd0d20b0a52dca0c0 (diff)
downloadgcompat-391b2706c6fc5aedf1881743efa2d0912eefe04a.tar.gz
gcompat-391b2706c6fc5aedf1881743efa2d0912eefe04a.tar.bz2
gcompat-391b2706c6fc5aedf1881743efa2d0912eefe04a.tar.xz
gcompat-391b2706c6fc5aedf1881743efa2d0912eefe04a.zip
unistd: add __close
Diffstat (limited to 'libgcompat')
-rw-r--r--libgcompat/unistd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libgcompat/unistd.c b/libgcompat/unistd.c
index e40fb6e..7e9227d 100644
--- a/libgcompat/unistd.c
+++ b/libgcompat/unistd.c
@@ -234,3 +234,8 @@ int execv(const char *pathname, char *const argv[]) {
int execvp(const char *file, char *const argv[]) {
return execv(file, argv);
}
+
+int __close(int fd)
+{
+ return close(fd);
+}