Loading...
--- Libc/Libc-1592.100.35/include/stdlib.h
+++ Libc/Libc-1507.100.9/include/stdlib.h
@@ -235,9 +235,6 @@
char *l64a(long);
void lcong48(unsigned short[7]);
long lrand48(void) __swift_unavailable("Use arc4random instead.");
-#if !defined(_POSIX_C_SOURCE)
-__deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of mktemp(3), it is highly recommended that you use mkstemp(3) instead.")
-#endif
char *mktemp(char *);
int mkstemp(char *);
long mrand48(void) __swift_unavailable("Use arc4random instead.");
@@ -328,7 +325,6 @@
#endif /* __DARWIN_UNIX03 */
#endif /* !_ANSI_SOURCE */
#endif /* UNIFDEF_DRIVERKIT */
-__END_DECLS
#if !defined(_ANSI_SOURCE) && (!defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE))
#include <machine/types.h>
@@ -338,7 +334,6 @@
#endif /* UNIFDEF_DRIVERKIT */
#include <_types/_uint32_t.h>
-__BEGIN_DECLS
uint32_t arc4random(void);
#ifndef UNIFDEF_DRIVERKIT
void arc4random_addrandom(unsigned char * /*dat*/, int /*datlen*/)
@@ -442,7 +437,7 @@
#ifndef UNIFDEF_DRIVERKIT
void sranddev(void);
void srandomdev(void);
-/* reallocf is now declared in _malloc.h */
+void *reallocf(void *__ptr, size_t __size) __alloc_size(2);
long long
strtonum(const char *__numstr, long long __minval, long long __maxval, const char **__errstrp)
__API_AVAILABLE(macos(10.16), ios(14.0), tvos(14.0), watchos(7.0));
@@ -457,10 +452,8 @@
extern char *suboptarg; /* getsubopt(3) external variable */
/* valloc is now declared in _malloc.h */
#endif /* UNIFDEF_DRIVERKIT */
-__END_DECLS
#endif /* !_ANSI_SOURCE && !_POSIX_SOURCE */
-__BEGIN_DECLS
/* Poison the following routines if -fshort-wchar is set */
#if !defined(__cplusplus) && defined(__WCHAR_MAX__) && __WCHAR_MAX__ <= 0xffffU
#pragma GCC poison mbstowcs mbtowc wcstombs wctomb