platform/upstream/glibc.git
28 years agoUpdated from BIND-4.9.3-BETA27.
Roland McGrath [Thu, 7 Dec 1995 19:37:55 +0000 (19:37 +0000)]
Updated from BIND-4.9.3-BETA27.

28 years ago(__select): Still clear the user's bits for an fd when SELECT_RETURNED isn't set...
Miles Bader [Thu, 7 Dec 1995 03:03:31 +0000 (03:03 +0000)]
(__select):   Still clear the user's bits for an fd when SELECT_RETURNED isn't set.   Only clear bits in the user's fdsets -- those needing to be set should be     already.   Use SELECT_ALL in appropiate places. (SELECT_ALL): New macro.

28 years ago(__select): Swap size args to mach_msg.
Miles Bader [Wed, 6 Dec 1995 23:45:07 +0000 (23:45 +0000)]
(__select): Swap size args to mach_msg.

28 years ago(NBBY): New macro.
Roland McGrath [Wed, 6 Dec 1995 14:13:00 +0000 (14:13 +0000)]
(NBBY): New macro.

28 years ago(_GNU_GLOB_INTERFACE_VERSION): New macro.
Roland McGrath [Wed, 6 Dec 1995 14:10:23 +0000 (14:10 +0000)]
(_GNU_GLOB_INTERFACE_VERSION): New macro.

28 years agoRecognize aof in the OS field.
erich [Wed, 6 Dec 1995 11:57:46 +0000 (11:57 +0000)]
Recognize aof in the OS field.

28 years agoTue Dec 5 14:00:17 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu> cvs/libc-951206
Roland McGrath [Wed, 6 Dec 1995 10:00:22 +0000 (10:00 +0000)]
Tue Dec  5 14:00:17 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* misc/Makefile (headers): Add error.h, err.h.
(routines): Add error, err.
(gpl2lgpl): New variable.
* misc/err.c: New file.
* misc/err.h: New file.
* misc/error.c, misc/error.h: New files.

* sysdeps/mach/hurd/ioctl.c: Fix typo in last change.

* Makeconfig (+link): Translate libc% from $^, not just libc.a.
(link-libc): Append $(libc.so-version) to libc.so.
(built-program-cmd): Fix comma usage.
* Makerules [libc.so-version] (libc.so$(libc.so-version)): Make a
symlink to libc.so in the build directory.
* Rules ($(others) $(tests)): Depend on the library that appears
in $(link-libc).
(%.out): Use $(built-program-cmd) in commands.

* posix/unistd.h [__USE_MISC]: Declare brk, sbrk.

* sysdeps/generic/setenv.c: Added canonical portability cruft.
(setenv): Use realloc on LAST_ENVIRON instead of always copying.
(unsetenv): New function.
* stdlib/stdlib.h [__USE_BSD]: Declare unsetenv.
* sysdeps/generic/putenv.c: Rewritten using setenv and unsetenv.

* libio/Makefile (routines): Remove iofscanf, add iopopen, pclose.

28 years ago(transformbasename): Fix misspelling in initialization. cvs/make-3-74-1 cvs/make-3-74-2 cvs/make-3-74-3
Paul Eggert [Wed, 6 Dec 1995 09:44:53 +0000 (09:44 +0000)]
(transformbasename): Fix misspelling in initialization.

28 years agoUpdated from ../gpl2lgpl.sed /home/gd/gnu/lib/error.c
Roland McGrath [Wed, 6 Dec 1995 00:14:32 +0000 (00:14 +0000)]
Updated from ../gpl2lgpl.sed /home/gd/gnu/lib/error.c

28 years agoTue Dec 5 02:27:32 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
Roland McGrath [Tue, 5 Dec 1995 03:35:55 +0000 (03:35 +0000)]
Tue Dec  5 02:27:32 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>

* libio/Makefile [routines]: Remove iofscanf, add iopopen, pclose.

* libio/iofscanf.c: Remove file.

* libio/iogetdelim.c (_IO_getdelim): Correct stupid bug at string
        termination.

* libio/iopopen.c: New file from GNU libio.

* libio/memstream.c: Fixed bug in fclose handling.  Instead of
providing a close callback we need a finish callback.

* libio/pclose.c: New file.  Derived from popen.c in GNU libio.

* posix/gnu/types.h: Fixed typo.

* stdio-common/errnobug.c: fputs returns EOF in error case.  Do
not test for != 0.

* stdio-common/printf-parse.h (parse_one_spec): Do not force
padding with ' ' if precision is given.  Fix by HJ Lu.

* stdio-common/printf_fp.c: Fix comment.

* stdio-common/tfformat.c, stdio-common/tiformat.c,
stdio-common/tstdiomisc.c: New files from GNU libio test suite.

* stdio-common/tstgetln.c: Provide ssize_t type when testing
libio.

* stdio-common/vfprintf.c (outchar): Use PUTC instead of putc.
(vfprintf): Cleasr args_type array before using it.
When printing 0 as an integer with precision 0 nothing must be
written for the number.
Based on patch by HJ Lu.

* stdio-common/vfscanf.c: Remove fixed input buffer.  Now we
        have a dynamically extended buffer.

* stdlib/strtod.c: Merge with version in Linux libc.  This fixes
        some bugs with handling of very small numbers and has different
        solution for formaer patches.

* sysdeps/i386/i586/add_n.S, sysdeps/i386/i586/sub_n.S: Rename
        macros r1 and r2 to t1, and t2 resp.  This is necessary because
        glibc headers also define r1.
Tue Dec  5 02:27:32 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>

* libio/Makefile [routines]: Remove iofscanf, add iopopen, pclose.

* libio/iofscanf.c: Remove file.

* libio/iogetdelim.c (_IO_getdelim): Correct stupid bug at string
        termination.

* libio/iopopen.c: New file from GNU libio.

* libio/memstream.c: Fixed bug in fclose handling.  Instead of
providing a close callback we need a finish callback.

* libio/pclose.c: New file.  Derived from popen.c in GNU libio.

* posix/gnu/types.h: Fixed typo.

* stdio-common/errnobug.c: fputs returns EOF in error case.  Do
not test for != 0.

* stdio-common/printf-parse.h (parse_one_spec): Do not force
padding with ' ' if precision is given.  Fix by HJ Lu.

* stdio-common/printf_fp.c: Fix comment.

* stdio-common/tfformat.c, stdio-common/tiformat.c,
stdio-common/tstdiomisc.c: New files from GNU libio test suite.

* stdio-common/tstgetln.c: Provide ssize_t type when testing
libio.

* stdio-common/vfprintf.c (outchar): Use PUTC instead of putc.
(vfprintf): Cleasr args_type array before using it.
When printing 0 as an integer with precision 0 nothing must be
written for the number.
Based on patch by HJ Lu.

* stdio-common/vfscanf.c: Remove fixed input buffer.  Now we
        have a dynamically extended buffer.

* stdlib/strtod.c: Merge with version in Linux libc.  This fixes
        some bugs with handling of very small numbers and has different
        solution for formaer patches.

* sysdeps/i386/i586/add_n.S, sysdeps/i386/i586/sub_n.S: Rename
        macros r1 and r2 to t1, and t2 resp.  This is necessary because
        glibc headers also define r1.

28 years agoMon Dec 4 12:10:28 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Mon, 4 Dec 1995 19:00:50 +0000 (19:00 +0000)]
Mon Dec  4 12:10:28 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* stdlib/gen-mpn-copy (translations): Updated for new layout in
GMP 1.910.

* malloc/malloc.c (__malloc_initialize): Renamed from initialize;
made global.
(malloc): Caller changed.
* malloc/realloc.c (realloc): Call __malloc_initialize if
necessary, before checking hook.
* malloc/malloc.h: Declare __malloc_initialize.

* sysdeps/mach/hurd/ioctl.c: For IOC_VOID request, send ARG itself
as integer_t arg in RPC.

28 years agoUpdated from ../=mpn/gmp-1.910
Roland McGrath [Mon, 4 Dec 1995 18:37:56 +0000 (18:37 +0000)]
Updated from ../=mpn/gmp-1.910

28 years ago * config.guess: Recognize HP model 816 machines as having a PA1.1...
Linda A. Walsh [Mon, 4 Dec 1995 18:22:22 +0000 (18:22 +0000)]
    * config.guess: Recognize HP model 816 machines as having         a PA1.1 processor.

28 years agoFor IOC_VOID request, send ARG itself as integer_t arg in RPC.
Roland McGrath [Mon, 4 Dec 1995 17:10:03 +0000 (17:10 +0000)]
For IOC_VOID request, send ARG itself as integer_t arg in RPC.

28 years ago* sysdeps/mach/hurd/brk.c (DATA_SIZE): Bump to 128MB. cvs/libc-951203 cvs/libc-951204
Roland McGrath [Sun, 3 Dec 1995 10:00:22 +0000 (10:00 +0000)]
* sysdeps/mach/hurd/brk.c (DATA_SIZE): Bump to 128MB.

(_hurd_set_brk): Try to allocate more space when we run out.
* sysdeps/generic/sbrk.c: If __curbrk is zero, call __brk with
zero and examine it again.
* sysdeps/unix/sysv/linux/i386/brk.c: New file.
* sysdeps/unix/sysv/linux/i386/brk.S: File removed.
* sysdeps/unix/sysv/linux/i386/sbrk.S: File removed.
* sysdeps/unix/sysv/linux/dl-sysdep.c: New file.

28 years agoSat Dec 2 03:47:27 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu> cvs/libc-951202
Roland McGrath [Sat, 2 Dec 1995 10:00:20 +0000 (10:00 +0000)]
Sat Dec  2 03:47:27 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* sysdeps/unix/sysv/linux/i386/sbrk.S: File removed.

* sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_SYSDEP_INIT]:
Invoke this macro before calling DL_MAIN.

* malloc/malloc.c (malloc): Do initialization here, before
checking the hook.
(_malloc_internal): Don't do it here.

28 years ago(_dl_sysdep_start) [DL_SYSDEP_INIT]: Invoke this macro before calling DL_MAIN.
Roland McGrath [Sat, 2 Dec 1995 09:03:14 +0000 (09:03 +0000)]
(_dl_sysdep_start) [DL_SYSDEP_INIT]: Invoke this macro before calling DL_MAIN.

28 years ago* config.guess: Recognize Pentium under SCO. cvs/libc-951201
Per Bothner [Thu, 30 Nov 1995 21:59:48 +0000 (21:59 +0000)]
* config.guess:  Recognize Pentium under SCO.

28 years agoWed Nov 29 12:30:50 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu> cvs/libc-951130
Roland McGrath [Thu, 30 Nov 1995 04:49:04 +0000 (04:49 +0000)]
Wed Nov 29 12:30:50 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* libio/vsnprintf.c (__vsnprintf): Define as alias.
* libio/iovsscanf.c (__vsscanf): Define as alias.
* asprintf.c: Remove libio adaptation code added by drepper.
* dprintf.c: Likewise.
* printf.c: Likewise.
* scanf.c: Likewise.
* snprintf.c: Likewise.
* sprintf.c: Likewise.
* sscanf.c: Likewise.
* vprintf.c: Likewise.
* stdio-common/vfscanf.c [USE_IN_LIBIO] (__vfscanf): New wrapper
function.
(vfscanf): Define unconditionally.

* sysdeps/i386/dl-machine.h (elf_machine_rel): If SYM is null, use
zero for value.

* misc/getpass.c: Write a newline after reading the unechoed
password.

28 years agoMon Nov 27 19:24:18 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu> cvs/libc-951128 cvs/libc-951129
Roland McGrath [Tue, 28 Nov 1995 10:00:22 +0000 (10:00 +0000)]
Mon Nov 27 19:24:18 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* posix/Makefile (routines): Add getsid.
* sysdeps/unix/sysv/linux/getsid.S: New file.
* sysdeps/mach/hurd/getsid.c: New file.
* sysdeps/stub/getsid.c: New file.
* posix/unistd.h [__USE_GNU]: Declare getsid.

28 years ago* sysdeps/unix/sysv/linux/sys/mman.h: Add prototypes for new functions cvs/libc-951127
Roland McGrath [Mon, 27 Nov 1995 10:00:22 +0000 (10:00 +0000)]
* sysdeps/unix/sysv/linux/sys/mman.h: Add prototypes for new functions

28 years agoSun Nov 26 12:44:38 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Sun, 26 Nov 1995 17:45:08 +0000 (17:45 +0000)]
Sun Nov 26 12:44:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

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

28 years agoSat Nov 25 02:48:47 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
Roland McGrath [Sun, 26 Nov 1995 17:37:11 +0000 (17:37 +0000)]
Sat Nov 25 02:48:47 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>

* assert/assert-perr.c, assert/assert.c, inet/rcmd.c,
malloc/mcheck.c, malloc/vm-limit.c, posix/getconf.c, posix/id.c,
resolv/herror.c, sunrpc/auth_unix.c, sunrpc/clnt_perr.c,
sunrpc/clnt_raw.c, sunrpc/get_myaddr.c, sunrpc/pmap_clnt.c,
sunrpc/pmap_rmt.c, sunrpc/portmap.c, sunrpc/rpc_main.c,
sunrpc/rpc_parse.c, sunrpc/rpc_scan.c, sunrpc/rpc_util.c,
sunrpc/rpcinfo.c, sunrpc/svc_simple.c, sunrpc/svc_tcp.c,
sunrpc/svc_udp.c, time/zdump.c, time/zic.c: Mark translatable
strings.
Sat Nov 25 02:48:47 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>

* assert/assert-perr.c, assert/assert.c, inet/rcmd.c,
malloc/mcheck.c, malloc/vm-limit.c, posix/getconf.c, posix/id.c,
resolv/herror.c, sunrpc/auth_unix.c, sunrpc/clnt_perr.c,
sunrpc/clnt_raw.c, sunrpc/get_myaddr.c, sunrpc/pmap_clnt.c,
sunrpc/pmap_rmt.c, sunrpc/portmap.c, sunrpc/rpc_main.c,
sunrpc/rpc_parse.c, sunrpc/rpc_scan.c, sunrpc/rpc_util.c,
sunrpc/rpcinfo.c, sunrpc/svc_simple.c, sunrpc/svc_tcp.c,
sunrpc/svc_udp.c, time/zdump.c, time/zic.c: Mark translatable
strings.

28 years agoSun Nov 26 02:00:02 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
Roland McGrath [Sun, 26 Nov 1995 17:32:10 +0000 (17:32 +0000)]
Sun Nov 26 02:00:02 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>

* misc/syslog.c (vsyslog) [USE_IN_LIBIO]: Adapted for libio.

Thu Nov 23 02:21:55 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>

* sysdeps/unix/sysv/linux/{mlock,munlock,mlockall,munlockall}.S:
New files.
* sysdeps/unix/sysv/linux/mman.h: Add prototypes for new functions
mlock, munlock, mlockall, and munlockall.

28 years agoThu Nov 23 18:26:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu> cvs/libc-951124 cvs/libc-951125 cvs/libc-951126
Roland McGrath [Fri, 24 Nov 1995 10:00:21 +0000 (10:00 +0000)]
Thu Nov 23 18:26:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* configure.in (--enable-libio): Set $stdio based on $enableval,
not always to libio.

Thu Nov 23 18:06:48 1995  Richard Stallman  <rms@gnu.ai.mit.edu>

* malloc/malloc.c (_malloc_internal): Can't use
get_contiguous_space when the heap info table
will be growing.  Account for new contiguous space in _heaplimit.

28 years agoWed Nov 22 12:37:39 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu> cvs/libc-951123
Roland McGrath [Thu, 23 Nov 1995 04:53:06 +0000 (04:53 +0000)]
Wed Nov 22 12:37:39 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* sysdeps/unix/sysv/linux/i386/sysdep.S (_errno): Define as alias
for errno.

* stdio-common/vfprintf.c [USE_IN_LIBIO] (vfprintf): Define as
alias for _IO_vfprintf.

* sysdeps/unix/sysv/linux/sockaddrcom.h: File removed.

* sysdeps/unix/sysv/linux/i386/init-first.c (init): Use
__fpu_control instead of ___fpu_control.
* sysdeps/unix/sysv/linux/i386/ieee_fpu.c
(___fpu_control): Renamed to __fpu_control.
* sysdeps/unix/sysv/linux/i386/fpu_control.h: Likewise.
* sysdeps/unix/sysv/linux/i386/fpu_control.c: Likewise.

* elf/dl-minimal.c: New file.
* elf/Makefile (rtld-routines): Add dl-minimal.
* elf/rtld.c (__dgettext, __assert_fail, __assert_perror_fail):
Functions moved to dl-minimal.c.
* sysdeps/mach/hurd/dl-sysdep.c (malloc, free, realloc,
sigjmp_save, longjmp): Likewise.

* sysdeps/unix/sysv/linux/i386/brk.S (__curbrk): Always initialize
to &_end, regardless of PIC.

* stdio-common/vfscanf.c (__vfscanf): Fix arg name in defn.

28 years agoTue Nov 21 14:12:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu> cvs/libc-951122
Roland McGrath [Wed, 22 Nov 1995 10:00:23 +0000 (10:00 +0000)]
Tue Nov 21 14:12:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* malloc/malloc.c (align): Don't check contiguity and call abort.

* hurd/hurdsig.c (post_reply): Function removed.
(abort_thread, abort_all_rpcs, _hurdsig_abort_rpcs): Don't call it.
Take single callback fn arg instead of reply port and type.
(_hurd_internal_post_signal): Callers changed.
Cache reply stub fn ptr in local var before UNTRACED might be changed.

* sysdeps/mach/hurd/mmap.c: Cope with a null write memobj for
PROT_READ|PROT_WRITE copy mapping.  Pass a proper vm_inherit_t to
vm_map.

* elf/rtld.c (_dl_start): For --list, do output and exit before
relocating.

28 years agoMon Nov 20 16:19:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu> cvs/libc-951121
Roland McGrath [Tue, 21 Nov 1995 10:01:17 +0000 (10:01 +0000)]
Mon Nov 20 16:19:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* intl/Makefile [gettext-srcdir]: Rewrote copying rules to only
get .c and .h files.

* malloc/malloc.c (align): Use abort instead of assert.

28 years agoSun Nov 19 18:23:07 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu> cvs/libc-951120
Roland McGrath [Mon, 20 Nov 1995 10:01:12 +0000 (10:01 +0000)]
Sun Nov 19 18:23:07 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* Makeconfig (+includes): Add $($(stdio)-include).
(libio-include): New variable.

* stdlib/strtod.c: Put weak_symbol after function defn.
* stdlib/strtol.c: Likewise.

* configure.in (--enable-libio): If not present, set $stdio to
"default".  Move stdio/libio check to end, so sysdeps fragments
can affect it.  Reset $stdio to "stdio" if it's "default".
* sysdeps/unix/sysv/linux/configure: New file.

28 years agoSat Nov 18 16:46:01 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
Roland McGrath [Mon, 20 Nov 1995 03:48:11 +0000 (03:48 +0000)]
Sat Nov 18 16:46:01 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>

