]> git.ipfire.org Git - thirdparty/glibc.git/log
thirdparty/glibc.git
16 years agoFix memory leak when batch-reading large NIS password maps.
Joe Landers [Tue, 16 Jun 2009 00:37:40 +0000 (17:37 -0700)] 
Fix memory leak when batch-reading large NIS password maps.

Not the whole was traversed in the function to free all buffers.
BZ #10203
(cherry picked from commit 233a182b9ee2a48eddbb15f70af8bc24add24af3)

16 years ago(do_test): Use de_DE.UTF-8 as locale name.
Bruce Dubbs [Tue, 16 Jun 2009 00:27:48 +0000 (17:27 -0700)] 
(do_test): Use de_DE.UTF-8 as locale name.

(cherry picked from commit 4155d926336ba38428a98359bf0908453ff83625)

16 years agoFix computation of tzspec_len.
Ulrich Drepper [Mon, 15 Jun 2009 18:00:08 +0000 (11:00 -0700)] 
Fix computation of tzspec_len.

Without this it should never have worked that we can use the
embedded envvar in the timezone data files for dates after the last
matching rule.
(cherry picked from commit 6355c99740c91ed5a7fa14e378f74950e09f5f48)

16 years agoHandle leap seconds even if no DST rule exists.
Akinori Hattori [Mon, 15 Jun 2009 17:54:26 +0000 (10:54 -0700)] 
Handle leap seconds even if no DST rule exists.

This fixes BZ #10211.
(cherry picked from commit 29143408ae6d474a115768e809691635f507b1fd)

16 years agoFix futex syscall parameter for x86 absolute timeout waits.
Bryan Kadzban [Thu, 11 Jun 2009 18:32:51 +0000 (11:32 -0700)] 
Fix futex syscall parameter for x86 absolute timeout waits.

This affects only installations compiled for kernels older than 2.6.18.
(cherry picked from commit 1828530f09bcc321cfb84c27110bbce804605ec4)

16 years agoRemember we switched to single-request mode.
Ulrich Drepper [Thu, 11 Jun 2009 17:07:33 +0000 (10:07 -0700)] 
Remember we switched to single-request mode.

This change prevents repetition in most later calls of the resolver
in case the DNS server or the network connection is broken.
(cherry picked from commit 310647e9809986986650994d036af18ca9b17fb2)

16 years agoRemove comma at end of enum.
J.H.M. Dassen [Tue, 9 Jun 2009 14:58:02 +0000 (07:58 -0700)] 
Remove comma at end of enum.
(cherry picked from commit 88ea382fda5af7717f85bb19837c9c99094f3df4)

16 years ago(_IO_new_file_fopen): Don't prematurely stop parsing mode string.
Ulrich Drepper [Tue, 9 Jun 2009 13:59:02 +0000 (06:59 -0700)] 
(_IO_new_file_fopen): Don't prematurely stop parsing mode string.
(cherry picked from commits 0d74e0436195a051d69e78bef10d23879788cb7e,
d360a0da2b42b2b79e9ce9c2d7984c234e840b7a)

16 years agoTerminate correct buffer.
Ulrich Drepper [Wed, 3 Jun 2009 15:30:35 +0000 (08:30 -0700)] 
Terminate correct buffer.

Little typo could cause additional characters to be printed.
(cherry picked from commit fbb04b35e7997070feec74e0fd46953faef71f9e)

16 years agoFix mbrtowc example.
André Goddard Rosa [Mon, 1 Jun 2009 18:43:26 +0000 (11:43 -0700)] 
Fix mbrtowc example.

The remaining bytes were not copied correctly.
(cherry picked from commit 21e66bc528edcbe18d434eb33a601e0f796904c9)

16 years agoAdd missing file from accept4 commit.
Ulrich Drepper [Mon, 1 Jun 2009 00:46:55 +0000 (17:46 -0700)] 
Add missing file from accept4 commit.

Hidden by previous .gitignore content.
(cherry picked from commit fd469aac31dc09f1328c8c4b976f887ebd592c56)

16 years agoMove AC_CANONICAL_HOST before first use of $host and $build.
Andreas Schwab [Sun, 31 May 2009 23:54:28 +0000 (16:54 -0700)] 
Move AC_CANONICAL_HOST before first use of $host and $build.
(cherry picked from commit c16a054d5e20e4da6ccc528b690910a777d69a8b)

16 years agoRemove arch directory names from .gitignore.
Roland McGrath [Sat, 30 May 2009 22:06:51 +0000 (15:06 -0700)] 
Remove arch directory names from .gitignore.
(cherry picked from commit cc3ae2461cf5ced13ab7c7787543f4dd3eabe88c)

