5 * missing.h Replacements for functions that are or can be
6 * missing on some platforms.
11 #ifndef HAVE_STRNCASECMP
12 extern int strncasecmp(char *s1, char *s2, int n);
15 #ifndef HAVE_STRCASECMP
16 extern int strcasecmp(char *s1, char *s2);
20 extern char *strsep(char **stringp, const char *delim);
23 #ifndef HAVE_LOCALTIME_R
24 struct tm *localtime_r(const time_t *l_clock, struct tm *result);
27 #ifdef NEED_DECLARATION_CRYPT
28 char *crypt(char *key, char *salt);
31 #ifdef NEED_DECLARATION_STRNCASECMP
32 int strncasecmp(char *s1, char *s2, int n);
35 #ifdef NEED_DECLARATION_STRCASECMP
36 int strcasecmp(char *s1, char *s2);
39 #ifdef NEED_DECLARATION_INET_ATON
41 int inet_aton(char *cp, struct in_addr *inp);
44 #ifdef NEED_DECLARATION_GETHOSTNAME
45 int gethostname(char *name, int len);
48 #ifndef HAVE_SETLINEBUF
50 #define setlinebuf(x) setvbuf(x, NULL, _IOLBF, 0)
52 #define setlinebuf(x) 0
56 #ifdef NEED_DECLARATION_SETLINEBUF
57 #define setlinebuf(x) 0
60 #ifdef NEED_DECLARATION_GETUSERSHELL
61 char *getusershell(void);
64 #ifdef NEED_DECLARATION_ENDUSERSHELL
65 void endusershell(void);
69 #define INADDR_ANY ((uint32_t) 0x00000000)
72 #ifndef INADDR_LOOPBACK
73 #define INADDR_LOOPBACK ((uint32_t) 0x7f000001) /* Inet 127.0.0.1 */
77 #define INADDR_NONE ((uint32_t) 0xffffffff)
80 #endif /* _FR_MISSING_H */