5 #if defined (__GLIBC__) && defined(__LCLINT__)
8 extern __const __int32_t *__ctype_tolower;
10 extern __const __int32_t *__ctype_toupper;
33 #define __attribute__(x)
37 /* access macros are not declared in non posix mode in unistd.h -
38 don't try to use posix on NeXTstep 3.3 ! */
42 #if defined(__LCLINT__)
43 /*@-declundef -incondefs @*/ /* LCL: missing annotation */
45 void * alloca (size_t __size)
46 /*@ensures MaxSet(result) == (__size - 1) @*/
48 /*@=declundef =incondefs @*/
51 /* AIX requires this to be the first thing in the file. */
60 # ifndef alloca /* predefined by HP cc +Olibcalls */
67 # define alloca(sz) malloc(sz) /* Kludge this for now */
71 #elif defined(__GNUC__) && defined(__STRICT_ANSI__)
72 #define alloca __builtin_alloca
76 /*@mayexit@*/ /*@only@*/ /*@unused@*/
77 char * xstrdup (const char *str)
81 #if HAVE_MCHECK_H && defined(__GNUC__)
82 #define vmefail() (fprintf(stderr, "virtual memory exhausted.\n"), exit(EXIT_FAILURE), NULL)
83 #define xstrdup(_str) (strcpy((malloc(strlen(_str)+1) ? : vmefail()), (_str)))
85 #define xstrdup(_str) strdup(_str)
86 #endif /* HAVE_MCHECK_H && defined(__GNUC__) */
88 #if HAVE___SECURE_GETENV && !defined(__LCLINT__)
89 #define getenv(_s) __secure_getenv(_s)
93 size_t strlcpy(char *d, const char *s, size_t bufsize);
97 size_t strlcat(char *d, const char *s, size_t bufsize);
100 #define UNUSED(x) x __attribute__((__unused__))
102 #define PACKAGE "rsync"
105 #define DBL_EPSILON 2.2204460492503131e-16