#include "libc.h"
#include "dynlink.h"
+#define malloc __libc_malloc
+#define calloc __libc_calloc
+#define realloc __libc_realloc
+#define free __libc_free
+
static void error(const char *, ...);
#define MAXP2(a,b) (-(-(a)&-(b)))
#include "pthread_impl.h"
#include "aio_impl.h"
+#define malloc __libc_malloc
+#define calloc __libc_calloc
+#define realloc __libc_realloc
+#define free __libc_free
+
/* The following is a threads-based implementation of AIO with minimal
* dependence on implementation details. Most synchronization is
* performed with pthread primitives, but atomics and futex operations
#include "libc.h"
#include "lock.h"
+#define malloc __libc_malloc
+#define calloc __libc_calloc
+#define realloc undef
+#define free undef
+
/* Ensure that at least 32 atexit handlers can be registered without malloc */
#define COUNT 32
#include "dynlink.h"
#include "lock.h"
+#define malloc __libc_malloc
+#define calloc __libc_calloc
+#define realloc __libc_realloc
+#define free __libc_free
+
char *dlerror()
{
pthread_t self = __pthread_self();
#include "pleval.h"
#include "lock.h"
+#define malloc __libc_malloc
+#define calloc __libc_calloc
+#define realloc undef
+#define free undef
+
struct binding {
struct binding *next;
int dirlen;
#include <locale.h>
#include <string.h>
#include <sys/mman.h>
+#include <stdlib.h>
#include "locale_impl.h"
#include "libc.h"
#include "lock.h"
+#define malloc __libc_malloc
+#define calloc undef
+#define realloc undef
+#define free undef
+
const char *__lctrans_impl(const char *msg, const struct __locale_map *lm)
{
const char *trans = 0;
#include <pthread.h>
#include "lock.h"
+#define malloc __libc_malloc
+#define calloc __libc_calloc
+#define realloc undef
+#define free undef
+
static struct {
ino_t ino;
sem_t *sem;
#include "libc.h"
#include "lock.h"
+#define malloc __libc_malloc
+#define calloc undef
+#define realloc undef
+#define free undef
+
long __timezone = 0;
int __daylight = 0;
char *__tzname[2] = { 0, 0 };