diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2022-08-18 22:02:11 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2022-08-18 22:02:11 +0000 |
commit | b653b531bab9cafc0a0137fbf373602132c7105b (patch) | |
tree | bab9a34dca863f7a971400fb7ea1025c0ab97d90 /src/include | |
parent | cded16930ecd990389e029e8a15d2201c007090f (diff) | |
download | s6-b653b531bab9cafc0a0137fbf373602132c7105b.tar.gz s6-b653b531bab9cafc0a0137fbf373602132c7105b.tar.xz s6-b653b531bab9cafc0a0137fbf373602132c7105b.zip |
Add s6_servicedir_file_list
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/s6/servicedir.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/include/s6/servicedir.h b/src/include/s6/servicedir.h new file mode 100644 index 0000000..b575370 --- /dev/null +++ b/src/include/s6/servicedir.h @@ -0,0 +1,29 @@ +/* ISC license. */ + +#ifndef S6_SERVICEDIR_H +#define S6_SERVICEDIR_H + +#include <stdint.h> + +#define S6_SERVICEDIR_FILE_MAXLEN 16 + +#define S6_FILETYPE_NORMAL 0 +#define S6_FILETYPE_EMPTY 1 +#define S6_FILETYPE_UINT 2 +#define S6_FILETYPE_DIR 3 + +#define S6_SVFILE_EXECUTABLE 0x01 +#define S6_SVFILE_MANDATORY 0x02 +#define S6_SVFILE_ATOMIC 0x04 + +typedef struct s6_servicedir_desc_s s6_servicedir_desc, *s6_servicedir_desc_ref ; +struct s6_servicedir_desc_s +{ + char const *name ; + uint8_t type : 3 ; + uint8_t options : 5 ; +} ; + +extern s6_servicedir_desc const *const s6_servicedir_file_list ; + +#endif |