From c01d1f48c950fc0c942988ad1fcdd8003ac93898 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 27 Mar 2024 11:09:26 -0400 Subject: xspawn: Implement bfs_spawn_addopen() --- src/xspawn.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/xspawn.h') diff --git a/src/xspawn.h b/src/xspawn.h index 77273ee..a20cbd0 100644 --- a/src/xspawn.h +++ b/src/xspawn.h @@ -61,6 +61,14 @@ int bfs_spawn_init(struct bfs_spawn *ctx); */ int bfs_spawn_destroy(struct bfs_spawn *ctx); +/** + * Add an open() action to a bfs_spawn() context. + * + * @return + * 0 on success, -1 on failure. + */ +int bfs_spawn_addopen(struct bfs_spawn *ctx, int fd, const char *path, int flags, mode_t mode); + /** * Add a close() action to a bfs_spawn() context. * -- cgit v1.2.3