s6

Mirror/fork of https://skarnet.org/software/s6/
git clone https://ccx.te2000.cz/git/s6
Log | Files | Refs | README | LICENSE

ftrig1.h (450B)


      1 /* ISC license. */
      2 
      3 #ifndef FTRIG1_H
      4 #define FTRIG1_H
      5 
      6 #include <skalibs/stralloc.h>
      7 
      8 #define FTRIG1_PREFIX "ftrig1"
      9 #define FTRIG1_PREFIXLEN (sizeof FTRIG1_PREFIX - 1)
     10 
     11 typedef struct ftrig1_s ftrig1_t, *ftrig1_t_ref ;
     12 struct ftrig1_s
     13 {
     14   int fd ;
     15   int fdw ;
     16   stralloc name ;
     17 } ;
     18 #define FTRIG1_ZERO { .fd = -1, .fdw = -1, .name = STRALLOC_ZERO }
     19 
     20 extern int ftrig1_make (ftrig1_t *, char const *) ;
     21 extern void ftrig1_free (ftrig1_t *) ;
     22 
     23 #endif