platform/upstream/glibc.git
29 years agoMon Mar 6 12:34:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu> cvs/make-3-72-10 cvs/make-3-72-11 cvs/make-3-72-9
Roland McGrath [Mon, 6 Mar 1995 19:57:00 +0000 (19:57 +0000)]
Mon Mar  6 12:34:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* ctype/ctype.h (_ISbit): New macro, defined dependent on byte order.
(_IS* enum): Use _ISbit to produce values.

29 years ago* ctype/ctype-info.c: For initial tables, use
Roland McGrath [Mon, 6 Mar 1995 03:05:42 +0000 (03:05 +0000)]
* ctype/ctype-info.c: For initial tables, use

_nl_C_LC_CTYPE_{class,toupper,tolower} constant tables defined in
locale/C-ctype.c.

29 years agoSun Mar 5 19:40:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Mon, 6 Mar 1995 03:00:08 +0000 (03:00 +0000)]
Sun Mar  5 19:40:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* locale/localeinfo.h: Rewritten for new locale system, using
locale data files and with <langinfo.h> interface.
* locale/setlocale.c: Rewritten to use locale data files.
* langinfo.h: New file.
        * locale/langinfo.h: New file.
        * locale/nl_langinfo.c: New file.
        * locale/loadlocale.c: New file.
        * locale/lc-ctype.c: New file.
        * locale/lc-messages.c: New file.
        * locale/lc-monetary.c: New file.
        * locale/lc-numeric.c: New file.
        * locale/lc-time.c: New file.
        * locale/categories.def: New file.
* locale/Makefile (headers): Remove localeinfo.h.
(distribute): New variable; put localeinfo.h here, and categories.def.
(routines): Add loadlocale.
(categories): New variable.
(aux): Use that to get C-category and lc-category.
* ctype/ctype.h (_IS*): Use independent bits for all but _ISalnum.
* locale/C-ctype.c, locale/C-messages.c: New files.
  * locale/C-monetary.c, locale/C-numeric.c, locale/C-time.c:
Default "C" locale data updated for new locale system.
* locale/C-collate.c: File removed.
        * locale/C-ctype_ct.c: File removed.
        * locale/C-ctype_mb.c: File removed.
        * locale/C-response.c: File removed.
* locale/localeconv.c: Use _NL_CURRENT macro to access locale data.
* stdio/printf_fp.c, stdio/vfprintf.c, stdio/vfscanf.c,
  stdlib/strtod.c, time/asctime.c, time/strftime.c:
Include ../locale/localeinfo.h and use _NL_CURRENT macro to access
locale data.
* time/localtime.c: Don't include <localeinfo.h>.
* time/tzset.c: Don't use locale items for default TZ value or
"GMT" string (use "UTC").

* stdio/vfprintf.c [USE_IN_LIBIO] (PAD): Only call the function if
  WIDTH>0; update DONE.

* malloc/malloc.c (morecore): Fix last change to calculate by
  blocks instead of bytes.

29 years agoFri Mar 3 12:24:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Mon, 6 Mar 1995 00:27:08 +0000 (00:27 +0000)]
Fri Mar  3 12:24:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* sysdeps/generic/sys/mman.h (__mmap, __munmap): Declare these.
* sysdeps/unix/sysv/irix4/sys/mman.h: Likewise.
* sysdeps/unix/bsd/ultrix4/sys/mman.h: Likewise.
* sysdeps/unix/bsd/osf1/sys/mman.h: Likewise.
* sysdeps/unix/bsd/sun/sunos4/sys/mman.h: Likewise.
* sysdeps/stub/munmap.c (munmap): Rename to __munmap, add weak
  alias munmap.
* sysdeps/unix/mman/munmap.S: Likewise.
* sysdeps/mach/munmap.c: Likewise.
* sysdeps/mach/hurd/mmap.c (mmap): Rename to __mmap, add weak
  alias mmap.
* sysdeps/unix/mman/mmap.S: Likewise.
* sysdeps/unix/bsd/sun/sunos4/mmap.c: Likewise.
* sysdeps/stub/mmap.c: Likewise.

* sysdeps/unix/bsd/setsid.c: Use __getpgid instead of __getpgrp.

