Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
There is some existing practice in other OSes and it's trivial to
implement giving the existing code. Fixes BZ #10221.
|
|
|
|
|
|
If longjmp restores the stack frame to an address which is beyond
the stack frame at the time of the longjmp call it would install
an uninitialized stack frame. If compiled with _FORTIFY_SOURCE
defined, longjmp will now bail out in this situation.
|
|
|
|
|
|
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.
|
|
* malloc/malloc.h: Declare it.
* malloc/Versions: Export malloc_info for GLIBC_2.10.
* resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
|
|
depending libcrypt on -lfreebl3.
|
|
* string/tst-svc.input: Add new test case.
* string/tst-svc.expect: Adjust.
* string/Makefile: Don't ignore tst-svc error.
|
|
Patch by Mohammad Nayeem <mohammad.nayeem@gmail.com> and
Pravin Satpute <psatpute@redhat.com>.
|
|
|
|
|
|
* 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.
|
|
2009-03-14 Ulrich Drepper <drepper@redhat.com>
* locale/iso-639.def: Add Min Nan.
[BZ #9948]
|
|
* configure.in: Handle --enable-multi-arch.
* elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
(_dl_fixup_profile): Likewise.
* elf/do-lookup.c (dl_lookup_x): Likewise.
* sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
* elf/elf.h (STT_GNU_IFUNC): Define.
* include/libc-symbols.h (libc_ifunc): Define.
* sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
framework in init-arch.h to get CPUID values.
* sysdeps/x86_64/multiarch/Makefile: New file.
* sysdeps/x86_64/multiarch/init-arch.c: New file.
* sysdeps/x86_64/multiarch/init-arch.h: New file.
* sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
* config.make.in (experimental-malloc): Define.
* configure.in: Handle --enable-experimental-malloc.
* malloc/Makefile: Handle experimental-malloc flag.
* malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
* malloc/arena.c: Likewise.
* malloc/hooks.c: Likewise.
* malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
|
|
cxa_at_quick_exit.
(static-only-routines): Add at_quick_exit.
* stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
GLIBC_2.10.
* stdlib/quick_exit.c: New file.
* stdlib/at_quick_exit.c: New file.
* stdlib/cxa_at_quick_exit.c: New file.
* stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function. Call
it appropriately.
(__internal_atexit): New function.
(__new_exitfn): Now takes parameter to point to the list to use.
* stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
* stdlib/exit.c (__run_exit_handlers): New function. Split from...
(exit): ...here. Just call __run_exit_handlers appropriately.
* stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
__internal_atexit, __cxa_at_quick_exit. Adjust __new_exitfn.
* stdlib/on_exit.c: Adjust call to __new_exitfn.
* stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
|
|
* wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
* sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
200112L to 200809L.
* sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
* posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
_SC_THREAD_ROBUST_PRIO_PROTECT entries.
* bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
_SC_THREAD_ROBUST_PRIO_PROTECT.
* posix/unistd.h: fexecve is in POSIX 2008.
* time/time.h: strftime_l is in POSIX 2008.
* io/sys/stat.h: futimens is in POSIX 2008.
* string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
* string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
* stdlib/stdlib.h: mkdtemp is in POSIX 2008.
|
|
* locale/xlocale.h: Define locale_t type.
* locale/locale.h: duplocale, freelocale, newlocale, uselocale are
in POSIX 2008. Don't define locale_t here.
* stdlib/monetary.h: strfmon_l is in POSIX 2008.
* signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
* stdio-common/psiginfo.c: New file.
* stdio-common/psiginfo-data.h: New file.
* stdio-common/psiginfo-define.h: New file.
* stdio-common/Makefile (routines): Add psiginfo.
* stdio-common/Versions: Export psiginfo for GLIBC_2.10.
|
|
* dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
POSIX 2008.
/proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
|
|
manipulated brk, use malloc_printerr.
* misc/sbrk.c (__sbrk): Better error handling for nonsense
requests.
|
|
information at the correct index.
|
|
|
|
2008-10-31 Ulrich Drepper <drepper@redhat.com>
[BZ #6843]
* sysdeps/pthread/gai_misc.h (__gai_create_helper_thread):
Increase stack size for helper thread.
|
|
* socket/Makefile (routines): Remove paccept.
* socket/sys/socket.h: Remove paccept declaration.
|
|
Patch by Olivier Fourdan <ofourdan@redhat.com>.
|
|
* libio/fmemopen.c: Implement binary mode. In this mode no NUL
byte gets added to writes and seeks from the end use the length of
the buffer and not the currently terminating NUL byte.
|
|
* manual/creature.texi: Likewise.
* manual/filesys.texi: Likewise.
* manual/math.texi: Likewise.
* manual/memory.texi: Likewise.
* manual/resource.texi: Likewise.
* manual/syslog.texi: Likewise.
* manual/time.texi: Likewise.
|
|
new epoll_create1 interface.
* sysdeps/unix/sysv/linux/syscalls.list: Likewise.
* sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
|
|
file descriptors with close-on-exec set.
(exec_comm_child): Fix the case where the write end of the pipe is
STDOUT_FILENO already. In case it is, clear close-on-exec.
|
|
2008-03-29 Eric Blake <ebb9@byu.net>
Rewrite string searches to O(n) rather than O(n^2).
* string/str-two-way.h: New file. For linear fixed-allocation
string searching.
* string/memmem.c: New implementation.
* string/strstr.c: New implementation.
* string/strcasestr.c: New implementation.
* sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
|
|
and SCTP.
|
|
sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
|
|
|
|
* sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
* sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
* sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
* sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
* sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
* sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
|
|
* sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
* sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
* sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
* sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
* sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
|
|
that would inhibit utf8-optimization of a regexp containing line-
or buffer-anchors, e.g., `^', `$'.
|
|
2007-12-08 Ulrich Drepper <drepper@redhat.com>
[BZ #5424]
* stdio-common/vfprintf.c: Do not overflow when adding to done.
* stdio-common/Makefile (tests): Add bug22.
* stdio-common/bug22.c: New file.
[BZ #5451]
* time/getdate.c: Fix filling in default values.
* time/bug-getdate1.c: New file.
* time/Makefile: Add rules to build and run bug-getdate1.
* iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
* iconvdata/ebcdic-es.c: Likewise.
* iconvdata/ebcdic-es-a.c: Likewise.
* iconvdata/ebcdic-uk.c: Likewise.
* iconvdata/iso8859-16.c: Likewise.
* iconvdata/viscii.c: Likewise.
* iconvdata/iso8859-9e.c: Likewise.
* iconvdata/Makefile: Adjust appropriately.
[BZ #5428]
* wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
__need_wint_t.
* iconvdata/gconv-modules: Likewise.
|
|
|
|
2007-10-17 Ulrich Drepper <drepper@redhat.com>
* version.h (VERSION): Set to 2.7.90.
|
|
* elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
|
|
open/close when determining source addresses.
|
|
Add sched_getcpu.
|
|
returning.
(PTR_DEMANGLE): Real definition now that it's not the same as
PRT_MANGLE anymore.
* sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
* string/strerror_l.c: New file.
* string/Makefile (routines): Add strerror_l.
* string/string.h: Declare strerror_l.
* string/Versions: Export strerror_l for GLIBC_2.6.
* nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
|
|
CFLAGS-getsrvbynpt_r.c.
* nscd/getsrvbynm_r.c: New file.
* nscd/getsrvbypt_r.c: New file.
* nscd/nscd_getserv_r.c: New file.
* nscd/servicescache.c: New file.
* nscd/Makefile (routines): Add nscd_getserv_r.
(nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
CFLAGS-getsrvbypt_r.c.
* nscd/cache.c (prune_cache): Rewrite to get re-add function from
table. Add entries for services database.
* nscd/connections.c (serv2str): Mark as const. Add entries for
services database.
(dbs): Add .reset_res and servdb initialization.
(serv2db): Add entries for services database.
(verify_persistent_db): Accept dbnr == servdb.
(invalidate_cache): Rewrite database name recognition to use a table.
Call res_init() if .reset_res is set for database.
(handle_request): Add code to handle services database.
* nscd/gai.c: Don't define __getservbyname_r.
* nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
(serv_response_header): Define.
(struct datahead): Add serv_response_header member.
* nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
using table.
* nscd/nscd.conf: Add entries for services database.
* nscd/nscd.h: Adjust declaration of dbnames and serv2str.
Declare serv_iov_disabled.
Declare addservbyname, readdservbyname, addservbyport, and
readdservbyport.
* nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
(find_db): Fix error message.
* nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
__nscd_getservbyname_r, and __nscd_getservbyport_r.
* nscd/selinux.c (perms): Add entries for services database.
* nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
* nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
* nscd/grpcache.c: Remove obsolete code. Cleanups.
* nscd/hstcache.c: Likewise.
* nscd/pwdcache.c: Likewise.
|
|
computation of keylen.
|