external/glibc.git
29 years agoSat Apr 29 15:46:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Mon, 1 May 1995 09:00:07 +0000 (09:00 +0000)]
Sat Apr 29 15:46:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* posix/glob.c (S_ISDIR): Define if undefined.

29 years ago(S_ISDIR): Define if undefined.
Roland McGrath [Sat, 29 Apr 1995 19:46:34 +0000 (19:46 +0000)]
(S_ISDIR): Define if undefined.

29 years agoSupport for pre-BFD versions of Linux ld.
Michael Meissner [Thu, 27 Apr 1995 18:35:38 +0000 (18:35 +0000)]
Support for pre-BFD versions of Linux ld.

29 years agoRegenerated
Roland McGrath [Thu, 27 Apr 1995 16:42:52 +0000 (16:42 +0000)]
Regenerated

Tue Apr 25 17:17:19 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* posix/glob.c (glob): If GLOB_MARK set, stat names to find
  directories and append slashes to them in final pass before
  sorting.
(glob_in_dir): If GLOB_MARK set, just allocate the extra char for the
slash; never append it here.

29 years ago(i[34]86:*:3.2:*) test for /usr/options/cb.name before calling uname.
Richard Kenner [Thu, 27 Apr 1995 13:22:29 +0000 (13:22 +0000)]
(i[34]86:*:3.2:*) test for /usr/options/cb.name before calling uname.

29 years agoFixed _hurd_startup prototype.
Roland McGrath [Thu, 27 Apr 1995 05:52:28 +0000 (05:52 +0000)]
Fixed _hurd_startup prototype.

29 years agoThu Apr 27 01:24:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Thu, 27 Apr 1995 05:47:52 +0000 (05:47 +0000)]
Thu Apr 27 01:24:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* configure.in: Unless --without-fp, prepend */fpu before each
  machine dir in $mach; don't prepend FPU dirs at end.  If
  --with-elf, prepend MACHINE/elf directories at end; don't insert
  them into $mach.

* Makerules (dist): Filter out *.[cSs] from $(distribute) in deps.

* sysdeps/stub/clock.c: Added stub warning.
* sysdeps/stub/dirfd.c: Likewise.
* sysdeps/stub/exc2signal.c: Likewise.
* sysdeps/stub/fdopen.c: Likewise.
* sysdeps/stub/flock.c: Likewise.
* sysdeps/stub/fpathconf.c: Likewise.
* sysdeps/stub/ftruncate.c: Likewise.
* sysdeps/stub/gtty.c: Likewise.
* sysdeps/stub/isatty.c: Likewise.
* sysdeps/stub/killpg.c: Likewise.
* sysdeps/stub/madvise.c: Likewise.
* sysdeps/stub/mkstemp.c: Likewise.
* sysdeps/stub/mktemp.c: Likewise.
* sysdeps/stub/mprotect.c: Likewise.
* sysdeps/stub/msync.c: Likewise.
* sysdeps/stub/pathconf.c: Likewise.
* sysdeps/stub/poll.c: Likewise.
* sysdeps/stub/raise.c: Likewise.
* sysdeps/stub/readv.c: Likewise.
* sysdeps/stub/setenv.c: Likewise.
* sysdeps/stub/setlogin.c: Likewise.
* sysdeps/stub/sigaltstack.c: Likewise.
* sysdeps/stub/sigintr.c: Likewise.
* sysdeps/stub/sigstack.c: Likewise.
* sysdeps/stub/sleep.c: Likewise.
* sysdeps/stub/sstk.c: Likewise.
* sysdeps/stub/stime.c: Likewise.
* sysdeps/stub/stty.c: Likewise.
* sysdeps/stub/syscall.c: Likewise.
* sysdeps/stub/sysconf.c: Likewise.
* sysdeps/stub/truncate.c: Likewise.
* sysdeps/stub/ualarm.c: Likewise.
* sysdeps/stub/usleep.c: Likewise.
* sysdeps/stub/utimes.c: Likewise.
* sysdeps/stub/writev.c: Likewise.

* sysdeps/stub/libc_fatal.c: Remove __NORETURN keyword.

Wed Apr 26 16:06:42 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* locale/loadlocale.c (_nl_free_locale): Do nothing if DATA is null.

Tue Apr 25 17:17:19 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* posix/glob.c (glob): If GLOB_MARK set, stat names to find
  directories and append slashes to them in final pass before
  sorting.
(glob_in_dir): If GLOB_MARK set, just allocate the extra char for the
slash; never append it here.

29 years ago[HAVE_UNISTD_H]: Include unistd.h so it can declare sys_siglist.
Roland McGrath [Wed, 26 Apr 1995 21:19:26 +0000 (21:19 +0000)]
[HAVE_UNISTD_H]: Include unistd.h so it can declare sys_siglist.

29 years agoSupport Linux elf and a.out systems; Add parisc support
Michael Meissner [Wed, 26 Apr 1995 20:45:43 +0000 (20:45 +0000)]
Support Linux elf and a.out systems; Add parisc support

29 years ago(_nl_free_locale): Do nothing if DATA is null.
Roland McGrath [Wed, 26 Apr 1995 20:06:15 +0000 (20:06 +0000)]
(_nl_free_locale): Do nothing if DATA is null.

29 years ago(CRAY*Y-MP:*:*:*): New entry.
Richard Kenner [Wed, 26 Apr 1995 14:27:47 +0000 (14:27 +0000)]
(CRAY*Y-MP:*:*:*): New entry.

29 years ago(glob): If GLOB_MARK set, stat names to find directories and append slashes to them...
Roland McGrath [Tue, 25 Apr 1995 21:16:39 +0000 (21:16 +0000)]
(glob): If GLOB_MARK set, stat names to find directories and append slashes to them in final pass before sorting. (glob_in_dir): If GLOB_MARK set, just allocate the extra char for the slash; never append it here.

29 years agoSat Apr 22 14:48:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Mon, 24 Apr 1995 09:00:07 +0000 (09:00 +0000)]
Sat Apr 22 14:48:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* mach/Machrules [interface-library]
  (LDFLAGS-$(interface-library:lib%=%.so)): New variable, set to
  -nostdlib.

