Skip to content

Commit

Permalink
Merge remote branch 'origin/master' into fedora/master
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Schwab committed Apr 12, 2010
2 parents 4ac4e46 + ea42a20 commit 1fd194f
Show file tree
Hide file tree
Showing 84 changed files with 1,516 additions and 288 deletions.
113 changes: 113 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,110 @@
2010-04-09 Ulrich Drepper <drepper@redhat.com>

* nscd/aicache.c (addhstaiX): Correct passing memory to address
list to gethostbyname4_r functions.

* resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Optimize
copying of h_name.

2010-04-09 Roland McGrath <roland@redhat.com>

* Makerules ($(common-objpfx)libc-abis.h): Depend on libc-abis.stamp.
($(common-objpfx)libc-abis.stamp): New target, rule moved from
libc-abis.h target. Use a stamp file to avoid repeating no-op
move-if-change on every run.

* posix/Makefile (tst-chmod-ARGS): Pass $(objdir), not `pwd`.

2010-04-08 Ulrich Drepper <drepper@redhat.com>

[BZ #10915]
* nscd/nscd_stat.c (struct statdata): Add reload_count field.
(send_stats): Fill in reload_count.
(receive_print_stats): Print reload_count.

* sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): When
reading the loginuid file use a buffer which is always large enough.
NUL-terminate the string.

* malloc/malloc.c (_int_malloc): Return NULL if printing error message
returns.

2010-04-07 Andreas Schwab <schwab@redhat.com>

* sysdeps/unix/sysv/linux/i386/fallocate.c: Set errno on error.
* sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.

2010-04-08 Andreas Jaeger <aj@suse.de>

