diff options
author | Marco Peereboom <marco@conformal.com> | 2010-02-24 20:19:04 +0000 |
---|---|---|
committer | Marco Peereboom <marco@conformal.com> | 2010-02-24 20:19:04 +0000 |
commit | 904958cbd11014203a1a1e67a637d4c359d527cc (patch) | |
tree | 4c432151d64ada6ed2205ca53a64ef2e79f6017a /linux/util.h | |
parent | 4f4ab6b5a37dcc6eab0ababcdc0258c55d3bf9b6 (diff) | |
download | xombrero-904958cbd11014203a1a1e67a637d4c359d527cc.tar.gz |
add linux support
thanks nicm
Diffstat (limited to 'linux/util.h')
-rw-r--r-- | linux/util.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/linux/util.h b/linux/util.h new file mode 100644 index 0000000..2b4cc6a --- /dev/null +++ b/linux/util.h @@ -0,0 +1,24 @@ +/* $scrotwm: util.h,v 1.3 2010/01/11 20:44:54 marco Exp $ */ + +#define FPARSELN_UNESCESC 0x01 +#define FPARSELN_UNESCCONT 0x02 +#define FPARSELN_UNESCCOMM 0x04 +#define FPARSELN_UNESCREST 0x08 +#define FPARSELN_UNESCALL 0x0f + +size_t strlcpy(char *, const char *, size_t); +size_t strlcat(char *, const char *, size_t); + +char *fgetln(FILE *, size_t *); +char *fparseln(FILE *, size_t *, size_t *, const char [3], int); + +long long strtonum(const char *, long long, long long, const char **); + +#ifndef WAIT_ANY +#define WAIT_ANY (-1) +#endif + +/* there is no limit to ulrich drepper's crap */ +#ifndef TAILQ_END +#define TAILQ_END(head) NULL +#endif |