aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/include/janet.h
diff options
context:
space:
mode:
authorCalvin Rose <crose@gmail.com>2021-01-16 15:11:07 -0600
committerCalvin Rose <crose@gmail.com>2021-01-16 15:11:07 -0600
commit462e74ef8775695a4cb1c3191615f68d4a10fe76 (patch)
treee1c3043e42ac0e68f0fb5d5d0b2b3c629c8a826d /src/include/janet.h
parentRemove unused defines. (diff)
Add os/proc-close to close all pipes associated with a subprocess.
This will not leak handles until the GC runs in most use cases.
Diffstat (limited to 'src/include/janet.h')
-rw-r--r--src/include/janet.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/janet.h b/src/include/janet.h
index 4f6781cf..feb276d3 100644
--- a/src/include/janet.h
+++ b/src/include/janet.h
@@ -1778,6 +1778,7 @@ JANET_API FILE *janet_dynfile(const char *name, FILE *def);
JANET_API JanetFile *janet_getjfile(const Janet *argv, int32_t n);
JANET_API JanetAbstract janet_checkfile(Janet j);
JANET_API FILE *janet_unwrapfile(Janet j, int32_t *flags);
+JANET_API int janet_file_close(JanetFile *file);
JANET_API int janet_cryptorand(uint8_t *out, size_t n);