From 2f017fbdd689e025437783cc8d675a7d304b37c3 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 7 Dec 2018 21:00:23 +0000 Subject: Add mk?temp and autosurf --- src/include/skalibs/functypes.h | 4 ++++ src/include/skalibs/posixplz.h | 10 ++++++++++ src/include/skalibs/surf.h | 2 ++ 3 files changed, 16 insertions(+) (limited to 'src/include') diff --git a/src/include/skalibs/functypes.h b/src/include/skalibs/functypes.h index 8308fda..9c77f22 100644 --- a/src/include/skalibs/functypes.h +++ b/src/include/skalibs/functypes.h @@ -4,6 +4,7 @@ #define FUNCTYPES_H #include +#include #include typedef int uintcmpfunc_t (unsigned int, unsigned int, void *) ; @@ -45,4 +46,7 @@ typedef alliofunc_t *alliofunc_t_ref ; typedef size_t alliovfunc_t (int, struct iovec const *, unsigned int) ; typedef alliovfunc_t *alliovfunc_t_ref ; +typedef int createfunc_t (char const *, mode_t, void *) ; +typedef createfunc_t *createfunc_t_ref ; + #endif diff --git a/src/include/skalibs/posixplz.h b/src/include/skalibs/posixplz.h index 97c1ef1..b54faa0 100644 --- a/src/include/skalibs/posixplz.h +++ b/src/include/skalibs/posixplz.h @@ -4,7 +4,10 @@ #define SKALIBS_POSIXPLZ_H #include +#include + #include +#include /* @@ -44,4 +47,11 @@ extern void unlink_void (char const *) ; extern pid_t doublefork (void) ; extern int touch (char const *) ; +extern int mkfiletemp (char *, createfunc_t_ref, mode_t, void *) ; +extern int mkptemp (char *) ; +extern int mkltemp (char const *, char *) ; +extern int mkLtemp (char const *, char *) ; +extern int mkctemp (char *, mode_t, dev_t) ; +extern int mkbtemp (char *, mode_t, dev_t) ; + #endif diff --git a/src/include/skalibs/surf.h b/src/include/skalibs/surf.h index 99408ca..15e9215 100644 --- a/src/include/skalibs/surf.h +++ b/src/include/skalibs/surf.h @@ -19,5 +19,7 @@ struct SURFSchedule extern void surf_init (SURFSchedule *, char const *) ; /* 160 chars */ extern void surf (SURFSchedule *, char *, size_t) ; +extern void autosurf (char *, size_t) ; +extern void autosurf_name (char *, size_t) ; #endif -- cgit v1.2.3