about summary refs log tree commit diff stats
path: root/linux/util.h
diff options
context:
space:
mode:
authorMarco Peereboom <marco@conformal.com>2010-02-24 20:19:04 +0000
committerMarco Peereboom <marco@conformal.com>2010-02-24 20:19:04 +0000
commit904958cbd11014203a1a1e67a637d4c359d527cc (patch)
tree4c432151d64ada6ed2205ca53a64ef2e79f6017a /linux/util.h
parent4f4ab6b5a37dcc6eab0ababcdc0258c55d3bf9b6 (diff)
downloadxombrero-904958cbd11014203a1a1e67a637d4c359d527cc.tar.gz
add linux support
thanks nicm
Diffstat (limited to 'linux/util.h')
-rw-r--r--linux/util.h24
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