platform/upstream/glibc.git
15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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>.

15 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.

15 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>.

15 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.

15 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>

15 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.

15 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.

15 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.

15 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.

15 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>.

15 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.

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

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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>.

15 years ago* malloc/hooks.c (top_check): Force hook value into register.
Ulrich Drepper [Fri, 17 Apr 2009 17:55:23 +0000 (17:55 +0000)]
* malloc/hooks.c (top_check): Force hook value into register.

15 years ago(top_check): Force hook value into register.
Ulrich Drepper [Fri, 17 Apr 2009 17:55:06 +0000 (17:55 +0000)]
(top_check): Force hook value into register.

15 years ago* elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
Roland McGrath [Fri, 17 Apr 2009 00:00:25 +0000 (00:00 +0000)]
* elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all

calls to _dl_relocate_object.

15 years ago2009-04-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
Roland McGrath [Fri, 17 Apr 2009 00:00:08 +0000 (00:00 +0000)]
2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>

* elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
calls to _dl_relocate_object.

15 years ago[BZ #9957]
Ulrich Drepper [Thu, 16 Apr 2009 21:22:16 +0000 (21:22 +0000)]
[BZ #9957]

2009-04-16  Ulrich Drepper  <drepper@redhat.com>
[BZ #9957]
* malloc/malloc.c (force_reg): Define.
(sYSMALLOc): Load hook variable into variable
before test and force into register.
(sYSTRIm): Likewise.
(public_mALLOc): Force hook value into register.
(public_fREe): Likewise.
(public_rEALLOc): Likewise.
(public_mEMALIGn): Likewise.
(public_vALLOc): Likewise.
(public_pVALLOc): Likewise.
(public_cALLOc): Likewise.
(__posix_memalign): Likewise.
* malloc/arena.c (ptmalloc_init): Load hook variable into variable
before test and force into register.
* malloc/hooks.c (top_check): Likewise.
(public_s_ET_STATe): Pretty printing.

* resolv/res_send.c (send_dg): Don't just ignore the result we got
in case we only receive one reply in single-request mode.

15 years ago(send_dg): Don't just ignore the result we got in case we only receive one reply...
Ulrich Drepper [Thu, 16 Apr 2009 20:29:33 +0000 (20:29 +0000)]
(send_dg): Don't just ignore the result we got in case we only receive one reply in single-request mode.

15 years ago* elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries cvs/fedora-glibc-20090416T1610
Jakub Jelinek [Thu, 16 Apr 2009 15:22:05 +0000 (15:22 +0000)]
* elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries

are dlopened in statically linked program even for __LM_ID_CALLER.
2009-04-16  Jakub Jelinek  <jakub@redhat.com>

* elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
are dlopened in statically linked program even for __LM_ID_CALLER.

15 years ago* resolv/res_send.c (send_dg): Don't switch into single-request
Ulrich Drepper [Thu, 16 Apr 2009 14:29:34 +0000 (14:29 +0000)]
* resolv/res_send.c (send_dg): Don't switch into single-request

mode if we already are in it.

15 years ago* sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise. cvs/fedora-glibc-20090416T0610
Ulrich Drepper [Wed, 15 Apr 2009 17:10:28 +0000 (17:10 +0000)]
* sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.

15 years ago* sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there cvs/fedora-glibc-20090415T1619
Ulrich Drepper [Wed, 15 Apr 2009 15:57:47 +0000 (15:57 +0000)]
* sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there

are always at least 4 bytes in the returned line.

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

* sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
__libc_use_alloca (8192), if the stack is too small use 512 bytes
instead of 8K.  Stop searching in /proc/stat after hitting first
line not starting with cpu.
(next_line): Truncate too long
lines at buffer size * 3/4 instead of pretending there were line
breaks inside of large lines.

15 years ago* sysdeps/x86_64/mp_clz_tab.c: New file.
Ulrich Drepper [Wed, 15 Apr 2009 04:30:41 +0000 (04:30 +0000)]
* sysdeps/x86_64/mp_clz_tab.c: New file.

15 years ago2009-03-17 Ryan S. Arnold <rsa@us.ibm.com>
Ulrich Drepper [Wed, 15 Apr 2009 00:39:57 +0000 (00:39 +0000)]
2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>

            Ulrich Drepper  <drepper@redhat.com>

* sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
* sysdeps/unix/sysv/linux/fallocate64.c: Likewise.

15 years ago* sysdeps/sh/libc-tls.c: New file.
Ulrich Drepper [Wed, 15 Apr 2009 00:17:33 +0000 (00:17 +0000)]
* sysdeps/sh/libc-tls.c: New file.

* sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.

15 years ago__tls_get_addr for SH.
Ulrich Drepper [Wed, 15 Apr 2009 00:16:11 +0000 (00:16 +0000)]
__tls_get_addr for SH.

15 years ago* elf/elf.h: Add various missing ARM constants, to match binutils.
Roland McGrath [Wed, 15 Apr 2009 00:16:02 +0000 (00:16 +0000)]
* elf/elf.h: Add various missing ARM constants, to match binutils.

15 years ago2009-04-14 Roland McGrath <roland@redhat.com>
Roland McGrath [Wed, 15 Apr 2009 00:15:54 +0000 (00:15 +0000)]
2009-04-14  Roland McGrath  <roland@redhat.com>

* elf/elf.h: Add various missing ARM constants, to match binutils.

15 years agoOptimizations from GMP.
Ulrich Drepper [Tue, 14 Apr 2009 22:26:05 +0000 (22:26 +0000)]
Optimizations from GMP.

* sysdeps/x86_64/add_n.S: New file.
* sysdeps/x86_64/addmul_1.S: New file.
* sysdeps/x86_64/lshift.S: New file.
* sysdeps/x86_64/mul_1.S: New file.
* sysdeps/x86_64/rshift.S: New file.
* sysdeps/x86_64/sub_n.S: New file.
* sysdeps/x86_64/submul_1.S: New file.

15 years agompn_add_n for x86-64.
Ulrich Drepper [Tue, 14 Apr 2009 22:24:59 +0000 (22:24 +0000)]
mpn_add_n for x86-64.

15 years ago* sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty. cvs/fedora-glibc-20090414T2104
Jakub Jelinek [Tue, 14 Apr 2009 20:57:18 +0000 (20:57 +0000)]
* sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.

* sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
* sysdeps/sparc/sparc32/elf/start.S: Likewise.
* sysdeps/sparc/sparc64/elf/start.S: Likewise.
2009-04-14  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
* sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
* sysdeps/sparc/sparc32/elf/start.S: Likewise.
* sysdeps/sparc/sparc64/elf/start.S: Likewise.

15 years ago* sysdeps/unix/sysv/linux/kernel-features.h: SH also has
Ulrich Drepper [Tue, 14 Apr 2009 18:31:03 +0000 (18:31 +0000)]
* sysdeps/unix/sysv/linux/kernel-features.h: SH also has

preadv/pwritev.

15 years ago* sysdeps/x86-64/strrchr.S: New file.
Ulrich Drepper [Tue, 14 Apr 2009 05:58:16 +0000 (05:58 +0000)]
* sysdeps/x86-64/strrchr.S: New file.

15 years ago* stdio-common/printf.h (struct printf_info): Add user element.
Ulrich Drepper [Sat, 11 Apr 2009 05:34:20 +0000 (05:34 +0000)]
* stdio-common/printf.h (struct printf_info): Add user element.

New types printf_arginfo_size_function, printf_va_arg_function.
Declare register_printf_specifier, register_printf_modifier,
register_printf_type.
* stdio-common/printf-parse.h (struct printf_spec): Add size element.
(union printf_arg): Add pa_user element.
Adjust __printf_arginfo_table type.
Add __printf_va_arg_table, __printf_modifier_table,
__handle_registered_modifier_mb, and __handle_registered_modifier_wc
declarations.
* stdio-common/printf-parsemb.c: Recognize registered modifiers.
If registered arginfo call failed try normal specifier.
* stdio-common/printf-prs.c: Pass additional parameter to arginfo
function.
* stdio-common/Makefile (routines): Add reg-modifier and reg-type.
* stdio-common/Versions: Export register_printf_modifier,
register_printf_type, and register_printf_specifier for GLIBC_2.10.
* stdio-common/reg-modifier.c: New file.
* stdio-common/reg-type.c: New file.
* stdio-common/reg-printf.c (__register_printf_specifier): New
function.  Mostly the old __register_printf_function function but
uses locking and type of third parameter changed.
(__register_printf_function): Implement using
__register_printf_specifier.
* stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
calls to arginfo functions.  Allocate enough memory for user-defined
types.  Call new va_arg functions to get user-defined types.
Try installed handlers even for existing format specifiers first.

15 years ago* sysdeps/x86_64/rawmemchr.S: New file.
Ulrich Drepper [Fri, 10 Apr 2009 07:57:20 +0000 (07:57 +0000)]
* sysdeps/x86_64/rawmemchr.S: New file.

15 years agoSimplified code and possible copy problem fixed.
Ulrich Drepper [Fri, 10 Apr 2009 03:56:06 +0000 (03:56 +0000)]
Simplified code and possible copy problem fixed.

15 years ago* stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
Ulrich Drepper [Fri, 10 Apr 2009 02:51:29 +0000 (02:51 +0000)]
* stdio-common/vfprintf.c (vfprintf): Slightly more compact code.

15 years agofunction if it is not defined. Add some necessary casts.
Ulrich Drepper [Thu, 9 Apr 2009 22:06:07 +0000 (22:06 +0000)]
function if it is not defined.  Add some necessary casts.

15 years ago* sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
Ulrich Drepper [Thu, 9 Apr 2009 21:45:21 +0000 (21:45 +0000)]
* sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static

function if it is not defined.
* sysdeps/unix/sysv/linux/pwritev.c: Likewise.

15 years ago* sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
Ulrich Drepper [Thu, 9 Apr 2009 18:52:57 +0000 (18:52 +0000)]
* sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also

have preadv/pwritev in 2.6.30.

15 years ago* malloc/malloc.c (malloc_info): New function. cvs/fedora-glibc-20090409T1422
Ulrich Drepper [Thu, 9 Apr 2009 05:45:42 +0000 (05:45 +0000)]
* malloc/malloc.c (malloc_info): New function.

* malloc/malloc.h: Declare it.
* malloc/Versions: Export malloc_info for GLIBC_2.10.

* resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp

15 years ago* sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
Ulrich Drepper [Wed, 8 Apr 2009 19:24:34 +0000 (19:24 +0000)]
* sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64

to avoid PLT slot.

15 years ago* malloc/malloc.c (_int_realloc): Add parameter with old block
Ulrich Drepper [Wed, 8 Apr 2009 18:00:34 +0000 (18:00 +0000)]
* malloc/malloc.c (_int_realloc): Add parameter with old block

size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
Adjust all callers.
* malloc/hooks.c (realloc_check): Adjust _int_realloc call.

15 years ago* sysdeps/x86_64/strchrnul.S: New file. cvs/fedora-glibc-20090408T1602
Ulrich Drepper [Tue, 7 Apr 2009 23:22:10 +0000 (23:22 +0000)]
* sysdeps/x86_64/strchrnul.S: New file.

depending libcrypt on -lfreebl3.

15 years ago* crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
Ulrich Drepper [Tue, 7 Apr 2009 18:34:16 +0000 (18:34 +0000)]
* crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of

depending libcrypt in -lfreebl3.

15 years ago* sysdeps/unix/sysv/linux/kernel-features.h: Power also has
Ulrich Drepper [Tue, 7 Apr 2009 17:38:50 +0000 (17:38 +0000)]
* sysdeps/unix/sysv/linux/kernel-features.h: Power also has

preadv/pwritev in 2.6.30.

15 years ago* resolv/res_hconf.c (_res_hconf_trim_domain): Use strcasecmp
Ulrich Drepper [Tue, 7 Apr 2009 16:13:15 +0000 (16:13 +0000)]
* resolv/res_hconf.c (_res_hconf_trim_domain): Use strcasecmp

instead of __strcasecmp.
* resolv/nss_dns/dns-host.c (getanswer_r): Likewise.

15 years ago* wcsmbs/wcsatcliff.c (MEMCHR): Define.
Ulrich Drepper [Tue, 7 Apr 2009 14:56:48 +0000 (14:56 +0000)]
* wcsmbs/wcsatcliff.c (MEMCHR): Define.

15 years ago* string/stratcliff.c (do_test): Add memchr tests..
Ulrich Drepper [Tue, 7 Apr 2009 14:53:04 +0000 (14:53 +0000)]
* string/stratcliff.c (do_test): Add memchr tests..

* sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
first read quad word.

15 years ago* string/strverscmp.c (__strverscmp): Fix last cleanups. cvs/fedora-glibc-20090407T0657
Ulrich Drepper [Tue, 7 Apr 2009 06:51:59 +0000 (06:51 +0000)]
* string/strverscmp.c (__strverscmp): Fix last cleanups.

* string/tst-svc.input: Add new test case.
* string/tst-svc.expect: Adjust.
* string/Makefile: Don't ignore tst-svc error.

15 years ago* sysdeps/x86_64/memchr.S: New file.
Ulrich Drepper [Tue, 7 Apr 2009 06:36:33 +0000 (06:36 +0000)]
* sysdeps/x86_64/memchr.S: New file.

15 years ago* resolv/resolv.h (RES_SNGLKUP): Define. cvs/fedora-glibc-20090407T0545
Ulrich Drepper [Tue, 7 Apr 2009 02:00:27 +0000 (02:00 +0000)]
* resolv/resolv.h (RES_SNGLKUP): Define.

* resolv/res_init.c (res_setoptions): Recognize single-request option.
* resolv/res_send.c (send_dg): If we sent two requests at once and
only get one reply before timeout switch to mode where we send the
second request only after the first answer has been received.

15 years ago* locales/ks_IN: New file.
Ulrich Drepper [Mon, 6 Apr 2009 17:54:58 +0000 (17:54 +0000)]
* locales/ks_IN: New file.

Patch by Mohammad Nayeem <mohammad.nayeem@gmail.com> and
Pravin Satpute <psatpute@redhat.com>.

15 years ago* sysdeps/x86_64/strchr.S: Likewise.
Ulrich Drepper [Mon, 6 Apr 2009 03:29:26 +0000 (03:29 +0000)]
* sysdeps/x86_64/strchr.S: Likewise.

15 years ago* sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
Ulrich Drepper [Sun, 5 Apr 2009 18:49:28 +0000 (18:49 +0000)]
* sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.

15 years ago* configure.in: We need to test for the compiler earlier.
Ulrich Drepper [Fri, 3 Apr 2009 23:51:57 +0000 (23:51 +0000)]
* configure.in: We need to test for the compiler earlier.

15 years ago* misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
Ulrich Drepper [Fri, 3 Apr 2009 19:57:16 +0000 (19:57 +0000)]
* misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.

* misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
GLIBC_2.10.
* misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
* sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
and pwritev.
* misc/preadv.c: New file.
* misc/preadv64.c: New file.
* misc/pwritev.c: New file.
* misc/pwritev64.c: New file.
* sysdeps/posx/preadv.c: New file.
* sysdeps/posx/preadv64.c: New file.
* sysdeps/posx/pwritev.c: New file.
* sysdeps/posx/pwritev64.c: New file.
* sysdeps/unix/sysv/linux/preadv.c: New file.
* sysdeps/unix/sysv/linux/preadv64.c: New file.
* sysdeps/unix/sysv/linux/pwritev.c: New file.
* sysdeps/unix/sysv/linux/pwritev64.c: New file.
* sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
* sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.

15 years ago* sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
Ulrich Drepper [Fri, 3 Apr 2009 18:50:34 +0000 (18:50 +0000)]
* sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of

compatibility code.
* sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.

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

15 years ago* sysdeps/unix/sysv/linux/kernel-features.h: Define
Ulrich Drepper [Fri, 3 Apr 2009 17:23:13 +0000 (17:23 +0000)]
* sysdeps/unix/sysv/linux/kernel-features.h: Define

__ASSUME_COMPLETE_READV_WRITEV.
* sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
with modern kernels.
* sysdeps/unix/sysv/linux/writev.c: Likewise.

* sysdeps/posix/readv.c: Since read is a cancellation point we have
to free a possible malloced buffer in case of cancellation.
* sysdeps/posix/writev.c: Likewise for write.

c2009-04-01  Ulrich Drepper  <drepper@redhat.com>

15 years agoAdd missing protocol numbers.
Ulrich Drepper [Fri, 3 Apr 2009 03:48:08 +0000 (03:48 +0000)]
Add missing protocol numbers.

* sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.

15 years ago* configure.in: Recognize --enable-nss-crypt.
Ulrich Drepper [Thu, 2 Apr 2009 17:00:46 +0000 (17:00 +0000)]
* configure.in: Recognize --enable-nss-crypt.

* config.make.in: Add nss-crypt entry.
* crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
and include path for NSS directory to compiler for md5-crypt,
sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
* crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
function implementation, use NSS.  Introduce wrappers around the
hash function calls.  Little code size optimization.
* crypt/sha256-crypt.c: Likewise.
* crypt/sha512-crypt.c: Likewise.
* scripts/check-local-headers.sh: Ignore nss3 directory.

* configure.in: Rename pic_default to libc_cv_pic_default.
* config.make.in: Likewise.

15 years agoAdd nss-crypt entry. Rename pic_default to libc_cv_pic_default.
Ulrich Drepper [Thu, 2 Apr 2009 16:59:01 +0000 (16:59 +0000)]
Add nss-crypt entry. Rename pic_default to libc_cv_pic_default.

15 years agoMissed copyright year update
Roland McGrath [Thu, 2 Apr 2009 01:20:33 +0000 (01:20 +0000)]
Missed copyright year update

15 years ago* elf/elf.h (R_SPARC_GLOB_JMP): New macro.
Roland McGrath [Thu, 2 Apr 2009 01:19:47 +0000 (01:19 +0000)]
* elf/elf.h (R_SPARC_GLOB_JMP): New macro.

(R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
(R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
(R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
(R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
(R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
(R_SPARC_NUM): Update.
From Dave Miller <davem@davemloft.net>.

15 years ago2009-04-01 Roland McGrath <roland@redhat.com>
Roland McGrath [Thu, 2 Apr 2009 01:19:33 +0000 (01:19 +0000)]
2009-04-01  Roland McGrath  <roland@redhat.com>

* elf/elf.h (R_SPARC_GLOB_JMP): New macro.
(R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
(R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
(R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
(R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
(R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
(R_SPARC_NUM): Update.
From Dave Miller <davem@davemloft.net>.

15 years ago* sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
Ulrich Drepper [Wed, 1 Apr 2009 19:25:51 +0000 (19:25 +0000)]
* sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.

15 years ago* elf/dl-open.c: Keep track of used name spaces and only iterate over cvs/fedora-glibc-20090401T0935
Ulrich Drepper [Wed, 1 Apr 2009 00:26:36 +0000 (00:26 +0000)]
* elf/dl-open.c: Keep track of used name spaces and only iterate over

those which are used.
* elf/dl-addr.c: Likewise.
* elf/dl-caller.c: Likewise.
* elf/dl-fini.c: Likewise.
* elf/dl-iteratephdr.c: Likewise.
* elf/dl-libc.c: Likewise.
* elf/dl-load.c: Likewise.
* elf/dl-support.c: Likewise.
* elf/dl-sym.c: Likewise.
* elf/rtld.c: Likewise.
* sysdeps/generic/ldsodefs.h: Likewise.

15 years ago* elf/dl-load.c: Remove support for systems without MAP_ANON.
Ulrich Drepper [Tue, 31 Mar 2009 22:03:24 +0000 (22:03 +0000)]
* elf/dl-load.c: Remove support for systems without MAP_ANON.

* elf/dl-minimal.c: Likewise.
* elf/dl-misc.c: Likewise.
* elf/rtld.c: Likewise.
* sysdeps/generic/ldsodefs.h: Likewise.