12 #ifdef HAVE_SYS_PARAM_H 13 #include <sys/param.h> 20 #if !defined(__GLIBC__) 22 #include <crt_externs.h> 23 #define environ (*_NSGetEnviron()) 30 #if !defined(HAVE_STPCPY) 31 char *
stpcpy(
char * dest,
const char * src);
34 #if !defined(HAVE_STPNCPY) 35 char *
stpncpy(
char * dest,
const char * src,
size_t n);
38 #if HAVE_SECURE_GETENV 39 #define getenv(_s) secure_getenv(_s) 40 #elif HAVE___SECURE_GETENV 41 #define getenv(_s) __secure_getenv(_s) 52 # define NLENGTH(direct) (strlen((direct)->d_name)) 54 # define dirent direct 55 # define NLENGTH(direct) ((direct)->d_namlen) 56 # ifdef HAVE_SYS_NDIR_H 57 # include <sys/ndir.h> 59 # ifdef HAVE_SYS_DIR_H 72 #ifdef _POSIX_PATH_MAX 73 #define PATH_MAX _POSIX_PATH_MAX 74 #elif defined MAXPATHLEN 75 #define PATH_MAX MAXPATHLEN 83 #define xmalloc(_size) rmalloc((_size)) 84 #define xcalloc(_nmemb, _size) rcalloc((_nmemb), (_size)) 85 #define xrealloc(_ptr, _size) rrealloc((_ptr), (_size)) 86 #define xstrdup(_str) rstrdup((_str)) 87 #define _free(_ptr) rfree((_ptr)) 90 #if defined __GLIBC__ && __GLIBC__ >= 2 91 #if __GLIBC_MINOR__ >= 1 92 #define __progname __assert_program_name 94 #define setprogname(pn) 96 #define __progname program_name 97 #define setprogname(pn) \ 98 { if ((__progname = strrchr(pn, '/')) != NULL) __progname++; \ 99 else __progname = pn; \ 107 # include <libintl.h> 108 # define _(Text) dgettext (PACKAGE, Text) 110 # define _(Text) Text 113 #define N_(Text) Text 117 #include "misc/fnmatch.h" char * stpcpy(char *dest, const char *src)
char * stpncpy(char *dest, const char *src, size_t n)