Skip to content

Commit

Permalink
Merge branch 'master' of sourceware.org:/git/glibc into fedora/master
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Schwab committed Jun 16, 2009
2 parents c382623 + 837dea7 commit 8a59843
Show file tree
Hide file tree
Showing 55 changed files with 1,290 additions and 212 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
timezone/* -whitespace
99 changes: 99 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,102 @@
2009-06-15 Ulrich Drepper <drepper@redhat.com>

* sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
chmod if it is necessary.

[BZ #10166]
* sysdeps/unix/sysv/linux/grantpt.c: If slave device is on devpts or
devfs, the mode might not be correct. Check it and return only if it
is correct.

[BZ #10183]
* posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.

[BZ #10195]
* inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
of nd_opt_home_agent_info_preference to uint16_t.
Patch by Arnaud Ebalard <arno@natisbad.org>.

[BZ #10207]
* nss/getent.c: Add support for print gshadow data.

[BZ #10203]
* nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
not just the currently used one and those which follow.
Patch by Joe Landers <jlanders@vmware.com>.

[BZ #10196]
* libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.

[BZ #10217]
* stdlib/abort.c: Define variable __abort_msg.
* stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
* include/stdlib.h: Declare __abort_msg.
* assert/assert-perr.c: Don't free buffer for message immediately.
Store atomically in __abort_msg and free old buffer if necessary.
* assert/assert.c: Likewise.
* sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
store pointer in __abort_msg, and possibly free old string.
* sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.

* time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.

[BZ #10211]
* time/tzfile.c (__tzfile_compute): If we use the envvar format still
handle leap seconds if they are available.
Patch by Akinori Hattori <hattya@gentoo.org>.

* timezone/tzselect.ksh: Update from tzcode2009i.
* timezone/zdump.c: Likewise.
* timezone/zic.c: Likewise.

* timezone/africa: Update from tzdata2009i.
* timezone/antarctica: Likewise.
* timezone/asia: Likewise.
* timezone/australasia: Likewise.
* timezone/backward: Likewise.
* timezone/etcetera: Likewise.
* timezone/europe: Likewise.
* timezone/factory: Likewise.
* timezone/iso3166.tab: Likewise.
* timezone/leapseconds: Likewise.
* timezone/northamerica: Likewise.
* timezone/pacificnew: Likewise.
* timezone/solar87: Likewise.
* timezone/solar88: Likewise.
* timezone/solar89: Likewise.
* timezone/southamerica: Likewise.
* timezone/systemv: Likewise.
* timezone/yearistype: Likewise.
* timezone/zone.tab: Likewise.

2009-06-15 Jakub Jelinek <jakub@redhat.com>

* elf/dl-lookup.c (_dl_debug_bindings): When resolving to
STT_GNU_IFUNC symbol or in 8 into type_class.

* sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
instead of Elf64_Addr.

2009-06-14 Ulrich Drepper <drepper@redhat.com>

* po/sv.po: Update from translation team.

[BZ #10229]
* misc/sys/select.h (__NFDBITS): Expression should have type int.
* sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
__FD_CLR, and __FD_ISSET. gcc nowadays generates better code from
the C version.

2009-06-12 Ulrich Drepper <drepper@redhat.com>

* Versions.def: Add GLIBC_2.11 for libpthread.

2009-06-11 Ulrich Drepper <drepper@redhat.com>

* resolv/res_send.c (send_dg): Remember we switched to
single-request mode.

2009-06-09 Ulrich Drepper <drepper@redhat.com>

* dlfcn/dlfcn.h: Remove comma at end of enum.
Expand Down
1 change: 1 addition & 0 deletions Versions.def
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ libpthread {
GLIBC_2.3.4
GLIBC_2.4
GLIBC_2.6
GLIBC_2.11
GLIBC_PRIVATE
}
libresolv {
Expand Down
10 changes: 6 additions & 4 deletions assert/assert-perr.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (C) 1994-1998,2001,2002,2005 Free Software Foundation, Inc.
/* Copyright (C) 1994-1998,2001,2002,2005,2009 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
Expand All @@ -17,6 +17,7 @@
02111-1307 USA. */

#include <assert.h>
#include <atomic.h>
#include <libintl.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down Expand Up @@ -64,9 +65,10 @@ __assert_perror_fail (int errnum,
(void) __fxprintf (NULL, "%s", buf);
(void) fflush (stderr);

