summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2022-02-02 16:31:35 +0000
committerZach van Rijn <me@zv.io>2022-02-02 16:31:35 +0000
commit4d6a5156a6eb7f56b30d93853a872e36dadde81b (patch)
tree7a65b69a4e9a011c1db21281a45534c17d309247
parent8af2ff25620082c5fe275f1fd0d20b0a52dca0c0 (diff)
parent391b2706c6fc5aedf1881743efa2d0912eefe04a (diff)
downloadgcompat-4d6a5156a6eb7f56b30d93853a872e36dadde81b.tar.gz
gcompat-4d6a5156a6eb7f56b30d93853a872e36dadde81b.tar.bz2
gcompat-4d6a5156a6eb7f56b30d93853a872e36dadde81b.tar.xz
gcompat-4d6a5156a6eb7f56b30d93853a872e36dadde81b.zip
Merge branch 'current' into 'current'
unistd: add __close See merge request adelie/gcompat!14
-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);
+}