* sysdeps/mach/hurd/fork.c: Subfunction `unlockss' removed.  Lock
  _hurd_siglock only around initial task creation in parent.  Use
  _hurd_critical_section_unlock at end.  Handle dead name rights
  properly, and deal with a send right dying while we try to copy
  it.  For the time being, use assert_perror for kernel and proc RPC
  failures.

Fri Apr 21 01:10:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* extra-lib.mk: Don't include $(o-iterator); construct it by hand
  using $(object-suffixes-$(lib)) instead.

* sysdeps/mach/hurd/Makefile (LDLIBS-c.so): New variable.

* Makerules (lib%.so: lib%_pic.a): Pass $(LDFLAGS-$(notdir $*).so).
(LDFLAGS-c.so): New variable.

* resolv/res_init.c (res_init): Don't clobber _res.options with
  RES_DEFAULT.  If RES_INIT is clear, OR in RES_DEFAULT.

* hurd/hurd.h: Declare _hurd_startup.
* hurd/hurdstartup.c: New file.
* hurd/Makefile (routines): Add hurdstartup.

29 years ago* hurd/hurdsig.c: Use assert_perror for many calls which should
Roland McGrath [Fri, 21 Apr 1995 02:54:07 +0000 (02:54 +0000)]
* hurd/hurdsig.c: Use assert_perror for many calls which should

  never fail and previously were not checked.

29 years agoThu Apr 20 22:23:58 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Fri, 21 Apr 1995 02:24:35 +0000 (02:24 +0000)]
Thu Apr 20 22:23:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
  Point the return address for sigreturn's frame at a "hlt" insn so
  it will definitely crash if sigreturn returns.

HAVE_WEAK_SYMBOLS for doing weak_alias.

29 years ago.
Roland McGrath [Thu, 20 Apr 1995 09:00:09 +0000 (09:00 +0000)]
.

29 years agoWed Apr 19 18:12:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Wed, 19 Apr 1995 23:46:03 +0000 (23:46 +0000)]
Wed Apr 19 18:12:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* configure.in: Move $os tests to set $elf et al earlier, before
  construction of $sysnames.  Instead of prepending MACHINE/elf to
  $sysnames, append &/elf after each elt appended to $mach.
Tue Apr 18 14:00:19 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

29 years ago * time/tzset.c (__tzname, __daylight, __timezone): Don't check HAVE_W...
Brendan Kehoe [Wed, 19 Apr 1995 23:41:29 +0000 (23:41 +0000)]
    * time/tzset.c (__tzname, __daylight, __timezone): Don't check         HAVE_WEAK_SYBMOLS for doing weak_alias.

Wed Apr 19 18:40:11 1995  Brendan Kehoe  (brendan@zen.org)

* time/tzset.c (__tzname, __daylight, __timezone): Don't check
HAVE_WEAK_SYBMOLS for doing weak_alias.

29 years agoMove $os tests to set $elf et al earlier, before construction of $sysnames. Instead...
Roland McGrath [Wed, 19 Apr 1995 22:12:34 +0000 (22:12 +0000)]
Move $os tests to set $elf et al earlier, before construction of $sysnames. Instead of prepending MACHINE/elf to $sysnames, append &/elf after each elt appended to $mach.

29 years agoRegenerated
Roland McGrath [Wed, 19 Apr 1995 07:27:46 +0000 (07:27 +0000)]
Regenerated

29 years ago* libc-symbols.h (strong_alias_asm, strong_alias): Use
Roland McGrath [Tue, 18 Apr 1995 21:07:40 +0000 (21:07 +0000)]
* libc-symbols.h (strong_alias_asm, strong_alias): Use

  ASM_GLOBAL_DIRECTIVE on the alias.

29 years agoTue Apr 18 14:00:19 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Tue, 18 Apr 1995 20:16:50 +0000 (20:16 +0000)]
Tue Apr 18 14:00:19 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* configure.in (libc_cv_asm_global_directive): New check to define
  ASM_GLOBAL_DIRECTIVE.
* config.h.in: Add #undef ASM_GLOBAL_DIRECTIVE.

* sysdeps/unix/make_errlist.c (main): Don't generate "#ifdef
  HAVE_WEAK_SYMBOLS" #defns.

29 years ago(main): Don't generate "#ifdef HAVE_WEAK_SYMBOLS" #defns.
Roland McGrath [Tue, 18 Apr 1995 17:59:42 +0000 (17:59 +0000)]
(main): Don't generate "#ifdef HAVE_WEAK_SYMBOLS" #defns.

29 years ago* sysdeps/alpha/strlen.c (strlen): Fix cmpbge insn, and returning
Brendan Kehoe [Mon, 17 Apr 1995 22:02:01 +0000 (22:02 +0000)]
* sysdeps/alpha/strlen.c (strlen): Fix cmpbge insn, and returning

of the byte that was zero, so we return a valid number.
Mon Apr 17 12:02:49 1995  Brendan Kehoe  (brendan@zen.org)

* sysdeps/alpha/strlen.c (strlen): Fix cmpbge insn, and returning
of the byte that was zero, so we return a valid number.

* sysdeps/unix/bsd/ultrix4/mips/sysdep.h: New file defining

29 years ago * /sysdeps/unix/bsd/ultrix4/mips/sysdep.h: New file defining NO_UNDER...
Brendan Kehoe [Sun, 16 Apr 1995 08:24:34 +0000 (08:24 +0000)]
    * /sysdeps/unix/bsd/ultrix4/mips/sysdep.h: New file defining         NO_UNDERSCORES then using sysdeps/unix/mips/sysdep.h.

Sun Apr 16 03:23:09 1995  Brendan Kehoe  (brendan@zen.org)

* /sysdeps/unix/bsd/ultrix4/mips/sysdep.h: New file defining
NO_UNDERSCORES then using sysdeps/unix/mips/sysdep.h.

29 years ago* sysdeps/ieee754/mpn2dbl.c (__mpn_construct_double)
Brendan Kehoe [Sat, 15 Apr 1995 16:04:06 +0000 (16:04 +0000)]
* sysdeps/ieee754/mpn2dbl.c (__mpn_construct_double)

[BITS_PER_MP_LIMB == 64]: Refer to `u', not to non-existent `i'.
* sysdeps/ieee754/mpn2ldbl.c (__mpn_construct_long_double)
[BITS_PER_MP_LIMB == 64]: Likewise.
* sysdeps/ieee754/mpn2dbl.c (__mpn_construct_double)
[BITS_PER_MP_LIMB == 64]: Refer to `u', not to non-existent `i'.
* sysdeps/ieee754/mpn2ldbl.c (__mpn_construct_long_double)
[BITS_PER_MP_LIMB == 64]: Likewise.

29 years ago * sysdeps/unix/bsd/osf/alpha/killpg.S (killpg): Add .end directive. ...
Brendan Kehoe [Sat, 15 Apr 1995 04:07:56 +0000 (04:07 +0000)]
    * sysdeps/unix/bsd/osf/alpha/killpg.S (killpg): Add .end directive.         * sysdeps/unix/bsd/osf/alpha/sigblock.S (__sigblock): Likewise.         * sysdeps/unix/bsd/osf/alpha/sigsetmask.S (__sigsetmask): Likewise.         * sysdeps/unix/bsd/osf/alpha/sigpause.S (__sigpause): Likewise.         * sysdeps/unix/bsd/osf/alpha/sigvec.S (__sigvec): Likewise.         * sysdeps/unix/bsd/osf/alpha/getdents.S (__getdirentries): Likewise.         * sysdeps/unix/bsd/osf/alpha/fork.S (__fork): Likewise.         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.         * sysdeps/unix/bsd/osf/alpha/recv.S (recv): Likewise.         * sysdeps/unix/bsd/osf/alpha/send.S (send): Likewise.         * sysdeps/unix/bsd/osf/alpha/vhangup.S (vhangup): Likewise.

* sysdeps/unix/bsd/osf/alpha/killpg.S (killpg): Add .end directive.
* sysdeps/unix/bsd/osf/alpha/sigblock.S (__sigblock): Likewise.
* sysdeps/unix/bsd/osf/alpha/sigsetmask.S (__sigsetmask): Likewise.
* sysdeps/unix/bsd/osf/alpha/sigpause.S (__sigpause): Likewise.
* sysdeps/unix/bsd/osf/alpha/sigvec.S (__sigvec): Likewise.
* sysdeps/unix/bsd/osf/alpha/getdents.S (__getdirentries): Likewise.
* sysdeps/unix/bsd/osf/alpha/fork.S (__fork): Likewise.
* sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
* sysdeps/unix/bsd/osf/alpha/recv.S (recv): Likewise.
* sysdeps/unix/bsd/osf/alpha/send.S (send): Likewise.
* sysdeps/unix/bsd/osf/alpha/vhangup.S (vhangup): Likewise.

