about summary refs log tree commit diff
Commit message (Collapse)AuthorAgeFilesLines
* * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): CountUlrich Drepper2007-08-012-41/+71
| | | | | total processors using sysfs. (__get_nprocs): Use sysfs to determine which processors are online.
* * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use /sysUlrich Drepper2007-07-311-0/+5
| | | | filesystem to determine which processors are online.
* (__get_nprocs): Use /sys filesystem to determine which processors are online.Ulrich Drepper2007-07-311-1/+51
|
* * sysdeps/sparc/tls.h (tcbhead_t): Add private_futex field.Jakub Jelinek2007-07-312-0/+8
| | | | | | 2007-07-31 Jakub Jelinek <jakub@redhat.com> * sysdeps/sparc/tls.h (tcbhead_t): Add private_futex field.
* * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix Jakub Jelinek2007-07-312-1/+4
| | | | | | syscall arguments count. * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix syscall arguments count.
* [BZ #4858] cvs/fedora-glibc-20070731T1624Jakub Jelinek2007-07-311-1/+1
| | | | | Fix format of [BZ #xxxx] note. [BZ #4858]
* * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.Jakub Jelinek2007-07-312-0/+16
| | | | | | 2007-07-31 Jakub Jelinek <jakub@redhat.com> * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
* * manual/libc.texinfo: Update copyrights, formatting magic, andRoland McGrath2007-07-311-0/+5
| | | | @dircategory. From Karl Berry <karl@freefriends.org>.
* 2007-07-30 Roland McGrath <roland@redhat.com>Roland McGrath2007-07-311-47/+24
| | | | | * manual/libc.texinfo: Update copyrights, formatting magic, and @dircategory. From Karl Berry <karl@freefriends.org>.
* [BZ #4860]Ulrich Drepper2007-07-292-1/+4
| | | | * io/Makefile (headers): Add bits/fcntl2.h.
* * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): OptimizeUlrich Drepper2007-07-292-3/+17
| | | | | using gcc builtin. (__CPU_EQUAL_S): Likewise.
* * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.Ulrich Drepper2007-07-297-13/+200
| | | | | | | | | | | | (tests): Add tst-cpuset. * posix/sched_cpualloc.c: New file. * posix/sched_cpufree.c: New file. * posix/tst-cpuset.c: New file. * posix/Versions: Export __sched_cpualloc and __sched_cpufree for GLIBC_2.7. * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros. * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S macros. Define CPU_*_S macros.
* Define old CPU_* macros in temers of __CPU_*_S macros. Define CPU_*_S macros.Ulrich Drepper2007-07-291-5/+35
|
* (__lll_private_flag): Define. (lll_futex_timed_wait, lll_futex_wake): Use ↵Jakub Jelinek2007-07-291-74/+31
| | | | it. (lll_private_futex_wait, lll_private_futex_timed_wait, lll_private_futex_wake): Removed.
* * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZEUlrich Drepper2007-07-292-0/+6
| | | | entry.
* [BZ 4858]Ulrich Drepper2007-07-293-1/+13
| | | | | | * stdio-common/printf_fp.c (___printf_fp): Fix special case of #.0g and value rounded to 1.0. * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
* * locale/programs/ld-monetary.c (monetary_finish): Avoid range checkUlrich Drepper2007-07-286-24/+34
| | | | | | | | | for int_frac_digits and frac_digits. * login/logout.c (logout): Avoid aliasing violation. * login/logwtmp.c (logwtmp): Likewise. * libio/genops.c (_IO_un_link): Avoid aliasing violation.
* * nscd/selinux.c (preserve_capabilities): Initialize new_capsUlrich Drepper2007-07-285-4/+15
| | | | | | | | | | to avoid warning. * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid warning. * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid warning. * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len to avoid warnings.
* * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known toUlrich Drepper2007-07-2826-71/+155
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | void **. * nss/nsswitch.h (service_user): Use void * type for KNOWN field. * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to char * to avoid warning. * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise. * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv. * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults, allocate_arrays): Cast second argument to charmap_find_symbol to char * to avoid warnings. * locale/programs/repertoire.c (repertoire_new_char): Change from_nr, to_nr and cnt to unsigned long, adjust printf format string. * locale/programs/ld-collate.c (insert_value, handle_ellipsis): Cast second argument to new_element to char * to avoid warnings. * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *. * intl/gettextP.h (struct loaded_domain): Change plural to const struct expression *. * intl/plural-eval.c (plural_eval): Change first argument to const struct expression *. * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first argument to const struct expression **. * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust prototypes. * intl/loadmsgcat (_nl_unload_domain): Cast away const in call to __gettext_free_exp. * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe unitialized wstring/wpattern var warnings. * posix/runtests.c (struct a_test): Make data field const char *. * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf vars if not LDBL_MANT_DIG >= 106. * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized. * stdio-common/vfprintf.c (vfprintf): Cast first arugment to __find_specmb to avoid warning. * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings. * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts to avoid warnings. * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to initializer. * sysdeps/unix/clock_gettime.c (clock_gettime): Only define tv var when it will be actually used. * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void to avoid warnings.
* * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsignedUlrich Drepper2007-07-2843-276/+442
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | char array resp. pointer. * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of char array. * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument to const unsigned char **. (ucs4_to_cns11643): Change second argument to unsigned char *. * iconvdata/euc-tw.c (BODY): Change endp type to const unsigned char *. * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument to unsigned char *. * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define. * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array. * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp types to unsigned char pointers/arrays instead of char. * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument to unsigned char *. * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise. * iconvdata/jis0212.h: Include assert.h. (ucs4_to_jisx0212): Change second argument to unsigned char *. assert that if cp[0] is not '\0', cp[1] is not '\0' either instead of trying to handle that. * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to shut up a warning. * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek, from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to two dimensional const unsigned char arrays. (BODY): Cast "" to (const unsigned char *) for assignment to cp. Initialize endp to inptr to shut up a warning.
* [BZ #4772]Ulrich Drepper2007-07-282-0/+16
| | | | | * time/strptime_l.c (__strptime_internal): Silently ignore strftime modifiers and field width in recursive calls.
* * include/time.h (enum ptime_locale_status): Remove.Ulrich Drepper2007-07-284-210/+236
| | | | | | | | | | | | | | (__strptime_internal): Remove decided and era_cnt arguments, add statep argument. * time/strptime_l.c (__strptime_internal): Remove decided and era_cnt arguments, add statep argument. Don't recompute any fields in recursive calls, only update caller's tm and state, if recursive call fails, don't change tm nor any state. (get_alt_number): Adjust. (recursive): Adjust caller. (strptime): Likewise. * time/strptime.c (strptime): Likewise.
* * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.Ulrich Drepper2007-07-2812-72/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV if from and to charsets are the same. * iconv/gconv_db.c (__gconv_find_transform): Likewise. * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open returns __GCONV_NOCONV, but not for __GCONV_NULCONV. 2007-07-17 Jakub Jelinek <jakub@redhat.com> * wcsmbs/wchar.h: Only define wint_t if __need_wint_t. Don't define wint_t when __need_mbstate_t unless it is necessary. (__mbstate_t): Use __WINT_TYPE__ rather than wint_t in the typedef if possible. * wctype/wctype.h (wint_t): Define by including wchar.h with __need_wint_t instead of including stddef.h with __need_wint_t and as fallback definining it ourselves. * iconv/gconv.h (__need_wint_t): Define before including wchar.h. * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC or _GLIBCPP_USE_WCHAR_T. (__need_wchar_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T. (__need_wint_t): Don't define before including stddef.h, define before including wchar.h only if _LIBC or _GLIBCPP_USE_WCHAR_T. (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T. * sysdeps/mach/hurd/_G_config.h: Likewise. * sysdeps/generic/_G_config.h: Likewise. * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only prototype if _LIBC or _GLIBCPP_USE_WCHAR_T. (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define if _LIBC or _GLIBCPP_USE_WCHAR_T.
* * sysdeps/posix/posix_fallocate64.c: UndefineUlrich Drepper2007-07-286-1/+208
| | | | | | | | | | | | | | | | | | | | | __posix_fallocate64_l64 before alias handling. * sysdeps/unix/sysv/linux/posix_fallocate.c: New file. * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file. * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file. * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file. * io/tst-posix_fallocate.c: Include <fcntl.h>. 2007-07-23 Jakub Jelinek <jakub@redhat.com> * locale/programs/ld-collate.c (atwc): New variable. (add_to_tablewc): New toplevel function, moved from collate_output. (collate_output): Remove add_to_tablewc nested function. * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars. (name_insert): New function. (write_output): Remove hash_table and hash_size vars and name_insert nested function.
* Include <fcntl.h>.Ulrich Drepper2007-07-281-0/+1
|
* 2007-07-27 Jakub Jelinek <jakub@redhat.com>Jakub Jelinek2007-07-272-0/+15
| | | | | | | | | | | | | | | | | * sysdeps/sparc/tls.h (tcbhead_t): Move gscope_flag to the end of the structure for sparc32. 2007-07-26 Aurelien Jarno <aurelien@aurel32.net> * sysdeps/sparc/tls.h (tcbhead_t): Add gscope_flag. 2007-07-27 Jakub Jelinek <jakub@redhat.com> * sysdeps/sparc/tls.h (tcbhead_t): Move gscope_flag to the end of the structure for sparc32. 2007-07-26 Aurelien Jarno <aurelien@aurel32.net> * sysdeps/sparc/tls.h (tcbhead_t): Add gscope_flag.
* copyright updateRoland McGrath2007-07-251-1/+2
|
* * Makerules (install-others-programs-nosubdir): New target.Roland McGrath2007-07-242-11/+24
| | | | | | | | | | | | (install-no-libc.a-nosubdir): Depend on it. * iconv/Makefile (install-others-programs): Set this instead of install-others. * login/Makefile (install-others-programs): Likewise. * posix/Makefile (install-others-programs): Likewise. * Makerules (install-no-libc.a-nosubdir): Clean up conditional dependencies.
* 2007-07-24 Roland McGrath <roland@redhat.com>Roland McGrath2007-07-243-4/+4
| | | | | | | * iconv/Makefile (install-others-programs): Set this instead of install-others. * login/Makefile (install-others-programs): Likewise. * posix/Makefile (install-others-programs): Likewise.
* * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: FixUlrich Drepper2007-07-243-2/+9
| | | | | | code used when private futexes are assumed. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: Likewise.
* * sysdeps/unix/sysv/linux/powerpc/lowlevellock.hUlrich Drepper2007-07-245-275/+260
| | | | | | | | | | | | | | | | (__lll_private_flag): Define. (lll_futex_wait): Define as a wrapper around lll_futex_timed_wait. (lll_futex_timed_wait, lll_futex_wake, lll_futex_wake_unlock): Use __lll_private_flag. (lll_private_futex_wait, lll_private_futex_timedwait, lll_private_futex_wake): Define as wrapper around non-_private macros. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_private_flag): Define. (lll_futex_timed_wait, lll_futex_wake): Use __lll_private_flag. (lll_private_futex_wait, lll_private_futex_timedwait, lll_private_futex_wake): Define as wrapper around non-_private macros.
* * io/Makefile (tests): Add tst-posix_fallocate.Ulrich Drepper2007-07-234-1/+114
| | | | | | | * io/tst-posix_fallocate.c: New file. * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_FALLOCATE.
* * pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add LLL_SHAREDUlrich Drepper2007-07-236-22/+111
| | | | | | | | | | | | | | | | | | | | | | | parameter to lll_futex_wait call. * pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock): Likewise. * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once): Replace lll_futex_wait with lll_private_futex_wait. * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post): Add LLL_SHARED parameter to lll_futex_wake(). * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Define LLL_PRIVATE LLL_SHARED, lll_private_futex_wait, lll_private_futex_timed_wait and lll_private_futex_wake. (lll_futex_wait): Add private parameter. Adjust FUTEX_PRIVATE_FLAG bit from private parm before syscall. (lll_futex_timed_wait): Likewise. (lll_futex_wake): Likewise. (lll_futex_wake_unlock): Likewise. (lll_mutex_unlock): Add LLL_SHARED parm to lll_futex_wake call. (lll_robust_mutex_unlock): Likewise. (lll_mutex_unlock_force): Likewise. (lll_wait_tid): Add LLL_SHARED parm to lll_futex_wait call.
* * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: FixUlrich Drepper2007-07-231-0/+10
| | | | | | | | | compilation when unconditionally using private futexes. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: Likewise. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Likewise. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
* Fix compilation when unconditionally using private futexes.Ulrich Drepper2007-07-235-5/+13
|
* [BZ #3665, BZ #4126, BZ #4178, BZ #4610]Roland McGrath2007-07-237-8/+21
| | | | | | | | | | * hurd/getdport.c: Add missing copyright year update. [BZ #3665] [BZ #4610] [BZ #4178] [BZ #4126] * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias to __sigsuspend.
* * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.Roland McGrath2007-07-221-0/+5
| | | | * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
* 2007-07-22 Roland McGrath <roland@frob.com>Roland McGrath2007-07-222-3/+5
| | | | | * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro. * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
* * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.Ulrich Drepper2007-07-222-9/+35
|
* * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and setUlrich Drepper2007-07-225-28/+153
| | | | | | | | | O_CLOEXEC is needed. * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file. Avoid additional fcntl to set O_CLOEXEC if not needed. * nis/nss_compat/compat-initgroups.c: Likewise. * nis/nss_compat/compat-pwd.c: Likewise. * nis/nss_compat/compat-spwd.c: Likewise.
* (_IO_new_file_fopen): Recognize 'e' flag and set O_CLOEXEC is needed.Ulrich Drepper2007-07-221-0/+5
|
* * manual/errno.texi: Change ECANCELED value to 119.Roland McGrath2007-07-222-1/+3
|
* * mach/lock-intern.h: Include <sys/cdefs.h>.Roland McGrath2007-07-225-1/+25
| | | | | | | | | | | | | | | | * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before reading A. * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias to __sigsuspend. * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>. 2006-06-13 Thomas Schwinge <tschwinge@gnu.org> * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to `__ASSEMBLER__'. * sysdeps/mach/hurd/i386/tls.h: Likewise.
* 2006-06-13 Thomas Schwinge <tschwinge@gnu.org>Roland McGrath2007-07-222-3/+3
| | | | | | * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to `__ASSEMBLER__'. * sysdeps/mach/hurd/i386/tls.h: Likewise.
* * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC forUlrich Drepper2007-07-212-1/+8
| | | | descriptor received from nscd.
* * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.Ulrich Drepper2007-07-217-6/+23
| | | | | | | | | * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC. * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise. * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise. * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise. * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise. * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
* Define MSG_CMSG_CLOEXEC.Ulrich Drepper2007-07-211-1/+6
|
* [BZ #4816] Jakub Jelinek2007-07-202-1/+4
| | | | | | * manual/signal.texi (Non-atomic Example): Make memory var volatile. [BZ #4816] * manual/signal.texi (Non-atomic Example): Make memory var volatile.
* [BZ #4813] Jakub Jelinek2007-07-202-3/+10
| | | | | | | | | | | | * login/forkpty.c (forkpty): Close master and slave fds on fork failure. Patch by Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>. 2007-07-20 Jakub Jelinek <jakub@redhat.com> [BZ #4813] * login/forkpty.c (forkpty): Close master and slave fds on fork failure. Patch by Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
* Update.Ulrich Drepper2007-07-191-9/+1
|