* libio/Makefile, libio/cleanup.c, libio/clearerr.c, libio/feof.c,
libio/ferror.c, libio/fgetc.c, libio/filedoalloc.c, libio/fileno.c,
libio/fileops.c, libio/fputc.c, libio/freopen.c, libio/fseek.c,
libio/genops.c, libio/getc.c, libio/getchar.c, libio/iofclose.c,
libio/iofdopen.c, libio/iofflush.c, libio/iofgetpos.c, libio/iofgets.c,
libio/iofopen.c, libio/iofprintf.c, libio/iofputs.c, libio/iofread.c,
libio/iofscanf.c, libio/iofsetpos.c, libio/ioftell.c, libio/iofwrite.c,
libio/iogetdelim.c, libio/iogetline.c, libio/iogets.c, libio/iolibio.h,
libio/iopadn.c, libio/ioprims.c, libio/ioputs.c, libio/ioseekoff.c,
libio/ioseekpos.c, libio/iosetbuffer.c, libio/iosetvbuf.c,
libio/iosprintf.c, libio/ioungetc.c, libio/iovsprintf.c,
libio/iovsscanf.c, libio/libio.h, libio/libioP.h, libio/putc.c,
libio/putchar.c, libio/rewind.c, libio/setbuf.c, libio/setlinebuf.c,
libio/stdfiles.c, libio/stdio.c, libio/stdio.h, libio/strfile.h,
libio/strops.c, libio/vasprintf.c, libio/vscanf.c, libio/vsnprintf.c:
New files.  Slightly modified version from Linux libc.

* libio/memstream.c, libio/vdprintf.c: New files for functions not
(yet) part of GNU libio.

* libio/iofopncook.c: Implementation of `fopencookie', mainly written
by Per Bothner.

* stdio-common/getline.c: Adapted to libio.
* stdio-common/snprintf.c: Adapted to libio.
* stdio-common/vfprintf.c: Adapted to libio.
* stdio-common/vfscanf.c: Adapted to libio.
* sysdeps/posix/tempname.c: Adapted to libio.

28 years agoFri Nov 17 17:57:00 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu> cvs/libc-951118 cvs/libc-951119
Roland McGrath [Sat, 18 Nov 1995 10:00:22 +0000 (10:00 +0000)]
Fri Nov 17 17:57:00 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* sysdeps/generic/Makefile (make_siglist): Add missing backslash.

* sysdeps/generic/dl-sysdep.c (_dl_sysdep_start_cleanup): New
function.

* hurd/hurdfault.c: Replace __libc_fatal calls with assert_perror.
(_hurdsig_fault_init): Remove #if 0 from setting exception port.
Insert send right for SIGEXC before thread_set_special_port.
* hurd/hurdsig.c: Replace __libc_fatal calls with assert_perror.
(_hurdsig_init): Remove #if 0 from setting exception port.

* sysdeps/mach/hurd/ptrace.c (ptrace: PTRACE_CONT): Use
HURD_MSGPORT_RPC macro.

29 years agoThu Nov 16 06:07:49 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu> cvs/libc-951117
Roland McGrath [Fri, 17 Nov 1995 02:33:47 +0000 (02:33 +0000)]
Thu Nov 16 06:07:49 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup): New
function.
(_dl_sysdep_start): Move cleanup code there.

* Makeconfig (default-rpath): New variable.
(link-libc): Use it.
* elf/Makefile (ld.so): Pass -rpath=$(default-rpath).
* elf/rtld.c (_dl_rpath): New variable.
(_dl_start): Set it from rtld_map's DT_RPATH.
Call _dl_setup_hash on rtld_map.
(dl_main): Cache address of _exit in variable before relocating,
and use that in later calls.  Call _dl_sysdep_start_cleanup before
relocating.  Keep track of dependency order while loading; remove
rtld_map from chain, and reinsert in proper order if there is a
dependency on it.

* sysdeps/generic/Makefile (make_siglist): Pass
-DSIGNUM_H=... with config's signum.h location.
* sysdeps/generic/make_siglist.c: Include SIGNUM_H to define
signal numbers.
(HAVE_STRSIGNAL, HAVE_PSIGNAL): Define these before including signame.c
(main): Deansideclize output.

* elf/dl-load.c (_dl_map_object): Use _dl_rpath variable in place
of DEFAULT_RPATH macro.
* elf/Makefile: Undo last change.

* sysdeps/mach/hurd/dl-sysdep.c (free): Don't abort, just nop.

29 years ago* elf/dl-lookup.c (_dl_lookup_symbol): Undefined symbol is no cvs/libc-951116
Roland McGrath [Thu, 16 Nov 1995 02:37:06 +0000 (02:37 +0000)]
* elf/dl-lookup.c (_dl_lookup_symbol): Undefined symbol is no

error if weak.

* elf/Makefile (default-rpath): New variable.
(CPPFLAGS): Append -DDEFAULT_RPATH=....
* elf/dl-load.c (_dl_map_object): Use DEFAULT_RPATH instead of
hard-coded "/lib:/usr/lib".

29 years agoWed Nov 15 19:22:07 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Thu, 16 Nov 1995 00:44:18 +0000 (00:44 +0000)]
Wed Nov 15 19:22:07 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* sysdeps/mach/hurd/dl-sysdep.c: Include _itoa.h from stdio-common
instead of stdio.
(_dl_sysdep_start): If passed user entry is zero and
EXEC_STACK_ARGS flag set, reset user entry to &_start.

* elf/rtld.c (dl_main): Only call _dl_setup_hash if there is a
DT_HASH element.

* libc-symbols.h [HAVE_ELF] (symbol_set_declare): Gratuitously
repeat weak decl using weak_symbol macro, in case using broken GCC
(<2.8).

Wed Nov 15 18:49:55 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>

* sysdeps/i386/isnanl.c: New file.
* sysdeps/i386/isinfl.c: New file.

29 years agoTue Nov 14 18:44:21 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu> cvs/libc-951115
Roland McGrath [Wed, 15 Nov 1995 00:27:30 +0000 (00:27 +0000)]
Tue Nov 14 18:44:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* malloc/free.c (free): Moved null and aligned_blocks checks
inside _free_internal.

29 years agoMon Nov 13 15:23:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu> cvs/libc-951114
Roland McGrath [Tue, 14 Nov 1995 10:00:21 +0000 (10:00 +0000)]
Mon Nov 13 15:23:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* malloc/malloc.c (morecore): Fix inverted test in allocating new
info table.

* malloc/malloc.c (align): Fix assertion.

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

* libc-symbols.h: Use __attribute__ for GCC 2.8, not 2.7.

* malloc/malloc.h [emacs] (emacs_loser_valloc): Macro removed.
(valloc): Protect decl with [! (_MALLOC_INTERNAL && emacs)].

29 years ago* malloc/malloc.c (align): Assert that space for alignment cvs/libc-951111 cvs/libc-951112 cvs/libc-951113
Roland McGrath [Sat, 11 Nov 1995 10:01:11 +0000 (10:01 +0000)]
* malloc/malloc.c (align): Assert that space for alignment

adjustment is same original space.

* hurd/hurdprio.c (_hurd_priority_which_map): Cast vm_deallocate
arg to vm_address_t.

29 years agoFri Nov 10 14:15:21 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Fri, 10 Nov 1995 20:38:31 +0000 (20:38 +0000)]
Fri Nov 10 14:15:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* hurd/hurdsig.c (_hurd_internal_post_signal): For SIGNO == 0,
skip straight to pending check.  When UNTRACED, resume process
from suspension first.

* intl/Makefile (headers): New variable, libintl.h.
[gettext-srcdir]: New rules to copy source from $(gettext-srcdir)/intl.
* configure.in: Check for --with-gettext arg.

Fri Nov 10 13:51:30 1995  Richard Stallman  <rms@gnu.ai.mit.edu>

* malloc/malloc.c (get_contiguous_space): New function.
(morecore): Rewrite allocating new malloc info table.
(_malloc_internal): Use get_contiguous_space.

Fri Nov 10 13:03:40 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* hurd/hurdexec.c (_hurd_exec): If exec'ing self, pass
_hurd_msgport to be destroyed.

* Makerules (installed-libcs): Filter out %_pic.a.

* hurd/hurdinit.c (_hurd_proc_init): When traced, use msg_sig_post
to our msgport to take SIGTRAP, instead of _hurd_raise_signal.

* hurd/Makefile (user-interfaces): Add hurd/process_request.

29 years agoWed Nov 8 16:31:25 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu> cvs/libc-951109 cvs/libc-951110
Roland McGrath [Thu, 9 Nov 1995 10:00:21 +0000 (10:00 +0000)]
Wed Nov  8 16:31:25 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* termios/Makefile (headers): Add sys/ttychars.h.
* termios/sys/ttychars.h: New file, incorporated from 4.4BSD-Lite
for compatibility.

* signal/signal.h [__USE_BSD] (sig_t): New typedef.

Wed Nov  8 15:12:47 1995  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>

* sysdeps/mach/hurd/ptrace.c (ptrace) [PTRACE_TRACEME]: Notify the
proc server that we are now traced.

29 years ago[__USE_BSD] (sig_t): New typedef.
Roland McGrath [Wed, 8 Nov 1995 21:31:12 +0000 (21:31 +0000)]
[__USE_BSD] (sig_t): New typedef.

29 years ago(ptrace) [PTRACE_TRACEME]: Notify the proc server that we are now traced.
Thomas Bushnell, BSG [Wed, 8 Nov 1995 20:12:30 +0000 (20:12 +0000)]
(ptrace) [PTRACE_TRACEME]: Notify the proc server that we are now traced.

29 years ago* elf/Makefile (ldd): Make it executable. cvs/libc-951108
Roland McGrath [Wed, 8 Nov 1995 02:28:15 +0000 (02:28 +0000)]
* elf/Makefile (ldd): Make it executable.

* Makeconfig (config-LDFLAGS): Find dynamic linker in $(slibdir).

* Makeconfig (slibdir): New variable.
* Makerules (install): Install libc.so in $(slibdir).
* elf/Makefile (install-others): Install ld.so and ld-linux.so.1
in $(slibdir).

29 years agoTue Nov 7 12:29:46 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Tue, 7 Nov 1995 21:46:52 +0000 (21:46 +0000)]
Tue Nov  7 12:29:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* elf/linux-compat.c: New file.
* elf/Makefile (distribute): Add linux-compat.c.
(generated): Add librtld.so.
[$(config-os)=linux*] (extra-objs): Add linux-compat.so.
[$(config-os)=linux*] (extra-objs): Add ld-linux.so.1.
(librtld.so): New target.
(ld.so, ld-linux.so.1): Make from librtld.so.

* elf/rtld.c (dl_main): Instead of weak call to _dl_compat_init,
call our own DT_INIT if we have one (and then clear it).
(__dgettext): New weak function.

* intl/localealias.c (read_alias_file): Avoid sprintf; use memcpy
by hand instead.

* sysdeps/generic/_strerror.c (_strerror_internal): Use _itoa
instead of snprintf.

* sysdeps/mach/_strerror.c (_strerror_internal): Don't write
BUF[BUFLEN].

* elf/rtld.c (rtld_map): New static variable.
(_dl_start): Use a differently named local BOOTSTRAP_MAP for the
bootstrapping.  Then copy data into `rtld_map'.
(dl_main): Finish filling in rtld_map and link it into the chain,
instead of allocating a new structure.
(dl_main): Call _dl_compat_init if it is defined (use weak ref).

