summaryrefslogtreecommitdiffstats
path: root/src/xspawn.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-03-27 11:09:26 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-03-27 13:13:23 -0400
commitc01d1f48c950fc0c942988ad1fcdd8003ac93898 (patch)
tree4845e29a94972fbdf6cfd10506d9d463bca548da /src/xspawn.h
parent310bc847bca9e2457700598be99390867fd2a84e (diff)
downloadbfs-c01d1f48c950fc0c942988ad1fcdd8003ac93898.tar.xz
xspawn: Implement bfs_spawn_addopen()
Diffstat (limited to 'src/xspawn.h')
-rw-r--r--src/xspawn.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/xspawn.h b/src/xspawn.h
index 77273ee..a20cbd0 100644
--- a/src/xspawn.h
+++ b/src/xspawn.h
@@ -62,6 +62,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.
*
* @return