* sysdeps/unix/dirfd.c: #undef dirfd before function defn.

Thu Mar  2 12:15:24 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* misc/search.h: Add missing semicolon.

* sysdeps/unix/dirfd.c: Fix typo.

* sysdeps/generic/sys/mman.h (mmap): Use __off_t instead of off_t
  in decl.

* stdio/vfscanf.c (%c): In no-assign case, fix loop to decrement
  WIDTH before test.

29 years ago* stdlib/strtod.c: Fixes from drepper. cvs/libc_1_09 glibc-1.09
Roland McGrath [Thu, 2 Mar 1995 10:00:12 +0000 (10:00 +0000)]
* stdlib/strtod.c: Fixes from drepper.

[IMPLICIT_ONE]: New macro, one for IEEE754 formats.
* stdlib/strtold.c [IMPLICIT_ONE]: New macro, 0.
* stdlib/strtof.c [IMPLICIT_ONE]: New macro, 1.

* stdio/vfprintf.c: Correctly notice Z modifier.

29 years agoWed Mar 1 00:57:47 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Wed, 1 Mar 1995 06:28:14 +0000 (06:28 +0000)]
Wed Mar  1 00:57:47 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* misc/search.h: New file.
* misc/Makefile (headers): Add search.h.
* misc/insremque.c: Include search.h.
(struct qelem): Type removed.

29 years agoMon Feb 27 07:00:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Mon, 27 Feb 1995 14:01:48 +0000 (14:01 +0000)]
Mon Feb 27 07:00:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* elf/libelf.h: New file.
* elf/elf_hash.c: New file.

29 years agoSun Feb 26 15:51:00 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Sun, 26 Feb 1995 23:18:18 +0000 (23:18 +0000)]
Sun Feb 26 15:51:00 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* malloc/malloc.c (morecore): Account in NEWSIZE for the
  malloc_info structures for each new block.

29 years agoSat Feb 25 02:17:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Sat, 25 Feb 1995 11:33:49 +0000 (11:33 +0000)]
Sat Feb 25 02:17:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* sysdeps/mach/hurd/kill.c: When the process has no message port
  registered and we have its task port, translate a few signals to
  task_suspend/task_resume/task_terminate.

29 years ago* io/Makefile (routines): Add euidaccess.
Roland McGrath [Sat, 25 Feb 1995 01:23:32 +0000 (01:23 +0000)]
* io/Makefile (routines): Add euidaccess.

* sysdeps/mach/hurd/euidaccess.c: New file.
* sysdeps/stub/euidaccess.c: New file.
* posix/unistd.h [__USE_GNU] (euidaccess): Declare it.

* dirent/Makefile (routines): Add dirfd.
* sysdeps/stub/dirfd.c: New file.
* sysdeps/unix/dirfd.c: New file.
* sysdeps/unix/dirstream.h (_DIR_dirfd): New macro.
* dirent/dirent.h (dirfd): Declare new function.  Define as macro
  _DIR_dirfd if that is defined.
* sysdeps/mach/hurd/dirstream.h (DIR): Replace `__port' member
  with `void *__fd'.