* elf/dlsym.c: Fix last change: move REF out of `doit'.

control.
using it.

and cwdir ports.
functions.
these.
$(libdir)(rtld-installed-name).

leading zeroes.

in the rhs.
pattern rule.

never know.
(fork): Use symbol_set_* macros for _hurd_fork_locks.
* sysdeps/unix/sysv/sysv4/linux/i386/sysdep.S (__syscall_error):
  instead of unix/sysv.

-dynamic-linker.

(__printf_fp): Last arg ARGS is now `const void **const';

locale/C-ctype.c.
* sysdeps/mach/hurd/sigsuspend.c: Likewise.
* sysdeps/mach/hurd/mips/sigreturn.c: Likewise.
alias gethostname.
setitmr
setpgrp
(_S_msg_get_exec_flags, _S_msg_set_exec_flags,
(abort_thread, abort_rpcs): Take same new arg and pass it through.

29 years agoMon Nov 6 16:20:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu> cvs/libc-951107
Roland McGrath [Tue, 7 Nov 1995 10:00:21 +0000 (10:00 +0000)]
Mon Nov  6 16:20:14 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* elf/dlsym.c: Return the proper value, not just the defining
object's loadbase.

29 years ago* stdio-common/vfprintf.c (%c): Count the character itself towards cvs/libc-951106
Roland McGrath [Mon, 6 Nov 1995 10:00:20 +0000 (10:00 +0000)]
* stdio-common/vfprintf.c (%c): Count the character itself towards

the field width in all cases.

29 years agoSun Nov 5 16:09:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Sun, 5 Nov 1995 21:13:25 +0000 (21:13 +0000)]
Sun Nov  5 16:09:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* sysdeps/mach/hurd/getpriority.c (getpriority): Cast
__vm_deallocate arg to vm_address_t.

29 years agoFri Nov 3 17:27:49 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu> cvs/libc-951104 cvs/libc-951105
Roland McGrath [Fri, 3 Nov 1995 22:42:06 +0000 (22:42 +0000)]
Fri Nov  3 17:27:49 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* sysdeps/mach/hurd/sendto.c: Don't pass BINDING arg to
socket_create_address.
* sysdeps/mach/hurd/connect.c: Likewise.
* sysdeps/mach/hurd/bind.c: Likewise.

* hurd/hurdprio.c (_hurd_priority_which_map): Pass threadwaits
args to proc_getprocinfo.
* sysdeps/mach/hurd/getpriority.c: Likewise.

* hurd/hurdmsg.c (_S_msg_report_wait): New stub function.

29 years agoThu Nov 2 19:24:37 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu> cvs/libc-951103
Roland McGrath [Fri, 3 Nov 1995 10:00:20 +0000 (10:00 +0000)]
Thu Nov  2 19:24:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* sysdeps/unix/sysv/linux/i386/sysdep.S (errno): Define as common.

29 years ago* sysdeps/mach/hurd/getpriority.c (getpriority): Pass cvs/libc-951101 cvs/libc-951102
Roland McGrath [Wed, 1 Nov 1995 10:00:20 +0000 (10:00 +0000)]
* sysdeps/mach/hurd/getpriority.c (getpriority): Pass

PI_FETCH_TASKINFO to proc_getprocinfo and through
_hurd_priority_which_map.

* sysdeps/mach/hurd/setpriority.c (setpriority): Pass new arg to
_hurd_priority_which_map.
* hurd/hurdprio.c (_hurd_priority_which_map): New arg PI_FLAGS,
passed through to proc_getprocinfo RPC.
* hurd/hurd/resource.h: Add PI_FLAGS arg in decl.

29 years agoTue Oct 31 00:07:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu> cvs/libc-951031
Roland McGrath [Tue, 31 Oct 1995 06:54:40 +0000 (06:54 +0000)]
Tue Oct 31 00:07:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* sysdeps/mach/hurd/group_member.c: New file.
* sysdeps/generic/group_member.c: New file.

* Makerules (lib-noranlib): Don't depend on $(install-lib).
(others): Do.
* extra-lib.mk: Fix test of $(lib)-no-lib-dep.

Mon Oct 30 12:33:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* Rules (others): Depend on $(extra-objs).

* posix/unistd.h [__USE_GNU]: Declare group_member, __group_member.
* posix/Makefile (routines): Add group_member.

* sysdeps/posix/euidaccess.c: New file, adapted from fileutils.

* sysdeps/unix/sysv/linux/i386/sigaction.c: Tighten constraint for
SIG operand in asm so it must be a register.
Add dead return to quiet gcc warning.

* Makerules (sysd-rules): Write a defn for sysd-rules-done.
[! sysd-rules-done]: Inhibit deps.

29 years agoThu Oct 26 23:11:11 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
Roland McGrath [Mon, 30 Oct 1995 16:40:52 +0000 (16:40 +0000)]
Thu Oct 26 23:11:11 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>

* sysdeps/unix/sysv/linux/poll.c: Don't define as stub.  Use
simulation of system call using select.

* sysdeps/unix/sysv/linux/signal.c: Use POSIX implementation.

* sysdeps/unix/sysv/linux/statbuf.h: Define _STAT_VER.

* sysdeps/unix/sysv/linux/i386/sigaction.c: Correct parameter
name usage (new->act, old->oact).
Correct asm statement because of gcc strangeness.

* sysdeps/i386/i586/strchr.S: Correct typos: cmp -> cmpb.

* sunrpc/clnt_perr.c: Remove declaration of sys_errlist.  They
conflict with the ones in stdio.h.

* string/tester.c: %Z is no complete format.  Change to %Zd.

* sysdeps/mach/hurd/symlink.c (__symlink): Ditto.

29 years agoThu Oct 26 18:13:33 1995 Miles Bader <miles@gnu.ai.mit.edu> cvs/libc-951029
Roland McGrath [Fri, 27 Oct 1995 09:00:21 +0000 (09:00 +0000)]
Thu Oct 26 18:13:33 1995  Miles Bader  <miles@gnu.ai.mit.edu>

* sysdeps/mach/hurd/bind.c (bind): Swap args to dir_link.
* sysdeps/mach/hurd/link.c (__link): Ditto.
* sysdeps/mach/hurd/mknod.c (__mknod): Ditto.
Include "stdio-common/_itoa.h" instead of "stdio/_itoa.h".

* sysdeps/mach/hurd/symlink.c (__symlink): Ditto.

29 years agoInclude "stdio-common/_itoa.h" instead of "stdio/_itoa.h".
Miles Bader [Thu, 26 Oct 1995 23:11:02 +0000 (23:11 +0000)]
Include "stdio-common/_itoa.h" instead of "stdio/_itoa.h".

29 years agoSwap args to dir_link.
Miles Bader [Thu, 26 Oct 1995 22:19:57 +0000 (22:19 +0000)]
Swap args to dir_link.

29 years agoThu Oct 26 00:11:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Thu, 26 Oct 1995 04:17:49 +0000 (04:17 +0000)]
Thu Oct 26 00:11:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* sysdeps/unix/sysv/linux/i386/sigaction.c: New file.

* sysdeps/unix/sysv/linux/i386/xstat.S: Don't use JUMPTARGET macro
on syscall_error.  For PIC, it is a local label;
for non-PIC, JUMPTARGET expands to the unadorned name anyway.
* sysdeps/unix/sysv/linux/i386/xmknod.S: Likewise.
* sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
* sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
* sysdeps/unix/sysv/linux/i386/sbrk.S: Likewise.
* sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
* sysdeps/unix/sysv/linux/i386/brk.S: Likewise.

29 years agoThu Oct 26 03:01:22 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
Roland McGrath [Thu, 26 Oct 1995 04:01:17 +0000 (04:01 +0000)]
Thu Oct 26 03:01:22 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>

* sysdeps/unix/sysv/linux/syscall.h: Strip list of syscalls in
comment to the necessary ones.  Add _readv and _writev.

* sysdeps/unix/configure.in: Change syntax for system call test
candidates and adapt sed script for this.  Now use : to separate
syscall name and file name.

