common: Add helpers for raising/lowering FD limit

Signed-off-by: Joshua Ashton <joshua@froggi.es>
This commit is contained in:
Joshua Ashton 2022-07-17 00:47:20 +00:00
parent fd7ec0ab95
commit 6c2bbb42ea
3 changed files with 48 additions and 0 deletions

8
include/common/fd_util.h Normal file
View file

@ -0,0 +1,8 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef __LABWC_FD_UTIL_H
#define __LABWC_FD_UTIL_H
void increase_nofile_limit(void);
void restore_nofile_limit(void);
#endif /* __LABWC_FD_UTIL_H */