* sysdeps/unix/mips/brk.S (__brk, __curbrk): Add .end directive.

29 years ago... changing to use /**/ instead of ! as comments
Brendan Kehoe [Sat, 15 Apr 1995 02:38:17 +0000 (02:38 +0000)]
... changing to use /**/ instead of ! as comments

* sysdeps/unix/bsd/osf/alpha/brk.S: Likewise.
* sysdeps/unix/bsd/osf/alpha/brk.S: Likewise.

29 years ago * sysdeps/unix/mips/brk.S (__brk, __curbrk): Add .end. * sysdeps...
Brendan Kehoe [Sat, 15 Apr 1995 02:30:20 +0000 (02:30 +0000)]
    * sysdeps/unix/mips/brk.S (__brk, __curbrk): Add .end.         * sysdeps/unix/mips/fork.S (fork): Likewise.         * sysdeps/unix/mips/pipe.S (fork): Likewise.         * sysdeps/unix/mips/sigreturn.S (__sigreturn): Likewise.         * sysdeps/unix/mips/sysdep.S (sysdep_error): Likewise.         * sysdeps/unix/mips/wait.S (__handler): Likewise.         * sysdeps/mips/setjmp.S (__sigsetjmp): Likewise.         * sysdeps/mips/bsd-setjmp.S (setjmp): Likewise.         * sysdeps/unix/bsd/ultrix4/getsysinfo.S (getsysinfo): Likewise.         * sysdeps/unix/bsd/ultrix4/wait3.S (waitpid): Likewise.         * sysdeps/unix/bsd/ultrix4/waitpid.S (waitpid): Likewise.         * sysdeps/unix/bsd/ultrix4/mips/__handler.S (__handler): Likewise.         * sysdeps/unix/bsd/ultrix4/mips/sigvec.S (__raw_sigvec): Likewise.         * sysdeps/unix/bsd/ultrix4/mips/start.S (__start): Likewise.         * sysdeps/unix/bsd/ultrix4/mips/vfork.S (vfork): Likewise.         * sysdeps/mips/bsd-_setjmp.S (setjmp): Likewise.  Use `$0'         instead of `zero' for the li instruction.

* sysdeps/unix/mips/brk.S (__brk, __curbrk): Add .end.
* sysdeps/unix/mips/fork.S (fork): Likewise.
* sysdeps/unix/mips/pipe.S (fork): Likewise.
* sysdeps/unix/mips/sigreturn.S (__sigreturn): Likewise.
* sysdeps/unix/mips/sysdep.S (sysdep_error): Likewise.
* sysdeps/unix/mips/wait.S (__handler): Likewise.
* sysdeps/mips/setjmp.S (__sigsetjmp): Likewise.
* sysdeps/mips/bsd-setjmp.S (setjmp): Likewise.
* sysdeps/unix/bsd/ultrix4/getsysinfo.S (getsysinfo): Likewise.
* sysdeps/unix/bsd/ultrix4/wait3.S (waitpid): Likewise.
* sysdeps/unix/bsd/ultrix4/waitpid.S (waitpid): Likewise.
* sysdeps/unix/bsd/ultrix4/mips/__handler.S (__handler): Likewise.
* sysdeps/unix/bsd/ultrix4/mips/sigvec.S (__raw_sigvec): Likewise.
* sysdeps/unix/bsd/ultrix4/mips/start.S (__start): Likewise.
* sysdeps/unix/bsd/ultrix4/mips/vfork.S (vfork): Likewise.
* sysdeps/mips/bsd-_setjmp.S (setjmp): Likewise.  Use `$0'
instead of `zero' for the li instruction.

29 years ago * sysdeps/unix/bsd/osf/alpha/start.S: Change comments to be preproces...
Brendan Kehoe [Sat, 15 Apr 1995 02:07:14 +0000 (02:07 +0000)]
    * sysdeps/unix/bsd/osf/alpha/start.S: Change comments to be         preprocessor comments, not assembler comments.

* sysdeps/unix/bsd/osf/alpha/start.S: Change comments to be
preprocessor comments, not assembler comments.

29 years ago * sysdeps/unix/bsd/osf/alpha/sysdep.h (NO_UNDERSCORES): Define.
Brendan Kehoe [Sat, 15 Apr 1995 01:56:26 +0000 (01:56 +0000)]
    * sysdeps/unix/bsd/osf/alpha/sysdep.h (NO_UNDERSCORES): Define.

Fri Apr 14 18:49:03 1995  Brendan Kehoe  (brendan@zen.org)

* sysdeps/unix/bsd/osf/alpha/sysdep.h (NO_UNDERSCORES): Define.

29 years agoFri Apr 14 15:53:46 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Fri, 14 Apr 1995 20:07:31 +0000 (20:07 +0000)]
Fri Apr 14 15:53:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* malloc/malloc.c (register_heapinfo) [__GNUC__]: Use __inline__
  in place of inline.

29 years ago* Makefile (distribute): Add ChangeLog.[0-9].
Roland McGrath [Fri, 14 Apr 1995 03:52:54 +0000 (03:52 +0000)]
* Makefile (distribute): Add ChangeLog.[0-9].

* configure.in: Add check for .set directive.
* config.h.in: Add #undef HAVE_ASM_SET_DIRECTIVE.

* Makerules [! subdir] (O%-lib): Don't prepend ../.

* sysdeps/generic/expm1.c: #undef expm1 before weak_alias.

See ChangeLog.4 for earlier changes.

29 years ago* sysdeps/generic/expm1.c: #undef expm1 before weak_alias.
Roland McGrath [Fri, 14 Apr 1995 03:27:44 +0000 (03:27 +0000)]
* sysdeps/generic/expm1.c: #undef expm1 before weak_alias.

* libc-symbols.h [! HAVE_ASM_SET_DIRECTIVE] (strong_alias,
  strong_alias_asm): Use `foo = bar' syntax instead.
* configure.in: Fix AC_ARG_WITH uses; check for --with-fp.  Move
  $host_os checks to set gnu_ld/as and elf before sysdirs
  generation.  Fix $with_fp test.
[$elf=yes]: Prepend MACHINE/elf directory.

29 years agoThu Apr 13 09:45:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Fri, 14 Apr 1995 01:13:53 +0000 (01:13 +0000)]
Thu Apr 13 09:45:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* elf/libelf.h (elf_hash): Use XOR instead of ANDN when the bits
  being cleared are already known to be set.  Thanks Ulrich.

29 years agoWed Apr 12 23:27:22 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Thu, 13 Apr 1995 09:00:11 +0000 (09:00 +0000)]
Wed Apr 12 23:27:22 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* posix/environ.c: Add weak alias `_environ'.

29 years agoTue Apr 11 20:38:55 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Wed, 12 Apr 1995 01:03:38 +0000 (01:03 +0000)]
Tue Apr 11 20:38:55 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* sysdeps/i386/add_n.S [PIC]: Use self-call to avoid generating reloc.
* sysdeps/i386/sub_n.S [PIC]: Likewise.

