Changeset 740 for vendor/current/lib/replace/replace.h
- Timestamp:
- Nov 14, 2012, 12:59:34 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/lib/replace/replace.h
r414 r740 82 82 # define PRIi8 "i" 83 83 #endif 84 #ifndef PRIi 884 #ifndef PRIi16 85 85 # define PRIi16 "i" 86 86 #endif 87 #ifndef PRIi 887 #ifndef PRIi32 88 88 # define PRIi32 "i" 89 89 #endif 90 #ifndef PRIi 890 #ifndef PRIi64 91 91 # define PRIi64 __PRI64_PREFIX "i" 92 92 #endif … … 122 122 #endif 123 123 124 #ifdef HAVE_LINUX_TYPES_H 125 /* 126 * This is needed as some broken header files require this to be included early 127 */ 128 #include <linux/types.h> 129 #endif 130 124 131 #ifndef HAVE_STRERROR 125 132 extern char *sys_errlist[]; … … 139 146 #define memmove rep_memmove 140 147 void *rep_memmove(void *dest,const void *src,int size); 148 #endif 149 150 #ifndef HAVE_MEMMEM 151 #define memmem rep_memmem 152 void *rep_memmem(const void *haystack, size_t haystacklen, 153 const void *needle, size_t needlelen); 141 154 #endif 142 155 … … 278 291 #endif 279 292 293 294 280 295 #ifndef HAVE_STRTOLL 281 296 #define strtoll rep_strtoll 282 297 long long int rep_strtoll(const char *str, char **endptr, int base); 298 #else 299 #ifdef HAVE_BSD_STRTOLL 300 #define strtoll rep_strtoll 301 long long int rep_strtoll(const char *str, char **endptr, int base); 302 #endif 283 303 #endif 284 304 … … 286 306 #define strtoull rep_strtoull 287 307 unsigned long long int rep_strtoull(const char *str, char **endptr, int base); 308 #else 309 #ifdef HAVE_BSD_STRTOLL /* yes, it's not HAVE_BSD_STRTOULL */ 310 #define strtoull rep_strtoull 311 unsigned long long int rep_strtoull(const char *str, char **endptr, int base); 312 #endif 288 313 #endif 289 314 … … 329 354 #define socketpair rep_socketpair 330 355 /* prototype is in system/network.h */ 356 #endif 357 358 #ifndef HAVE_VDPRINTF 359 #define vdprintf rep_vdprintf 360 int rep_vdprintf(int fd, const char *format, va_list ap); 361 #endif 362 363 #ifndef HAVE_DPRINTF 364 #define dprintf rep_dprintf 365 int rep_dprintf(int fd, const char *format, ...); 331 366 #endif 332 367 … … 490 525 #define freeifaddrs rep_freeifaddrs 491 526 /* prototype is in "system/network.h" */ 527 #endif 528 529 #ifndef HAVE_GET_CURRENT_DIR_NAME 530 #define get_current_dir_name rep_get_current_dir_name 531 char *rep_get_current_dir_name(void); 532 #endif 533 534 #if !defined(HAVE_STRERROR_R) || !defined(STRERROR_R_PROTO_COMPATIBLE) 535 #undef strerror_r 536 #define strerror_r rep_strerror_r 537 int rep_strerror_r(int errnum, char *buf, size_t buflen); 538 #endif 539 540 #if !defined(HAVE_CLOCK_GETTIME) 541 #define clock_gettime rep_clock_gettime 492 542 #endif 493 543 … … 724 774 #endif 725 775 776 #ifndef HAVE_FDATASYNC 777 #define fdatasync(fd) fsync(fd) 778 #elif !defined(HAVE_DECL_FDATASYNC) 779 int fdatasync(int ); 780 #endif 781 782 /* these are used to mark symbols as local to a shared lib, or 783 * publicly available via the shared lib API */ 784 #ifndef _PUBLIC_ 785 #ifdef HAVE_VISIBILITY_ATTR 786 #define _PUBLIC_ __attribute__((visibility("default"))) 787 #else 788 #define _PUBLIC_ 789 #endif 790 #endif 791 792 #ifndef _PRIVATE_ 793 #ifdef HAVE_VISIBILITY_ATTR 794 # define _PRIVATE_ __attribute__((visibility("hidden"))) 795 #else 796 # define _PRIVATE_ 797 #endif 798 #endif 799 800 #ifndef HAVE_POLL 801 #define poll rep_poll 802 /* prototype is in "system/network.h" */ 803 #endif 804 726 805 #endif /* _LIBREPLACE_REPLACE_H */
Note:
See TracChangeset
for help on using the changeset viewer.