s6

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

servicedir.h (807B)


      1 /* ISC license. */
      2 
      3 #ifndef S6_SERVICEDIR_H
      4 #define S6_SERVICEDIR_H
      5 
      6 #include <stdint.h>
      7 
      8 #include <skalibs/stralloc.h>
      9 
     10 #define S6_SERVICEDIR_FILE_MAXLEN 16
     11 
     12 #define S6_FILETYPE_NORMAL 0
     13 #define S6_FILETYPE_EMPTY 1
     14 #define S6_FILETYPE_UINT 2
     15 #define S6_FILETYPE_DIR 3
     16 
     17 #define S6_SVFILE_EXECUTABLE 0x01
     18 #define S6_SVFILE_MANDATORY 0x02
     19 #define S6_SVFILE_ATOMIC 0x04
     20 
     21 typedef struct s6_servicedir_desc_s s6_servicedir_desc, *s6_servicedir_desc_ref ;
     22 struct s6_servicedir_desc_s
     23 {
     24   char const *name ;
     25   uint8_t type : 3 ;
     26   uint8_t options : 5 ;
     27 } ;
     28 
     29 extern s6_servicedir_desc const *const s6_servicedir_file_list ;
     30 
     31 extern int s6_servicedir_instances_recreate_offline (char const *, char const *) ;
     32 extern int s6_servicedir_instances_recreate_offline_tmp (char const *, char const *, stralloc *) ;
     33 
     34 #endif