16 years agoFix errno for boundary conditions in 128-bit long double.
Ulrich Drepper [Fri, 29 May 2009 19:00:22 +0000 (12:00 -0700)] 
Fix errno for boundary conditions in 128-bit long double.

Similar to the changes which went already in for the other formats,
follow POSIX rules for errno.
(cherry picked from commit 7f3394bdf34e28b374e5569a7a74ddac734fb172)

16 years ago[BZ #10200]
Aurelien Jarno [Wed, 27 May 2009 23:41:00 +0000 (16:41 -0700)] 
[BZ #10200]
* db-symbols.awk: Use the last field for the symbol name instead
of the 8th one.
(cherry picked from commit 8ee84bd01f85b5ab1430750270b7e51a967d03eb)

16 years agoDescribe nss_dns parallel lookup workaround in 2.10 NEWS.
Ulrich Drepper [Fri, 22 May 2009 16:07:00 +0000 (09:07 -0700)] 
Describe nss_dns parallel lookup workaround in 2.10 NEWS.
(cherry picked from commit 57be3fd79a418b14e417e9a6b96f05dcb99932ee)

16 years agoFix errno for IBM long double.
Andreas Schwab [Fri, 22 May 2009 15:35:15 +0000 (08:35 -0700)] 
Fix errno for IBM long double.

After the last addition to the math test suite PPC routines haven't
been adjusted so far.
(cherry picked from commit 38ae768d88c47dd06030104eb3376212b0d8d164)

16 years agoFix IA-64 memchr read-ahead.
Ulrich Drepper [Fri, 22 May 2009 01:47:59 +0000 (18:47 -0700)] 
Fix IA-64 memchr read-ahead.

The latest stratcliff extension exposed a bug in the IA-64 memchr which
uses non-speculative loads to prefetch data.  Change the code to use
speculative loads with appropriate fixup.  Fixes BZ 10162.
(cherry picked from commit fa64b7f76b97930cd2aaf7bfd305cac3d925cd8f)

16 years agoDon't define __ASSUME_ACCEPT4 for IA-64.
Ulrich Drepper [Fri, 22 May 2009 01:23:57 +0000 (18:23 -0700)] 
Don't define __ASSUME_ACCEPT4 for IA-64.
(cherry picked from commit 3533b1a6a6a6b7e350b7a9459f8152b1f9f0364a)

16 years agoRemove __NR_accept4 definition.
Jakub Jelinek [Fri, 22 May 2009 01:16:59 +0000 (18:16 -0700)] 
Remove __NR_accept4 definition.

This definition was meant to be removed before the checkin.  It was
used in the development.
(cherry picked from commit d14eda9310125ddf8fe66df01bbe46ab7d226a5e)

16 years agoCorrect socketcall argument for accept4.
Jakub Jelinek [Fri, 22 May 2009 01:15:26 +0000 (18:15 -0700)] 
Correct socketcall argument for accept4.

The header had the old name (paccept).
(cherry picked from commit a2292378d0d629c26edfae6b197efbdb362a7094)

16 years agoFix forced loop termination in nscd database lookup.
Jakub Jelinek [Mon, 18 May 2009 17:19:50 +0000 (10:19 -0700)] 
Fix forced loop termination in nscd database lookup.

There are two issues with the forced loop exit in the nscd lookup:
1. the estimate of the entry size isn't pessimistic enough for all
   databases, resulting potentially is too early exits
2. the combination of 64-bit process and 32-bit nscd would lead to
   rejecting valid records in the database.
(cherry picked from commit 5078fff6c4bc1c71c5d558ff7ec4775aa48b0c11)

16 years agoUnify __WAIT_INT definition in stdlib.h and sys/wait.h.
Ulrich Drepper [Sat, 16 May 2009 18:39:39 +0000 (11:39 -0700)] 
Unify __WAIT_INT definition in stdlib.h and sys/wait.h.

This fixes BZ #10159.  The stdlib.h definition was out of date.
(cherry picked from commit a64039b084ae3faca3336b7d95f2e40c497d20e1)

16 years agoMove BLOCK_ALIGN* macros back.
Ulrich Drepper [Sat, 16 May 2009 17:29:43 +0000 (10:29 -0700)] 
Move BLOCK_ALIGN* macros back.

The move to nscd-client.h was only needed for some interim version
of the patch.  The final version doesn't need it.  Undo the change.
(cherry picked from commit fa546abe9d0346d5d87b8fe19884993408476d77)

16 years agoFix exit condition.
Ulrich Drepper [Sat, 16 May 2009 17:10:32 +0000 (10:10 -0700)] 
Fix exit condition.

The patch to bound the search in the nscd caches used a wrong exit
condition.  Fixed now.
(cherry picked from commit 95410b7ba23c44f6a038285d9c38ee84129e4cd6)

16 years agoFurther robustify nscd database lookup.
Ulrich Drepper [Sat, 16 May 2009 04:33:43 +0000 (21:33 -0700)] 
Further robustify nscd database lookup.

We can compute an absolute maximum for the number of elements which
can fit into the currently mapped database.  Stop after that many
iterations.
(cherry picked from commit 831a40494d44045c0caaf8085ab1d35c0da23140)

16 years agoRobustify libc-side nscd database reader.
Jakub Jelinek [Sat, 16 May 2009 04:17:08 +0000 (21:17 -0700)] 
Robustify libc-side nscd database reader.

The nscd database mapped in processes can change at any time.  We
have to be more vigilant when it comes to using that memory.  Test
the data entries are valid in their entire size, don't read data
again from memory once we verified it, and make sure the trailing
pointer is not going off the deep end.
(cherry picked from commit cfe1fc1013d0e7e4863c974fa0e78891cc0a2ed2)

16 years agoAvoid double definition of catomic_compare_and_exchange_val_acq.
Jakub Jelinek [Sat, 16 May 2009 04:08:55 +0000 (21:08 -0700)] 
Avoid double definition of catomic_compare_and_exchange_val_acq.
(cherry picked from commit 3b1b533bc3239ef6df1e40e0088e7270ac060be6)

16 years agoDon't try to cleanup libselinux and libaudit.
Jakub Jelinek [Sat, 16 May 2009 03:48:08 +0000 (20:48 -0700)] 
Don't try to cleanup libselinux and libaudit.

Because we are not shutting down the other threads first another
thread might work on a query before the process shuts down.  In this
case the now uninitialized libselinux and libaudit might be used.
Just don't free the resources.  It's not necessary anyway because
the process is about to terminate.
(cherry picked from commit 9e471dad8e173806cbbfb704875d5ae40e36fa34)
(fixed ChangeLog entry by pasky)

16 years agoFix change to prevent cancel signal in unsafe places.
Ulrich Drepper [Sat, 16 May 2009 03:42:36 +0000 (20:42 -0700)] 
Fix change to prevent cancel signal in unsafe places.

The bits tested to decide when to delay the return when switching
off async cancel mode were wrong.  Fix that.  Also close a race
condition in pthread_cancel where the bit indicating the cancellation
is unconditionally set even if the cancel type might have changed.
(cherry picked from commit 9437b427cec6266abd303983848549a5c4ba0d0a)

16 years agoNo cancel signal in unsafe places.
Ulrich Drepper [Fri, 15 May 2009 17:12:35 +0000 (10:12 -0700)] 
No cancel signal in unsafe places.

When disabling async cancellation we cannot return from the function
call if the thread is canceled.  This happens when the cancel bits
have been set before async cancel is disabled but the signal hasn't
been sent/received yet.  Delay for as long as necessary since
otherwise the signal might be received in an unsafe context.
(cherry picked from commit 1a7f254b4b0590bfab1baa1400705265b1b23b97)

16 years agoCleanup some .gitignore files.
Ulrich Drepper [Sat, 16 May 2009 02:47:10 +0000 (19:47 -0700)] 
Cleanup some .gitignore files.
(cherry picked from commit 9a1fbe861d8ae41976f926a211d59098a030878f)

16 years agoIgnore Emacs backup files.
Ulrich Drepper [Fri, 15 May 2009 20:02:02 +0000 (13:02 -0700)] 
Ignore Emacs backup files.
(cherry picked from commit f1342e0be8e222dbca077beca94b5937564e8c4b)

16 years agorename each .cvsignore file to .gitignore
Jim Meyering [Fri, 15 May 2009 14:47:36 +0000 (16:47 +0200)] 
rename each .cvsignore file to .gitignore
(cherry picked from commit 2e180a26222caf478f29e272c9d1b5d9c6299752)

16 years agoUpdate from trunk. cvs/glibc-2_10-branch ibm/2.10/master cvs/glibc-2_10_1 glibc-2.10.1
Ulrich Drepper [Mon, 11 May 2009 14:08:53 +0000 (14:08 +0000)] 
Update from trunk.

16 years agoUpdate from trunk.
Ulrich Drepper [Sun, 10 May 2009 19:31:51 +0000 (19:31 +0000)] 
Update from trunk.

16 years ago* Makeconfig: Undo last change. Add asflags-cpu to ASFLAGS in the cvs/fedora-glibc-20090509T2200 cvs/glibc-2_10 cvs/glibc-2_10-base glibc-2.10
Ulrich Drepper [Sat, 9 May 2009 21:58:12 +0000 (21:58 +0000)] 
* Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the

same place we add ASFLAGS-config.

16 years ago* version.h (VERSION): Bump for 2.10 release. cvs/fedora-glibc-20090509T1828
Ulrich Drepper [Sat, 9 May 2009 17:40:57 +0000 (17:40 +0000)] 
* version.h (VERSION): Bump for 2.10 release.

* include/features.h (__GLIBC_MINOR__): Bump to 10.

16 years ago[BZ #10128]
Ulrich Drepper [Sat, 9 May 2009 16:12:41 +0000 (16:12 +0000)] 
[BZ #10128]

2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
[BZ #10128]
* resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
or FORMERR and the other NOERROR, don't raise an error.

16 years ago[BZ #10118]
Ulrich Drepper [Sat, 9 May 2009 15:59:55 +0000 (15:59 +0000)] 
[BZ #10118]

2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
[BZ #10118]
* Makeconfig (+asflags): New variable based upon ASFLAG or
asflags-cpu.
(ASFLAGS): Add override to set ASFLAGS to +asflags.
* config.make.in (asflags-cpu): Add variable based upon
@libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
the assembler.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
Remove unneeded file now that the assembler emits _ARCH_PWR6 and
recognizes power6 instruction set due to passing -mcpu=power6 from
--with-cpu=power6 when compiling .S files.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
Likewise.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
Likewise.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
Likewise.

16 years ago* string/stratcliff.c (do_test): Test for zero length
Ulrich Drepper [Sat, 9 May 2009 14:45:07 +0000 (14:45 +0000)] 
* string/stratcliff.c (do_test): Test for zero length

STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
at the end of the page.

16 years ago* sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
Ulrich Drepper [Sat, 9 May 2009 06:54:31 +0000 (06:54 +0000)] 
* sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.

16 years ago* sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
Ulrich Drepper [Sat, 9 May 2009 06:40:15 +0000 (06:40 +0000)] 
* sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when

count is zero.

16 years ago* po/da.po: Update from translation team.
Ulrich Drepper [Fri, 8 May 2009 20:51:51 +0000 (20:51 +0000)] 
* po/da.po: Update from translation team.

2009-05-05  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
and READ_IMPLIES_EXEC.

2009-05-04  Ulrich Drepper  <drepper@redhat.com>

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

16 years ago* io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
Ulrich Drepper [Thu, 7 May 2009 17:42:24 +0000 (17:42 +0000)] 
* io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,

guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.

16 years ago* localedata/locales/bn_BD: Remove comment about missing collation
Ulrich Drepper [Mon, 4 May 2009 21:20:20 +0000 (21:20 +0000)] 
* localedata/locales/bn_BD: Remove comment about missing collation

rules.
* localedata/locales/iso14651_t1_common: Add Bengali collation rules.
Patch by Pravin Satpute <psatpute@redhat.com>.

16 years agoUpdate from translation team.
Ulrich Drepper [Mon, 4 May 2009 21:13:21 +0000 (21:13 +0000)] 
Update from translation team.

16 years agoAdd missing CHangeLog entry.
Jakub Jelinek [Wed, 29 Apr 2009 18:04:10 +0000 (18:04 +0000)] 
Add missing CHangeLog entry.

2009-01-07  Ulrich Drepper  <drepper@redhat.com>

* (in_flight_stack): New variable.
(stack_list_del): New function.  Use instead of list_del.
(stack_list_add): New function.  Use instead of list_add when adding to
stack_cache and stack_used lists.
(__reclaim_stacks): Complete operations on stack_cache and stack_used lists
when the fork call interrupted another thread.

16 years ago* sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12 comment change.
Jakub Jelinek [Wed, 29 Apr 2009 16:42:32 +0000 (16:42 +0000)] 
* sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12 comment change.

2009-04-29  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
comment change.

16 years ago* cancellation.c (__pthread_disable_asynccancel): Use THREAD_ATOMIC_AND
Ulrich Drepper [Mon, 27 Apr 2009 21:55:49 +0000 (21:55 +0000)] 
* cancellation.c (__pthread_disable_asynccancel): Use THREAD_ATOMIC_AND

is available.
* libc-cancellation.c (__libc_disable_asynccancel): Likewise.
* sysdeps/x86_64/tls.h: Define THREAD_ATOMIC_AND.
* sysdeps/i386/tls.h: Likewise.
(tcbhead_t): Add __private_tm member.

16 years ago* locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE cvs/fedora-glibc-20090427T1419
Ulrich Drepper [Mon, 27 Apr 2009 14:07:57 +0000 (14:07 +0000)] 
* locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE

to MAP_ANON in PROT_NONE mmap64 call.
(open_archive): Likewise.
(file_data_available_p): Use mmap64 instead of mremap.
(enlarge_archive): Likewise.  Update head if ah->addr changed.
Attempt to reserve address space after mmap64 region.

16 years ago* sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
Ulrich Drepper [Mon, 27 Apr 2009 05:31:37 +0000 (05:31 +0000)] 
* sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.

* sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
* sysdeps/x86_64/fpu/s_expm1l.S: Likewise.

16 years ago* sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
Ulrich Drepper [Mon, 27 Apr 2009 04:01:16 +0000 (04:01 +0000)] 
* sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in

atanh should set ERANGE.

16 years ago* inet/inet6_option.c (option_alloc): Add temporary variable to
Ulrich Drepper [Mon, 27 Apr 2009 03:34:27 +0000 (03:34 +0000)] 
* inet/inet6_option.c (option_alloc): Add temporary variable to

16 years ago[BZ #10087]
Ulrich Drepper [Mon, 27 Apr 2009 03:01:36 +0000 (03:01 +0000)] 
[BZ #10087]

* elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
result of lookup to make call to implement STT_GNU_IFUNC.
(_dl_profile_fixup): Likewise.
Patch by H.J. Lu <hjl.tools@gmail.com>.

16 years ago* nscd/connections.c (send_ro_fd): Define temporary variable to avoid
Ulrich Drepper [Sun, 26 Apr 2009 22:31:19 +0000 (22:31 +0000)] 
* nscd/connections.c (send_ro_fd): Define temporary variable to avoid

warning.

* elf/sprof.c: Likewise.

16 years ago* sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
Ulrich Drepper [Sun, 26 Apr 2009 20:12:37 +0000 (20:12 +0000)] 
* sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline

from definition.

* sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
label if it is not used.

* elf/dl-profile.c (_dl_start_profile): Define real-type variant
of gmon_hist_hdr and gmon_hdr structures and use them.

* elf/dl-load.c (open_verify): Add temporary variable to avoid
warning.

* nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.

* sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
to avoid cast.

* inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
* inet/rcmd.c (rcmd_af): Make from a union of the various needed types
to avoid warnings.
(iruserok_af): Use ss_family instead of casts.

* gmon/gmon.c (write_hist): Define real-type variant of
gmon_hist_hdr structure and use it.
(write_gmon): Likewise for gmon_hdr.

* sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
function if we are not going to define it.
* sysdeps/unix/sysv/linux/writev.c: Likewise.

* inet/inet6_option.c (optin_alloc): Add temporary variable to
avoid warning.

* libio/strfile.h (struct _IO_streambuf): Use correct type and
name of VTable element.
* libio/iovsprintf.c: Avoid casts to avoid warnings.
* libio/iovsscanf.c: Likewise.
* libio/vasprintf.c: Likewise.
* libio/vsnprintf.c: Likewise.
* stdio-common/isoc99_vsscanf.c: Likewise.
* stdlib/strfmon_l.c: Likewise.
* debug/vasprintf_chk.c: Likewise.
* debug/vsnprintf_chk.c: Likewise.
* debug/vsprintf_chk.c: Likewise.

16 years ago* sem_open.c (sem_open): Rewrite initialization of initsem to
Ulrich Drepper [Sun, 26 Apr 2009 18:37:05 +0000 (18:37 +0000)] 
* sem_open.c (sem_open): Rewrite initialization of initsem to

avoid warnings.

16 years ago* sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
Ulrich Drepper [Sun, 26 Apr 2009 18:06:47 +0000 (18:06 +0000)] 
* sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):

Avoid warning by using may_alias attribute on ptrhack.

16 years ago* nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
Ulrich Drepper [Sun, 26 Apr 2009 16:45:03 +0000 (16:45 +0000)] 
* nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached

function pointers.

16 years ago* sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
Ulrich Drepper [Sun, 26 Apr 2009 15:03:11 +0000 (15:03 +0000)] 
* sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.

16 years ago* posix/bits/posix1_lim.h: Cleanup namespace a bit.
Ulrich Drepper [Sun, 26 Apr 2009 06:18:19 +0000 (06:18 +0000)] 
* posix/bits/posix1_lim.h: Cleanup namespace a bit.

16 years ago* sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.
Ulrich Drepper [Sun, 26 Apr 2009 05:42:49 +0000 (05:42 +0000)] 
* sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.

* sysdeps/i386/fpu/s_tanf.S: Likewise.
* sysdeps/i386/fpu/s_tanl.S: Likewise.
* sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
* sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
* sysdeps/x86_64/fpu/s_tanl.S: Likewise.
* math/libm-test.inc: Add tests for errno after tan calls with
±Inf.

16 years ago* sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
Ulrich Drepper [Sun, 26 Apr 2009 04:46:54 +0000 (04:46 +0000)] 
* sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct

errno value vor pow(+-0,neg).
* math/libm-test.inc (pow_test): Add tests for errno value for
pole errors.

16 years ago* math/w_fmod.c: Also handle x=±Inf as error.
Ulrich Drepper [Sun, 26 Apr 2009 03:43:02 +0000 (03:43 +0000)] 
* math/w_fmod.c: Also handle x=±Inf as error.

* math/w_fmodf.c: Likewise.
* math/w_fmodl.c: Likewise.
* math/libm-test.inc (fmod_test): Add tests for errno after calls for
x=±Inf or y=0.

16 years ago* sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.
Ulrich Drepper [Sun, 26 Apr 2009 01:04:54 +0000 (01:04 +0000)] 
* sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.

* sysdeps/i386/fpu/s_cosf.S: Likewise.
* sysdeps/i386/fpu/s_cosl.S: Likewise.
* sysdeps/i386/fpu/s_sin.S: Likewise.
* sysdeps/i386/fpu/s_sinf.S: Likewise.
* sysdeps/i386/fpu/s_sinl.S: Likewise.
* sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
* sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
* sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
* sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
* sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
* sysdeps/x86_64/fpu/s_cosl.S: Likewise.
* sysdeps/x86_64/fpu/s_sinl.S: Likewise.
* math/libm-test.inc: Add tests for errno after sin/cos calls with
±Inf.

16 years ago* stdlib/strtod_l.c (round_and_return): We have to set errno to
Ulrich Drepper [Sat, 25 Apr 2009 17:56:10 +0000 (17:56 +0000)] 
* stdlib/strtod_l.c (round_and_return): We have to set errno to

ERANGE for underflows.
* stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.

16 years ago* stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
Ulrich Drepper [Sat, 25 Apr 2009 16:59:29 +0000 (16:59 +0000)] 
* stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since

the 2001 revision.

16 years agofor lgamma should set errno to ERANGE, not EDOM.
Ulrich Drepper [Sat, 25 Apr 2009 16:16:28 +0000 (16:16 +0000)] 
for lgamma should set errno to ERANGE, not EDOM.

16 years ago* libio/tst-widetext.input: Remove surrogates.
Ulrich Drepper [Sat, 25 Apr 2009 08:39:43 +0000 (08:39 +0000)] 
* libio/tst-widetext.input: Remove surrogates.

16 years ago* include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
Ulrich Drepper [Sat, 25 Apr 2009 08:30:00 +0000 (08:30 +0000)] 
* include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.

16 years ago* sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
Ulrich Drepper [Sat, 25 Apr 2009 08:12:24 +0000 (08:12 +0000)] 
* sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors

for lgamma should se errno to ERANGE, not EDOM.
* math/libm-test.inc (lgamma_test): Check errno for pole errors.

16 years ago* sysdeps/generic/stdint.h (WINT_MAX): Define as 2147483647 since
Ulrich Drepper [Sat, 25 Apr 2009 07:12:27 +0000 (07:12 +0000)] 
* sysdeps/generic/stdint.h (WINT_MAX): Define as 2147483647 since

this is the maximum UCS4 value.

16 years ago* locales/cs.CZ: Change week[2] to 19971130, change first_weekday and
Ulrich Drepper [Sat, 25 Apr 2009 04:44:16 +0000 (04:44 +0000)] 
* locales/cs.CZ: Change week[2] to 19971130, change first_weekday and

first_workday to 2.
* locales/da_DK: Likewise.
* locales/de_DE: Likewise.
* locales/fr_FR: Likewise.
* locales/fur_IT: Likewise.
* locales/fy_DE: Likewise.
* locales/ht_HT: Likewise.
* locales/hu_HU: Likewise.
* locales/li_BE: Likewise.
* locales/li_NL: Likewise.
* locales/mk_MK: Likewise.
* locales/nb_NO: Likewise.
* locales/nds_DE: Likewise.
* locales/nds_NL: Likewise.
* locales/nn_NO: Likewise.
* locales/pl_PL: Likewise.
* locales/sc_IT: Likewise.
* locales/sk_SK: Likewise.
* locales/uk_UA: Likewise.

* locales/csb_PL: Change week[2] to 19971130.
* locales/en_GB: Likewise.
* locales/et_EE: Likewise.

* locales/sr_ME: Set week to 7;19971130;4.
* locales/sr_RS: Likewise.
* locales/sr_RS@latin: Likewise.

16 years ago[BZ #10093] cvs/fedora-glibc-20090424T1908
Ulrich Drepper [Fri, 24 Apr 2009 19:00:54 +0000 (19:00 +0000)] 
[BZ #10093]

* iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
UTF-16 surrogates.

16 years ago* locale/programs/locarchive.c (enlarge_archive): Conserve address
Ulrich Drepper [Fri, 24 Apr 2009 18:47:19 +0000 (18:47 +0000)] 
* locale/programs/locarchive.c (enlarge_archive): Conserve address

space when temporarily mapping the whole content of the old file.

16 years ago[BZ #10100]
Ulrich Drepper [Fri, 24 Apr 2009 18:20:10 +0000 (18:20 +0000)] 
[BZ #10100]

2009-04-24  Ulrich Drepper  <drepper@redhat.com>
[BZ #10100]
* misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
not zero.

16 years ago* iconvdata/sjis.c (BODY): Don't advance inptr before
Ulrich Drepper [Fri, 24 Apr 2009 16:37:05 +0000 (16:37 +0000)] 
* iconvdata/sjis.c (BODY): Don't advance inptr before

STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
two byte chars.

16 years ago* locale/locarchive.h (struct locarhandle): Rename len field to
Ulrich Drepper [Fri, 24 Apr 2009 16:25:51 +0000 (16:25 +0000)] 
* locale/locarchive.h (struct locarhandle): Rename len field to

mmaped and add new reserved field.
* locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
(create_archive): Reserve address space and then map file into it.
(open_archive): Likewise.
(file_data_available_p): New function.
(compare_from_file): New function.
(close_archive): Adjust to member name changes.
(add_locale): Before comparing locale data, check it is mapped.
Otherwise fall back to reading from the file.

16 years ago* stdio-common/psiginfo.c: Include <errno.h>.
Ulrich Drepper [Fri, 24 Apr 2009 14:05:25 +0000 (14:05 +0000)] 
* stdio-common/psiginfo.c: Include <errno.h>.

16 years ago[BZ #9920] cvs/fedora-glibc-20090424T0747
Ulrich Drepper [Fri, 24 Apr 2009 03:58:48 +0000 (03:58 +0000)] 
[BZ #9920]

* stdlib/random_r.c (__srandom_r): Change type of word to int32_t
to get consistency between 32 and 64 bit architectures.

16 years ago[BZ #10052]
Ulrich Drepper [Fri, 24 Apr 2009 03:33:03 +0000 (03:33 +0000)] 
[BZ #10052]

2009-04-23  Ulrich Drepper  <drepper@redhat.com>
[BZ #10052]
* sysdeps/unix/make-syscalls.sh: Add rule to create target
directory for dummy syscall rules.
Patch by Chris Steinbroner <hesh@pobox.com>.

16 years ago[BZ #10092]
Ulrich Drepper [Fri, 24 Apr 2009 03:18:52 +0000 (03:18 +0000)] 
[BZ #10092]

2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
[BZ #10092]
* sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
MNT_EXPIRE.

16 years ago* sysdeps/unix/sysv/linux/preadv.c: The kernel API changed. Adjust.
Ulrich Drepper [Thu, 23 Apr 2009 22:52:24 +0000 (22:52 +0000)] 
* sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.

* sysdeps/unix/sysv/linux/pwritev.c: Likewise.

2009-04-23  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
data from vector to temporary buffer and call PWRITEV after it
instead of vice versa.
* sysdeps/posix/preadv.c: Fix up comment.
* misc/preadv.c: Likewise.
* misc/preadv64.c: Likewise.
* misc/pwritev.c: Likewise.
* misc/pwritev64.c: Likewise.
* misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.

2009-04-23  Ulrich Drepper  <drepper@redhat.com>

16 years ago* shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
Ulrich Drepper [Thu, 23 Apr 2009 19:15:11 +0000 (19:15 +0000)] 
* shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.

16 years ago* shadow/Makefile (tests): Add tst-shadow.
Ulrich Drepper [Thu, 23 Apr 2009 18:58:19 +0000 (18:58 +0000)] 
* shadow/Makefile (tests): Add tst-shadow.

* shadow/tst-shadow.c: New file.

(public_sET_STATe): Pretty printing.

16 years ago[BZ #9955]
Ulrich Drepper [Thu, 23 Apr 2009 18:29:30 +0000 (18:29 +0000)] 
[BZ #9955]

2009-04-23  Ulrich Drepper  <drepper@redhat.com>
[BZ #9955]
* gshadow/Makefile: New file.
* gshadow/Versions: New file.
* gshadow/fgetsgent.c: New file.
* gshadow/fgetsgent_r.c: New file.
* gshadow/getsgent.c: New file.
* gshadow/getsgent_r.c: New file.
* gshadow/getsgnam.c: New file.
* gshadow/getsgnam_r.c: New file.
* gshadow/gshadow.h: New file.
* gshadow/putsgent.c: New file.
* gshadow/sgetsgent.c: New file.
* gshadow/sgetsgent_r.c: New file.
* gshadow/tst-gshadow.c: New file.
* include/gshadow.h: New file.
* Makeconfig (all-subdirs): Add gshadow.
* Makefile (installed-headers): Add gshadow/gshadow.h.
* nss/Makefile (databases): Add sgrp.
* nss/Versions: Add gshadow functions as private exports.
* nss/nsswitch.conf: Add gshadow entry.
* nss/sgrp-lookup.c: New file.
* nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
* nss/nss_files/files-sgrp.c: New file.
* sysdeps/generic/paths.h: Add _PATH_GSHADOW.
* sysdeps/unix/sysv/linux/paths.h: Likewise.

16 years ago[BZ #9963]
Ulrich Drepper [Thu, 23 Apr 2009 04:30:42 +0000 (04:30 +0000)] 
[BZ #9963]

2009-04-22  Ulrich Drepper  <drepper@redhat.com>
[BZ #9963]
* locales/en_PH: Fix LC_PAPER.
* locales/es_CL: Likewise.
* locales/es_CO: Likewise.
* locales/es_MX: Likewise.
* locales/es_US: Likewise.
* locales/es_VE: Likewise.
* locales/fil_PH: Likewise.
* locales/ik_CA: Likewise.
* locales/iu_CA: Likewise.
* locales/tl_PH: Likewise.

16 years ago* pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
Ulrich Drepper [Thu, 23 Apr 2009 02:29:18 +0000 (02:29 +0000)] 
* pthread_attr_setschedparam.c (__pthread_attr_setschedparam):

Check policy and priority for validity.
Patch mostly by Zhang Xiliang <zhangxiliang@cn.fujitsu.com>.

16 years ago* stdio-common/printf.h: Add missing const to register_printf_modifier.
Ulrich Drepper [Thu, 23 Apr 2009 01:14:33 +0000 (01:14 +0000)] 
* stdio-common/printf.h: Add missing const to register_printf_modifier.

* stdio-common/reg-modifier.c: Likewise.

2009-04-22  Andrew Stubbs  <ams@codesourcery.com>

* sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
is no FPU.

16 years ago[BZ #10086]
Ulrich Drepper [Tue, 21 Apr 2009 00:48:36 +0000 (00:48 +0000)] 
[BZ #10086]

16 years ago* sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
Ulrich Drepper [Tue, 21 Apr 2009 00:42:50 +0000 (00:42 +0000)] 
* sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel

headers up to 2.6.30.

16 years ago* po/ca.po: Update from translation team.
Ulrich Drepper [Mon, 20 Apr 2009 22:17:28 +0000 (22:17 +0000)] 
* po/ca.po: Update from translation team.

16 years ago[BZ #10069]
Ulrich Drepper [Sun, 19 Apr 2009 21:45:02 +0000 (21:45 +0000)] 
[BZ #10069]

2009-04-19  Ulrich Drepper  <drepper@redhat.com>
[BZ #10069]
* elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
an object that uses static TLS if the TLS modid is higher than the
reserve we always allocate.  At least for multi-threaded code.

16 years ago* stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
Ulrich Drepper [Sat, 18 Apr 2009 19:53:59 +0000 (19:53 +0000)] 
* stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.

Numerically stable check for valid width.

16 years ago* locale/programs/locarchive.c (open_archive): Map the entire file
Ulrich Drepper [Sat, 18 Apr 2009 12:12:33 +0000 (12:12 +0000)] 
* locale/programs/locarchive.c (open_archive): Map the entire file

and not just the administrative data.
(add_locale): When we find a hash sum match compare the content
to be sure.

16 years ago* malloc/malloc.c (malloc_info): Output address space information.
Ulrich Drepper [Sat, 18 Apr 2009 08:44:10 +0000 (08:44 +0000)] 
* malloc/malloc.c (malloc_info): Output address space information.

16 years ago* malloc/malloc.c (malloc_info): Also output system memory information.
Ulrich Drepper [Sat, 18 Apr 2009 05:14:52 +0000 (05:14 +0000)] 
* malloc/malloc.c (malloc_info): Also output system memory information.

16 years ago* sysdeps/unix/sysv/linux/kernel-features.h: All supported
Ulrich Drepper [Sat, 18 Apr 2009 02:37:43 +0000 (02:37 +0000)] 
* sysdeps/unix/sysv/linux/kernel-features.h: All supported

architectures have preadv/pwritev in 2.6.30.

16 years ago* sysdeps/posix/preadv.c: Reading of zero bytes is no error.
Ulrich Drepper [Fri, 17 Apr 2009 21:26:34 +0000 (21:26 +0000)] 
* sysdeps/posix/preadv.c: Reading of zero bytes is no error.

* sysdeps/posix/readv.c: Likewise.
Reported by Markus Armbruster <armbru@redhat.com>.