Add simple cgi support +:

* read file byte after byte
* format code (syslog + err)
* move functions in utils.c
This commit is contained in:
prx 2021-01-14 13:31:51 +01:00
commit 470e47a018
10 changed files with 268 additions and 67 deletions

6
utils.h Normal file
View file

@ -0,0 +1,6 @@
void epledge(const char *, const char *);
void errlog(const char *format, ...);
void eunveil(const char *, const char *);
int esetenv(const char *, const char *, int);
size_t estrlcat(char *, const char *, size_t);
size_t estrlcpy(char *, const char *, size_t);