* sysdeps/mach/hurd/opendir.c: Use DIRP->__fd instead of DIRP->__port.
Open the file with `open'; set FD_CLOEXEC on the fd.
* sysdeps/mach/hurd/closedir.c: Likewise.
* sysdeps/mach/hurd/readdir.c: Likewise.
* sysdeps/mach/hurd/dirfd.c: New file.

* posix/Makefile (glob/configure): Do cvs commit if there is a CVS
  directory.
(glob/ChangeLog): Likewise.

* locale/locale.h (LC_*): Use small integers instead of bit masks.

29 years agoFri Feb 24 14:40:48 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Fri, 24 Feb 1995 19:47:17 +0000 (19:47 +0000)]
Fri Feb 24 14:40:48 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* stdio/bug4.c: Put temporary files in /tmp.
* stdio/bug3.c: Likewise.
* stdio/bug5.c: Likewise.
* stdio/test-fseek.c: Likewise.
* stdio/test-popen.c: Likewise.

29 years ago* posix/glob/configure.in: Put AC_ISC_POSIX before AC_CONST.
Roland McGrath [Thu, 23 Feb 1995 10:00:16 +0000 (10:00 +0000)]
* posix/glob/configure.in: Put AC_ISC_POSIX before AC_CONST.

* libc-symbols.h (weak_symbol): New macro.

29 years agoPut AC_ISC_POSIX before AC_CONST.
Roland McGrath [Thu, 23 Feb 1995 02:30:35 +0000 (02:30 +0000)]
Put AC_ISC_POSIX before AC_CONST.

29 years agoRecognize NetBSD/Amiga as m68k-cbm-netbsd.
Richard Kenner [Thu, 23 Feb 1995 00:08:39 +0000 (00:08 +0000)]
Recognize NetBSD/Amiga as m68k-cbm-netbsd.

29 years ago(weak_symbol): New macro.
Roland McGrath [Wed, 22 Feb 1995 23:19:35 +0000 (23:19 +0000)]
(weak_symbol): New macro.

29 years ago* hurd/hurdsig.c (_hurd_internal_post_signal): Ignore preempter
Roland McGrath [Wed, 22 Feb 1995 23:11:54 +0000 (23:11 +0000)]
* hurd/hurdsig.c (_hurd_internal_post_signal): Ignore preempter

  elts with null handlers.

29 years agoWed Feb 22 00:44:41 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Wed, 22 Feb 1995 05:47:15 +0000 (05:47 +0000)]
Wed Feb 22 00:44:41 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* sysdeps/mach/hurd/i386/sigreturn.c: Restore the FPU state.

* stdlib/random.c (__srandom): Change algorithm used to populate
  the state array.
(randtbl): Recomputed with new algorithm.

29 years agoTue Feb 21 21:53:30 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Wed, 22 Feb 1995 03:00:48 +0000 (03:00 +0000)]
Tue Feb 21 21:53:30 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* sysdeps/sparc/Makefile [subdir=crypt] (crypt): Reset only if set
  to original value of `crypt'.
* sysdeps/unix/sysv/sysv4/solaris2/sparc/Makefile [subdir=crypt]
  (crypt): New variable, set to crypt.solar.

29 years ago[subdir=crypt] (crypt): New variable, set to crypt.solar.
Roland McGrath [Wed, 22 Feb 1995 02:53:16 +0000 (02:53 +0000)]
[subdir=crypt] (crypt): New variable, set to crypt.solar.

29 years ago * sysdeps/sparc/Makefile (routines): Reference `dotmul', not `mul'.
Brendan Kehoe [Tue, 21 Feb 1995 20:42:55 +0000 (20:42 +0000)]
    * sysdeps/sparc/Makefile (routines): Reference `dotmul', not `mul'.

* sysdeps/sparc/Makefile (routines): Reference `dotmul', not `mul'.

29 years ago.
Roland McGrath [Tue, 21 Feb 1995 20:27:45 +0000 (20:27 +0000)]
.

29 years agoInitial revision
Roland McGrath [Tue, 21 Feb 1995 20:10:26 +0000 (20:10 +0000)]
Initial revision

29 years ago * config.h.in: Put comment around ^L to pacify Solaris as here too.
Brendan Kehoe [Tue, 21 Feb 1995 19:53:54 +0000 (19:53 +0000)]
    * config.h.in: Put comment around ^L to pacify Solaris as here too.

Tue Feb 21 11:50:37 1995  Brendan Kehoe  (brendan@zen.org)

* config.h.in: Put comment around ^L to pacify Solaris as here too.

29 years ago* string/Makefile (distribute): Add pagecopy.h.
Roland McGrath [Tue, 21 Feb 1995 08:07:34 +0000 (08:07 +0000)]
* string/Makefile (distribute): Add pagecopy.h.

* sysdeps/mach/pagecopy.h: New file.
* sysdeps/generic/pagecopy.h: New file.
* sysdeps/generic/memcpy.c: Include pagecopy.h; call
  PAGE_COPY_FWD_MAYBE first when word aligned.
* sysdeps/generic/memmove.c: Likewise.