* libc-symbols.h (_elf_set_element) [PIC]: Don't make the element
  word `const'.

* Makeconfig (CPPFLAGS, CFLAGS): Fix swapped references to
  $(foo-$(suffix $@)).

* manual/Makefile (chapters-incl): Filter out summary.texi.

29 years agoMon Apr 10 14:53:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Mon, 10 Apr 1995 18:58:00 +0000 (18:58 +0000)]
Mon Apr 10 14:53:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* stdlib/strtod.c (STRTOF): Use extra macro to make STRTOF's #defn
  a weak symbol instead of literal "STRTOF".

* locale/setlocale.c: Work around ld bug: don't weakify refs to
  _nl_{current,C}_*.

29 years agoSun Apr 9 01:24:33 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Mon, 10 Apr 1995 09:00:08 +0000 (09:00 +0000)]
Sun Apr  9 01:24:33 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* Makerules (+depfiles): Translate %.so to %.o in $(extra-objs).

* malloc/free.c [emacs] (__malloc_safe_bcopy): Define to safe_bcopy.
* malloc/realloc.c (__malloc_safe_bcopy): Undefine before defining.

* malloc/free.c (memmove, __malloc_safe_bcopy): Do include these
  #ifdef emacs, but only #ifndef memmove.
* malloc/realloc.c [emacs] (__malloc_safe_bcopy): Just #define to
  safe_bcopy.
(memmove): Define only if undefined.

* stdio/_itoa.h (_EXTERN_INLINE): Define if undefined.
(_itoa): Use it in defn.

29 years ago* extra-lib.mk (install-lib, extra-objs, alltypes-$(lib)): Make
Roland McGrath [Sat, 8 Apr 1995 19:23:00 +0000 (19:23 +0000)]
* extra-lib.mk (install-lib, extra-objs, alltypes-$(lib)): Make

  sure these are simply-expanded variables.

29 years ago* locale/loadlocale.c (_nl_load_locale): Use MAP_INHERIT flag in
Roland McGrath [Sat, 8 Apr 1995 19:09:39 +0000 (19:09 +0000)]
* locale/loadlocale.c (_nl_load_locale): Use MAP_INHERIT flag in

  mmap call.

* configure.in (os=freebsd*|bsdi*): Set base_os=unix/bsd/bsd4.4
  for these too.

* sysdeps/unix/sysv/tcsetattr.c: Use |= instead of = to properly
  set c_oflag value.

* Makeconfig [! objpfx] (csu-objpfx): Add trailing slash.

* locale/Makefile (categories): Uncomment collate.
* locale/lc-collate.c: New file.

29 years ago* malloc/free.c (__malloc_safe_bcopy, memmove): Don't define
Roland McGrath [Sat, 8 Apr 1995 16:28:41 +0000 (16:28 +0000)]
* malloc/free.c (__malloc_safe_bcopy, memmove): Don't define

  #ifdef emacs.
* malloc/realloc.c: Likewise.

* stdio/_itoa.c (_EXTERN_INLINE): Define to empty before #include
  "_itoa.h".
(_itoa): Function removed.

29 years agoSat Apr 8 00:40:59 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Sat, 8 Apr 1995 04:47:54 +0000 (04:47 +0000)]
Sat Apr  8 00:40:59 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* malloc/free.c: Remove use of `assert'.

* malloc/realloc.c [! emacs] (safe_bcopy): Renamed to
  __malloc_safe_bcopy; #define safe_bcopy.
