diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-11-27 12:44:40 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-11-27 12:44:40 +0000 |
commit | c3150e36d6e3d8392c5801a19b7f63daa5551f37 (patch) | |
tree | 6fa1e3579c275898c964dace54184116d7d256e5 /src/include | |
parent | b40d48d8fe2b7ff838d8e57482cd02f83987b7fd (diff) | |
download | s6-c3150e36d6e3d8392c5801a19b7f63daa5551f37.tar.gz s6-c3150e36d6e3d8392c5801a19b7f63daa5551f37.tar.xz s6-c3150e36d6e3d8392c5801a19b7f63daa5551f37.zip |
Add s6_fdholder_start/end, prepare for 2.6.2.0
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/s6/s6-fdholder.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/include/s6/s6-fdholder.h b/src/include/s6/s6-fdholder.h index 10332b1..840c167 100644 --- a/src/include/s6/s6-fdholder.h +++ b/src/include/s6/s6-fdholder.h @@ -1,4 +1,4 @@ - /* ISC license. */ +/* ISC license. */ #ifndef S6_FDHOLDER_H #define S6_FDHOLDER_H @@ -19,9 +19,16 @@ struct s6_fdholder_s } ; #define S6_FDHOLDER_ZERO { .connection = UNIXCONNECTION_ZERO } ; + + /* Starting and ending */ + #define s6_fdholder_init(a, fd) unixconnection_init(&(a)->connection, fd, fd) #define s6_fdholder_free(a) unixconnection_free(&(a)->connection) +extern int s6_fdholder_start (s6_fdholder_t *, char const *, tain_t const *, tain_t *) ; +#define s6_fdholder_start_g(a, path, deadline) s6_fdholder_start(a, path, (deadline), &STAMP) +extern void s6_fdholder_end (s6_fdholder_t *) ; + /* Individual fds */ |