1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
|
/*
* Collected by EPIC Software Labs
* Public Domain
*/
#ifndef __COMPAT_H__
#define __COMPAT_H__
#ifndef HAVE_TPARM
char *my_tparm (const char *, ...);
#define tparm my_tparm
#endif
#ifndef HAVE_STRTOUL
unsigned long strtoul (const char *, char **, int);
#endif
#ifndef HAVE_STRLCPY
size_t strlcpy (char *, const char *, size_t);
#endif
#ifndef HAVE_STRLCAT
size_t strlcat (char *, const char *, size_t);
#endif
int my_base64_encode (const void *, int, char **);
int my_base64_decode (const char *, void *);
#ifndef HAVE_VSNPRINTF
int vsnprintf (char *, size_t, const char *, va_list);
#endif
#ifndef HAVE_SNPRINTF
int snprintf (char *, size_t, const char *, ...);
#endif
#ifndef HAVE_SETSID
int setsid (void);
#endif
#ifndef HAVE_SETENV
int setenv (const char *, const char *, int);
#endif
#ifndef HAVE_UNSETENV
int unsetenv (const char *);
#endif
#ifdef HAVE_BROKEN_REALPATH
char * my_realpath (const char *, char x[PATH_MAX]);
#endif
/*
#ifndef HAVE_STRTOIMAX
#ifdef strtoimax
#undef strtoimax
#endif
long strtoimax (const char *, char **, int);
#endif
*/
#if 0
/* humanize_number(3) */
#define HN_DECIMAL 0x01
#define HN_NOSPACE 0x02
#define HN_B 0x04
#define HN_DIVISOR_1000 0x08
#define HN_GETSCALE 0x10
#define HN_AUTOSCALE 0x20
int humanize_number (char *, size_t, long, const char *, int, int);
#endif
#endif
|