* malloc/free.c: Cope with systems lacking `memmove'.
(_free_internal): Cast result of _malloc_internal.

29 years agoAccept -lites* as op sys.
Richard M. Stallman [Fri, 7 Apr 1995 07:32:44 +0000 (07:32 +0000)]
Accept -lites* as op sys.

29 years ago* hurd/hurdinline.c: Include signal.h first, so we don't define
Roland McGrath [Thu, 6 Apr 1995 00:37:26 +0000 (00:37 +0000)]
* hurd/hurdinline.c: Include signal.h first, so we don't define

  its inlines too.

* sysdeps/unix/sysv/sysv4/sigset.h (__sigfillset): Use ~0L instead
  of -1 to avoid compiler warning.

* configure.in (host_os=linux*): Set elf=yes for this, not just
  linux*elf*.

29 years ago* misc/login_tty.c [! TIOCSCTTY]: Try an emulation using ttyname
Roland McGrath [Wed, 5 Apr 1995 04:39:51 +0000 (04:39 +0000)]
* misc/login_tty.c [! TIOCSCTTY]: Try an emulation using ttyname

  and open.

29 years agoWed Apr 5 00:13:45 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Wed, 5 Apr 1995 04:18:44 +0000 (04:18 +0000)]
Wed Apr  5 00:13:45 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* sysdeps/i386/bsd-_setjmp.S: Fix typo in name: setjmp -> _setjmp.

29 years ago* sysdeps/unix/start.c: Remove spurious decl and #endif.
Roland McGrath [Tue, 4 Apr 1995 22:18:26 +0000 (22:18 +0000)]
* sysdeps/unix/start.c: Remove spurious decl and #endif.

29 years agoTue Apr 4 00:48:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Tue, 4 Apr 1995 21:53:15 +0000 (21:53 +0000)]
Tue Apr  4 00:48:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* misc/progname.c (program_invocation_name,
  program_invocation_short_name): Make these initialized data
  definitions.

* sysdeps/mach/hurd/setitimer.c (fork_itimer): Add self reference
  so gcc doesn't optimize out the function entirely.

29 years ago* posix/execvp.c: Don't use stat to search path; just try execv
Roland McGrath [Mon, 3 Apr 1995 09:00:10 +0000 (09:00 +0000)]
* posix/execvp.c: Don't use stat to search path; just try execv

  until it works.

29 years agoSun Apr 2 13:13:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Sun, 2 Apr 1995 22:08:59 +0000 (22:08 +0000)]
Sun Apr  2 13:13:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* sysdeps/mach/hurd/i386/trampoline.c: Add a link to
  SS->active_resources, so that _hurdsig_longjmp_from_handler will
  be called when a longjmp unwinds the signal frame.
* sysdeps/mach/hurd/i386/sigreturn.c: Remove the link on the
  SS->active_resources chain added by _hurd_setup_sighandler.
* hurd/sigunwind.c: New file.
* hurd/Makefile (sig): Add sigunwind.

* Makerules (lib%.so: lib%_pic.a): Remove dir name from $*.

* MakeTAGS (tags-sources): Include $(all-dist).
[subdir] (all-dist): Define to $(distribute).

29 years ago* Makerules (lib%.so: lib%_pic.a): Pass -L options for subdir and
Roland McGrath [Sat, 1 Apr 1995 09:07:31 +0000 (09:07 +0000)]
* Makerules (lib%.so: lib%_pic.a): Pass -L options for subdir and

  parent objdirs.

* extra-lib.mk (object-suffixes-$(lib)): New variable, produced by
  filtering out $($(lib)-inhibit-o); use that instead of
  $(object-suffixes) in all the other variables.

29 years agoSat Apr 1 00:08:06 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Sat, 1 Apr 1995 09:01:49 +0000 (09:01 +0000)]
Sat Apr  1 00:08:06 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* locale/loadlocale.c (_nl_load_locale) [MAP_FILE]: Define it zero
  if undefined.

* string/strxfrm.c: Just copy the string (for now).
* string/strcoll.c: Just call strcmp (for now).

* mach/Makefile (lock): Add mutex-init.
* mach/mutex-solid.c (_cthread_mutex_lock_routine,
  _cthread_mutex_unlock_routine): Variables removed.
(__mutex_lock_solid, __mutex_unlock_solid): Don't use them; just stub.
(__mutex_init): Function moved to new file mutex-init.c.
* mach/mutex-init.c: New file, broken out of mutex-solid.c.

29 years agoNew file, broken out of mutex-solid.c.
Roland McGrath [Sat, 1 Apr 1995 05:07:46 +0000 (05:07 +0000)]
New file, broken out of mutex-solid.c.

29 years ago * sysdeps/alpha/__longjmp.c (__longjmp): Take out const.
Brendan Kehoe [Fri, 31 Mar 1995 03:52:13 +0000 (03:52 +0000)]
    * sysdeps/alpha/__longjmp.c (__longjmp): Take out const.

* sysdeps/alpha/__longjmp.c (__longjmp): Take out const.

29 years ago * sysdeps/mips/__longjmp.c (__longjmp): Take out CONST.
Brendan Kehoe [Fri, 31 Mar 1995 01:47:52 +0000 (01:47 +0000)]
    * sysdeps/mips/__longjmp.c (__longjmp): Take out CONST.

Thu Mar 30 20:43:02 1995  Brendan Kehoe  <brendan@zen.org>

* sysdeps/mips/__longjmp.c (__longjmp): Take out CONST.

29 years agoThu Mar 30 01:38:00 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Thu, 30 Mar 1995 10:00:08 +0000 (10:00 +0000)]
Thu Mar 30 01:38:00 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* elf/elf.h (STN_UNDEF): New macro (distinct from SHN_UNDEF, though
  both are zero).

* elf/dlfcn.h: New file.

29 years ago* Make-dist (README): Commit it to CVS if there is a CVS directory.
Roland McGrath [Wed, 29 Mar 1995 16:58:35 +0000 (16:58 +0000)]
* Make-dist (README): Commit it to CVS if there is a CVS directory.

29 years agoWed Mar 29 11:26:48 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Wed, 29 Mar 1995 16:34:21 +0000 (16:34 +0000)]
Wed Mar 29 11:26:48 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

More changes from Germano Caronni <caronni@tik.ethz.ch>:
* malloc/free.c: Relocate _heapinfo when that allows us to return
  core to the system.

* malloc/malloc.c: Move #include <errno.h> outside #ifndef
_MALLOC_INTERNAL.

29 years ago* mach/Makefile (headers): Add mach/mach_traps.h.
Roland McGrath [Mon, 27 Mar 1995 17:44:04 +0000 (17:44 +0000)]
* mach/Makefile (headers): Add mach/mach_traps.h.

* Makerules ($(installed-libcs) rule): Fix typos.

29 years ago* sysdeps/unix/bsd/bsd4.4/revoke.S: New file.
Roland McGrath [Mon, 27 Mar 1995 10:24:00 +0000 (10:24 +0000)]
* sysdeps/unix/bsd/bsd4.4/revoke.S: New file.

* sysdeps/stub/revoke.c: New file.
* misc/Makefile (routines): Add revoke.
* posix/unistd.h [__USE_BSD] (revoke): Declare it.
* sysdeps/generic/pty.c (openpty, forkpty): Declare return types.
(forkpty): Declare login_tty.
* misc/logwtmp.c (logwtmp): Declare to return void.
* misc/login_tty.c (login_tty): Include unistd.h.  Declare return type.

29 years agoMon Mar 27 02:23:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Mon, 27 Mar 1995 10:00:09 +0000 (10:00 +0000)]
Mon Mar 27 02:23:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* posix/unistd.h [__USE_BSD] (ttyslot): Declare it.

* posix/unistd.h [__USE_BSD] (L_SET, L_INCR, L_XTND): Define
  unless L_SET already defined.
* misc/sys/file.h (L_SET, L_INCR, L_XTND): Don't define if L_SET
  already defined.

Incorporated -lutil library from 4.4-Lite.
* misc/Makefile (extra-libs, libutil-routines): New variables.
* misc/login.c, misc/login_tty.c, misc/logout.c, misc/logwtmp.c,
sysdeps/generic/pty.c: New files for -lutil incorporated from 4.4-Lite.

Support simple, light-weight unwind-protect mechanism for longjmp.
* setjmp/longjmp.c: Call _longjmp_unwind first thing.
* sysdeps/mach/hurd/jmp-unwind.c: New file.
* sysdeps/stub/jmp-unwind.c: New file.
* sysdeps/i386/jmp_buf.h (_JMPBUF_UNWINDS): New macro.
* sysdeps/mips/jmp_buf.h (_JMPBUF_UNWINDS): New macro.
* setjmp/Makefile (routines): Add jmp-unwind.
* hurd/hurd/userlink.h (struct hurd_userlink): Move `next' and
  `prevp' members into new substructure `resource'; add another such
  substructure `thread' and members `cleanup' (function ptr) and
  `cleanup_data' (generic ptr).
(_hurd_userlink_link, _hurd_userlink_unlink): Insert/remove LINK
into the `_hurd_self_sigstate ()->active_resources' list via the
`thread' substructure.
* hurd/hurd/port.h (_hurd_port_cleanup): Declare it.
(_hurd_port_locked_get): Set LINK->cleanup to _hurd_port_cleanup and
LINK->cleanup_data' to the port extracted.
* hurd/hurd/signal.h (struct hurd_sigstate): New member
`active_resources'.
* hurd/port-cleanup.c: New file.
* hurd/Makefile (routines): Add port-cleanup.

* malloc/malloc.c: Include errno.h.

Sat Mar 25 18:24:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* locale/loadlocale.c (_nl_load_locale): Avoid */ inside comment.

29 years ago* misc/Makefile (headers): Add utmp.h.
Roland McGrath [Fri, 24 Mar 1995 07:59:23 +0000 (07:59 +0000)]
* misc/Makefile (headers): Add utmp.h.

* misc/utmp.h: New file, incorporated from 4.4-Lite.

29 years agoFri Mar 24 02:35:37 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Fri, 24 Mar 1995 07:44:08 +0000 (07:44 +0000)]
Fri Mar 24 02:35:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* stdio/printf-parse.h: New file, mostly written by drepper.
* stdio/vfprintf.c: Rewritten, mostly by drepper.
* stdio/printf-prs.c: Rewritten.
* stdio/Makefile (distribute): Add printf-parse.h.

Thu Mar 23 22:03:44 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* sysdeps/unix/start.c [! NO_UNDERSCORES]: Don't declare _start
  with asm name.  Just do a ".set start, __start".

* malloc/realloc.c: Call _free_internal instead of free.

* stdlib/Makefile: All the mpn stuff moved here from stdio/Makefile.

29 years agoAll the mpn stuff moved here from stdio/Makefile.
Roland McGrath [Fri, 24 Mar 1995 03:05:04 +0000 (03:05 +0000)]
All the mpn stuff moved here from stdio/Makefile.

29 years ago(rm400, rm600): New machine names. (sinix5.*, sinix): New os aliases. (mips-siemens...
Richard M. Stallman [Wed, 22 Mar 1995 08:54:39 +0000 (08:54 +0000)]
(rm400, rm600): New machine names. (sinix5.*, sinix): New os aliases. (mips-siemens): Default os to sysv4.

29 years ago(signame_init): Define SIGINFO.
Roland McGrath [Tue, 21 Mar 1995 21:44:32 +0000 (21:44 +0000)]
(signame_init): Define SIGINFO.

29 years agoTue Mar 21 00:14:27 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Tue, 21 Mar 1995 07:58:50 +0000 (07:58 +0000)]
Tue Mar 21 00:14:27 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* locale/loadlocale.c (_nl_load_locale): If LOCALE/LC_* is a
  directory, open LOCALE/LC_*/SYS_LC_* instead.

