kill one more focus bug where one cant type while page is loading.
[xxxterm.git] / linux / util.h
blob46c75ad60ff6b3f3d02e457e1bd7d7cd945d0feb
1 /* $scrotwm: util.h,v 1.3 2010/01/11 20:44:54 marco Exp $ */
3 #define FPARSELN_UNESCESC 0x01
4 #define FPARSELN_UNESCCONT 0x02
5 #define FPARSELN_UNESCCOMM 0x04
6 #define FPARSELN_UNESCREST 0x08
7 #define FPARSELN_UNESCALL 0x0f
9 size_t strlcpy(char *, const char *, size_t);
10 size_t strlcat(char *, const char *, size_t);
12 char *fgetln(FILE *, size_t *);
13 char *fparseln(FILE *, size_t *, size_t *, const char [3], int);
15 long long strtonum(const char *, long long, long long, const char **);
17 int fmt_scaled(long long number, char *result);
19 #ifndef WAIT_ANY
20 #define WAIT_ANY (-1)
21 #endif
23 /* there is no limit to ulrich drepper's crap */
24 #ifndef TAILQ_END
25 #define TAILQ_END(head) NULL
26 #endif
29 * fmt_scaled(3) specific flags. (from OpenBSD util.h)
31 #define FMT_SCALED_STRSIZE 7 /* minus sign, 4 digits, suffix, null byte */
33 int getpeereid(int s, uid_t *euid, gid_t *gid);