* sysdeps/unix/sysv/linux/i386/sysdep.h (ENTRY): System call
number is now set is DO_CALL.  So call with additional argument.
(DO_CALL): Takes an additional argument.  Load system call
number according to new argument.
(SYSCALL_ERROR_HANDLER): Add ; after last ret statement.
* sysdeps/unix/sysv/linux/i386/brk.S [PIC]: Define __syscall_error
locally using SYSCALL_ERROR_HANDLER macro.
* sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
* sysdeps/unix/sysv/linux/i386/sbrk.S: Likewise.
* sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
* sysdeps/unix/sysv/linux/i386/xmknod.S: Likewise.
* sysdeps/unix/sysv/linux/i386/xstat.S: Likewise.
* sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
Don't use DO_CALL macro; instead use lower level macros for better
control.

* sysdeps/unix/sysv/linux/sigaction.h: New file.
* sysdeps/unix/sysv/linux/sigaction.S: File removed.
* sysdeps/unix/sysv/linux/signal.S: File removed.

29 years ago* hurd/hurdstartup.c (_hurd_startup): Use new
Roland McGrath [Thu, 26 Oct 1995 03:59:27 +0000 (03:59 +0000)]
* hurd/hurdstartup.c (_hurd_startup): Use new

exec_startup_get_info RPC from exec_startup.defs
in place of old exec_startup from exec.defs.  Remove kludge to
guess user entry and phdr locations, since the new RPC gives us
that info.

* sysdeps/generic/_strerror.c: Undo last change.

29 years ago* stdio/stdio.h (sys_errlist, _sys_errlist): Declare const.
Roland McGrath [Thu, 26 Oct 1995 03:38:19 +0000 (03:38 +0000)]
* stdio/stdio.h (sys_errlist, _sys_errlist): Declare const.

29 years agoWed Oct 25 14:23:35 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Wed, 25 Oct 1995 19:20:45 +0000 (19:20 +0000)]
Wed Oct 25 14:23:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* sysdeps/unix/sysv/linux/stat.c: New file.
* sysdeps/unix/sysv/linux/fstat.c: New file.
* sysdeps/unix/sysv/linux/lstat.c: New file.
* sysdeps/unix/sysv/linux/i386/stat.S: File removed.
* sysdeps/unix/sysv/linux/i386/fstat.S: File removed.
* sysdeps/unix/sysv/linux/i386/lstat.S: File removed.

29 years ago* sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
Roland McGrath [Wed, 25 Oct 1995 02:19:39 +0000 (02:19 +0000)]
* sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):

New macro.
(PSEUDO): Use it instead of SYSCALL_PIC_SETUP and jmp syscall_error.

* sysdeps/unix/sysv/linux/i386/sysdep.S (__syscall_error): Define
only #ifndef PIC.

* Makeconfig (built-program-cmd): New variable.
* sunrpc/Makefile (rpcgen-cmd): Use $(built-program-cmd).
* time/Makefile (zic-cmd): Likewise.

* hurd/Makefile (user-interfaces): Add hurd/exec_startup.

29 years ago* sunrpc/Makefile (librpcsvc-no-lib-dep): New variable.
Roland McGrath [Tue, 24 Oct 1995 21:45:10 +0000 (21:45 +0000)]
* sunrpc/Makefile (librpcsvc-no-lib-dep): New variable.

* extra-lib.mk: If $(lib)-no-lib-dep is defined and MAKELEVEL>0,
make `others' rather than `lib-noranlib' depend on the libraries.

29 years agoTue Oct 24 15:22:58 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Tue, 24 Oct 1995 20:29:05 +0000 (20:29 +0000)]
Tue Oct 24 15:22:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* sysdeps/unix/configure.in: Check for fchdir syscall.
Improve sed script to allow / on rhs without / on lhs.

Thu Oct 19 03:47:32 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>

* sysdeps/unix/sysv/linux/termbits.h: Don't define speed constants.

* elf/rtld.c: Include _itoa.h from stdio-common instead of stdio.

* sysdeps/unix/sysv/linux/select.S: New file.

29 years ago* sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Use
Roland McGrath [Thu, 19 Oct 1995 02:20:22 +0000 (02:20 +0000)]
* sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Use

SYSCALL_PIC_SETUP before jumping to syscall_error.
* sysdeps/unix/i386/sysdep.h (SYSCALL_PIC_SETUP): New macro.
(PSEUDO): Use it before jumping to syscall_error.
* sysdeps/unix/i386/sysdep.S [! PIC]: Don't find GOT address;
expect it in %ebx on entry.  Pop old %ebx value off stack after
using it.

29 years ago* signal/signal.h [__USE_BSD] (_sys_siglist, sys_siglist): Declare
Roland McGrath [Wed, 18 Oct 1995 19:46:18 +0000 (19:46 +0000)]
* signal/signal.h [__USE_BSD] (_sys_siglist, sys_siglist): Declare

them.

29 years agoWed Oct 18 03:33:22 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu> cvs/libc-951018
Roland McGrath [Wed, 18 Oct 1995 07:36:16 +0000 (07:36 +0000)]
Wed Oct 18 03:33:22 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* sysdeps/generic/_strerror.c: Declare _sys_errlist and _sys_nerr.

* hurd/hurdlookup.c (__hurd_file_name_lookup_retry): For magic
`fd/', pass the right pointer to strtol to parse the number.

29 years agoTue Oct 17 23:00:10 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Wed, 18 Oct 1995 05:47:53 +0000 (05:47 +0000)]
Tue Oct 17 23:00:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* sysdeps/mach/_strerror.c: Include stdio-common/_itoa.h instead
of stdio/_itoa.h.

Tue Oct 17 19:51:17 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>

* sysdeps/unix/sysv/linux/i386/stat.S [PIC] (__stat): Set GOT
register %ebx before calling __xstat through PLT.

* sysdeps/unix/sysv/linux/i386/sysdep.S: Fix typo in comment.

* sysdeps/unix/sysv/linux/sigset.h: Remove file.

* hurd/hurdsock.c: Include stdio-common/_itoa.h instead of
stdio/_itoa.h.
* hurd/hurdlookup.c: Likewise.

29 years ago* hurd/hurd/signal.h: Declare hurd_preempt_signals and
Roland McGrath [Tue, 17 Oct 1995 09:00:50 +0000 (09:00 +0000)]
* hurd/hurd/signal.h: Declare hurd_preempt_signals and

hurd_unpreempt_signals.

* stdio/stdio.h: Declare __snprintf and __vsnprintf.

29 years agoTue Oct 17 01:21:21 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Tue, 17 Oct 1995 05:49:48 +0000 (05:49 +0000)]
Tue Oct 17 01:21:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* stdio-common/psignal.c: Translate signal description strings.
* string/strsignal.c: Likewise.
* sysdeps/generic/_strerror.c (_strerror_internal): Translate
error strings.
* sysdeps/mach/_strerror.c: Likewise.

* stdio-common/snprintf.c (__snprintf): Renamed from snprintf;
call __vsnprintf.
(snprintf): Define as weak alias.
* stdio/vsnprintf.c (__vsnprintf): Renamed from vsnprintf.
(vsnprintf): Define as weak alias.

* libc-symbols.h [! ASSEMBLER] (_): New macro.

29 years ago* Makerules (install-lib): Filter out %_pic.a; install only the
Roland McGrath [Tue, 17 Oct 1995 02:19:11 +0000 (02:19 +0000)]
* Makerules (install-lib): Filter out %_pic.a; install only the

linked shared objects.

29 years ago* locale/Makefile (aux): Add SYS_libc.
Roland McGrath [Tue, 17 Oct 1995 02:14:34 +0000 (02:14 +0000)]
* locale/Makefile (aux): Add SYS_libc.

* locale/SYS_libc.c: New file.
* libc-symbols.h (_): New macro.

* configure.in (libc_cv_asm_set_directive): Link program into
conftest instead of letting it default to a.out.

29 years ago* elf/Makefile (install-others): Add missing slash.
Roland McGrath [Tue, 17 Oct 1995 01:08:25 +0000 (01:08 +0000)]
* elf/Makefile (install-others): Add missing slash.

* elf/ldd.sh.in: Prepend `./' to relative file names so ld.so
won't search LD_LIBRARY_PATH.

29 years ago* Makefile (subdirs): Replace stdio with stdio-common and $(stdio).
Roland McGrath [Tue, 17 Oct 1995 00:41:39 +0000 (00:41 +0000)]
* Makefile (subdirs): Replace stdio with stdio-common and $(stdio).

