mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-05 19:35:52 +03:00
Update.
* malloc/malloc.c: Don't call exported interface in the implementation.
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
2004-03-05 Ulrich Drepper <drepper@redhat.com>
|
2004-03-05 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* malloc/malloc.c: Don't call exported interface in the implementation.
|
||||||
|
|
||||||
* include/wctype.h: Add libc_hidden_proto for __towctrans.
|
* include/wctype.h: Add libc_hidden_proto for __towctrans.
|
||||||
* wctype/towctrans.c: Add libc_hidden_def.
|
* wctype/towctrans.c: Add libc_hidden_def.
|
||||||
|
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/* Malloc implementation for multiple threads without lock contention.
|
/* Malloc implementation for multiple threads without lock contention.
|
||||||
Copyright (C) 1996-2002, 2003 Free Software Foundation, Inc.
|
Copyright (C) 1996-2002, 2003, 2004 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Wolfram Gloger <wg@malloc.de>
|
Contributed by Wolfram Gloger <wg@malloc.de>
|
||||||
and Doug Lea <dl@cs.oswego.edu>, 2001.
|
and Doug Lea <dl@cs.oswego.edu>, 2001.
|
||||||
@@ -828,6 +828,9 @@ Void_t* public_mALLOc(size_t);
|
|||||||
#else
|
#else
|
||||||
Void_t* public_mALLOc();
|
Void_t* public_mALLOc();
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef libc_hidden_proto
|
||||||
|
libc_hidden_proto (public_mALLOc)
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
free(Void_t* p)
|
free(Void_t* p)
|
||||||
@@ -845,6 +848,9 @@ void public_fREe(Void_t*);
|
|||||||
#else
|
#else
|
||||||
void public_fREe();
|
void public_fREe();
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef libc_hidden_proto
|
||||||
|
libc_hidden_proto (public_fREe)
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
calloc(size_t n_elements, size_t element_size);
|
calloc(size_t n_elements, size_t element_size);
|
||||||
@@ -889,6 +895,9 @@ Void_t* public_rEALLOc(Void_t*, size_t);
|
|||||||
#else
|
#else
|
||||||
Void_t* public_rEALLOc();
|
Void_t* public_rEALLOc();
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef libc_hidden_proto
|
||||||
|
libc_hidden_proto (public_rEALLOc)
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
memalign(size_t alignment, size_t n);
|
memalign(size_t alignment, size_t n);
|
||||||
@@ -907,6 +916,9 @@ Void_t* public_mEMALIGn(size_t, size_t);
|
|||||||
#else
|
#else
|
||||||
Void_t* public_mEMALIGn();
|
Void_t* public_mEMALIGn();
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef libc_hidden_proto
|
||||||
|
libc_hidden_proto (public_mEMALIGn)
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
valloc(size_t n);
|
valloc(size_t n);
|
||||||
@@ -3318,6 +3330,9 @@ public_mALLOc(size_t bytes)
|
|||||||
ar_ptr == arena_for_chunk(mem2chunk(victim)));
|
ar_ptr == arena_for_chunk(mem2chunk(victim)));
|
||||||
return victim;
|
return victim;
|
||||||
}
|
}
|
||||||
|
#ifdef libc_hidden_def
|
||||||
|
libc_hidden_def(public_mALLOc)
|
||||||
|
#endif
|
||||||
|
|
||||||
void
|
void
|
||||||
public_fREe(Void_t* mem)
|
public_fREe(Void_t* mem)
|
||||||
@@ -3359,6 +3374,9 @@ public_fREe(Void_t* mem)
|
|||||||
_int_free(ar_ptr, mem);
|
_int_free(ar_ptr, mem);
|
||||||
(void)mutex_unlock(&ar_ptr->mutex);
|
(void)mutex_unlock(&ar_ptr->mutex);
|
||||||
}
|
}
|
||||||
|
#ifdef libc_hidden_def
|
||||||
|
libc_hidden_def (public_fREe)
|
||||||
|
#endif
|
||||||
|
|
||||||
Void_t*
|
Void_t*
|
||||||
public_rEALLOc(Void_t* oldmem, size_t bytes)
|
public_rEALLOc(Void_t* oldmem, size_t bytes)
|
||||||
@@ -3433,6 +3451,9 @@ public_rEALLOc(Void_t* oldmem, size_t bytes)
|
|||||||
ar_ptr == arena_for_chunk(mem2chunk(newp)));
|
ar_ptr == arena_for_chunk(mem2chunk(newp)));
|
||||||
return newp;
|
return newp;
|
||||||
}
|
}
|
||||||
|
#ifdef libc_hidden_def
|
||||||
|
libc_hidden_def (public_rEALLOc)
|
||||||
|
#endif
|
||||||
|
|
||||||
Void_t*
|
Void_t*
|
||||||
public_mEMALIGn(size_t alignment, size_t bytes)
|
public_mEMALIGn(size_t alignment, size_t bytes)
|
||||||
@@ -3478,7 +3499,9 @@ public_mEMALIGn(size_t alignment, size_t bytes)
|
|||||||
ar_ptr == arena_for_chunk(mem2chunk(p)));
|
ar_ptr == arena_for_chunk(mem2chunk(p)));
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
strong_alias (public_mEMALIGn, __memalign_internal)
|
#ifdef libc_hidden_def
|
||||||
|
libc_hidden_def (public_mEMALIGn)
|
||||||
|
#endif
|
||||||
|
|
||||||
Void_t*
|
Void_t*
|
||||||
public_vALLOc(size_t bytes)
|
public_vALLOc(size_t bytes)
|
||||||
@@ -5403,7 +5426,7 @@ __posix_memalign (void **memptr, size_t alignment, size_t size)
|
|||||||
if (hook != NULL)
|
if (hook != NULL)
|
||||||
mem = (*hook)(alignment, size, RETURN_ADDRESS (0));
|
mem = (*hook)(alignment, size, RETURN_ADDRESS (0));
|
||||||
else
|
else
|
||||||
mem = __memalign_internal (alignment, size);
|
mem = public_mEMALIGn (alignment, size);
|
||||||
|
|
||||||
if (mem != NULL) {
|
if (mem != NULL) {
|
||||||
*memptr = mem;
|
*memptr = mem;
|
||||||
|
@@ -1,3 +1,7 @@
|
|||||||
|
2004-03-05 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* sysdeps/i386/tls.h: Use GLRO instead of GL where appropriate.
|
||||||
|
|
||||||
2004-03-01 Ulrich Drepper <drepper@redhat.com>
|
2004-03-01 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
|
* sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
|
||||||
|
Reference in New Issue
Block a user