X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=sources%2FGapil.h;h=429fc6f3552f5097f998f1d72fd4299d11a03a4a;hp=70c796df0be46cd6e1ac99792bb0bd81e03dc5d9;hb=844ea3e96c657de0e887fd3ebce90d1dff7103ad;hpb=5b278ebdd05a632c61fef8bdb42550cf864694e9 diff --git a/sources/Gapil.h b/sources/Gapil.h index 70c796d..429fc6f 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 size); +/* Function full_fread: to read from a standard file. See full_fread.c */ /* * Shared memory handling functions. See SharedMem.c */