* stdio/fpioconst.c, stdio/fpioconst.h, stdio/gmp-impl.h,
stdio/gmp.h, stdio/longlong.h, stdio/mp_clz_tab.c,
stdio/gen-mpn-copy: Files moved to stdlib.
* stdio/Makefile: All mpn stuff moved to stdlib/Makefile.
* stdio/printf_fp.c: Use ../stdlib to find fpioconst.h and gmp
  headers.
* stdlib/strtod.c: Don't use ../stdio to find fpioconst.h and gmp
  headers.

29 years ago* Makefile (parent-mostlyclean): Don't use $(libc.a).
Roland McGrath [Tue, 21 Mar 1995 04:26:12 +0000 (04:26 +0000)]
* Makefile (parent-mostlyclean): Don't use $(libc.a).

(parent-clean): Use $(objpfx) to find sysd-*.
* Rules (generated): Append dummy.o dummy.c.

29 years ago* Makerules (lib): Depend on lib-noranlib.
Roland McGrath [Tue, 21 Mar 1995 04:19:38 +0000 (04:19 +0000)]
* Makerules (lib): Depend on lib-noranlib.

(lib-noranlib): Depend on $(install-lib) in objdir.
(common-mostlyclean): Remove $(install-lib) and stub-$(subdir)
from objdir.  Don't remove TAGS; it comes in the distribution.

* malloc/malloc.c (morecore): Save errno around call to
  _realloc_internal.  Don't account for the additional new blocks of
  the info table itself when choosing the new table size for the
  first crack; if it succeeds, the new blocks will have been found
  in existing free space already described by the existing info
  table.

Changes from Germano Caronni <caronni@tik.ethz.ch>:
Changes from Germano Caronni <caronni@tik.ethz.ch>:

29 years agoMon Mar 20 03:19:23 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Mon, 20 Mar 1995 08:21:38 +0000 (08:21 +0000)]
Mon Mar 20 03:19:23 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* stdio/vfscanf.c (%n): Use READ_IN - 1, so as not to count the
  read-ahead character.

* hurd/dtable.c, hurd/getdport.c, hurd/hurd.h, hurd/hurdexec.c,
  hurd/hurdinit.c, hurd/hurdprio.c, hurd/hurdsock.c,
  hurd/ports-get.c, hurd/ports-set.c, hurd/setauth.c,
  hurd/setuids.c, sysdeps/mach/hurd/i386/trampoline.c:
Get anal with unsigned to pacify compiler.

29 years agoSat Mar 18 14:07:08 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Sat, 18 Mar 1995 20:44:21 +0000 (20:44 +0000)]
Sat Mar 18 14:07:08 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* stdio/vfscanf.c: Grok positional parameter specs (i.e. %3$d
  means %d from 3rd arg).

* sysdeps/mach/hurd/closedir.c: Include hurd/fd.h.

* stdlib/strtol.c: If !GROUP, set END to null.  In loop, test only
  END, not GROUP.

29 years ago* Makefile (subdirs): Put elf last.
Roland McGrath [Sat, 18 Mar 1995 07:23:06 +0000 (07:23 +0000)]
* Makefile (subdirs): Put elf last.

29 years agoFri Mar 17 12:58:37 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Fri, 17 Mar 1995 18:42:51 +0000 (18:42 +0000)]
Fri Mar 17 12:58:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* sunrpc/Makefile (install-lib): Variable removed.
(rpcsvc-objs): Variable removed.
(extra-objs): Don't include $(rpcsvc-objs).
(extra-libs): New variable, contains librpcsvc.
(librpcsvc-routines): New variable.
(librpcsvc-inhibit-o): New variable, contains .so.
(omit-deps): Set this to $(librpcsvc-routines).
($(objpfx)rpcgen): Don't use $(libc.a).
(lib, $(objpfx)librpcsvc.a): Targets removed.

* o-iterator.mk, extra-lib.mk: New files.
* Makerules (o-iterator): New variable.
[extra-libs]: Include extra-lib.mk to generate rules for each word
of $(extra-libs).
* Makefile (distribute): Add extra-lib.mk, o-iterator.mk.

(IMPLICIT_ONE, *_MAX_10_EXP_LOG): Macros removed; no longer needed.
* stdio/fpioconst.c, stdio/fpioconst.h: Don't use
  LDBL_MAX_10_EXP_LOG; LAST_POW10 defines the maximal available
  exponent.

29 years agoHandle 80-bit denormalized numbers correctly.
Roland McGrath [Fri, 17 Mar 1995 17:40:40 +0000 (17:40 +0000)]
Handle 80-bit denormalized numbers correctly.

* stdlib/strtod.c, stdlib/strtof.c, stdlib/strtold.c:
* stdlib/strtod.c (RETURN): Add parentheses around return value.
(round_and_return): Correct handling of denormalized numbers.

29 years agoUndo bogus change by drepper
Roland McGrath [Fri, 17 Mar 1995 17:40:02 +0000 (17:40 +0000)]
Undo bogus change by drepper

29 years agoFri Mar 17 13:28:04 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
Ulrich Drepper [Fri, 17 Mar 1995 17:15:40 +0000 (17:15 +0000)]
Fri Mar 17 13:28:04 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>

* sysdeps/ieee754/ldbl2mpn.c (__mpn_extract_long_double):
Handle 80-bit denormalized numbers correct.

* stdlib/strtod.c,stdlib/strtof.c,stdlib/strtold.c:
[IMPLICIT_ONE,*_MAX_10_EXP_LOG]: not needed anymore.
* stdlib/strtod.c (RETURN): parenthesis around return value.
(round_and_return): correct handling of denormalized numbers.
(__strtod_internal): don't check for grouping when not requested
while returning 0.0.

* stdio/fpioconst.[ch]: [LDBL_MAX_10_EXP_LOG]: don't use it.
LAST_POW10 defines the maximal available exponent.

* stdlib/{atof,atoi,atol}.c: use __strtoX_internal.

29 years ago(__mpn_extract_long_double): Handle 80-bit denormalized numbers correct.
Ulrich Drepper [Fri, 17 Mar 1995 12:28:47 +0000 (12:28 +0000)]
(__mpn_extract_long_double): Handle 80-bit denormalized numbers correct.

29 years ago* stdlib/strtold.c (STRTOF): Set to strtold, not __strtold.
Roland McGrath [Thu, 16 Mar 1995 07:21:33 +0000 (07:21 +0000)]
* stdlib/strtold.c (STRTOF): Set to strtold, not __strtold.

(strtold): Remove weak alias.
* stdlib/strtof.c (STRTOF): Set to strtof, not __strtof.
(strtof): Remove weak alias.

29 years agoThu Mar 16 00:04:41 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Thu, 16 Mar 1995 05:32:45 +0000 (05:32 +0000)]
Thu Mar 16 00:04:41 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* locale/C-ctype.c: New correct data generated by drepper.

* Rules: Don't use $(libc.a).

Parsing of grouped numbers contributed by Ulrich Drepper.
* stdlib/strtol.c (__strtol_internal): Renamed from strtol.  Take
  new flag arg; if nonzero, parse locale-dependent thousands
  grouping and interpret only the prefix that is correctly grouped.
