aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/file.h
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-06-08 23:57:49 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-06-09 00:01:11 +0200
commitfb80276084a9adc0014b1008f8bf8253f126293b (patch)
tree2951be23576c32ddcda656c04c98539591981622 /src/file.h
parentdocker: bump base image (diff)
downloadcimple-fb80276084a9adc0014b1008f8bf8253f126293b.tar.gz
cimple-fb80276084a9adc0014b1008f8bf8253f126293b.zip
add {file,net}_close as a wrapper to close(2)
Diffstat (limited to 'src/file.h')
-rw-r--r--src/file.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/file.h b/src/file.h
index ec989c3..c25ef40 100644
--- a/src/file.h
+++ b/src/file.h
@@ -15,6 +15,8 @@ int rm_rf(const char *dir);
int my_chdir(const char *dir, char **old);
char *my_readlink(const char *path);
+void file_close(int fd);
+
int file_exists(const char *path);
int file_read(int fd, char **output, size_t *size);