[BZ #10401]
* math/s_cprojl.c (__cprojl): Fix implementation to follow C99
standard.
* math/s_cprojf.c (__cprojf): Likewise.
* math/s_cproj.c (__cproj): Likewise.
* sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
* math/libm-test.inc (cproj_test): Fix test.

2010-04-08 Roland McGrath <roland@redhat.com>

* Makerules (libc-abis): Variable removed.
($(common-objpfx)libc-abis.h): Depend on Makerules too.
Use automatic variables in commands.
Depend on first libc-abis from $(sysdirs) or $(..).

2010-04-07 Ulrich Drepper <drepper@redhat.com>

* posix/bug-getopt1.c: New file.
* posix/bug-getopt2.c: New file.
* posix/bug-getopt3.c: New file.
* posix/bug-getopt4.c: New file.
* posix/bug-getopt5.c: New file.

2009-12-01 Eric Blake <ebb9@byu.net>

[BZ #11039]
* posix/getopt.c (_getopt_internal_r): Skip optional - or + before
checking lead byte of optstring for :.

[BZ #11040]
* posix/getopt.c (_getopt_internal_r): Reject '-;' as short
option, since it conflicts with "W;" optstring extension.

2009-12-02 Eric Blake <ebb9@byu.net>

[BZ #11041]
* posix/getopt.c (_getopt_internal_r): Handle '-Wfoo' identically
to '--foo', with optional argument or non-ambiguous prefix.

2010-04-07 Ulrich Drepper <drepper@redhat.com>

[BZ #11134]
* nis/libnsl.h (NSS_FLAG_ADJUNCT_AS_SHADOW): Define.
* nis/nss: Document new ADJUNCT_AS_SHADOW variable.
* nis/nss-default.c: Handle ADJUNCT_AS_SHADOW variable.
* nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Minor cleanups.
(internal_nis_getpwent_r): Don't fill in password from adjunct table
if NSS_FLAG_ADJUNCT_AS_SHADOW is set.
(_nss_nis_getpwnam_r): Likewise.
(_nss_nis_getpwuid_r): Likewise.
* nis/nss_nis/nis-spwd.c (ent_adjunct_used): New global variable.
(_nss_nis_setspent): Also reset ent_adjunct_used.
(internal_nis_getspent_r): If new_start is set and shadow.byname table
does not exist and NSS_FLAG_ADJUNCT_AS_SHADOW is set, try to get
passwd.adjunct.byname table. If new_start is not set get next entry
from the initially used table. Synthesize shadow.byname table if
necessary by adding two empty fields.
(_nss_nis_getspnam_r): If shadow.byname table does not exist and
NSS_FLAG_ADJUNCT_AS_SHADOW is set, try to get passwd.adjunct.byname
table and synthesize shadow.byname table.

2010-04-06 H.J. Lu <hongjiu.lu@intel.com>

* Makerules (libc-abis): Add $(..) to libc-abis.

2010-04-06 Joseph Myers <joseph@codesourcery.com>

* Makerules (libc-abis): Fix search for libc-abis in add-ons.

2010-04-06 Ulrich Drepper <drepper@redhat.com>

* sysdeps/posix/getaddrinfo.c (default_scopes): Assign global
Expand All @@ -13,6 +120,10 @@

2010-04-05 Roland McGrath <roland@redhat.com>

* elf/dl-cache.c (_dl_load_cache_lookup): Obey dl_hwcap_mask.

* elf/dl-support.c (_dl_hwcap_mask): New variable.

* elf/rtld.c (dl_main) [HAVE_AUX_VECTOR]: Add a cast.

2010-03-30 Paul Pluzhnikov <ppluzhnikov@google.com>
Expand Down Expand Up @@ -172,6 +283,7 @@

2010-03-25 Andreas Schwab <schwab@redhat.com>

[BZ #11001]
* sysdeps/posix/getaddrinfo.c (gaih_inet): Reset no_data before
each action.

Expand Down Expand Up @@ -969,6 +1081,7 @@
re_node_set_insert failure; return REG_ESPACE.
Patch by Paul Eggert.

[BZ #10864]
* bits/confname.h: Make pre-C99-safe.

2010-01-14 Ryan S. Arnold <rsa@us.ibm.com>
Expand Down
15 changes: 9 additions & 6 deletions Makerules
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,16 @@ endif # $(versioning) = yes

ifndef avoid-generated
before-compile := $(common-objpfx)libc-abis.h $(before-compile)
libc-abis := $(firstword $(wildcard $(foreach D,$(add-ons), $(..)libc-abis)) \
libc-abis)
$(common-objpfx)libc-abis.h: $(..)scripts/gen-libc-abis $(libc-abis)
$(SHELL) $(..)scripts/gen-libc-abis \
$(common-objpfx)libc-abis.h: $(common-objpfx)libc-abis.stamp; @:
$(common-objpfx)libc-abis.stamp: $(..)scripts/gen-libc-abis \
$(firstword $(wildcard $(sysdirs:=/libc-abis)) \
$(..)libc-abis) \
$(..)Makerules
$(SHELL) $< \
$(base-machine)-$(config-vendor)-$(config-os) \
< $(libc-abis) > $@T
$(move-if-change) $@T $@
< $(word 2,$^) > $(@:.stamp=.h)T
$(move-if-change) $(@:.stamp=.h)T $(@:.stamp=.h)
touch $@
common-generated += $(common-objpfx)libc-abis.h
endif # avoid-generated

Expand Down
99 changes: 94 additions & 5 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,17 +1,52 @@
GNU C Library NEWS -- history of user-visible changes. 2009-12-8
Copyright (C) 1992-2008, 2009 Free Software Foundation, Inc.
GNU C Library NEWS -- history of user-visible changes. 2010-4-9
Copyright (C) 1992-2009, 2010 Free Software Foundation, Inc.
See the end for copying conditions.

Please send GNU C library bug reports via <http://sources.redhat.com/bugzilla/>
using `glibc' in the "product" field.

Version 2.12

* The following bugs are resolved with this release:

3662, 4457, 5553, 10162, 10401, 10414, 10554, 10824, 10864, 10915, 10918,
10936, 10939, 10958, 10968, 10969, 10972, 10992, 11000, 11001, 11007,
11010, 11027, 11039, 11040, 11041, 11043, 11046, 11056, 11070, 11093,
11115, 11120, 11125, 11126, 11127, 11134, 11141, 11149, 11183, 11184,
11185, 11186, 11187, 11188, 11189, 11190, 11191, 11192, 11193, 11194,
11200, 11230, 11235, 11242, 11254, 11258, 11271, 11272, 11276, 11279,
11287, 11292, 11319, 11332, 11333, 11387, 11389, 11390, 11394, 11397,
11410, 11438, 11449, 11470, 11471

* New interfaces: pthread_getname_np, pthread_setname_np

* New Linux interface: recvmmsg

* STT_GNU_IFUNC implemented for Sparc by David Miller.

* The dynamic linker now recognizes supported ABI versions from the
EI_ABIVERSION field in the ELF header.
Implemented by Ulrich Drepper.

* New NIS mode selector ADJUNCT_AS_SHADOW. The passwd.adjunct.byname table
will not be used to fill in password fields in the passwd.byname replies.
Instead it is used to synthesize the shadow.byname table, should it be
missing. This is a useful mode in some installations involving Solaris.
Implemented by Ulrich Drepper.

* New locales: kok_IN, sq_MK, cv_RU

Version 2.11

* The following bugs are resolved with this release:

3270, 7094, 9924, 9986, 10011, 10085, 10107, 10159, 10162, 10166, 10183,
10195, 10196, 10200, 10203, 10207, 10211, 10213, 10217, 10221, 10229,
10262, 10286, 10312, 10315, 10319, 10349, 10360, 10391, 10402, 10416,
10418, 10422, 10425, 10446, 10448, 10452, 10540, 10553, 10560, 10564,
10609, 10643, 10692, 10713, 10717, 10730, 10731, 10742, 10780, 10784,
10789, 10817, 10823, 10840, 10847

* New interfaces: execvpe, pthread_sigqueue, mkstemps, mkstemps64, mkostemps,
mkostemps64
Implemented by Ulrich Drepper.
Expand Down Expand Up @@ -64,10 +99,17 @@ Version 2.11
Implemented by Ulrich Drepper.

* New locales: ps_AF, my_MM


Version 2.10

* The following bugs are resolved with this release:

697, 5381, 5807, 6411, 6545, 7040, 7058, 7067, 7080, 7083, 7095, 7098,
9677, 9694, 9697, 9701, 9704, 9705, 9706, 9720, 9726, 9730, 9733, 9736,
9741, 9750, 9753, 9759, 9781, 9791, 9793, 9823, 9833, 9844, 9880, 9881,
9891, 9893, 9895, 9913, 9916, 9920, 9948, 9955, 9957, 9963, 9985, 10052,
10069, 10086, 10087, 10090, 10092, 10093, 10100, 10118, 10128

* New interfaces: preadv, preadv64, pwritev, pwritev64, malloc_info
Implemented by Ulrich Drepper.

Expand Down Expand Up @@ -114,10 +156,17 @@ Version 2.10
in case of a broken server. To avoid it, users can run nscd or put
'options single-request' in /etc/resolv.conf.
Implemented by Ulrich Drepper.


Version 2.9

* The following bugs are resolved with this release:

3406, 5209, 5210, 5381, 5794, 5814, 5911, 6428, 6438, 6442, 6447, 6461,
6472, 6505, 6544, 6589, 6612, 6634, 6653, 6654, 6657, 6698, 6712, 6713,
6719, 6723, 6724, 6740, 6763, 6771, 6790, 6791, 6817, 6824, 6839, 6843,
6845, 6856, 6857, 6860, 6867, 6875, 6919, 6920, 6942, 6947, 6955, 6966,
6968, 6974, 6980, 6995, 7008, 7009, 7029

* Unified lookup for getaddrinfo: IPv4 and IPv6 addresses are now looked
up at the same time. Implemented by Ulrich Drepper.

Expand Down Expand Up @@ -155,6 +204,16 @@ Version 2.9

Version 2.8

* The following bugs are resolved with this release:

2549, 3112, 4314, 4407, 4997, 5012, 5040, 5112, 5204, 5208, 5209, 5220,
5222, 5224, 5225, 5237, 5238, 5240, 5245, 5277, 5346, 5375, 5378, 5382,
5424, 5427, 5428, 5435, 5436, 5439, 5441, 5442, 5443, 5451, 5452, 5454,
5455, 5463, 5464, 5465, 5475, 5477, 5478, 5520, 5541, 5545, 5553, 5600,
5602, 5607, 5614, 5627, 5628, 5736, 5737, 5741, 5753, 5760, 5762, 5768,
5774, 5777, 5778, 5779, 5786, 5790, 5818, 5854, 5857, 5903, 5939, 5979,
5983, 5995, 5998, 6004, 6007, 6020, 6021, 6024, 6040, 6042

* New locales: bo_CN, bo_IN, shs_CA.

* New encoding: HP-ROMAN9, HP-GREEK8, HP-THAI8, HP-TURKISH8.
Expand Down Expand Up @@ -188,6 +247,14 @@ Version 2.8

Version 2.7

* The following bugs are resolved with this release:

4125, 4126, 4178, 4359, 4407, 4512, 4514, 4525, 4554, 4556, 4557, 4566,
4582, 4586, 4588, 4599, 4610, 4647, 4702, 4705, 4726, 4745, 4772, 4773,
4775, 4776, 4792, 4813, 4814, 4816, 4833, 4858, 4860, 4896, 4905, 4925,
4936, 4937, 4938, 4941, 4946, 4963, 4972, 5010, 5028, 5043, 5058, 5063,
5071, 5103, 5104, 5112, 5113, 5184, 5186

* More checking functions: fread, fread_unlocked, open*, mq_open.
Implemented by Jakub Jelinek and Ulrich Drepper.

Expand Down Expand Up @@ -228,15 +295,37 @@ Version 2.7

Version 2.6

* The following bugs are resolved with this release:

3156, 3213, 3285, 3291, 3306, 3313, 3320, 3322, 3325, 3326, 3334, 3348,
3352, 3363, 3369, 3426, 3427, 3429, 3451, 3458, 3465, 3480, 3483, 3493,
3514, 3515, 3559, 3632, 3664, 3673, 3674, 3745, 3747, 3818, 3840, 3842,
3851, 3855, 3884, 3885, 3902, 3905, 3919, 3944, 3954, 3955, 3957, 3991,
3995, 3996, 4024, 4040, 4069, 4070, 4074, 4076, 4096, 4101, 4102, 4114,
4130, 4131, 4181, 4276, 4306, 4342, 4344, 4349, 4364, 4368, 4381, 4392,
4403, 4405, 4406, 4411, 4438, 4439, 4455, 4456, 4465, 4512, 4514, 4586,
4702, 4858

* New Linux interfaces: epoll_pwait, sched_getcpu.

* New generic interfaces: strerror_l.

* nscd can now cache the services database. Implemented by Ulrich Drepper.


Version 2.5

* The following bugs are resolved with this release:

39, 68, 192, 352, 388, 531, 935, 1006, 1201, 1203, 1386, 1782, 1783, 1784,
1785, 1786, 1787, 1951, 1974, 1996, 2072, 2098, 2125, 2134, 2158, 2182,
2349, 2376, 2386, 2389, 2415, 2418, 2420, 2423, 2450, 2451, 2466, 2472,
2473, 2477, 2498, 2499, 2501, 2502, 2505, 2507, 2508, 2509, 2517, 2526,
2569, 2571, 2592, 2611, 2625, 2632, 2644, 2662, 2680, 2683, 2684, 2693,
2695, 2703, 2734, 2751, 2764, 2766, 2775, 2792, 2821, 2823, 2832, 2841,
2843, 2883, 2892, 2908, 2914, 2926, 2961, 2978, 2980, 2987, 2997, 2998,
3013, 3018, 3034, 3040, 3044, 3123, 3124, 3137, 3138, 3143, 3155, 3189,
3225, 3251, 3252, 3253, 3273

* For Linux, the sorting of addresses returned by getaddrinfo now also
handles rules 3, 4, and 7 from RFC 3484. I.e., all rules are handled.
Implemented by Ulrich Drepper.
Expand Down
13 changes: 8 additions & 5 deletions elf/dl-cache.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* Support for reading /etc/ld.so.cache files written by Linux ldconfig.
Copyright (C) 1996-2002, 2003, 2004, 2006 Free Software Foundation, Inc.
Copyright (C) 1996-2002,2003,2004,2006,2010
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 @@ -255,17 +256,19 @@ _dl_load_cache_lookup (const char *name)
if (platform != (uint64_t) -1)
platform = 1ULL << platform;

/* Only accept hwcap if it's for the right platform. */
#define _DL_HWCAP_TLS_MASK (1LL << 63)
uint64_t hwcap_exclude = ~((GLRO(dl_hwcap) & GLRO(dl_hwcap_mask))
| _DL_HWCAP_PLATFORM | _DL_HWCAP_TLS_MASK);

/* Only accept hwcap if it's for the right platform. */
#define HWCAP_CHECK \
if (lib->hwcap & hwcap_exclude) \
continue; \
if (GLRO(dl_osversion) && lib->osversion > GLRO(dl_osversion)) \
continue; \
if (_DL_PLATFORMS_COUNT \
&& (lib->hwcap & _DL_HWCAP_PLATFORM) != 0 \
&& (lib->hwcap & _DL_HWCAP_PLATFORM) != platform) \
continue; \
if (lib->hwcap \
& ~(GLRO(dl_hwcap) | _DL_HWCAP_PLATFORM | _DL_HWCAP_TLS_MASK)) \
continue
SEARCH_CACHE (cache_new);
}
Expand Down
10 changes: 9 additions & 1 deletion elf/dl-support.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Support for dynamic linking code in static libc.
Copyright (C) 1996-2008, 2009 Free Software Foundation, Inc.
Copyright (C) 1996-2008,2009,2010 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 @@ -126,6 +126,14 @@ ElfW(Phdr) *_dl_phdr;
size_t _dl_phnum;
uint64_t _dl_hwcap __attribute__ ((nocommon));

/* This is not initialized to HWCAP_IMPORTANT, matching the definition
of _dl_important_hwcaps, below, where no hwcap strings are ever
used. This mask is still used to mediate the lookups in the cache
file. Since there is no way to set this nonzero (we don't grok the
LD_HWCAP_MASK environment variable here), there is no real point in
setting _dl_hwcap nonzero below, but we do anyway. */
uint64_t _dl_hwcap_mask __attribute__ ((nocommon));

/* Prevailing state of the stack, PF_X indicating it's executable. */
ElfW(Word) _dl_stack_flags = PF_R|PF_W|PF_X;

Expand Down
Loading

0 comments on commit 1fd194f

Please sign in to comment.