mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
[BZ #3352]
2006-10-12 Richard Sandiford <richard@codesourcery.com> [BZ #3352] * elf/dl-minimal.c (realloc): Let malloc() return a new pointer, and use memcpy() if it does.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2006-10-12 Richard Sandiford <richard@codesourcery.com>
|
||||||
|
|
||||||
|
[BZ #3352]
|
||||||
|
* elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
|
||||||
|
and use memcpy() if it does.
|
||||||
|
|
||||||
2006-11-12 Andreas Jaeger <aj@suse.de>
|
2006-11-12 Andreas Jaeger <aj@suse.de>
|
||||||
|
|
||||||
[BZ #2510]
|
[BZ #2510]
|
||||||
|
@ -128,13 +128,14 @@ free (void *ptr)
|
|||||||
void * weak_function
|
void * weak_function
|
||||||
realloc (void *ptr, size_t n)
|
realloc (void *ptr, size_t n)
|
||||||
{
|
{
|
||||||
void *new;
|
|
||||||
if (ptr == NULL)
|
if (ptr == NULL)
|
||||||
return malloc (n);
|
return malloc (n);
|
||||||
assert (ptr == alloc_last_block);
|
assert (ptr == alloc_last_block);
|
||||||
|
size_t old_size = alloc_ptr - alloc_last_block;
|
||||||
alloc_ptr = alloc_last_block;
|
alloc_ptr = alloc_last_block;
|
||||||
new = malloc (n);
|
void *new = malloc (n);
|
||||||
assert (new == ptr);
|
if (new != ptr)
|
||||||
|
memcpy (new, ptr, old_size);
|
||||||
return new;
|
return new;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2006-10-12 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
[BZ #3320]
|
||||||
|
* locales/es_ES (LC_TIME): Add week, first_weekday, and first_workday.
|
||||||
|
|
||||||
2006-10-05 Dmitry V. Levin <ldv@altlinux.org>
|
2006-10-05 Dmitry V. Levin <ldv@altlinux.org>
|
||||||
|
|
||||||
* locales/tt_RU: Fix territory, title and descriptive comment.
|
* locales/tt_RU: Fix territory, title and descriptive comment.
|
||||||
|
@ -2187,12 +2187,13 @@ t_fmt_ampm ""
|
|||||||
date_fmt "<U0025><U0061><U0020><U0025><U0062><U0020><U0025><U0065>/
|
date_fmt "<U0025><U0061><U0020><U0025><U0062><U0020><U0025><U0065>/
|
||||||
<U0020><U0025><U0048><U003A><U0025><U004D><U003A><U0025><U0053><U0020>/
|
<U0020><U0025><U0048><U003A><U0025><U004D><U003A><U0025><U0053><U0020>/
|
||||||
<U0025><U005A><U0020><U0025><U0059>"
|
<U0025><U005A><U0020><U0025><U0059>"
|
||||||
|
week 7;19971130;5
|
||||||
|
first_weekday 2
|
||||||
|
first_workday 2
|
||||||
END LC_TIME
|
END LC_TIME
|
||||||
|
|
||||||
LC_PAPER
|
LC_PAPER
|
||||||
% FIXME
|
|
||||||
height 297
|
height 297
|
||||||
% FIXME
|
|
||||||
width 210
|
width 210
|
||||||
END LC_PAPER
|
END LC_PAPER
|
||||||
|
|
||||||
|
@ -1,3 +1,20 @@
|
|||||||
|
2006-10-12 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
[BZ #3285]
|
||||||
|
* sysdeps/unix/sysv/linux/bits/local_lim.h: Add SEM_VALUE_MAX.
|
||||||
|
* sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/i386/bits/semaphore.h: Remove SEM_VALUE_MAX.
|
||||||
|
* sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/ia64/bits/semaphore.h: Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Likewise.
|
||||||
|
|
||||||
2006-10-11 Ulrich Drepper <drepper@redhat.com>
|
2006-10-11 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Add support for
|
* sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Add support for
|
||||||
|
@ -26,9 +26,6 @@
|
|||||||
/* Value returned if `sem_open' failed. */
|
/* Value returned if `sem_open' failed. */
|
||||||
#define SEM_FAILED ((sem_t *) 0)
|
#define SEM_FAILED ((sem_t *) 0)
|
||||||
|
|
||||||
/* Maximum value the semaphore can have. */
|
|
||||||
#define SEM_VALUE_MAX (2147483647)
|
|
||||||
|
|
||||||
|
|
||||||
typedef union
|
typedef union
|
||||||
{
|
{
|
||||||
|
@ -28,9 +28,6 @@
|
|||||||
/* Value returned if `sem_open' failed. */
|
/* Value returned if `sem_open' failed. */
|
||||||
#define SEM_FAILED ((sem_t *) 0)
|
#define SEM_FAILED ((sem_t *) 0)
|
||||||
|
|
||||||
/* Maximum value the semaphore can have. */
|
|
||||||
#define SEM_VALUE_MAX (2147483647)
|
|
||||||
|
|
||||||
|
|
||||||
typedef union
|
typedef union
|
||||||
{
|
{
|
||||||
|
@ -28,9 +28,6 @@
|
|||||||
/* Value returned if `sem_open' failed. */
|
/* Value returned if `sem_open' failed. */
|
||||||
#define SEM_FAILED ((sem_t *) 0)
|
#define SEM_FAILED ((sem_t *) 0)
|
||||||
|
|
||||||
/* Maximum value the semaphore can have. */
|
|
||||||
#define SEM_VALUE_MAX (2147483647)
|
|
||||||
|
|
||||||
|
|
||||||
typedef union
|
typedef union
|
||||||
{
|
{
|
||||||
|
@ -33,9 +33,6 @@
|
|||||||
/* Value returned if `sem_open' failed. */
|
/* Value returned if `sem_open' failed. */
|
||||||
#define SEM_FAILED ((sem_t *) 0)
|
#define SEM_FAILED ((sem_t *) 0)
|
||||||
|
|
||||||
/* Maximum value the semaphore can have. */
|
|
||||||
#define SEM_VALUE_MAX (2147483647)
|
|
||||||
|
|
||||||
|
|
||||||
typedef union
|
typedef union
|
||||||
{
|
{
|
||||||
|
@ -32,9 +32,6 @@
|
|||||||
/* Value returned if `sem_open' failed. */
|
/* Value returned if `sem_open' failed. */
|
||||||
#define SEM_FAILED ((sem_t *) 0)
|
#define SEM_FAILED ((sem_t *) 0)
|
||||||
|
|
||||||
/* Maximum value the semaphore can have. */
|
|
||||||
#define SEM_VALUE_MAX (2147483647)
|
|
||||||
|
|
||||||
|
|
||||||
typedef union
|
typedef union
|
||||||
{
|
{
|
||||||
|
@ -28,9 +28,6 @@
|
|||||||
/* Value returned if `sem_open' failed. */
|
/* Value returned if `sem_open' failed. */
|
||||||
#define SEM_FAILED ((sem_t *) 0)
|
#define SEM_FAILED ((sem_t *) 0)
|
||||||
|
|
||||||
/* Maximum value the semaphore can have. */
|
|
||||||
#define SEM_VALUE_MAX (2147483647)
|
|
||||||
|
|
||||||
|
|
||||||
typedef union
|
typedef union
|
||||||
{
|
{
|
||||||
|
@ -33,9 +33,6 @@
|
|||||||
/* Value returned if `sem_open' failed. */
|
/* Value returned if `sem_open' failed. */
|
||||||
#define SEM_FAILED ((sem_t *) 0)
|
#define SEM_FAILED ((sem_t *) 0)
|
||||||
|
|
||||||
/* Maximum value the semaphore can have. */
|
|
||||||
#define SEM_VALUE_MAX (2147483647)
|
|
||||||
|
|
||||||
|
|
||||||
typedef union
|
typedef union
|
||||||
{
|
{
|
||||||
|
@ -33,9 +33,6 @@
|
|||||||
/* Value returned if `sem_open' failed. */
|
/* Value returned if `sem_open' failed. */
|
||||||
#define SEM_FAILED ((sem_t *) 0)
|
#define SEM_FAILED ((sem_t *) 0)
|
||||||
|
|
||||||
/* Maximum value the semaphore can have. */
|
|
||||||
#define SEM_VALUE_MAX (2147483647)
|
|
||||||
|
|
||||||
|
|
||||||
typedef union
|
typedef union
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user