From c3150e36d6e3d8392c5801a19b7f63daa5551f37 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 27 Nov 2017 12:44:40 +0000 Subject: Add s6_fdholder_start/end, prepare for 2.6.2.0 --- src/include/s6/s6-fdholder.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/include') 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 */ -- cgit v1.2.3