* configure.in: Grok arg --enable-libio.
($stdio = libio): Define USE_IN_LIBIO.
* config.h.in (USE_IN_LIBIO): Add #undef.
* config.make.in (stdio): New variable, set by configure.
* Makeconfig (stdio): New variable.
* stdio.h [USE_IN_LIBIO]: Include libio/stdio.h instead of
stdio/stdio.h.
* stdio-common/Makefile: New file.
* stdio/Makefile: Half the contents moved to stdio-common/Makefile.
* stdio/_itoa.c: Moved to stdio-common.
* stdio/_itoa.h: Moved to stdio-common.
* stdio/asprintf.c: Moved to stdio-common.
* stdio/bug1.c: Moved to stdio-common.
* stdio/bug1.input: Moved to stdio-common.
* stdio/bug2.c: Moved to stdio-common.
* stdio/bug3.c: Moved to stdio-common.
* stdio/bug4.c: Moved to stdio-common.
* stdio/bug5.c: Moved to stdio-common.
* stdio/bug6.c: Moved to stdio-common.
* stdio/bug6.input: Moved to stdio-common.
* stdio/bug7.c: Moved to stdio-common.
* stdio/dprintf.c: Moved to stdio-common.
* stdio/errnobug.c: Moved to stdio-common.
* stdio/getline.c: Moved to stdio-common.
* stdio/getw.c: Moved to stdio-common.
* stdio/perror.c: Moved to stdio-common.
* stdio/printf-parse.h: Moved to stdio-common.
* stdio/printf-prs.c: Moved to stdio-common.
* stdio/printf.c: Moved to stdio-common.
* stdio/printf.h: Moved to stdio-common.
* stdio/printf_fp.c: Moved to stdio-common.
* stdio/psignal.c: Moved to stdio-common.
* stdio/putw.c: Moved to stdio-common.
* stdio/reg-printf.c: Moved to stdio-common.
* stdio/scanf.c: Moved to stdio-common.
* stdio/snprintf.c: Moved to stdio-common.
* stdio/sprintf.c: Moved to stdio-common.
* stdio/sscanf.c: Moved to stdio-common.
* stdio/tempnam.c: Moved to stdio-common.
* stdio/temptest.c: Moved to stdio-common.
* stdio/test-fseek.c: Moved to stdio-common.
* stdio/test-fwrite.c: Moved to stdio-common.
* stdio/test-popen.c: Moved to stdio-common.
* stdio/test_rdwr.c: Moved to stdio-common.
* stdio/tmpfile.c: Moved to stdio-common.
* stdio/tmpnam.c: Moved to stdio-common.
* stdio/tst-fileno.c: Moved to stdio-common.
* stdio/tst-printf.c: Moved to stdio-common.
* stdio/tstgetln.c: Moved to stdio-common.
* stdio/tstgetln.input: Moved to stdio-common.
* stdio/tstscanf.c: Moved to stdio-common.
* stdio/tstscanf.input: Moved to stdio-common.
* stdio/vfprintf.c: Moved to stdio-common.
* stdio/vfscanf.c: Moved to stdio-common.
* stdio/vprintf.c: Moved to stdio-common.
* stdio/xbug.c: Moved to stdio-common.
* sysdeps/generic/Makefile (siglist.c rules): Do this in subdir
stdio-common instead of stdio.
* sysdeps/unix/Makefile (errlist.c rules): Likewise.
* stdio-common/asprintf.c [USE_IN_LIBIO]: Call libio primitive
function.
* stdio-common/dprintf.c: Likewise.
* stdio-common/printf.c: Likewise.
* stdio-common/scanf.c: Likewise.
* stdio-common/snprintf.c: Likewise.
* stdio-common/sprintf.c: Likewise.
* stdio-common/sscanf.c: Likewise.
* stdio-common/vprintf.c: Likewise.

* Makerules: Include $(+depfiles) directly instead of generating
depend-$(subdir).
(depend-$(subdir)): Target removed.
(common-clean): Don't remove depend-$(subdir).

29 years ago(errlist.c rules): Do this in subdir stdio-common instead of stdio.
Roland McGrath [Mon, 16 Oct 1995 23:10:45 +0000 (23:10 +0000)]
(errlist.c rules): Do this in subdir stdio-common instead of stdio.

29 years ago * config.guess: Recognize HP model 819 machines has having a PA 1...
Linda A. Walsh [Mon, 16 Oct 1995 15:40:29 +0000 (15:40 +0000)]
    * config.guess: Recognize HP model 819 machines has having         a PA 1.1 processor.

29 years ago* sysdeps/unix/sysv/linux/Makefile (rtld-installed-name): New variable.
Roland McGrath [Mon, 16 Oct 1995 09:00:14 +0000 (09:00 +0000)]
* sysdeps/unix/sysv/linux/Makefile (rtld-installed-name): New variable.

(config-LDFLAGS): Variable removed.

29 years agoMon Oct 16 03:22:37 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu> cvs/libc-951016
Roland McGrath [Mon, 16 Oct 1995 07:29:08 +0000 (07:29 +0000)]
Mon Oct 16 03:22:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* sysdeps/mach/hurd/getcwd.c: Use __file_name_lookup_under.
* sysdeps/mach/hurd/bind.c: Likewise.
* sysdeps/mach/hurd/access.c: Use new __hurd_file_name_lookup
calling convention.

* hurd/hurdexec.c: Undo last change (10 Oct 95).

29 years ago* hurd/hurd/lookup.h: New file.
Roland McGrath [Mon, 16 Oct 1995 02:51:06 +0000 (02:51 +0000)]
* hurd/hurd/lookup.h: New file.

* hurd/hurdlookup.c (__file_name_lookup_under): New function.
(__hurd_file_name_lookup, __hurd_file_name_lookup_retry,
__hurd_file_name_split): Rewritten to take callback functions for
using any needed init or dtable port, instead of passing in crdir
and cwdir ports.
(__file_name_lookup, __file_name_split): Use new calling
convention; pass _hurd_ports_use and __getdport as the callback
functions.

* sysdeps/mach/hurd/chroot.c: Use __file_name_lookup_under instead
of __hurd_file_name_lookup.
* sysdeps/mach/hurd/chdir.c: Likewise.
* sysdeps/mach/hurd/fchdir.c: Likewise.
* hurd/fchroot.c: Likewise.

29 years agoSun Oct 15 21:04:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Mon, 16 Oct 1995 02:14:42 +0000 (02:14 +0000)]
Sun Oct 15 21:04:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* stdlib/Makefile (mpn-found): Don't omit %.s.
(mpn-copy-sysdep): Omit files in nonexistent directories.
(copy-mpn): Commit files to CVS.
* stdlib/gen-mpn-copy (translations): Update translations for GMP
1.906.7.

* configure.in (machine): Translate alpha* to alpha/&, hppa* to hppa/&.

Thu Oct 12 15:45:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* hurd/hurd.h (file_name_lookup_under): Declare it.
* hurd/Makefile (headers): Add hurd/lookup.h.

* hurd/hurdinit.c (_hurd_ports_use): New function.
* hurd/hurd.h (_hurd_ports_use): Declare it.
(hurd_invoke_translator, hurd_file_name_lookup, hurd_file_name_split,
hurd_file_name_lookup_retry): Remove these decls.
* hurd/Makefile (routines): Remove invoke-trans.

29 years agoSat Oct 14 02:52:36 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
Roland McGrath [Mon, 16 Oct 1995 01:37:51 +0000 (01:37 +0000)]
Sat Oct 14 02:52:36 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>

* malloc/malloc.c (_malloc_internal): Performance fix.  Move
if statement out of loop.

* stdio/_itoa.c, stdio/_itoa.h: Complete rewrite.  Much faster
implementation using GMP functions.  Contributed by
Torbjorn Granlund and Ulrich Drepper.

* stdio/test_rdwr.c: Include <errno.h>.

* sysdeps/i386/i586/Implies: New file.

New highly optimized string functions for i[345]86.
* sysdeps/i386/memchr.S, sysdeps/i386/memcmp.S: New files.
        * sysdeps/i386/stpcpy.S, sysdeps/i386/stpncpy.S: New files.
        * sysdeps/i386/strchr.S, sysdeps/i386/strcspn.S: New files.
        * sysdeps/i386/strpbrk.S, sysdeps/i386/strrchr.S: New files.
        * sysdeps/i386/strspn.S, sysdeps/i386/i486/strcat.S: New files.
        * sysdeps/i386/i486/strlen.S, sysdeps/i386/i586/strchr.S: New files.
        * sysdeps/i386/i586/strlen.S: New file.
* sysdeps/i386/memchr.c: Removed.  There is now an assembler version.

* sysdeps/i386/i586/memcopy.h (WORD_COPY_BWD): Parameters did
not correspond to used values.

* sysdeps/unix/sysv/linux/nfs/nfs.h: New file.  Simply a wrapper
        around a kernel header file.
* sysdeps/unix/sysv/linux/Dist: Add it.
* sysdeps/unix/sysv/linux/Makefile [$(subdir)=sunrpc] (headers):
Likewise.

* sysdeps/unix/sysv/linux/local_lim.h: Rewrite.  Instead of
        defining ourself we use a kernel header file.

* sysdeps/unix/sysv/linux/i386/sysdep.h (DO_CALL): Optimize system
        call handler for i586.

* sysdeps/unix/sysv/linux/sys/param.h: Add copyright and clean up.
Sat Oct 14 02:52:36 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>

* malloc/malloc.c (_malloc_internal): Performance fix.  Move
if statement out of loop.

* stdio/_itoa.c, stdio/_itoa.h: Complete rewrite.  Much faster
implementation using GMP functions.  Contributed by
Torbjorn Granlund and Ulrich Drepper.

* stdio/test_rdwr.c: Include <errno.h>.

* sysdeps/i386/i586/Implies: New file.

New highly optimized string functions for i[345]86.
* sysdeps/i386/memchr.S, sysdeps/i386/memcmp.S: New files.
        * sysdeps/i386/stpcpy.S, sysdeps/i386/stpncpy.S: New files.
        * sysdeps/i386/strchr.S, sysdeps/i386/strcspn.S: New files.
        * sysdeps/i386/strpbrk.S, sysdeps/i386/strrchr.S: New files.
        * sysdeps/i386/strspn.S, sysdeps/i386/i486/strcat.S: New files.
        * sysdeps/i386/i486/strlen.S, sysdeps/i386/i586/strchr.S: New files.
        * sysdeps/i386/i586/strlen.S: New file.
* sysdeps/i386/memchr.c: Removed.  There is now an assembler version.

* sysdeps/i386/i586/memcopy.h (WORD_COPY_BWD): Parameters did
not correspond to used values.

* sysdeps/unix/sysv/linux/nfs/nfs.h: New file.  Simply a wrapper
        around a kernel header file.
* sysdeps/unix/sysv/linux/Dist: Add it.
* sysdeps/unix/sysv/linux/Makefile [$(subdir)=sunrpc] (headers):
Likewise.

