Ulrich Drepper [Mon, 25 May 1998 10:01:47 +0000 (10:01 +0000)]
Update.
1998-05-25 Ulrich Drepper <drepper@cygnus.com>
* malloc/thread-m.h: Use __mutex_init function in mutex_init macro
for Hurd. Patch by Mark Kettenis.
1998-04-18 Gordon Matzigkeit <gord@profitpress.com>
* mach/Machrules (+preinit, +postinit): Define these variables to
empty because libhurduser and libmachuser don't need startup
files.
1998-04-22 Gordon Matzigkeit <gord@profitpress.com>
* sysdeps/mach/hurd/errlist.c (ERR_REMAP): Use err_get_code
instead of a raw bitmask.
1998-05-23 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* Makeconfig (rpath-dirs): New variable.
(rpath-link): Use it.
(nssobjdir, nisobjdir, rtobjdir, resolvobjdir): Removed.
(db-objpfx): Removed.
* crypt/Makefile: Augment rpath-dirs instead of rpath-link.
* md5-crypt/Makefile: Likewise.
* sysdeps/mach/hurd/Makefile: Likewise.
* Makeconfig (move-if-change): New variable.
* iconvdata/Makefile (move-if-change): Removed.
* manual/Makefile (move-if-change): Set only if undefined, use
local script by default.
* sunrpc/Makefile (move-if-change): Removed.
* sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
$(move-if-change).
* elf/Makefile: Remove all references to obsolete file
$(objpfx)rtldtbl.h.
($(objpfx)trusted-dirs.h): Use stamp file. Cleanup command.
1998-05-22 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1998-05-25 Andreas Jaeger <aj@arthur.rhein-neckar.de>
* csu/Makefile ($(objpfx)version-info.h): Correct sed expression
to get Linux version and not gcc version.
Reported by Alan Curry <pacman@cqc.com>.
1998-05-25 Andreas Jaeger <aj@arthur.rhein-neckar.de>
* sysdeps/generic/_strerror.c (__strerror_r): Don't return NULL
pointers - return unknown error message instead.
Reported by Alan Curry <pacman@cqc.com>.
1998-05-24 Mark Kettenis <kettenis@phys.uva.nl>
* iconvdata/Makefile (modules, sed-generated-headers,
perl-generated-headers): ibm424.h is perl generated. Make
necessary modifications to compile without perl.
* catgets/Makefile (distribute): Add xopen-msg.h.
(generated): Add de.msg and de.cat.
(tests): Add do-gencat-test.
(do-gencat-test): New goal. Run gencat on a generated msg file.
* catgets/xopen-msg.h: New file.
Ulrich Drepper [Wed, 20 May 1998 14:34:51 +0000 (14:34 +0000)]
Update.
* sysdeps/unix/bsd/vax/vfork.S: Missed double occurences of "the
the" in one line - fixed it.
* sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise.
* sysdeps/unix/bsd/hp/m68k/vfork.S: Likewise.
* posix/unistd.h: Likewise
1998-05-20 Andreas Jaeger <aj@arthur.rhein-neckar.de>
* elf/dl-close.c: Call shared object terminators at the right time.
Patch by Philippe Troin <phil@fifi.org>.
1998-05-20 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* Make-dist (+tsrcs): Also add *.map for every member of
$(extra-libs).
* Makefile (distribute): Don't distribute scripts/printsources and
scripts/=__ify. Distribute FAQ.in.
(rpm/%): Don't pass subdirs to sub-make.
* timezone/Makefile: Protect inclusion of z.* by $(avoid-generated)
instead of $(no_deps).
1998-05-19 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* sysdeps/generic/setenv.c: Protect against GNU C extension.
(KNOWN_VALUE, STORE_VALUE): Do it right.
(setenv): Remove unused variable.
1998-05-18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* timezone/Makefile (tz-cflags): Define TM_GMTOFF and TM_ZONE.
(CFLAGS-zdump.c): Add $(tz-cflags).
* timezone/zdump.c (abbr): Use TM_ZONE if defined. Add const to
return type.
1998-05-18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* time/tzfile.c (__tzfile_compute): Undo last change. Instead
take struct tm parameter and set tm_isdst, tm_zone and tm_offset
if use_localtime.
* time/tzset.c: Update prototype of __tzfile_compute.
(__tz_convert): Pass tp to __tzfile_compute. Don't set tm_isdst,
tm_zone and tm_offset here if __use_tzfile.
1998-05-19 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* Makerules: Install libc.a even if there are no object file.
1998-05-18 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* Makerules (do-makelib): Don't force creating library from
scratch, to avoid wasting time and space and to get correct
behaviour if $(subdirs) is incomplete.
1998-05-19 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* Makerules (do-stamp): Make it work when building in source
directory.
* elf/rtld.c: Recognize --ignore-rpath argument and set _dl_ignore_path
variable using the value.
* elf/ldsodefs.h: Declare _dl_ignore_path.
* elf/dl-load.c (decompose_rpath): Compare name of handled shared
object against list in _dl_ignore_path and ignore RPATH if on the list.
* elf/dl-support.c: Define _dl_ignore_path for static binaries.
* iconvdata/run-iconv-test.sh: Call ld.so with --ignore-rpath parameter
to make sure we get the correct helper libraries loaded.
* elf/dl-load.c (decompose_rpath): Remove `room' parameter. Use
"RPATH" string in call to fillin_rpath instead.
(_dl_init_paths): Remove this parameter from call to decompose_rpath.
* elf/rtld.c (process_envvars): Fix typo. Don't handle
LD_PROFILE_OUTPUT in SUID binaries.
* intl/dcgettext.c: In SUID binaries don't let language part of
locale value contain path elements.
* intl/explodename.h: Define new function _nl_find_language.
* intl/loadinfo.h: Declare _nl_find_language.
* locale/findlocale.c (_nl_find_locale): Use _nl_find_locale to get
language part it drop the value is path element is contained.
* locale/setlocale.c: Fix typo.
1998-05-18 Philip Blundell <Philip.Blundell@pobox.com>
* sysdeps/unix/sysv/linux/arm/socket.S: Correct handling of arguments.
* sysdeps/arm/strlen.S: Support both big and little endian processors.
* sysdeps/arm/sysdep.h (ALIGNARG): ELF .align directive uses a
log, not a byte-count.
* sysdeps/unix/arm/sysdep.S (syscall_error): Use C_SYMBOL_NAME for
a.out compatibility.
1998-05-19 Andreas Jaeger <aj@arthur.rhein-neckar.de>
Ulrich Drepper [Mon, 18 May 1998 15:26:40 +0000 (15:26 +0000)]
Update.
1998-04-25 Mark Kettenis <kettenis@phys.uva.nl>
* sysdeps/generic/utmp_file.c (TIMEOUT): New macro.
(timeout_handler): New function.
(LOCK_FILE, UNLOCK_FILE): New macros.
Implement file locking with timeout.
(getutent_r_file, internal_getut_r, getutline_r_file,
pututline_file, updwtmp_file): Use LOCK_FILE and UNLOCK_FILE for
locking.
1998-05-17 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* timezone/Makefile (testdata, build-testdata): New variables, use
them in rules for test data.
($(objpfx)tst-timezone.out): Depend on test data.
($(testdata)/Europe/Berlin, $(testdata)/Universal,
$(testdata)/Australia/Melbourne, $(testdata)/America/Sao_Paulo):
New rules to build test data.
(tst-timezone-ENV): Pass TZDIR to point to test data.
* iconv/gconv.h (gconv_step_data): Add new fields invocation_counter
and internal_use.
* iconv/gconv_open.c (__gconv_open): Initialize invocation_counter
and internal_use.
* iconv/skeleton.c: Increment invocation_counter.
* iconvdata/iso-2022-kr.c: When used in iconv() emit designator
sequence first.
* sysdeps/generic/setenv.c: Use __tfind and __tsearch, not tfind and
tsearch. Correctly interpret values returned by those functions.
(unsetenv): Store pointer to string, not pointer to string pointer.
* time/tzfile.c (__tzfile_compute): Take new arguments. Store
DST information and offset in them.
* time/tzset.c (__tz_convert): Pass extra parameters to
__tzfile_compute. Compute equivalent values for use of tz_rules.
* iconvdata/Makefile (gen-8bit-table): Use move-if-change and
stamp files to avoid unnecessary recompilation.
(gen-8bit-gap-table): Likewise.
(move-if-change): New variable.
(all generated .h rules): Change to be .stmp rules.
(%.h): New rule; depend on %.stmp; no commands.
(distribute): Add gen-8bit.sh, gen-8bit-gap.sh,
gen-8bit-gap-1.sh.
* Makerules (libc-map): Deleted.
(load-map-file): Set to the appropriate compiler switch, not
just the file name. If libfoo-map is not set, look for a
libfoo.map in the current directory and $(..).
(map-file): New variable, contains just the mapfile name.
(build-shlib): Adjust for new value of load-map-file.
(libc.so): Correct dependencies.
* extra-lib.mk: Correct shlib dependencies since libfoo-map
may not be set anymore.
* elf/Makefile: Set ld-map to $(..)libc.map, not $(libc-map).
Delete libdl-map. Tweak ld.so link rule to work with changed
variable settings in Makerules.
* iconvdata/Makefile: Tweak build-module to work with changed
variable settings in Makerules.
* configure.in: Instead of substituting `yes' or `no' for whether
--no-whole-archive is available, set @no_whole_archive@ to the
appropriate gcc switch or the empty string. Likewise for
-fno-exceptions.
* config.make.in: Replace have-no-whole-archive with
no-whole-archive and have-no-exceptions with no-exceptions.
* Makerules: Delete stanzas setting no-whole-archive and
no-exceptions.
* sunrpc/Makefile: Use move-if-change to update generated .h
and .c files.
1998-05-13 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* wcsmbs/wcsmbsload.c (extract_charset_name): Use strcspn instead
of strchr loop.
1998-05-15 Andreas Jaeger <aj@arthur.rhein-neckar.de>
* inet/netinet/in.h: Add defines for multicast.
Reported by Jeremy Hall <jhall@UU.NET>.
* stdlib/stdlib.h: Add prototypes for __setenv and __unsetenv.
* sysdeps/generic/putenv.c: Use __setenv and __unsetenv, not setenv
and unsetenv. Optimize _LIBC case.
* sysdeps/generic/setenv.c: Prevent unnecessary memory leaks.
Define functions with leading __.
* time/tzfile.c: Correct handling of global variables daylight,
timezone, and tzname.
* time/tzset.c: Likewise.
* timezone/Makefile (tests): Add tst-timezone.
* timezone/tst-timezone.c: New file.
Ulrich Drepper [Wed, 13 May 1998 12:10:50 +0000 (12:10 +0000)]
Update.
1998-05-12 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* iconvdata/8bit-gap.c (BODY): Don't fall off the end of the gap
table.
1998-05-12 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* iconvdata/gen-8bit.sh: New file.
* iconvdata/gen-8bit-gap.sh: New file.
* iconvdata/gen-8bit-gap-1.sh: New file.
* iconvdata/Makefile (generate-8bit-table): Use shell script
instead of writing the commands directly.
(generate-8bit-gap-table): Likewise.
($(objpfx)iso8859-7jp.h): Likewise.
(generated headers): Depend on shell script instead of Makefile.
(before-compile): Add $(perl-generated-headers) only if perl is
available.
(headers): Depend on $(perl-generated-headers) only if perl is
available.
(sed-generated-headers): Remove iso8859-7jp.h.
1998-05-11 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
Ulrich Drepper [Tue, 12 May 1998 22:42:08 +0000 (22:42 +0000)]
Update.
1998-05-12 Ulrich Drepper <drepper@cygnus.com>
* wcsmbs/wcsmbsload.c (extract_charset_name): Pass correctly
formed charset names to getfct. Let user override charset
selection by mention charset in locale name.
* configure.in: Define and substitute RELEASE as well as
VERSION.
* config.make.in: Add RELEASE and VERSION to be substituted.
* Makeconfig: Delete all references to version.mk.
* Make-dist: Likewise.
* MakeTAGS: Likewise.
* elf/Makefile: Likewise.
1998-05-11 18:02 Richard Henderson <rth@cygnus.com>
* sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines):
Remove statfs and fstatfs.
* sysdeps/unix/sysv/linux/alpha/syscalls.list: Don't mark pread
and pwrite as EXTRA.
* sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
Ulrich Drepper [Fri, 8 May 1998 23:57:12 +0000 (23:57 +0000)]
Update.
1998-05-08 Ulrich Drepper <drepper@cygnus.com>
* sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
(DL_FIND_ARG_COMPONENTS): Find correct alignment for auxiliary
vector. Patch by Mark Hatle <fray@kernel.crashing.org>
and Matt McLean <keys@brio.yikes.com>.
* configure.in: Look in scripts for config.guess, config.sub,
install-sh.
* Makefile: Distribute all above files in their
new home. Find gen-FAQ.pl and test-installation.pl in scripts.
* manual/Makefile: Find mkinstalldirs and move-if-change in
$(..)scripts. Drop them from distribute. Minor cleanups.
* Makerules: Find mkinstalldirs and rellns-sh in scripts.
* sysdeps/mach/hurd/Makefile: Find move-if-change in scripts.
* timezone/Makefile: Find rellns-sh in scripts.
* iconvdata/Makefile (generated): Set to *-generated-headers
plus gconv-modules.
(tests): Set to iconv-test.
* localedata/Makefile (generated-dirs): Add ld-test-names to list.
* posix/Makefile (generated): Set to wordexp-test-result*.
* sunrpc/Makefile (generated): Remove rpcsvc/*.
(generated-dirs): Add rpcsvc.
* libio/Makefile: Clean up.
* iconv/gconv_int.h (struct gconv_module): Remove cost field and add
cost_hi and cost_lo.
* iconv/gconv_conf.c (builtin_modules): Initialize cost_hi from
Cost parameter and set cost_lo to INT_MAX.
(add_module): Take new parameter and use it to initialize cost_lo.
(read_conf_file): Count modules being loaded and use counter for
new parameter to add_module.
* iconv/gconv_db.c (find_derivation): When look for cost examine
cost_hi and cost_lo.
* Makeconfig [!build-static]: Link `static' binaries with libc_pic.a.
Still need *FLAGS-.o because we still sometimes build .o files.
* db2/Makefile: Don't build libndbm.a if !build-static.
* configure.in: New test for broken gcc on PowerPC.
* sysdeps/powerpc/atomicity.h: Use result of test.
* linuxthreads/sysdeps/powerpc/pt-machine.h: Use result of test.
* math/libm-test.c: Update many of the epsilon to match actual
performance.
* sysdeps/libm-ieee754/e_exp.c: Reduce the number of branches.
* sysdeps/libm-ieee754/e_expf.c: Likewise.
* sysdeps/libm-ieee754/s_exp2.c: Likewise.
* sysdeps/libm-ieee754/s_exp2f.c: Likewise.
* sysdeps/libm-ieee754/e_pow.c: Correct typo.
* sysdeps/powerpc/elf/libc-start.c: New file.
* sysdeps/powerpc/elf/start.S: New file, use libc-start.
* sysdeps/powerpc/elf/start.c: Delete.
* sysdeps/unix/sysv/linux/powerpc/Dist: Remove syscall.h
* sysdeps/unix/sysv/linux/powerpc/syscall.h: Delete. It was unused.
* sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Correct previous
few patches.
* malloc/malloc.c (chunk2mem_check, top_check): New functions.
(malloc_check, free_check, realloc_check, memalign_check): Use
them to improve overrun checking. Overruns of a single byte and
corruption of the top chunk are now detected much more reliably.
1998-05-06 Andreas Jaeger <aj@arthur.rhein-neckar.de>
* math/libm-test.c (pow_test): Add test for special value from PR
libc/590.
* malloc/malloc.c (ptmalloc_init_all): New function. Similar to
ptmalloc_unlock_all, but re-initializes the mutexes instead.
(ptmalloc_init): Use new function in thread_at_fork call.
(thread_atfork_static): Likewise.
Suggested by Wolfram Gloger and Xavier Leroy.
Ulrich Drepper [Mon, 4 May 1998 11:38:48 +0000 (11:38 +0000)]
Update.
1998-05-04 Ulrich Drepper <drepper@cygnus.com>
* signal/signal.h: Move definitions of struct sigstack and
struct sigaltstack into separate file and include it.
* sysdeps/generic/bits/sigstack.h: New file.
* sysdeps/unix/sysv/linux/bits/sigstack.h: New file.
* signal/Makefile (headers): Add bits/sigstack.h.
1998-05-03 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* elf/rtld.c (dl_main): Fix check for number of references to
interpreter object.
1998-05-03 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* elf/rtld.c (dl_main): Check has_interp after executing platform
specific code.
1998-05-01 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* iconvdata/run-iconv-test.sh: Fix typo.
1998-05-01 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* Makerules (+depfiles): Add depfiles for $(tests-static).
Simplified.
1998-05-01 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* manual/terminal.texi (Special Characters): Fix description of
c_cc indexes.
1998-05-01 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* sysdeps/unix/sysv/linux/tcsetattr.c: Use memcpy to copy the c_cc
array.
* sysdeps/unix/sysv/linux/tcgetattr.c: Likewise. Initialize rest
of c_cc array.
* Makerules (static-only-routines): Reimplement in terms of
elide-routines.os.
(shared-only-routines): Reimplement in terms of
elide-routines.X [where X is all object-suffixes except .os].
(stubs): Create stubs file inside the subdir.
(common-mostlyclean): Remove stubs file from inside the subdir.
* Makefile (subdir-stubs): Look for stubs files inside the
subdirs.
* manual/Makefile (stubs): Create dummy stubs file inside the
subdir.
Build speed improvement: make ar less of a bottleneck.
* Makerules (stamp$o): Just record the object list for later
use.
(libc_foo.a): New rule, depends on subdir stamp files; builds
and ranlibs the library from the lists saved in those files.
(subdirs-stamps): Define also if subdir == elf (FIXME: kludge).
(subdirs-stamp-o): Likewise.
(objects objs): Just depend on libobjs and extra-objs.
(libobjs): Depend on the stamp files, not the objects.
(extra-objs): New target, just depends on the extra-objs list.
(CREATE_ARFLAGS): Kill the `ar S' hack.
* config.make.in (have-ar-S): Deleted.
* configure.in: Delete test for `ar S'. Add test to determine
whether ranlib does anything useful.
* tst-locale.sh: Add comment for when multi-byte charsets in
locales work.
* tests/test5.cm: New file.
* tests/test5.def: New file.
* Makefile (ld-test-names): Add test5.
* wcsmbs/mbsnrtowcs.c: Remove variable to pass to conversion function
by letting the later modify the variable computing the total directly.
* wcsmbs/mbsrtowcs.c: Likewise.
* wcsmbs/wcsnrtombs.c: Likewise.
* wcsmbs/wcsrtombs.c: Likewise.
* wcsmbs/btowc.c (converted): Rename variable to dummy to make clear
it is not used.
* wcsmbs/wctoc.c: Likewise.
* intl/localealias.c (read_alias_file): Use unsigned char for
local variables. Remove unused variable tp.
* intl/l10nflist.c (_nl_normalize_codeset): Use unsigned char *
for type of codeset. For loosing Solaris systems.
* intl/loadinfo.h: Adapt prototype of _nl_normalize_codeset.
* intl/bindtextdom.c (BINDTEXTDOMAIN): Don't define local variable
len if not needed.
Patches by Jim Meyering.
* sysdeps/unix/sysv/linux/semctl.c (semctl): Define own union
semun and use stdarg macros to get the value.
* sysdeps/generic/semctl.c: Don't use union semun.
* inet/ether_aton_r.c (ether_aton_r): Preserve high-nibble value
in hex conversion.
* inet/ether_aton.c (ether_aton): Declare result variable static.
Reported by ahyung@unixg.ubc.ca.
1998-04-27 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* iconvdata/Makefile ($(objpfx)iconv-test.out): Use this as target
instead of do-iconv-test.
($(objpfx)gconv-modules): Define rule only if objpfx is not
empty.
1998-04-27 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* string/string.h: Fix feature test.
1998-04-27 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* iconvdata/iso646.c (BODY): Don't use character constants that
depend on signedness of char.
* iconvdata/TESTS: Name new tests.
* iconvdata/testdata/CP1250: New file.
* iconvdata/testdata/CP1250..UTF8: New file.
* iconvdata/testdata/CP1251: New file.
* iconvdata/testdata/CP1251..UTF8: New file.
* iconvdata/testdata/CP1252: New file.
* iconvdata/testdata/CP1252..UTF8: New file.
* iconvdata/testdata/CP1253: New file.
* iconvdata/testdata/CP1253..UTF8: New file.
* iconvdata/testdata/CP1254: New file.
* iconvdata/testdata/CP1254..UTF8: New file.
* iconvdata/testdata/CP1255: New file.
* iconvdata/testdata/CP1255..UTF8: New file.
* iconvdata/testdata/CP1256: New file.
* iconvdata/testdata/CP1256..UTF8: New file.
* iconvdata/testdata/CP1257: New file.
* iconvdata/testdata/CP1257..UTF8: New file.