aboutsummaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2025-06-30 14:40:55 +0000
committerLaurent Bercot <ska@appnovation.com>2025-06-30 14:40:55 +0000
commitd4895d80b1b1af9086b08f7c6cb12f274baf2ddc (patch)
treec72e654017464cb32bdf5ab6f2fca9876e935d3b /src/include
parenta8899ea71d8539d9032ed14e2342a95f3b33f42c (diff)
downloadskalibs-d4895d80b1b1af9086b08f7c6cb12f274baf2ddc.tar.gz
Rework gol, add mkdirp2
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/skalibs/gol.h8
-rw-r--r--src/include/skalibs/posixplz.h3
2 files changed, 6 insertions, 5 deletions
diff --git a/src/include/skalibs/gol.h b/src/include/skalibs/gol.h
index ab687b2..0c42a35 100644
--- a/src/include/skalibs/gol.h
+++ b/src/include/skalibs/gol.h
@@ -12,10 +12,10 @@
typedef struct gol_bool_s gol_bool, *gol_bool_ref ;
struct gol_bool_s
{
- uint64_t mask ;
+ uint64_t set ;
+ uint64_t clear ;
char const *lo ;
- uint8_t so : 7 ;
- uint8_t set : 1 ;
+ uint8_t so ;
} ;
typedef struct gol_arg_s gol_arg, *gol_arg_ref ;
@@ -23,7 +23,7 @@ struct gol_arg_s
{
char const *lo ;
unsigned int i ;
- uint8_t so : 7 ;
+ uint8_t so ;
} ;
extern int gol (char const *const *, gol_bool const *, unsigned int, gol_arg const *a, unsigned int, uint64_t *, char const **, int *) ;
diff --git a/src/include/skalibs/posixplz.h b/src/include/skalibs/posixplz.h
index 2f17f8a..558ccae 100644
--- a/src/include/skalibs/posixplz.h
+++ b/src/include/skalibs/posixplz.h
@@ -41,7 +41,8 @@ extern pid_t fork_newpid (void) ;
extern int touch (char const *) ;
extern unsigned int millisleep (unsigned int) ;
-extern int mkdirp (char *, mode_t) ;
+extern int mkdirp (char const *, mode_t) ;
+extern int mkdirp2 (char *, mode_t) ;
extern int mkfiletemp (char *, create_func_ref, mode_t, void *) ;
extern int mklinktemp (char const *, char *, link_func_ref) ;
extern int mkptemp (char *) ;