* sysdeps/unix/sysv/linux/local_lim.h: Rewrite.  Instead of
        defining ourself we use a kernel header file.

* sysdeps/unix/sysv/linux/i386/sysdep.h (DO_CALL): Optimize system
        call handler for i586.

* sysdeps/unix/sysv/linux/sys/param.h: Add copyright and clean up.

29 years ago* sysdeps/i386/dl-machine.h (elf_machine_rel): Use +=, not =, to
Roland McGrath [Thu, 12 Oct 1995 09:00:05 +0000 (09:00 +0000)]
* sysdeps/i386/dl-machine.h (elf_machine_rel): Use +=, not =, to

apply R_386_PC32 reloc.

29 years agoWed Oct 11 00:00:00 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Wed, 11 Oct 1995 05:53:53 +0000 (05:53 +0000)]
Wed Oct 11 00:00:00 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* Makeconfig (config-LDFLAGS): Add missing slash.

* sysdeps/mach/hurd/profil.c (fork_profil): Only call
update_waiter if profiling was enabled in the parent.

* csu/initfini.c: Don't pass -f flag to cp.

29 years agoTue Oct 10 23:08:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Wed, 11 Oct 1995 03:34:46 +0000 (03:34 +0000)]
Tue Oct 10 23:08:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* Makerules (build-shlib): Pass -rpath and -rpath-link options.
(LDFLAGS-c.so): Don't pass -dynamic-linker here.
* Makeconfig (+link): Pass $(sysdep-LDFLAGS).
(link-libc): Pass -rpath and -rpath-link options.

* MakeTAGS (all-dirs): Omit CVS directories.
Specify vpath directives to find source files in $(all-dirs).
(sources, headers): Append sources and headers from $(all-dist) to
these.
(all-dist): Filter them out of this.
(all-headers, all-sources): Use $(shell find ...) instead of
$(wildcard ...).

* sysdeps/mach/hurd/Makefile (sysdep-LDFLAGS): New variable; pass
-rpath-link.

* hurd/hurdexec.c: Pass poly and dealloc args to __file_exec.

* elf/Makefile (install-others): Add missing $.

* mach/Makefile ($(objpfx)errsystems.c): Rule reenabled.

29 years agoMon Oct 9 02:54:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Mon, 9 Oct 1995 07:06:29 +0000 (07:06 +0000)]
Mon Oct  9 02:54:14 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* Makeconfig (config-LDFLAGS): Define to
-Wl-dynamic-linker=$(libdir)$(rtld-installed-name).
(rtld-installed-name): New variable.
* elf/Makefile (install-lib): Variable removed.
(install-others): Define this instead, to
$(libdir)(rtld-installed-name).
($(libdir)(rtld-installed-name)): New target; install from ld.so.

* elf/ldd.sh.in: New file.
* elf/Makefile (distribute): Add ldd.sh.in.
(install-bin): Add ldd.
($(objpfx)ldd: ldd.sh.in): New rule.

* sysdeps/mach/hurd/dl-sysdep.c: Use __hurd_fail throughout.
* hurd/hurd.h (__hurd_fail): Replace macro with inline function.
Translate some Mach errors to Hurd errors.

* elf/rtld.c (dl_main): Under --list, print msg if executable is
statically linked.

* elf/dl-load.c (_dl_map_object_from_fd): Rewrote program header
table processing.

Sat Oct  7 01:25:48 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* sysdeps/stub/machine-gmon.h: Add #error.

Fri Oct  6 01:49:48 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* elf/dynamic-link.h (elf_get_dynamic_info): If DYN is null, don't
examine it.

29 years agoFri Sep 29 03:43:51 1995 Paul Eggert <eggert@twinsun.com>
Roland McGrath [Fri, 6 Oct 1995 04:50:55 +0000 (04:50 +0000)]
Fri Sep 29 03:43:51 1995  Paul Eggert  <eggert@twinsun.com>

Rewrite mktime from scratch for performance, and for correctness
in the presence of leap seconds.

* time/mktime.c (ydhms_tm_diff, not_equal_tm, print_tm, check_result):
New functions.
(LEAP_SECONDS_POSSIBLE, CHAR_BIT, INT_MIN, INT_MAX,
TIME_T_MIN, TIME_T_MAX, TM_YEAR_BASE, EPOCH_YEAR): New macros.
<limits.h>, <stdlib.h>: New #includes.
(main): Support tests with given broken-down value; support benchmarks.
(__mon_lengths, debugging_enabled, printtm, dist_tm, doit,
do_normalization, normalize, BAD_STRUCT_TM, SKIP_VALUE,
<ctype.h>): Remove.

* time/time.h, time/mktime.c (__mktime_internal): New offset arg.
* time/mktime.c (mktime), time/timegm.c (timegm): Use it.

* time/mktime.c (__mon_yday): New variable; replaces `__mon_lengths'.
time/offtime.c (__offtime), time/tzset.c (compute_change): Use it.

* time/offtime.c (__offtime): Remove useless assignment
`tp->tm_isdst = -1'.

* manual/maint.texi: Update credits.

Fri Oct  6 00:28:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* sysdeps/unix/common/readv.S: Moved to sysdeps/unix/bsd.
* sysdeps/unix/common/writev.S: Moved to sysdeps/unix/bsd.
* sysdeps/unix/sysv/linux/readv.c: File removed.
* sysdeps/unix/sysv/linux/writev.c: File removed.
* sysdeps/unix/configure.in: Check for readv and writev syscalls.

* sysdeps/unix/configure.in: If eval doesn't set $unix_srcname,
set it to $unix_syscall instead of $unix_function.

29 years agoThu Oct 5 00:59:58 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Thu, 5 Oct 1995 09:00:06 +0000 (09:00 +0000)]
Thu Oct  5 00:59:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* elf/rtld.c (dl_main): Grok --list flag.
* sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Ignore -- args.

* sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_message): New function.
* sysdeps/generic/dl-sysdep.c (_dl_sysdep_message): New function.
* elf/link.h (_dl_sysdep_message): Declare it.

29 years ago* sysdeps/unix/Makefile ($(common-objpfx)ioctls): Remove NULL from
Roland McGrath [Wed, 4 Oct 1995 21:52:33 +0000 (21:52 +0000)]
* sysdeps/unix/Makefile ($(common-objpfx)ioctls): Remove NULL from

the list.

* time/northamerica: Corrections to Canada data from ADO 95i.

* sysdeps/unix/sysv/linux/Makefile (headers): Don't append to this
unconditionally.  In socket subdir, append sys/socketcall.h; in
time subdir, append sys/timex.h.
(config-LDFLAGS): New variable.
* sysdeps/unix/sysv/linux/Dist: New file.
* Makeconfig (+link): Pass $(config-LDFLAGS) before $(LDFLAGS).

29 years agoWed Oct 4 00:21:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Wed, 4 Oct 1995 17:06:55 +0000 (17:06 +0000)]
Wed Oct  4 00:21:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* sysdeps/generic/stpncpy.c: Don't increment DEST when zero-filling.

* elf/dlopen.c (dlopen): Don't pass USER_ENTRY arg to _dl_map_object.

29 years ago* sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): If started by
Roland McGrath [Sat, 30 Sep 1995 21:18:30 +0000 (21:18 +0000)]
* sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): If started by

kernel with args on stack, point _dl_hurd_data at zero data
instead of garbage.  When ld.so run as program, grok args
-LIB=MEMOBJ and pre-load shared object files found in memory
objects loaded by the boot loader.

* elf/link.h (struct link_map): New member `l_entry'.
(_dl_map_object, _dl_map_object_from_fd): Remove last arg ENTRY_POINT.
* elf/dl-load.c (_dl_map_object, _dl_map_object_from_fd): Remove
last arg ENTRY_POINT.  Store the entry point location in the
`l_entry' member of the new map.
* elf/rtld.c (dl_main): Don't pass USER_ENTRY arg to
_dl_map_object.  When run as program, set *USER_ENTRY to L->l_entry.
* elf/dl-init.c (_dl_init_next): Don't pass ENTRY_POINT arg to
_dl_map_object.

29 years agoSat Sep 30 11:47:05 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Sat, 30 Sep 1995 17:10:48 +0000 (17:10 +0000)]
Sat Sep 30 11:47:05 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* posix/tstgetopt.c, posix/tstgetopt.args: Test long options too.

* sysdeps/unix/sysv/linux/i386/init-first.c (init): Save, set, and
restore %ebx by hand for personality syscall.
GCC cannot deal with spilling the dedicated GOT register.

* misc/Makefile (routines): Add mntent, which was somehow omitted.

Fri Sep 29 15:07:10 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>

  * sysdeps/unix/sysv/linux/adjtime.c (__adjtime):
  Change name of field `mode' in `struct timex' to `modes'.
Linux-1.3.28 updates this name according to RFC 1489.

29 years agoThu Sep 28 13:05:54 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Thu, 28 Sep 1995 18:42:29 +0000 (18:42 +0000)]
Thu Sep 28 13:05:54 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

Merge new message handling code from GNU gettext, by Drepper.
* intl: New directory.
* Makefile (subdirs): Add intl.

* sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Return
USER_ENTRY instead of storing it on our stack.

* elf/rtld.c (rtld_command): Variable removed.
(_dl_skip_args): New variable.
(dl_main): Increment _dl_skip_args instead of setting rtld_command.
If the link_map for the executable itself is not first in the chain,
make it so.
* sysdeps/i386/dl-machine.h (RTLD_START): Use _dl_skip_args as
count of args to skip.

Thu Sep 28 09:20:04 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>

* stdlib/strtod.c (STRTOF): Fix handling of numbers with lots of
leading zeroes.

