about summary refs log tree commit diff
Commit message (Collapse)AuthorAgeFilesLines
* 2002-08-01 Roland McGrath <roland@redhat.com>Roland McGrath2002-08-021-17/+43
| | | | | | | | * sysdeps/i386/tls.h (TLS_DO_MODIFY_LDT): New macro, broken out of TLS_INIT_TP. (TLS_DO_SET_THREAD_AREA): New macro, uses thread_set_area syscall. (TLS_SETUP_GS_SEGMENT): New macro, try one or the other or both. (TLS_INIT_TP): Use that.
* Update.Ulrich Drepper2002-08-023-5/+29
| | | | | | | | | | | | | | | | | | | | | 2002-08-02 Jakub Jelinek <jakub@redhat.com> * malloc/malloc.c (public_cALLOc): Check for overflow on multiplication. * sunrpc/xdr_array.c (xdr_array): Likewise. * sunrpc/rpc/types.h (mem_free): Add comment. Patch by Solar Designer <solar@openwall.com>. 2002-08-02 Jakub Jelinek <jakub@redhat.com> * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SET_THREAD_AREA_SYSCALL): Define. * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr): * libio/Makefile (headers): Add bits/sys_errlist.h to the list. * sysdeps/generic/bits/sys_errlist.h: New file. This does *not* declare sys_errlist and sys_nerr. * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file. Does
* (xdr_array): Check for overflow on multiplication.Ulrich Drepper2002-08-021-1/+6
|
* * libio/fileops.c (_IO_file_sync_mmap): New function.Roland McGrath2002-08-028-32/+724
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (_IO_file_jumps_mmap): Use it. (_IO_file_underflow_mmap): Rewritten. If after EOF or fflush, repeat the stat check and resize the mapped buffer as necessary. 2002-07-31 Roland McGrath <roland@frob.com> * libio/fileops.c (decide_maybe_mmap): New static function. Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to mmap the file contents. Then switch the jump tables to the mmap tables if it worked, or the vanilla file tables if not. (_IO_file_underflow_maybe_mmap): New function. (_IO_file_seekoff_maybe_mmap): New function. (_IO_file_xsgetn_maybe_mmap): New function. (_IO_file_jumps_maybe_mmap): New variable, jump table using those. * libio/libioP.h: Declare those. * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function. (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that. * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here. If the stream is read-only, set its jump tables to those new ones. * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap. We need the tables set before _IO_file_attach. * libio/tst-mmap-eofsync.c: New file. * libio/tst-mmap-fflushsync.c: New file. * libio/bug-mmap-fflush.c: New file. * libio/tst-mmap2-eofsync.c: New file. * libio/Makefile (tests): Add them. * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when _IO_file_underflow_mmap fails, it already set the appropriate bit.
* 2002-07-31 Roland McGrath <roland@frob.com>Roland McGrath2002-08-023-47/+29
| | | | | | | | | | | | | | | | | | | * libio/fileops.c (decide_maybe_mmap): New static function. Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to mmap the file contents. Then switch the jump tables to the mmap tables if it worked, or the vanilla file tables if not. (_IO_file_underflow_maybe_mmap): New function. (_IO_file_seekoff_maybe_mmap): New function. (_IO_file_xsgetn_maybe_mmap): New function. (_IO_file_jumps_maybe_mmap): New variable, jump table using those. * libio/libioP.h: Declare those. * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function. (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that. * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here. If the stream is read-only, set its jump tables to those new ones. * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap. We need the tables set before _IO_file_attach.
* (public_cALLOc): Check for overflow on multiplication.Ulrich Drepper2002-08-023-7/+25
|
* (DO_MODIFY_LDT): Move from INIT_THREAD_SELF. (INIT_THREAD_SELF): Use ↵Ulrich Drepper2002-08-021-4/+55
| | | | sys_thread_area syscall instead if available. (FREE_THREAD): Avoid modify_ldt if using GDT.
* 2002-07-31 Jeff Bailey <jbailey@gnu.org>Roland McGrath2002-07-316-14/+100
| | | | | | | | | | * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr): Declarations moved to <bits/sys_errlist.h>. Include that file. * libio/Makefile (headers): Add bits/sys_errlist.h to the list. * sysdeps/generic/bits/sys_errlist.h: New file. This does *not* declare sys_errlist and sys_nerr. * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file. Does provide declarations.
* * elf/rtld.c (dl_main): Fix typo in error message.Roland McGrath2002-07-312-2/+6
| | | | 2002-07-31 Roland McGrath <roland@frob.com>
* * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,Roland McGrath2002-07-311-0/+6
| | | | | __xstat -> __xstat64, __lseek -> __libc_lseek64. Completes 2002-06-09 sysdeps/mach/hurd/dl-sysdep.c change.
* 2002-07-31 Roland McGrath <roland@frob.com>Roland McGrath2002-07-311-2/+2
| | | | | | * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64, __xstat -> __xstat64, __lseek -> __libc_lseek64. Completes 2002-06-09 sysdeps/mach/hurd/dl-sysdep.c change.
* Update.Ulrich Drepper2002-07-283-7/+32
| | | | | * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname -r`/build/include for kernel headers.
* Update.Ulrich Drepper2002-07-283-1/+5613
| | | | | | 2002-07-28 Ulrich Drepper <drepper@redhat.com> * po/fi.po: New file.
* Update.Ulrich Drepper2002-07-2711-156/+1200
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-07-15 Alexandre Oliva <aoliva@redhat.com> * configure.in (static_nss): Set to `yes' if --disable-shared. 2002-07-23 Bruno Haible <bruno@clisp.org> * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN is set. 2002-07-25 Jakub Jelinek <jakub@redhat.com> * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file. * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter arguments. 2002-07-25 Jakub Jelinek <jakub@redhat.com> * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add alias. 2002-07-21 Bruno Haible <bruno@clisp.org> * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro. * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments, sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset, trans_sysdep_tab_offset. (struct sysdep_segment): New type. (struct sysdep_string): New type. (SEGMENTS_END): New macro. * intl/gettextP.h (struct sysdep_string_desc): New type. (struct loaded_domain): New fields malloced, n_sysdep_strings, orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields orig_tab, trans_tab, hash_tab to const pointers because they point into read-only memory. * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h. (PRI*): Define fallback values. (get_sysdep_segment_value): New function. (_nl_load_domain): Distinguish major and minor revision parts. Add support for minor revision 1 with system dependent strings. (_nl_unload_domain): Also free the 'malloced' field. * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size, now done in loadmsgcat.c. Add support for system dependent strings.
* Update.Ulrich Drepper2002-07-276-10/+202
| | | | | | | | | | | | | | | | | 2002-07-16 Stepan Kasal <kasal@math.cas.cz> * posix/bug-regex7.c: New file. * posix/bug-regex8.c: New file. * posix/Makefile (tests): Add bug-regex7 and bug-regex8. 2002-07-16 Stepan Kasal <kasal@math.cas.cz> * posix/bug-regex4.c (main): Fix typos. * posix/bug-regex6.c (main): Likewise. * posix/bug-regex6.c (main): Fix warnings. * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
* Update.Ulrich Drepper2002-07-277-239/+290
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-07-27 Ulrich Drepper <drepper@redhat.com> * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc. * iconv/iconv_prog.c (main): Improve error message for the cases where -t and/or -f parameter are missing. 2002-07-10 Stepan Kasal <kasal@math.cas.cz> * posix/regexec.c (re_match): Reorganize to remove duplicate code. (re_search): Likewise. (re_match_2): Likewise. (re_search_2): Likewise. (re_search_stub): New function. (re_search_2_stub): New function. * regcomp.c (re_compile_pattern): Typo in a comment fixed. 2002-07-10 Isamu Hasegawa <isamu@yamato.ibm.com> * posix/regex_internal.h: Add new member STOP to struct re_string_t. (re_string_eoi): Use STOP instead of LEN. * posix/regex_internal.c (re_string_allocate): Initialize pstr->len. (re_string_construct): Likewise. (re_string_reconstruct): Adjust pstr->stop like pstr->len. * posix/regexec.c (re_search_internal): Add a new argument STOP so that it can handle the argument STOP of re_search_2 and re_match_2 correctly. (regexec): Adapt to new I/F of re_search_internal. (re_search_stub): Likewise.
* Update.Ulrich Drepper2002-07-252-1/+2
| | | | * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
* Update.Ulrich Drepper2002-07-252-12/+2
| | | | * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
* Update.Ulrich Drepper2002-07-2513-8/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | 2002-07-25 Ulrich Drepper <drepper@redhat.com> * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal. * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead of __divdi3. * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal. * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise. * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal alias for adjtimex syscall. * elf/dl-minimal.c: Define __assert_fail_internal. * assert/assert.c: Likewise. * include/assert.h: Define __assert_file macro if !SHARED and not NOT_IN_libc. * iconv/Makefile: Define NOT_IN_libc for objects in standalone programs. * locale/Makefile: Likewise. * nscd/Makefile: Likewise. * catgets/Makefile: Likewise. succesful seek call. Simplify error checking.
* Update.Ulrich Drepper2002-07-2510-95/+107
| | | | | | | | | | | | | | | | | | | 2002-07-24 Ulrich Drepper <drepper@redhat.com> * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to compute current position. * stdio-common/tst-fseek.c (main): Improve error messages. * libio/tst-freopen.c (main): Remove unused variable. * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after succesful seek call. Simply error checking. 2002-07-25 Jakub Jelinek <jakub@redhat.com> * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER. * sysdeps/ia64/fpu/libm_support.h: Likewise.
* (_IO_file_seekoff_mmap): Set fp->_offset after succesful seek call. Simply ↵Ulrich Drepper2002-07-251-7/+6
| | | | error checking.
* * hurd/hurdsig.c (_hurdsig_getenv): Always return null ifRoland McGrath2002-07-243-2/+13
| | | | __libc_enable_secure is set.
* Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.Roland McGrath2002-07-2411-22/+485
| | | | | | | | | | | | | | | | | | | | | | | | | | | This implementation supports only IPv4. * inet/ifaddrs.h: New file. * sysdeps/generic/ifaddrs.c: New file. * sysdeps/gnu/ifaddrs.c: New file. * inet/test-ifaddrs.c: New file. * inet/Makefile (routines): Add ifaddrs. (headers): Add ifaddrs.h here. (tests): Add test-ifaddrs. * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs. * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit socket call to get an AF_INET socket, instead of using __opensock. The SIOCGIFNETMASK ioctl will work only with a PF_INET socket. * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD, if not -1 use it instead of calling __opensock. * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise. * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it. * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument. * sysdeps/mach/hurd/ifreq.h: New file. * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS. * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise. * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
* * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,Roland McGrath2002-07-242-1/+7
| | | | which gets moved around. Calculate size of mmap'd buffer instead.
* Cosmetic edits.Roland McGrath2002-07-241-9/+9
|
* Update.Ulrich Drepper2002-07-243-9/+14
| | | | | | | | | | | 2002-07-24 Philip Blundell <philb@gnu.org> * sysdeps/unix/arm/brk.S: Improve schedule. * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more efficient instruction. (__socket): Optimize return sequence. * locale/hashval.h: Make more self-contained by defining LONG_BITS.
* Update.Ulrich Drepper2002-07-243-2/+24
| | | | | | | 2002-07-24 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet sockets on old kernels.
* Update.Ulrich Drepper2002-07-244-24/+43
| | | | | | | | 2002-07-22 Philip Blundell <philb@gnu.org> * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias definiton of _old_sys_nerr. Define _old_sys_errlist as strong alias.
* Update.Ulrich Drepper2002-07-247-8/+135
| | | | | | | | | | | | | | | | | | | | | | | 2002-07-24 Ulrich Drepper <drepper@redhat.com> * locale/hashval.h: Make more self-containedby defining LONG_BITS. * locale/programs/simple-hash.c: Remove LONG_BITS definition. * locale/programs/locarchive.c (add_locale_to_archive): Correct test to detect duplicate locales. * libio/fileops.c (_IO_new_file_seekoff): Fail if relative position would be before beginning of file. (_IO_file_seekoff_mmap): Likewise. * libio/Makefile (tests): Add bug-fseek. * libio/bug-fseek.c: New file. * intl/explodename.c: Remove support for CEN-style locale variables. It was never used and shouldn't be since it's not portable. * intl/finddomain.c: Likewise. * intl/l10nflist.c: Likewise. * intl/loadinfo.h: Likewise. * locale/findlocale.c: Likewise.
* Remove support for CEN-style locale variables. It was never used and ↵Ulrich Drepper2002-07-245-183/+55
| | | | shouldn't be since it's not portable.
* * libio/fileops.c (_IO_file_seekoff_mmap): When just examining theRoland McGrath2002-07-242-5/+13
| | | | | | | position, calculate it to take into account an active pushback buffer. * libio/Makefile (tests): Add bug-ungetc. * libio/bug-ungetc.c: New file.
* 2002-07-24 Roland McGrath <roland@frob.com>Roland McGrath2002-07-242-1/+62
| | | | | * libio/Makefile (tests): Add bug-ungetc. * libio/bug-ungetc.c: New file.
* Moved to misc/sys.Ulrich Drepper2002-07-231-1/+0
|
* Update.Ulrich Drepper2002-07-238-13/+236
| | | | | | | | | | | | | | | | | 2002-07-23 Ulrich Drepper <drepper@redhat.com> * sysdeps/generic/libc-tls.c: New file. * csu/Makefile (routines): Add libc-tls. (static-only-routines): Add libc-tls. * elf/dl-support.c (_dl_phdr): New variable. (_dl_phnum): New variable. (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector. * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code for !SHARED. First look through auxiliary vector. If TLS always call __pthread_initialize_minimal. * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument in mmap call is never zero.
* (_dl_phdr): New variable. (_dl_phnum): New variable. (_dl_aux_init): ↵Ulrich Drepper2002-07-231-0/+9
| | | | Initialize _dl_phdr and _dl_phnum from aux vector.
* Fix whitespace.Andreas Jaeger2002-07-231-1/+1
|
* Update.Andreas Jaeger2002-07-231-0/+5
| | | | | | | 2002-07-23 Andreas Jaeger <aj@suse.de> * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version. * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
* Use optimized version.Andreas Jaeger2002-07-232-21/+30
|
* Update.Ulrich Drepper2002-07-232-2/+17
| | | | | | 2002-07-22 Ulrich Drepper <drepper@redhat.com> * Makefile: Actually creat tst-signal.out file when running the test.
* pdate.Ulrich Drepper2002-07-232-18/+19
| | | | | * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with creation and removal of the temp file.
* Update.Ulrich Drepper2002-07-222-5/+22
| | | | | | | | 2002-07-22 Ulrich Drepper <drepper@redhat.com> * libio/bug-rewind.c: Use test skeleton. Use create_temp_file for file creation. * test-skeleton.c (create_temp_file): New function.
* (create_temp_file): New function.Ulrich Drepper2002-07-221-1/+33
|
* Update.Andreas Jaeger2002-07-221-0/+5
| | | | | | | 2002-07-22 Andreas Jaeger <aj@suse.de> * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use local label.
* (elf_machine_load_address): Use local label.Andreas Jaeger2002-07-221-2/+2
|
* * wcsmbs/Makefile (strtox-CFLAGS): New variable,Roland McGrath2002-07-222-14/+26
| | | | | | | | | | put -I../include before -I../stdlib so we get the right errno.h et al. (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib. (CFLAGS-wcstof.c): Likewise. (CFLAGS-wcstold.c): Likewise. (CFLAGS-wcstod_l.c): Likewise. (CFLAGS-wcstof_l.c): Likewise. (CFLAGS-wcstold_l.c): Likewise.
* * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.Roland McGrath2002-07-221-0/+4
|
* 2002-07-19 Roland McGrath <roland@frob.com>Roland McGrath2002-07-221-1/+0
| | | | * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
* (Hooks for Malloc): Correct order of arguments for __memalign_hook.Ulrich Drepper2002-07-221-1/+1
|
* Update.Ulrich Drepper2002-07-204-20/+31
| | | | | | | | | * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if __ASSUME_AT_XID is defined. * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define for 2.4.1 and up. * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling of AT_UID, AT_EUID, AT_GID, and AT_EGID.
* Update.Ulrich Drepper2002-07-201-0/+9
| | | | | | | | | | | 2002-07-20 Ulrich Drepper <drepper@redhat.com> * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib. (CFLAGS-wcstof.c): Likewise. (CFLAGS-wcstold.c): Likewise. (CFLAGS-wcstod_l.c): Likewise. (CFLAGS-wcstof_l.c): Likewise. (CFLAGS-wcstold_l.c): Likewise.