diff options
Diffstat (limited to 'support/support.h')
-rw-r--r-- | support/support.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/support/support.h b/support/support.h index a5978b939a..c219e0d9d1 100644 --- a/support/support.h +++ b/support/support.h @@ -197,6 +197,14 @@ struct support_stack support_stack_alloc (size_t size); /* Deallocate the STACK. */ void support_stack_free (struct support_stack *stack); + +/* Create a range of NUM opened '/dev/null' file descriptors using FLAGS and + MODE. The function takes care of restarting the open range if a file + descriptor is found within the specified range and also increases + RLIMIT_NOFILE if required. + The returned value is the lowest file descriptor number. */ +int support_open_dev_null_range (int num, int flags, mode_t mode); + __END_DECLS #endif /* SUPPORT_H */ |