/* We have to free the buffer since the appplication might catch the
SIGABRT. */
free (buf);
/* We have to free the old buffer since the application might
catch the SIGABRT signal. */
char *old = atomic_exchange_acq (&__abort_msg, buf);
free (old);
}
else
{
Expand Down
11 changes: 7 additions & 4 deletions assert/assert.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (C) 1991,1994-1996,1998,2001,2002,2005
/* Copyright (C) 1991,1994-1996,1998,2001,2002,2005,2009
Free Software Foundation, Inc.
This file is part of the GNU C Library.
Expand All @@ -18,6 +18,7 @@
02111-1307 USA. */

#include <assert.h>
#include <atomic.h>
#include <libintl.h>
#include <stdio.h>
#include <stdlib.h>
Expand All @@ -43,6 +44,7 @@ extern const char *__progname;
# include FATAL_PREPARE_INCLUDE
#endif


#undef __assert_fail
void
__assert_fail (const char *assertion, const char *file, unsigned int line,
Expand All @@ -64,9 +66,10 @@ __assert_fail (const char *assertion, const char *file, unsigned int line,
(void) __fxprintf (NULL, "%s", buf);
(void) fflush (stderr);

/* We have to free the buffer since the application might catch the
SIGABRT. */
free (buf);
/* We have to free the old buffer since the application might
catch the SIGABRT signal. */
char *old = atomic_exchange_acq (&__abort_msg, buf);
free (old);
}
else
{
Expand Down
17 changes: 11 additions & 6 deletions elf/dl-lookup.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Look up a symbol in the loaded objects.
Copyright (C) 1995-2005, 2006, 2007 Free Software Foundation, Inc.
Copyright (C) 1995-2005, 2006, 2007, 2009 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
Expand Down Expand Up @@ -542,15 +542,20 @@ _dl_debug_bindings (const char *undef_name, struct link_map *undef_map,
conflict = 1;
}

if (value->s
&& (__builtin_expect (ELFW(ST_TYPE) (value->s->st_info)
== STT_TLS, 0)))
type_class = 4;
if (value->s)
{
if (__builtin_expect (ELFW(ST_TYPE) (value->s->st_info)
== STT_TLS, 0))
type_class = 4;
else if (__builtin_expect (ELFW(ST_TYPE) (value->s->st_info)
== STT_GNU_IFUNC, 0))
type_class |= 8;
}

if (conflict
|| GLRO(dl_trace_prelink_map) == undef_map
|| GLRO(dl_trace_prelink_map) == NULL
|| type_class == 4)
|| type_class >= 4)
{
_dl_printf ("%s 0x%0*Zx 0x%0*Zx -> 0x%0*Zx 0x%0*Zx ",
conflict ? "conflict" : "lookup",
Expand Down
3 changes: 3 additions & 0 deletions include/stdlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,9 @@ extern int __qfcvt_r (long double __value, int __ndigit,
extern void *__default_morecore (ptrdiff_t) __THROW;
libc_hidden_proto (__default_morecore)

extern char *__abort_msg;
libc_hidden_proto (__abort_msg)

__END_DECLS

#undef __Need_M_And_C
Expand Down
4 changes: 2 additions & 2 deletions inet/netinet/icmp6.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (C) 1991-1997,2000,2006 Free Software Foundation, Inc.
/* Copyright (C) 1991-1997,2000,2006,2009 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
Expand Down Expand Up @@ -339,7 +339,7 @@ struct nd_opt_home_agent_info
uint8_t nd_opt_home_agent_info_type;
uint8_t nd_opt_home_agent_info_len;
uint16_t nd_opt_home_agent_info_reserved;
int16_t nd_opt_home_agent_info_preference;
uint16_t nd_opt_home_agent_info_preference;
uint16_t nd_opt_home_agent_info_lifetime;
};

Expand Down
2 changes: 1 addition & 1 deletion libio/tst-fgetwc.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
static int
do_test (void)
{
if (setlocale (LC_ALL, "de_DE.utf8") == NULL)
if (setlocale (LC_ALL, "de_DE.UTF-8") == NULL)
{
puts ("setlocale failed");
return 1;
Expand Down
7 changes: 7 additions & 0 deletions localedata/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2009-06-15 Ulrich Drepper <drepper@redhat.com>

[BZ #10213]
* SUPPORTED (SUPPORTED-LOCALES): Add dv_MV.UTF-8 entry.
* locales/dv_MV: New file.
Contributed by sofwathullah.mohamed@gmail.com.

2009-06-09 Ulrich Drepper <drepper@redhat.com>

* locales/ur_IN: New file.
Expand Down
1 change: 1 addition & 0 deletions localedata/SUPPORTED
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ de_DE@euro/ISO-8859-15 \
de_LU.UTF-8/UTF-8 \
de_LU/ISO-8859-1 \
de_LU@euro/ISO-8859-15 \
dv_MV/UTF-8 \
dz_BT/UTF-8 \
el_GR.UTF-8/UTF-8 \
el_GR/ISO-8859-7 \
Expand Down
Loading

0 comments on commit 8a59843

Please sign in to comment.