POSIX-2024: support for O_CLOFORK, SO_CLOFORK

Change-Id: I4f3a961947eefdeafd5a249499899cc92d67c2d1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9330
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Jérôme Duval
2025-06-09 16:26:13 +00:00
committed by waddlesplash
parent ba28b6f5f7
commit 904fd2abf0
10 changed files with 68 additions and 11 deletions
+3
View File
@@ -94,6 +94,9 @@ extern bool fd_is_file(struct file_descriptor* descriptor);
extern bool fd_close_on_exec(const struct io_context *context, int fd);
extern void fd_set_close_on_exec(struct io_context *context, int fd,
bool closeFD);
extern bool fd_close_on_fork(const struct io_context *context, int fd);
extern void fd_set_close_on_fork(struct io_context *context, int fd,
bool closeFD);
static struct io_context *get_current_io_context(bool kernel);
+1
View File
@@ -56,6 +56,7 @@ typedef struct io_context {
struct file_descriptor **fds;
struct select_info **select_infos;
uint8 *fds_close_on_exec;
uint8 *fds_close_on_fork;
struct list node_monitors;
uint32 num_monitors;
uint32 max_monitors;