X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=sources%2FGapil.h;h=c5a702f95f1b005b7890d714d5d11d0f9508d75d;hp=70c796df0be46cd6e1ac99792bb0bd81e03dc5d9;hb=4be39dd3718d708ccff65b01a8f634e05b56f3c9;hpb=2535dbace6167c4bcff7dd9c98f4d397bb699afd diff --git a/sources/Gapil.h b/sources/Gapil.h index 70c796d..c5a702f 100644 --- a/sources/Gapil.h +++ b/sources/Gapil.h @@ -112,6 +112,9 @@ size_t full_fwrite(FILE *file, void *buf, size_t count); */ /* Function dir_scan: simple scan for a directory. See dir_scan.c */ int dir_scan(char * dirname, int(*compute)(struct dirent *)); +/* Function InitFile: secure create of a file with initial content */ +ssize_t InitFile(int dirfd, const char *file, const char *buf, size_t count); +/* Function full_fread: to read from a standard file. See full_fread.c */ /* * Shared memory handling functions. See SharedMem.c */