summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'util.h')
-rw-r--r--util.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/util.h b/util.h
index 29ba1ef..6741334 100644
--- a/util.h
+++ b/util.h
@@ -31,8 +31,18 @@ enum {
int absuri(const char *, const char *, char *, size_t);
int encodeuri(const char *, char *, size_t);
-ssize_t parseline(char **, size_t *, char *[FieldLast], FILE *);
+size_t parseline(char *, char *[FieldLast]);
int parseuri(const char *, struct uri *, int);
+void printutf8pad(FILE *, const char *, size_t, int);
int strtotime(const char *, time_t *);
char * xbasename(const char *);
void xmlencode(const char *, FILE *);
+
+#ifdef USE_PLEDGE
+#include <unistd.h>
+#else
+int pledge(const char *, const char *[]);
+#endif
+
+#define ROT32(x, y) ((x << y) | (x >> (32 - y)))
+uint32_t murmur3_32(const char *, uint32_t, uint32_t);