29 years ago* misc/bsd-compat.c (longjmp, setjmp): Functions removed.
Roland McGrath [Tue, 21 Feb 1995 06:17:59 +0000 (06:17 +0000)]
* misc/bsd-compat.c (longjmp, setjmp): Functions removed.

(getpgrp): Call __getpgid instead of __getpgrp.

29 years ago* Makefile (subdirs): Add elf first.
Roland McGrath [Tue, 21 Feb 1995 06:15:34 +0000 (06:15 +0000)]
* Makefile (subdirs): Add elf first.

* elf/Makefile: New file.
* elf/elf.h: New file.

29 years ago* sysdeps/unix/start.c (errno): Only define if it's not #define'd
Roland McGrath [Tue, 21 Feb 1995 06:03:27 +0000 (06:03 +0000)]
* sysdeps/unix/start.c (errno): Only define if it's not #define'd

  as a macro.
[! NO_UNDERSCORES]: Define `start' as a weak alias, not a symbol
indirection.

29 years agoTue Feb 21 00:10:50 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Tue, 21 Feb 1995 06:02:58 +0000 (06:02 +0000)]
Tue Feb 21 00:10:50 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* csu/Makefile (crtstuff): New variable consolidates crti, crtn;
  add crti_s, crtn_s.
(install-lib, extra-objs, generated-, omit-deps): Use that.
(initfini): New canned sequence, broken out of crt[in].s rule.
(crt[in].s rule): Use it.
(crt[in]_s.s): New rule.
* csu/initfini.c (GLOBAL): New macro; define it to empty if undefined.
(_init, _fini): Use GLOBAL as storage class.
Add self reference to avoid GCC optimizing out the functions.

* Makefile (headers): Remove $(stddef.h).
* Makeconfig (stddef.h): Variable removed; now require gcc version
  >= 2.2.
* stddef.h: File removed.

Mon Feb 20 19:42:31 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* sysdeps/unix/bsd/ultrix4/mips/start.S: Remove `__environ'
  definition.
* sysdeps/unix/bsd/osf1/alpha/start.S: Likewise.

* stdlib/strtod.c: Allow the string to start with a decimal point
  without a leading zero.

29 years ago* Makefile (subdirs): Put csu first.
Roland McGrath [Mon, 20 Feb 1995 23:55:12 +0000 (23:55 +0000)]
* Makefile (subdirs): Put csu first.

* sysdeps/mach/hurd/start.c: Include unistd.h for __environ decl.

29 years agoInclude unistd.h for __environ decl.
Roland McGrath [Mon, 20 Feb 1995 20:32:42 +0000 (20:32 +0000)]
Include unistd.h for __environ decl.

29 years ago(sun4sol2): Alias for sparc-sun-solaris2.
Doug Evans [Mon, 20 Feb 1995 20:25:48 +0000 (20:25 +0000)]
(sun4sol2): Alias for sparc-sun-solaris2.

29 years ago* Makeconfig [elf=yes] (+preinit, +postinit): New variables, set
Roland McGrath [Mon, 20 Feb 1995 10:23:07 +0000 (10:23 +0000)]
* Makeconfig [elf=yes] (+preinit, +postinit): New variables, set

  to crt[in].o.
(csu-objpfx): New variable.
(+link): Use it to find start.o and $(+preinit), $(+postinit).

* Rules (subdir_lib, all): Depend on objs.

29 years agoMon Feb 20 04:04:57 1995 Roland McGrath <roland@duality.gnu.ai.mit.edu>
Roland McGrath [Mon, 20 Feb 1995 09:50:50 +0000 (09:50 +0000)]
Mon Feb 20 04:04:57 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>

* config.h.in [HAVE_ELF || HAVE_GNU_LD]: Define HAVE_WEAK_SYMBOLS.

* stdlib/strtod.c (PASTE, PASTE1): New helper macros; use these in
  access to float.h macros.

* misc/efgcvt.c: New file.
* misc/Makefile (routines): Add efgcvt.

29 years ago(routines): Add efgcvt.
Roland McGrath [Mon, 20 Feb 1995 09:03:37 +0000 (09:03 +0000)]
(routines): Add efgcvt.

