Project

General

Profile

Bug #3853 » illumos_clang.patch

Alexander Pyhalov, 2013-06-30 10:22 PM

View differences:

usr/src/head/malloc.h
61 61

  
62 62
#if defined(__STDC__)
63 63

  
64
#if __cplusplus >= 199711L
65
namespace std {
66
#endif
64 67
void *malloc(size_t);
65 68
void free(void *);
66 69
void *realloc(void *, size_t);
70
void *calloc(size_t, size_t);
71
#if __cplusplus >= 199711L
72
} /* end of namespace std */
73

  
74
using std::malloc;
75
using std::free;
76
using std::realloc;
77
using std::calloc;
78
#endif 
79

  
67 80
int mallopt(int, int);
68 81
struct mallinfo mallinfo(void);
69
void *calloc(size_t, size_t);
70 82

  
71 83
#else
72 84

  
usr/src/head/unistd.h
460 460
	size_t);
461 461
#endif
462 462
#if (!defined(__XOPEN_OR_POSIX) || (defined(_XPG3) && !defined(_XPG4))) || \
463
	defined(__EXTENSIONS__)
463
       defined(__EXTENSIONS__)
464
#if __cplusplus >= 199711L
465
namespace std {
466
#endif
464 467
extern int rename(const char *, const char *);
468
#if __cplusplus >= 199711L
469
} /* end of namespace std */
470

  
471
using std::rename;
472
#endif 
465 473
#endif /* (!defined(__XOPEN_OR_POSIX) || (defined(_XPG3)... */
466 474
#if !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__)
467 475
extern int resolvepath(const char *, char *, size_t);
(6-6/6)