comparison lib/lib.h @ 124:ef2bc92d5fb0

Work around uClibc weirdness.
author Rob Landley <rob@landley.net>
date Thu, 07 Jun 2007 15:19:44 -0400
parents 19b5567f0a1b
children 0a90a5fbc1bf
comparison
equal deleted inserted replaced
123:81a324ef9167 124:ef2bc92d5fb0
29 29
30 // args.c 30 // args.c
31 void get_optflags(void); 31 void get_optflags(void);
32 32
33 // functions.c 33 // functions.c
34 #ifndef __UCLIBC__
35 void strlcpy(char *dest, char *src, size_t size);
36 #endif
37
34 void verror_msg(char *msg, int err, va_list va); 38 void verror_msg(char *msg, int err, va_list va);
35 void error_msg(char *msg, ...); 39 void error_msg(char *msg, ...);
36 void perror_msg(char *msg, ...); 40 void perror_msg(char *msg, ...);
37 void error_exit(char *msg, ...); 41 void error_exit(char *msg, ...);
38 void perror_exit(char *msg, ...); 42 void perror_exit(char *msg, ...);
39 void usage_exit(void); 43 void usage_exit(void);
40 void strlcpy(char *dest, char *src, size_t size);
41 void *xmalloc(size_t size); 44 void *xmalloc(size_t size);
42 void *xzalloc(size_t size); 45 void *xzalloc(size_t size);
43 void *xrealloc(void *ptr, size_t size); 46 void *xrealloc(void *ptr, size_t size);
44 void *xstrndup(char *s, size_t n); 47 void *xstrndup(char *s, size_t n);
45 void *xstrdup(char *s); 48 void *xstrdup(char *s);