29 years ago(rtld_command): Variable removed. (_dl_skip_args): New variable. (dl_main): Increment...
Roland McGrath [Thu, 28 Sep 1995 17:05:33 +0000 (17:05 +0000)]
(rtld_command): Variable removed. (_dl_skip_args): New variable. (dl_main): Increment _dl_skip_args instead of setting rtld_command. If the link_map for the executable itself is not first in the chain, make it so.

29 years ago(STRTOF): Fix handling of numbers with lots of leading zeroes.
Ulrich Drepper [Thu, 28 Sep 1995 09:20:04 +0000 (09:20 +0000)]
(STRTOF): Fix handling of numbers with lots of leading zeroes.

29 years ago* sysdeps/mach/hurd/getcwd.c (__getcwd): Renamed from getcwd.
Roland McGrath [Thu, 28 Sep 1995 09:00:19 +0000 (09:00 +0000)]
* sysdeps/mach/hurd/getcwd.c (__getcwd): Renamed from getcwd.

(getcwd): Define as weak alias.
* sysdeps/posix/getcwd.c: Likewise.
* sysdeps/stub/getcwd.c: Likewise.
* posix/unistd.h: Declare __getcwd.

* string/string.h: Declare __strcasecmp.
* sysdeps/generic/strcasecmp.c (__strcasecmp): Renamed from
strcasecmp.
(strcasecmp): Define as weak alias.

* string/string.h: Declare __stpcpy.
* sysdeps/generic/stpcpy.c (__stpcpy): Renamed from stpcpy.
(stpcpy): Define as weak alias.

29 years ago* sysdeps/unix/sysv/linux/Implies: Add unix/common.
Roland McGrath [Wed, 27 Sep 1995 16:07:53 +0000 (16:07 +0000)]
* sysdeps/unix/sysv/linux/Implies: Add unix/common.

29 years ago* sysdeps/unix/i386/sysdep.h [HAVE_ELF] (ASM_TYPE_DIRECTIVE):
Roland McGrath [Wed, 27 Sep 1995 16:05:25 +0000 (16:05 +0000)]
* sysdeps/unix/i386/sysdep.h [HAVE_ELF] (ASM_TYPE_DIRECTIVE):

Don't use `type' for arg name, since we are using it as a keyword
in the rhs.

* sysdeps/unix/configure.in: Check for syscalls getpriority,
setpriority, getrlimit, setrlimit.

* sysdeps/posix/truncate.c: Include fcntl.h.

* sysdeps/generic/getdomain.c: Include string.h for strncpy decl.

* sysdeps/stub/getpriority.c: Don't include obsolete gnu-stabs.h;
use new stub_warning syntax.
* sysdeps/stub/setpriority.c: Likewise.
* sysdeps/stub/__longjmp.c: Likewise.
* sysdeps/stub/_exit.c: Likewise.
* sysdeps/stub/accept.c: Likewise.
* sysdeps/stub/acos.c: Likewise.
* sysdeps/stub/alarm.c: Likewise.
* sysdeps/stub/asin.c: Likewise.
* sysdeps/stub/atan2.c: Likewise.
* sysdeps/stub/bind.c: Likewise.
* sysdeps/stub/cbrt.c: Likewise.
* sysdeps/stub/chroot.c: Likewise.
* sysdeps/stub/closedir.c: Likewise.
* sysdeps/stub/connect.c: Likewise.
* sysdeps/stub/cos.c: Likewise.
* sysdeps/stub/cosh.c: Likewise.
* sysdeps/stub/ctermid.c: Likewise.
* sysdeps/stub/cuserid.c: Likewise.
* sysdeps/stub/defs.c: Likewise.
* sysdeps/stub/exp.c: Likewise.
* sysdeps/stub/fmod.c: Likewise.
* sysdeps/stub/frexp.c: Likewise.
* sysdeps/stub/fsync.c: Likewise.
* sysdeps/stub/getcwd.c: Likewise.
* sysdeps/stub/getenv.c: Likewise.
* sysdeps/stub/gethostid.c: Likewise.
* sysdeps/stub/getlogin.c: Likewise.
* sysdeps/stub/getpeername.c: Likewise.
* sysdeps/stub/getrlimit.c: Likewise.
* sysdeps/stub/getsockname.c: Likewise.
* sysdeps/stub/getsockopt.c: Likewise.
* sysdeps/stub/listen.c: Likewise.
* sysdeps/stub/log.c: Likewise.
* sysdeps/stub/log10.c: Likewise.
* sysdeps/stub/mkfifo.c: Likewise.
* sysdeps/stub/morecore.c: Likewise.
* sysdeps/stub/nice.c: Likewise.
* sysdeps/stub/nlist.c: Likewise.
* sysdeps/stub/opendir.c: Likewise.
* sysdeps/stub/pipestream.c: Likewise.
* sysdeps/stub/ptrace.c: Likewise.
* sysdeps/stub/putenv.c: Likewise.
* sysdeps/stub/readdir.c: Likewise.
* sysdeps/stub/reboot.c: Likewise.
* sysdeps/stub/recv.c: Likewise.
* sysdeps/stub/recvfrom.c: Likewise.
* sysdeps/stub/rename.c: Likewise.
* sysdeps/stub/rewinddir.c: Likewise.
* sysdeps/stub/seekdir.c: Likewise.
* sysdeps/stub/send.c: Likewise.
* sysdeps/stub/sendto.c: Likewise.
* sysdeps/stub/setegid.c: Likewise.
* sysdeps/stub/seteuid.c: Likewise.
* sysdeps/stub/setgroups.c: Likewise.
* sysdeps/stub/sethostid.c: Likewise.
* sysdeps/stub/sethostname.c: Likewise.
* sysdeps/stub/setjmp.c: Likewise.
* sysdeps/stub/setrlimit.c: Likewise.
* sysdeps/stub/setsockopt.c: Likewise.
* sysdeps/stub/shutdown.c: Likewise.
* sysdeps/stub/signal.c: Likewise.
* sysdeps/stub/sigsuspend.c: Likewise.
* sysdeps/stub/sin.c: Likewise.
* sysdeps/stub/sinh.c: Likewise.
* sysdeps/stub/socket.c: Likewise.
* sysdeps/stub/socketpair.c: Likewise.
* sysdeps/stub/sqrt.c: Likewise.
* sysdeps/stub/sync.c: Likewise.
M sysd-stdio.c
* sysdeps/stub/system.c: Likewise.
* sysdeps/stub/tan.c: Likewise.
* sysdeps/stub/tanh.c: Likewise.
* sysdeps/stub/tcdrain.c: Likewise.
* sysdeps/stub/tcflow.c: Likewise.
* sysdeps/stub/tcgetpgrp.c: Likewise.
* sysdeps/stub/tcsendbrk.c: Likewise.
* sysdeps/stub/tcsetattr.c: Likewise.
* sysdeps/stub/tcsetpgrp.c: Likewise.
* sysdeps/stub/telldir.c: Likewise.
* sysdeps/stub/tempname.c: Likewise.
* sysdeps/stub/ttyname.c: Likewise.
* sysdeps/stub/ttyname_r.c: Likewise.
* sysdeps/stub/utime.c: Likewise.

* gmon/gmon.c (moncontrol): Don't cast buffer arg to profil.

* time/mktime.c (localtime_r): Use 0 instead of NULL.

29 years agoWed Sep 27 00:27:25 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Wed, 27 Sep 1995 06:49:48 +0000 (06:49 +0000)]
Wed Sep 27 00:27:25 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* config.make.in (AS): New variable; set to `$(CC) -c'.

* posix/unistd.h [__USE_BSD]: Declare profil.

* elf/dl-load.c (_dl_map_object_from_fd): New function, broken out
of _dl_map_object.
(_dl_map_object): Call it.
* elf/link.h (_dl_map_object_from_fd): Declare it.

29 years ago* locale/libintl.h: Rewritten by Ulrich Drepper for use with GNU
Roland McGrath [Wed, 27 Sep 1995 02:50:10 +0000 (02:50 +0000)]
* locale/libintl.h: Rewritten by Ulrich Drepper for use with GNU

gettext code.

* sysdeps/unix/sysv/linux/sys/param.h: New file.
* sysdeps/unix/sysv/linux/Subdirs: File removed.

* libc-symbols.h (_LIBC): Define to 1, not just empty.

29 years agoTue Sep 26 16:50:17 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Roland McGrath [Tue, 26 Sep 1995 20:59:38 +0000 (20:59 +0000)]
Tue Sep 26 16:50:17 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* gmon: New directory of profiling code, incorporated from
4.4BSD-Lite and modified.
* sysdeps/i386/machine-gmon.h: New file.
* sysdeps/stub/machine-gmon.h: New file.
* sysdeps/mach/hurd/profil.c: New file.
* sysdeps/stub/profil.c: New file.
* sysdeps/unix/bsd/profil.S: New file.
* Makefile (subdirs): Add gmon.
* csu/gmon-start.c: New file.
* csu/Makefile (extra-objs): Add gmon-start.o,
g$(start-installed-name).
(install-lib, omit-deps): Add g$(start-installed-name).
($(objpfx)g$(start-installed-name)): New target.

29 years ago B2 are always congruent; just test that B1 is aligned.
Roland McGrath [Mon, 25 Sep 1995 09:00:05 +0000 (09:00 +0000)]
B2 are always congruent; just test that B1 is aligned.

29 years agoFri Sep 22 14:24:25 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu> cvs/libc-950922
Roland McGrath [Fri, 22 Sep 1995 18:32:19 +0000 (18:32 +0000)]
Fri Sep 22 14:24:25 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

* sysdeps/mach/hurd/Makefile: Elide sunrpc from $(subdirs) for the
time being.

* sysdeps/unix/configure.in: Check for `profil' syscall.