(strtol): Define this to call _strtol_internal with zero for the flag.
Use a weak symbol for the definition.
* stdlib/strtod.c (strtod, __strtod_internal): Likewise.
   Check for the exponent of the number overflowing the float format.
* stdlib/stdlib.h (__strtof, __strtold): Declarations removed.
(__strto{f,d,ld,l,ul,q,uq}_internal): Declare these functions.
[__OPTIMIZE__]: Define inline functions calling those.
* stdlib/grouping.h: New file, written by drepper.
* stdlib/Makefile (distribute): Add grouping.h.
* stdio/vfscanf.c: Grok %' modifier to numeric conversions.  Call
  __strtoX_internal with the grouping flag set iff the modifier is
  present.

Wed Mar 15 00:40:54 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* sysdeps/generic/memchr.c: Fix typos: limit.h -> limits.h.

* mach/Machrules: Produce static deps for all object flavors.
[interface-library]: Remove all these variables and rules.
($(interface-library)-routines): Define this variable.
(extra-libs): Append $(interface-library) to this.
* mach/Makefile (interface-library): Omit .a suffix.
* hurd/Makefile: Likewise.

Tue Mar 14 23:40:31 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* stdio/internals.c (flushbuf): If !FLUSH_ONLY, don't skip out
  early if no new data in buffer after priming.

* Makerules (object-suffixes, libtypes): Move all these variables
  to Makeconfig.
* Makeconfig (object-suffixes, libtypes): Moved here from Makerules.

* Makerules (build-extra-lib): New canned sequence.

* sysdeps/mach/hurd/euidaccess.c: Include fcntl.h.  Declare ERR;
  fix uses of FILE and PORT.  Remove bogus weak alias for `access'.

* sysdeps/mach/hurd/dirfd.c: Include hurd/fd.h and errno.h.
Add missing semicolon.
* sysdeps/mach/hurd/opendir.c: Include hurd/fd.h.  Use a `struct
  hurd_fd *' temp var, since DIRP->__fd is a `void *'.
* sysdeps/mach/hurd/readdir.c: Include hurd/fd.h.

* stdlib/wcstombs.c: #if 0 out code for non-ASCII chars until the
  locale data format is implemented.

* sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
  Pass &__sigreturn on the stack to the trampoline code, so it is
  not position-dependent.

* stdio/printf_fp.c (NDEBUG): Define this to disable assert.
   Don't include <stdarg.h>.
(__printf_fp): Last arg ARGS is now `const void **const';
dereference ARGS[0] instead of using va_arg.

* locale/setlocale.c: In LC_ALL case, initialize CATEGORY before
  loop to install data.

* locale/loadlocale.c (_nl_category_num_items): Use _NL_ITEM_INDEX
  to extract number from item code.
(_nl_load_locale): Close the descriptor when finished.

* malloc/realloc.c (_realloc_internal): Call _malloc_internal in
  place of malloc.

* time/tzfile.c (__tzfile_default): Initialize RULE_STDOFF to zero.

29 years ago* stdio/printf_fp.c (group_number): Cast *GROUPING to unsigned int
Roland McGrath [Mon, 13 Mar 1995 10:00:11 +0000 (10:00 +0000)]
* stdio/printf_fp.c (group_number): Cast *GROUPING to unsigned int

  to avoid warning.
* sysdeps/generic/sigset.h (__SIGSETFN): Cast result of sizeof to
  int to avoid warning.

29 years agoSupport building several flavors of objects and libraries.
Roland McGrath [Mon, 13 Mar 1995 07:42:09 +0000 (07:42 +0000)]
Support building several flavors of objects and libraries.

* Makerules (libtypes, object-suffixes): New variables.
(libtype.*, CFLAGS-*, CPPFLAGS-*): New variables for each object
suffix.
(CFLAGS, CPPFLAGS): Append $(C{,CPP}FLAGS-$(suffix $@)).
(%.so, %.po, %.go): New compilation rules for %.S, %.s, %.c.
(close-check-inhibit-asm): Append a semicolon.
(sysd-rules): Generate rules for each object suffix.
(compile.S, compile.c): Always assume gcc.
(OUTPUT_OPTION): Define unconditionally.
(+make-deps): In generated rule, produce a dependent for each
object suffix.
(.SUFFIXES): Add $(object-suffixes) in place of .o.
(.PRECIOUS): Make all suffix flavors precious.
($(libc.a)): Target removed.
(lib): Depend on each enabled libtype.
(libobjs, objects, objs): Depend on all the enabled object flavors.
(lib%.a): New pattern rule.
[$(build-shared)=yes] (lib%.so: lib%_pic.a): New pattern rule.
(stamp-$(subdir)): Rewritten to a pattern rule for stamp.%-$(subdir)
to make one for each flavor; library dep rule likewise rewritten.
($(libc.a)(__.SYMDEF)): Target replaced with one target for each
flavor.
(symdef.%): New pattern rule; helper for __.SYMDEF targets.
(installed-libcs): New variable.
(install): Depend on that instead of
$(libdir)/lib$(libprefix)$(libc-name).a;
that file's rule rewritten to make each enabled libtype.
(install-lib.so): New variable, filters lib%.so from $(install-lib).
(install-lib): Filter out lib%.so after setting install-lib.so.
[$(build-shared)=yes] (install): Install $(install-lib.so).
(common-mostlyclean): Remove all flavors of objects.

29 years agoMon Mar 13 01:48:16 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Mon, 13 Mar 1995 06:51:32 +0000 (06:51 +0000)]
Mon Mar 13 01:48:16 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* Makefile ($(libc.a)(__.SYMDEF)): Target removed.
[$(build-shared)=yes] (lib): Depend on $(common-objpfx)libc.so.

* sysdeps/stub/ulimit.c: Don't include gnu-stabs.h.
* sysdeps/stub/pause.c: Likewise.
* sysdeps/stub/time.c: Likewise.

* stdlib/mbtowc.c: #if 0 out code for non-ASCII chars until the
  locale data format is implemented.
* stdlib/wctomb.c: Likewise.

* mach/Makefile ($(objpfx)errsystems.c): Reenable this rule; the
  gcc bug is fixed.
* mach/errsystems.c: File removed.

* Makeconfig (libc.a): Variable removed.
(+link): Don't use it.

* configure.in (AC_ARG_ENABLE calls): Use $enableval instead of
  assuming `yes'.

29 years ago#if 0 out code for non-ASCII chars until the locale data format is implemented.
Roland McGrath [Mon, 13 Mar 1995 03:41:42 +0000 (03:41 +0000)]
#if 0 out code for non-ASCII chars until the locale data format is implemented.

29 years agoRemove ansidecl.h and clean up for use by other packages. [LONG_MAX <= LONG_MAX_32_BI...
Jim Meyering [Mon, 13 Mar 1995 03:38:06 +0000 (03:38 +0000)]
Remove ansidecl.h and clean up for use by other packages. [LONG_MAX <= LONG_MAX_32_BITS]: Don't compile 64-bit code.

29 years agoKludge no longer necessary
Roland McGrath [Mon, 13 Mar 1995 00:45:44 +0000 (00:45 +0000)]
Kludge no longer necessary

29 years agoSun Mar 12 18:21:10 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Mon, 13 Mar 1995 00:37:23 +0000 (00:37 +0000)]
Sun Mar 12 18:21:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* malloc/malloc.h (_malloc_internal, _realloc_internal): Declare these.
* malloc/realloc.c (_realloc_internal): Renamed from realloc;
  don't use __realloc_hook.