29 years agoSun Feb 19 20:10:43 1995 Brendan Kehoe <brendan@zen.org>
Brendan Kehoe [Mon, 20 Feb 1995 08:49:29 +0000 (08:49 +0000)]
Sun Feb 19 20:10:43 1995  Brendan Kehoe  <brendan@zen.org>

* sysdeps/sparc/mul.S: Renamed to `dotmul.S'.
        * sysdeps/sparc/Makefile (routines): Reference `dotmul.S', not `mul.S',
        to avoid a misreference that would override sysdeps/generic/mul.c.
* sysdeps/sparc/Dist: Likewise.

29 years ago * sysdeps/sparc/Makefile (routines): Reference `dotmul.S', not `mul.S', ...
Brendan Kehoe [Mon, 20 Feb 1995 01:10:10 +0000 (01:10 +0000)]
    * sysdeps/sparc/Makefile (routines): Reference `dotmul.S', not `mul.S',         to avoid a misreference that would override sysdeps/generic/mul.c.

29 years agoSun Feb 19 17:46:13 1995 Roland McGrath <roland@duality.gnu.ai.mit.edu>
Roland McGrath [Mon, 20 Feb 1995 01:08:14 +0000 (01:08 +0000)]
Sun Feb 19 17:46:13 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>

* posix/Makefile (aux): Add environ.
* posix/environ.c: New file.
* sysdeps/unix/sparc/start.c: Remove __environ definition.
* sysdeps/unix/start.c: Likewise.
* sysdeps/unix/sysv/irix4/start.c: Likewise.
* sysdeps/mach/hurd/start.c: Likewise.
* sysdeps/mach/start.c: Likewise.
* sysdeps/stub/start.c: Likewise.

* sysdeps/unix/make_errlist.c: In produced program, test
  HAVE_WEAK_SYMBOLS instead of HAVE_GNU_LD.
* sysdeps/unix/sysv/sysv4/dup2.c: Fix #include of renamed file.
   Remove extra weak alias.

* sysdeps/unix/sysv/sysv4/sigaltstack.S: Fix unsquashed file name
  in #include.

* libc-symbols.h: Put comment around ^L to pacify Solaris as.

* sysdeps/posix/Makefile (cded-objdir-includes): New variable
  replaced cded-objdir-CPPFLAGS; transform $(+includes) instead of
  $(CPPFLAGS).
(mk-stdiolim): Use it instead.

* mach/mach_init.c (__vm_page_size): Make it initialized.  It does
  not work to make a weak alias to a bss symbol.

* stdio/Makefile (distribute): Remove mpn-copy.mk; add gen-mpn-copy.
(tests): Add test-fwrite.
* stdio/test-fwrite.c: New file.

* stdlib/stdlib.h [__USE_GNU]: Declare strtof, strtold, __strtof,
  __strtold.

* Makefile (autoconf-it): New canned sequence.  Do cvs commit if
  there is a CVS directory.
(configure, %/configure): Use $(autoconf-it) for cmds.
* Make-dist: Likewise.
* Makerules ($(gpl2lgpl)): Likewise.
  inlines cause trouble for files defining global register variables.
* stdio/vfprintf.c: Set PREC to zero for %. without following digit.

29 years ago(cded-objdir-includes): New variable replaced cded-objdir-CPPFLAGS; transform $(...
Roland McGrath [Sun, 19 Feb 1995 22:45:57 +0000 (22:45 +0000)]
(cded-objdir-includes): New variable replaced cded-objdir-CPPFLAGS; transform $(+includes) instead of $(CPPFLAGS). (mk-stdiolim): Use it instead.

29 years agoRecognize lynx* as lynxos.
Doug Evans [Sat, 18 Feb 1995 17:18:21 +0000 (17:18 +0000)]
Recognize lynx* as lynxos.

29 years agoUpdated from ../gpl2lgpl.sed /home/gd/gnu/lib/getopt.c
Roland McGrath [Sat, 18 Feb 1995 03:51:45 +0000 (03:51 +0000)]
Updated from ../gpl2lgpl.sed /home/gd/gnu/lib/getopt.c

29 years agoinitial import
Roland McGrath [Sat, 18 Feb 1995 01:27:10 +0000 (01:27 +0000)]
initial import