(realloc): New function; call __realloc_hook ?: _realloc_internal.
* malloc/malloc.c (_malloc_internal): Renamed from malloc;
don't use __malloc_hook.
(malloc): New function; call __malloc_hook ?: _malloc_internal.
(initialize): Set up _heaplimit to cover the _heapinfo table.
(morecore_recursing): New static variable.
(morecore): If that is set, return null immediately.
When growing the info table, before getting new core from the
  system for it, set morecore_recursing and try moving _heapinfo
  with _realloc_internal.  When that fails and we get new core, set
  _heaplimit to cover the core for the new _heapinfo table.
(register_heapinfo): New function.  Record the _heapinfo table's
own blocks in that table and in the statistics variables.
(initialize, _malloc_internal): Use it after allocating new table.

Fri Mar 10 22:26:28 1995  Jim Meyering  (meyering@comco.com)

* sysdeps/generic/memchr.c: Remove ansidecl.h and clean up for use
by other packages.
[LONG_MAX <= LONG_MAX_32_BITS]: Don't compile 64-bit code.

* mach/errorlib.h (errors): Use const for decl.

* time/tzfile.c (uc2ul, _uc2ul): Macros removed.
(decode): New inline function; decode signed 32-bit integers, and
sign-extend properly when long is longer than 32 bits.
(__tzfile_read): Changed all uses of uc2ul to decode.
Decode the transition times properly when sizeof (time_t) > 4.

* stdio/vfprintf.c [USE_IN_LIBIO] (PAD): Use return value of _IO_padn.
(buffered_vfprintf): Remove line buffer when flush failed.

29 years agoRegenerated
Roland McGrath [Fri, 10 Mar 1995 18:59:45 +0000 (18:59 +0000)]
Regenerated

29 years agoFri Mar 10 13:31:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Fri, 10 Mar 1995 18:32:00 +0000 (18:32 +0000)]
Fri Mar 10 13:31:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* stdio/printf.h: Doc fixes.  Don't #include <stddef.h>.
(printf_function): Make last arg ARGS a vector of pointers instead of a
pointer to va_list.

Fri Mar 10 13:46:25 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>

* stdio/vfprintf.c (PAD): use return value of _IO_padn.
(buffered_vfprintf): remove line buffer when flush failed.

Fri Mar 10 00:04:55 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* time/tzfile.c (struct ttinfo): New member `isgmt'.
   (__tzfile_read): Read isgmt flags for each type.
   (__tzfile_default): When using TZDEFRULES DST rules, adjust
  transition times according to the isstd and isgmt flags for the
  types of each transition, and adjust each transition to point to
  type index either 0 or 1.  Reset type indices 0 and 1 to describe
  the user's settings.

29 years agoDoc fixes. Don't #include <stddef.h>. (printf_function): Make last arg ARGS a vector...
Roland McGrath [Fri, 10 Mar 1995 18:31:02 +0000 (18:31 +0000)]
Doc fixes. Don't #include <stddef.h>. (printf_function): Make last arg ARGS a vector of pointers instead of a pointer to va_list.

29 years ago(PAD): use return value of _IO_padn. (buffered_vfprintf): remove line buffer when...
Ulrich Drepper [Fri, 10 Mar 1995 12:38:16 +0000 (12:38 +0000)]
(PAD): use return value of _IO_padn. (buffered_vfprintf): remove line buffer when flush failed.

29 years ago(struct ttinfo): New member `isgmt'. (__tzfile_read): Read isgmt flags for each type...
Roland McGrath [Fri, 10 Mar 1995 05:04:38 +0000 (05:04 +0000)]
(struct ttinfo): New member `isgmt'. (__tzfile_read): Read isgmt flags for each type. (__tzfile_default): When using TZDEFRULES DST rules, adjust transition times according to the isstd and isgmt flags for the types of each transition, and adjust each transition to point to type index either 0 or 1. Reset type indices 0 and 1 to describe the user's settings.

29 years ago* locale/categories.def (LC_CTYPE): Merge CLASS_EB and CLASS_EL
Roland McGrath [Fri, 10 Mar 1995 05:01:07 +0000 (05:01 +0000)]
* locale/categories.def (LC_CTYPE): Merge CLASS_EB and CLASS_EL

  into just CLASS.  Add standard/optional flag to all items.

* locale/localeinfo.h (_NL_CURRENT_DEFINE): Fix typo.

* ctype/ctype.h [__BYTE_ORDER == __LITTLE_ENDIAN] (_ISbit):
  Rearrange defn to satisfy compiler.

* locale/localeinfo.h: Declare _nl_current.

29 years ago* configure.in: Use AC_CHECK_TOOL for CC, AR, RANLIB. Accept args
Roland McGrath [Fri, 10 Mar 1995 04:12:12 +0000 (04:12 +0000)]
* configure.in: Use AC_CHECK_TOOL for CC, AR, RANLIB.  Accept args

  --enable-shared, --enable-profile, --enable-omitfp; pass settings
  through to config.make.
* config.make.in (build-shared, build-profile, build-omitfp): New
  config vars.

29 years agoThu Mar 9 22:29:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Fri, 10 Mar 1995 03:58:22 +0000 (03:58 +0000)]
Thu Mar  9 22:29:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* elf/elf.h (STN_UNDEF): Renamed to SHN_UNDEF (typo).
(DT_NUM): New macro.

* locale/nl_langinfo.c: Include errno.h and stddef.h.  Fix typos.

* locale/lc-ctype.c (_nl_postload_ctype): Fix macro insanity.

* locale/loadlocale.c (_nl_load_locale) [! MAP_COPY]: Define
  MAP_COPY to MAP_PRIVATE.

29 years ago(_nl_load_locale) [! MAP_COPY]: Define MAP_COPY to MAP_PRIVATE.
Roland McGrath [Fri, 10 Mar 1995 03:28:54 +0000 (03:28 +0000)]
(_nl_load_locale) [! MAP_COPY]: Define MAP_COPY to MAP_PRIVATE.

29 years agonewly generated ones
Brendan Kehoe [Fri, 10 Mar 1995 02:59:52 +0000 (02:59 +0000)]
newly generated ones

29 years ago * sysdeps/alpha/divrem.m4: Undefine `ret' to avoid the definition ...
Brendan Kehoe [Fri, 10 Mar 1995 02:59:06 +0000 (02:59 +0000)]
    * sysdeps/alpha/divrem.m4: Undefine `ret' to avoid the definition         that's used inside the alpha sysdep.h.

* sysdeps/alpha/divrem.m4: Undefine `ret' to avoid the definition
that's used inside the alpha sysdep.h.

29 years agoduh, don't need __attribute__ in the alpha header, it's in the toplevel one
Brendan Kehoe [Fri, 10 Mar 1995 02:44:20 +0000 (02:44 +0000)]
duh, don't need __attribute__ in the alpha header, it's in the toplevel one

* sysdeps/alpha/__math.h (__copysign): Remove obsolete __CONSTVALUE.

29 years ago * sysdeps/alpha/__longjmp.c (__longjmp): Remove obsolete __NORETURN ...
Brendan Kehoe [Fri, 10 Mar 1995 02:16:23 +0000 (02:16 +0000)]
    * sysdeps/alpha/__longjmp.c (__longjmp): Remove obsolete __NORETURN         keyword.

* sysdeps/alpha/__longjmp.c (__longjmp): Remove obsolete __NORETURN
keyword.