platform/upstream/glibc.git
28 years agoAdd MIT copyright notice. From gordoni@cygnus.com. cvs/make-3-74-5 cvs/make-3-74-6 cvs/make-3-74-7 cvs/make-3-75
David MacKenzie [Thu, 11 Jul 1996 21:02:19 +0000 (21:02 +0000)]
Add MIT copyright notice.  From gordoni@cygnus.com.

28 years agoMon Jul 8 21:18:40 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> cvs/libc-960711
Roland McGrath [Wed, 10 Jul 1996 14:42:15 +0000 (14:42 +0000)]
Mon Jul  8 21:18:40 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

* sysdeps/m68k/dl-machine.h (RESOLVE): New macro, defined
differently based on [RTLD_BOOTSTRAP].
(elf_machine_rela): Use it instead of the fn ptr arg directly.

28 years ago* posix/glob.h (__glob_opendir_hook, __glob_readdir_hook, cvs/libc-960710
Roland McGrath [Tue, 9 Jul 1996 23:17:59 +0000 (23:17 +0000)]
* posix/glob.h (__glob_opendir_hook, __glob_readdir_hook,

__glob_closedir_hook): Remove decls.

* sysdeps/generic/machine-gmon.h: Declare mcount_internal.

* sysdeps/unix/inet/syscalls.list: Define __ names with weak aliases
  for send and connect syscalls.

* socket/sys/socket.h: New file, taken from non-sysdep parts of
linux/sys/socket.h; break sysdeps parts out into socketbits.h.
Declare __ names for send and connect.
* sysdeps/generic/socketbits.h: New file.
* sysdeps/unix/sysv/linux/socketbits.h: New file.
* sysdeps/unix/sysv/linux/sys/socket.h: File removed.
* sysdeps/generic/sys/socket.h: File removed.

* sysdeps/mach/hurd/connect.c: Define __ name and weak alias.
* sysdeps/mach/hurd/send.c: Likewise.

28 years agoTue Jul 9 09:37:55 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
Roland McGrath [Tue, 9 Jul 1996 14:49:13 +0000 (14:49 +0000)]
Tue Jul  9 09:37:55 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>

* sysdeps/mach/libc-lock.h: New file.
* sysdeps/unix/readdir.c: Do locking.
* sysdeps/unix/seekdir.c: Likewise.
* sysdeps/unix/rewinddir.c:  Likewise.
* sysdeps/unix/closedir.c: Likewise.
* sysdeps/unix/bsd/telldir.c: Likewise.
* sysdeps/mach/hurd/seekdir.c: Likewise.
* sysdeps/mach/hurd/readdir.c: Likewise.
* sysdeps/mach/hurd/closedir.c: Likewise.
* sysdeps/mach/hurd/opendir.c: Initialize the lock.
* sysdeps/unix/opendir.c: Likewise.
* sysdeps/mach/hurd/dirstream.h: Include <libc-lock.h>.
(struct __dirstream): Add lock member using __libc_lock_define.
* sysdeps/unix/dirstream.h: Likewise.

* sysdeps/stub/libc-lock.h (__libc_lock_fini): New macro.

* stdlib/mbstowcs.c: Pass address of pointer to mbsrtowcs.

* stdlib/wcstombs.c: Use wcsrtombs instead of mbsrtowcs.

Thu Jul  4 01:34:04 1996  Ulrich Drepper  <drepper@cygnus.com>

* locale/programs/stringtrans.c: Fix typo in copyright.

* stdio-common/printf-prs.c: Add casts to prevent
        signed<->unsigned warnings.

* stdio-common/printf-parse.h: Initialize state variable before
calling mbrlen.
* stdio-common/printf-prs.c: Don't initialize state variable here.
* stdio-common/vfprintf.c: Don't initialize state variable.
(vfprintf): While determining length of multibyte string don't
try to be clever in determining characters to use for first
call.

Add real implementation of multibyte<->wide char conversion
functions.  The functions always convert between the fixed wide
char format (ISO 10646 in UCS4) and the UTF8 representation of
this character set.  Conversion between the currently used
8bit character set and ISO 10646 will not take place.  This is
what iconv() is for.
* wcsmbs/wchar.h (mbstate_t): Define as structure to replace
dummy definition.
Add optimized version of `mbrlen' function.
* wcsmbs/btowc.c (btowc): Restrict range of legal characters
to 0...0x7f.
* wcsmbs/wctob.c (wctob): Restrict range of legal characters
to 0..0x7f.
* wcsmbs/mbrlen.c: Make mbrlen a weak alias of __mbrlen.
This is needed in the wchar.h header.
* wcsmbs/mbrtowc.c: Replace dummy implementation.  Convert UTF8
encoded character to UCS4.
* wcsmbs/mbsinit.c: Replace dummy implementation.  Test COUNT
element of `mbstate_t' for initial state.
* wcsmbs/mbsrtowcs.c: Replace dummy implementation.  Convert UTF8
encoded string to UCS4 string.
* wcsmbs/wcrtomb.c: Replace dummy implementation.  Convert UCS4
character to UTF8 encoded form.
* wcsmbs/wcsrtombs.c: Replace dummy implementation.  Convert UCS4
encoded string to UTF8 encoded form.

28 years ago* sysdeps/unix/sysv/linux/configure.in: Use version number in cache
Roland McGrath [Tue, 9 Jul 1996 12:22:26 +0000 (12:22 +0000)]
* sysdeps/unix/sysv/linux/configure.in: Use version number in cache

  variable name, so new a libc with new requirements won't fail to
  notice an insufficient Linux version.

28 years ago* sysdeps/unix/sysv/linux/direntry.h: New file from David Mosberger.
Roland McGrath [Tue, 9 Jul 1996 12:18:13 +0000 (12:18 +0000)]
* sysdeps/unix/sysv/linux/direntry.h: New file from David Mosberger.

* sysdeps/unix/sysv/linux/configure.in: Check for Linux 2.0.1 headers,
instead of 2.0 headers.

28 years ago* sysdeps/mach/hurd/Makefile (stamp-errnos): Uncomment CVS commit cmds.
Roland McGrath [Tue, 9 Jul 1996 11:21:20 +0000 (11:21 +0000)]
* sysdeps/mach/hurd/Makefile (stamp-errnos): Uncomment CVS commit cmds.

* sysdeps/gnu/errlist.awk: Undo mib's bogus changes.  The
sysdeps/mach/hurd/errnos.awk bug fix was the only correct change.

28 years agoTue Jul 9 06:19:29 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
Roland McGrath [Tue, 9 Jul 1996 11:09:08 +0000 (11:09 +0000)]
Tue Jul  9 06:19:29 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>

* sysdeps/generic/machine-gmon.h [NO_UNDERSCORES]: Declare _mcount
before using it in lhs of weak_alias.

* nss/getXXent_r.c (setup): New function, broken out of SETFUNC_NAME.
Call __nss_lookup when not setting STARTP.
(SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Call it to set up for
function-calling loop.

28 years agoerror is 0. The "placeholder" entries recently added to
Roland McGrath [Tue, 9 Jul 1996 09:39:41 +0000 (09:39 +0000)]
error is 0.  The "placeholder" entries recently added to
* sysdeps/stub/setdomain.c (setdomainname): Declare NAME parm

28 years agoRegenerated from ../sysdeps/gnu/errlist.awk ../manual/errno.texi cvs/libc-960709
Thomas Bushnell, BSG [Tue, 9 Jul 1996 06:13:23 +0000 (06:13 +0000)]
Regenerated from ../sysdeps/gnu/errlist.awk ../manual/errno.texi

28 years ago*** empty log message ***
Thomas Bushnell, BSG [Tue, 9 Jul 1996 05:02:06 +0000 (05:02 +0000)]
*** empty log message ***

Tue Jul  9 00:14:52 1996  Michael I. Bushnell p/BSG  <mib@gnu.ai.mit.edu>

* sysdeps/mach/hurd/ioctls.h (MDMBUF, ECHO, TOSTOP, FLUSHO,
  PENDIN, NOFLSH): Undefine these at start if they are already
  defined to avoid collision with termbits.h.
* sysdeps/generic/termbits.h (ECHO, TOSTOP, NOFLSH): Likewise.
(MDMBUF, FLUSHO, PENDIN) [__USE_BSD]: Likewise.

Mon Jul  8 13:10:50 1996  Michael I. Bushnell p/BSG  <mib@gnu.ai.mit.edu>

* sysdeps/mach/hurd/errnos.awk: Skip entries where the
  error is 0.  The "placeholder" entries recently added to
errno.texi convert to zero since `???/' is at the front of them.
* sysdeps/gnu/errlist.awk (errnoh): Likewise.

* sysdeps/stub/setdomain.c (setdomainname): Declare NAME parm
__const to conform with unistd.h.

* posix/regex.c (re_comp, re_exec): Use weak_function as
keyword in function defns instead of weak_symbol (NAME) after
the defn.

* stdlib/stdlib.h (random): Declare return type to be int32_t.

28 years ago* stdlib/stdlib.h (random): Declare return type to be int32_t.
Thomas Bushnell, BSG [Tue, 9 Jul 1996 02:47:42 +0000 (02:47 +0000)]
* stdlib/stdlib.h (random): Declare return type to be int32_t.

28 years agoMon Jul 8 13:37:40 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
Roland McGrath [Mon, 8 Jul 1996 17:45:03 +0000 (17:45 +0000)]
Mon Jul  8 13:37:40 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>

* math/math.h (_Mfloat_, _Mlong_double_): New macros, defined iff not
already defined to float, long double.  Use those macros for _Mdouble_
defns when including mathcalls.h.
* math/Makefile [$(long-double-fcts) != yes] (CPPFLAGS): Append
-D_Mlong_double_=double.

Add more -lm functions to -lc because ldexp uses them.
* math/Makefile (calls): Add s_finite, s_copysign, s_scalbn, s_modf.
(routines): Remove s_modf, add s_frexpf, s_ldexpf; all but frexp and
ldexp have both f and l code, and those have f though not l code.

  memcpy for possibly overlapping strings.

28 years agoMon Jul 8 02:14:25 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
Roland McGrath [Mon, 8 Jul 1996 17:35:27 +0000 (17:35 +0000)]
Mon Jul  8 02:14:25 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>

* math/math.h (_Mfloat_, _Mlong_double_): New macros, defined iff not
already defined to float, long double.  Use those macros for _Mdouble_
defns when including mathcalls.h.
* math/Makefile [$(long-double-fcts) != yes] (CPPFLAGS): Append
-D_Mlong_double_=double.
Add more -lm functions to -lc because ldexp uses them.
* math/Makefile (calls): Add s_finite, s_copysign, s_scalbn, s_modf.
(routines): Remove s_modf, add s_frexpf, s_ldexpf; all but frexp and
ldexp have both f and l code, and those have f though not l code.

28 years ago*** empty log message ***
Thomas Bushnell, BSG [Mon, 8 Jul 1996 17:13:20 +0000 (17:13 +0000)]
*** empty log message ***

Mon Jul  8 13:10:50 1996  Michael I. Bushnell p/BSG  <mib@psilocin.gnu.ai.mit.edu>

* string/argz-delete.c (argz_delete): Use memmove instead of
  memcpy for possbly overlapping strings.

28 years agostring/argz-delete.c (argz_delete): Use memmove instead of memcpy for possbly overlap...
Thomas Bushnell, BSG [Mon, 8 Jul 1996 17:12:04 +0000 (17:12 +0000)]
string/argz-delete.c (argz_delete): Use memmove instead of memcpy for possbly overlapping strings.

28 years agoRegenerated: autoconf sysdeps/generic/configure.in
Miles Bader [Mon, 8 Jul 1996 15:26:36 +0000 (15:26 +0000)]
Regenerated: autoconf  sysdeps/generic/configure.in

28 years agoRegenerated: autoconf sysdeps/unix/common/configure.in
Miles Bader [Mon, 8 Jul 1996 15:26:18 +0000 (15:26 +0000)]
Regenerated: autoconf  sysdeps/unix/common/configure.in

28 years ago* stdlib/strtod.c: Likewise.
Roland McGrath [Mon, 8 Jul 1996 10:21:07 +0000 (10:21 +0000)]
* stdlib/strtod.c: Likewise.

28 years agoMon Jul 8 02:14:25 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu> cvs/libc-960708
Roland McGrath [Mon, 8 Jul 1996 06:18:25 +0000 (06:18 +0000)]
Mon Jul  8 02:14:25 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>

* libc-symbols.h [GCC >= 2.7] (strong_alias, weak_alias): Use extern
storage class.  GCC gives an error for non-extern data defns with the
alias attribute.

Mon Jul  8 00:11:15 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>

* libc-symbols.h (weak_function): New macro.
For GCC 2.7+ define as __attribute__ ((weak)).
* elf/dl-minimal.c: Use weak_function as keyword in function defns
  instead of weak_symbol (NAME) after the defn.
* stdlib/strtol.c: Likewise.
* sysdeps/mach/hurd/dl-sysdep.c: Likewise.

* sysdeps/alpha/dl-machine.h (elf_machine_rela) [RTLD_BOOTSTRAP]:
If this is defined, don't declare _dl_rtld_map as weak, and
don't check for MAP pointing to it.  RESOLVE is always null in this
case, so test with #ifdef instead of if.

* libc-symbols.h (symbol_set_declare): Use weak_extern instead of
weak_symbol.
* csu/initfini.c (_init): Likewise.
* locale/setlocale.c (DEFINE_CATEGORY): Likewise.
* misc/efgcvt_r.c: Likewise.
* sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
* sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.

* libc-symbols.h [ASSEMBLER] (weak_symbol): Macro removed.
It was not used in any assembler code.
(weak_symbol_asm): Renamed to weak_extern_asm.
(weak_extern): New macro replaces weak_symbol for weak extern refs;
define to weak_extern_asm for [!ASSEMBLER].

* libc-symbols.h [! ASSEMBLER] [HAVE_WEAK_SYMBOLS] (weak_symbol_asm,
weak_alias_asm): New macros, renamed from weak_symbol/weak_alias;
define those now as aliases.
Change conditional to use __attribute__ syntax for GCC 2.7+, not 2.8+
[GCC >= 2.7] [HAVE_WEAK_SYMBOLS] (weak_symbol): Do weak_symbol_asm
after GCC weak attribute decl.

28 years agoMon Jul 8 00:11:15 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
Roland McGrath [Mon, 8 Jul 1996 06:17:09 +0000 (06:17 +0000)]
Mon Jul  8 00:11:15 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>

* libc-symbols.h (symbol_set_declare): Use weak_extern instead of
weak_symbol.
* csu/initfini.c (_init): Likewise.
* locale/setlocale.c (DEFINE_CATEGORY): Likewise.
* misc/efgcvt_r.c: Likewise.
* sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
* sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.

28 years ago*** empty log message ***
Thomas Bushnell, BSG [Mon, 8 Jul 1996 05:52:04 +0000 (05:52 +0000)]
*** empty log message ***

Mon Jul  8 01:37:34 1996  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>

* string/argz-insert.c (__argz_insert): (__argz_insert): Use
memmove instead of memcpy for possible overlapping strings.

POINT_COL. Add POINT_OFFS field.

28 years ago(__argz_insert): Use memmove instead of memcpy for possible overlapping strings.
Thomas Bushnell, BSG [Mon, 8 Jul 1996 05:37:55 +0000 (05:37 +0000)]
(__argz_insert): Use memmove instead of memcpy for possible overlapping strings.

28 years ago* sysdeps/gnu/errlist.awk (BEGIN): Initialize associative array ALIAS,
Roland McGrath [Sun, 7 Jul 1996 23:55:24 +0000 (23:55 +0000)]
* sysdeps/gnu/errlist.awk (BEGIN): Initialize associative array ALIAS,

map EWOULDBLOCK->EAGAIN, EDEADLOCK->EDEADLK.
(element printer): Check for elt in ALIAS, instead of special case
for EWOULDBLOCK.

28 years ago* io/Makefile (headers): Add sys/vfs.h.
Roland McGrath [Sun, 7 Jul 1996 23:23:51 +0000 (23:23 +0000)]
* io/Makefile (headers): Add sys/vfs.h.

* io/sys/vfs.h: New file.

28 years ago* stdio/linewrap.c (lwupdate): New function, mostly was
Roland McGrath [Sun, 7 Jul 1996 22:49:48 +0000 (22:49 +0000)]
* stdio/linewrap.c (lwupdate): New function, mostly was

__line_wrap_update.  Use POINT_COL field instead of POINT.
* stdio/linewrap.h (struct line_wrap_data): Rename POINT field to
POINT_COL.  Add POINT_OFFS field.

28 years agoSun Jul 7 18:42:06 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
Roland McGrath [Sun, 7 Jul 1996 22:46:26 +0000 (22:46 +0000)]
Sun Jul  7 18:42:06 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>

* sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Don't unlock the
critical section lock before unlinking dying active resources.
The unlock just before return is right (i.e. old code unlocked twice).

* stdio/linewrap.c (lwupdate): Update D->point_offs when done.

28 years agoSun Jul 7 18:42:06 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
Roland McGrath [Sun, 7 Jul 1996 22:45:05 +0000 (22:45 +0000)]
Sun Jul  7 18:42:06 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>

* sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Don't unlock the
critical section lock before unlinking dying active resources.
The unlock just before return is right (i.e. old code unlocked twice).

28 years agoRecognize rtems as an o/s.
Doug Evans [Sun, 7 Jul 1996 17:26:50 +0000 (17:26 +0000)]
Recognize rtems as an o/s.

28 years agoSun Jun 2 22:28:43 1996 Miles Bader <miles@gnu.ai.mit.edu>
Miles Bader [Sun, 7 Jul 1996 16:54:03 +0000 (16:54 +0000)]
Sun Jun  2 22:28:43 1996  Miles Bader  <miles@gnu.ai.mit.edu>

* linewrap.c (lwupdate): Update D->point_offs when done.
Use memmove instead of memcpy where overlap is possible (not
  necessary using current implementation of memcpy, but...).
(__line_wrap_update): Don't update D->point_offs (lwupdate does it).

Fri May 31 11:48:46 1996  Miles Bader  <miles@gnu.ai.mit.edu>

* linewrap.c (lwupdate): New function, mostly was __line_wrap_update.
Use POINT_COL field instead of POINT.
(__line_wrap_output): Use lwupdate.
(__line_wrap_update): New function.
(ensure_unwrapped, ensure_wrapped): New functions.
(line_wrap_set_lmargin, line_wrap_set_rmargin,
line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.

* linewrap.h (struct line_wrap_data): Rename POINT field to POINT_COL.
Add POINT_OFFS field.
(__line_wrap_update): New decl.
(line_wrap_set_lmargin, line_wrap_set_rmargin,
line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.

28 years ago(lwupdate): New function, mostly was __line_wrap_update. Use POINT_COL field...
Miles Bader [Sun, 7 Jul 1996 16:49:06 +0000 (16:49 +0000)]
(lwupdate):   New function, mostly was __line_wrap_update.   Use POINT_COL field instead of POINT.   Update D->point_offs when done.   Use memmove instead of memcpy where overlap is possible (not      necessary using current implementation of memcpy, but...). (__line_wrap_output): Use lwupdate. (__line_wrap_update): New function. (line_wrap_set_lmargin, line_wrap_set_rmargin,   line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update. (ensure_unwrapped, ensure_wrapped): New functions.

28 years agoFri Jul 5 12:22:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu> cvs/libc-960707
Roland McGrath [Sat, 6 Jul 1996 11:19:21 +0000 (11:19 +0000)]
Fri Jul  5 12:22:51 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>

28 years agoFri Jul 5 12:22:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
Roland McGrath [Sat, 6 Jul 1996 11:01:20 +0000 (11:01 +0000)]
Fri Jul  5 12:22:51 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>

28 years agoFri Jul 5 12:22:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
Roland McGrath [Sat, 6 Jul 1996 10:54:55 +0000 (10:54 +0000)]
Fri Jul  5 12:22:51 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>

* math/Makefile (routines): Move s_ldexp, s_frexp, s_modf here from
calls, since the f and l versions are not all there yet.

28 years agoFri Jul 5 17:34:47 1996 Miles Bader <miles@gnu.ai.mit.edu> cvs/libc-960706
Miles Bader [Sat, 6 Jul 1996 03:57:56 +0000 (03:57 +0000)]
Fri Jul  5 17:34:47 1996  Miles Bader  <miles@gnu.ai.mit.edu>

* login/logout.c (logout): Do nothing if getutline_r returns ESRCH.

* login/pututline_r.c (pututline_r): Since we assign RESULT from
lseek now, check that it's >= 0, not == 0.

Wed Jul  3 13:28:04 1996  Miles Bader  <miles@gnu.ai.mit.edu>

* login/login.c (login): Make a copy of *UT, fill in various
fields that we supply (ut_line, ut_type, ut_pid), and use the copy
in place of UT.

* login/getutline_r.c (getutline_r): When we return ESRCH, mark
UTMP_DATA->ubuf invalid (by setting UTMP_DATA->loc_utmp to 0).

28 years ago(pututline_r): Since we assign RESULT from lseek now, check that it's >= 0, not...
Miles Bader [Sat, 6 Jul 1996 00:03:07 +0000 (00:03 +0000)]
(pututline_r):   Since we assign RESULT from lseek now, check that it's >= 0, not == 0.

28 years agoFri Jul 5 12:22:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
Roland McGrath [Fri, 5 Jul 1996 23:55:36 +0000 (23:55 +0000)]
Fri Jul  5 12:22:51 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>

* math/Makefile (calls): Add s_ldexp, s_frexp, s_modf.
These functions are traditionally duplicated in libc and libm.
Go with the flow.

28 years ago* hurd/hurdsig.c (_hurd_internal_post_signal): In case of handled
Roland McGrath [Fri, 5 Jul 1996 23:51:10 +0000 (23:51 +0000)]
* hurd/hurdsig.c (_hurd_internal_post_signal): In case of handled

signal during critical section doing interruptible RPC, if
_hurdsig_abort_rpcs wants to change thread state, do thread_set_state
before thread_resume.  If in critical section, pass 0 for SIGNO to
_hurdsig_abort_rpcs so rpc is interrupted regardless of SA_RESTART.

* extra-lib.mk: Fix typo in $(extra-libs-others) conditional.

28 years ago(getutline_r): When we return ESRCH, mark UTMP_DATA->ubuf invalid (by setting UTMP_...
Miles Bader [Fri, 5 Jul 1996 23:48:41 +0000 (23:48 +0000)]
(getutline_r): When we return ESRCH, mark UTMP_DATA->ubuf invalid (by setting   UTMP_DATA->loc_utmp to 0).

28 years agoFri Jul 5 12:22:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
Roland McGrath [Fri, 5 Jul 1996 23:47:08 +0000 (23:47 +0000)]
Fri Jul  5 12:22:51 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>

* hurd/hurdsig.c (_hurd_internal_post_signal): In case of handled
signal during critical section doing interruptible RPC, if
_hurdsig_abort_rpcs wants to change thread state, do thread_set_state
before thread_resume.  If in critical section, pass 0 for SIGNO to
_hurdsig_abort_rpcs so rpc is interrupted regardless of SA_RESTART.

28 years ago* sysdeps/unix/sysv/linux/sys/user.h: New file.
Roland McGrath [Fri, 5 Jul 1996 20:02:58 +0000 (20:02 +0000)]
* sysdeps/unix/sysv/linux/sys/user.h: New file.

* sysdeps/unix/sysv/linux/Dist: Add it.
* sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add sys/user.h.

28 years ago* nss/nss_files/files-parse.c (parse_list): Set EOL from LINE if it
Roland McGrath [Fri, 5 Jul 1996 19:18:13 +0000 (19:18 +0000)]
* nss/nss_files/files-parse.c (parse_list): Set EOL from LINE if it

points within DATA->linebuffer; otherwise use all of DATA->linebuffer
itself, no need to skip past a NUL.

* nss/nsswitch.h (known_function): Comment fix.
* nss/nsswitch.c (nss_lookup_function): Rewritten using __tsearch
directly.  Do the lookup and insertion with a single call, and fill in
the tree node afterwards if new.
(known_compare, nss_find_entry, nss_insert_entry): Functions removed.

* misc/sys/select.h: #define __need_timespec before <sys/time.h> incl.
(struct timeval): Add bodiless decl for scope.

* time/time.h (struct timespec): Rename members from `ts_*' to `tv_*'.
   Move struct timespec defn outside [_TIME_H] so it can be got with
  #define __need_timespec.

* time/sys/time.h (TIMEVAL_TO_TIMESPEC): Use `tv_*' instead of `ts_*'
for `struct timespec' member names.
(TIMESPEC_TO_TIMEVAL): Likewise.

* nss/Makefile (extra-libs-others): New variable.

* extra-lib.mk: Don't test for $($(lib)-no-lib-dep).  Instead match
$(lib) in $(extra-libs-others).
* sunrpc/Makefile (extra-libs-others): New variable.
(librpcsvc-no-lib-dep): Variable removed.

Thu Jul  4 05:21:59 1996  David Mosberger-Tang  <davidm@azstarnet.com>

* login/utmp.h: Fix typos.

* misc/syslog.c (vsyslog): Use __send instead of send and
  __connect instead of connect to avoid name-space collisions (e.g.,
  with psgetty).

28 years agoFri Jul 5 12:22:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
Roland McGrath [Fri, 5 Jul 1996 17:05:14 +0000 (17:05 +0000)]
Fri Jul  5 12:22:51 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>

* elf/rtld.c: Define RTLD_BOOTSTRAP before #include "dynamic-link.h".
* sysdeps/i386/dl-machine.h (elf_machine_rel): Remove weak decl for
_dl_rtld_map.
(RESOLVE): New macro, defined differently based on [RTLD_BOOTSTRAP].
(elf_machine_rel): Use it instead of testing fn ptr arg at runtime.
(elf_machine_rel: case R_386_32) [! RTLD_BOOTSTRAP]: Declare
_dl_rtld_map weak only here.

* posix/unistd.h [__USE_BSD]: Declare getdomainname, setdomainname.

28 years agoWed Jul 3 16:29:41 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu> cvs/libc-960704 cvs/libc-960705
Roland McGrath [Thu, 4 Jul 1996 00:07:18 +0000 (00:07 +0000)]
Wed Jul  3 16:29:41 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>

* nss/getXXbyYY_r.c (REENTRANT_NAME): Cast FCT in __nss_next call.

* sysdeps/generic/sbrk.c: Always call __brk (0) to update __curbrk.

* malloc/malloc-size.c (malloc_usable_size): Renamed from
malloc_object_allocation_size.
* malloc/malloc.h: Fix decl.

* sys/select.h: New file, wrapper header.

* posix/sys/types.h [__USE_BSD]: Include <sys/select.h>; remove
fd_set, associated macros, and select decl.

* sysdeps/posix/isfdtype.c: New file.

Tue Jul  2 23:45:14 1996  Ulrich Drepper  <drepper@cygnus.com>

The latest Japanese proposal for POSIX locales renames the
CHARMAP keyword in locale definition files to CHARCONV.
* locale/programs/ld-ctype.c, locale/programs/locales.h: Rename
        function ctype_is_charmap to ctype_is_charconv.
* locale/programs/locfile-kw.gperf: Replace charmap keyword with
        charconv.
* locale/programs/locfile-token.h: Add definition of token
        charconv.
* locale/programs/locfile.c: Recognize charconv keyword.  Rename
        lables according to this.

* locale/weight.h (get_weight): Cast constants to prevent
        warnings.

* stdlib/strtod.c, stdlib/strtol.c, string/strcoll.c,
string/strxfrm.c: Add some more casts to prevent signed<->unsigned
warnings.

New stuff described in P1003.1g.
* misc/Makefile (headers): Add sys/select.h.
(routines): Add pselect.
* misc/sys/select.h: New file.  Declare select functions and
needed data types and macros.
* sysdeps/generic/pselect.c: New file.  Add generic implementation
of pselect() function which uses select().

* posix/getconf.c: Recognize new variables from P1003.1g.
* posix/posix1_lim.h: Define _POSIX_FD_SETSIZE, _POSIX_QLIMIT,
_POSIX_HIWAT, and _POSIX_UIO_MAXIOV.
* posix/unistd.h: Add description of the P1003.1g variables.
* sysdeps/generic/confname.h: Define _SC_* values for new
variables.
* sysdeps/posix/fpathconf.c (fpathconf): Add handling of
_PC_SOCK_MAXBUF.
* sysdeps/stub/fpathconf.c (fpathconf): Ditto.
* sysdeps/posix/sysconf.c (sysconf): Add handling of new
P1003.1g variables.
* sysdeps/stub/sysconf.c (sysconf): Ditto.
* sysdeps/unix/sysv/linux/posix_opt.h: Define _POSIX_POLL and
_POSIX_SELECT since Linux has this.

* socket/Makefile (routines): Add isfdtype.
* sysdeps/generic/sys/socket.h: Add prototype for isfdtype.
* sysdeps/stub/isfdtype.c: New file.  Stub implementation of
isfdtype.

* wcsmbs/wcrtomb.c (wcrtomb): Fix typo.

28 years ago* elf/Makefile (LDFLAGS-dl.so): New variable.
Roland McGrath [Wed, 3 Jul 1996 19:07:09 +0000 (19:07 +0000)]
* elf/Makefile (LDFLAGS-dl.so): New variable.

(libdl.so): Depend on eval.so.
(distribute): Add eval.c.
* elf/eval.c: New file.

28 years agoWed Jul 3 11:26:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
Roland McGrath [Wed, 3 Jul 1996 18:51:10 +0000 (18:51 +0000)]
Wed Jul  3 11:26:28 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>

* time/strftime.c (strftime: do_number): Adjust P and I after sprintf
in case it wrote fewer than MAXDIGITS chars.

* stdio/fwrite.c (fwrite: fill_buffer): Separate flushing for last
newline from flushing full buffer in loop, fix test so no fflush is
done when last byte written exactly fills the buffer.

* nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Depend on libc.so.

* sysdeps/mach/hurd/Makefile (LDLIBS-c.so): Variable removed.
(libc.so): Instead, give this deps on lib{mach,hurd}user.so.

* elf/dl-debug.c (_dl_debug_initialize): Use LDBASE arg instead of
extracting _dl_rtld_map.l_addr.

* sysdeps/i386/dl-machine.h (elf_machine_rel): Declare _dl_rtld_map as
weak.
* sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.

* shlib-versions (*-*-*): Set libnss_db=1.

* elf/rtld.c (dl_main): Set _dl_rtld_map's DT_DEBUG location too.

28 years agoWed Jul 3 11:26:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
Roland McGrath [Wed, 3 Jul 1996 18:50:39 +0000 (18:50 +0000)]
Wed Jul  3 11:26:28 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>

* shlib-versions (*-*-*): Set libnss_db=1.

28 years ago(login): Only Frob OLD->ut_type if getutline_r actually found any entry. cvs/libc-960703
Miles Bader [Wed, 3 Jul 1996 05:22:21 +0000 (05:22 +0000)]
(login): Only Frob OLD->ut_type if getutline_r actually found any entry.

28 years agoTue Jul 2 10:44:37 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
Roland McGrath [Tue, 2 Jul 1996 22:18:48 +0000 (22:18 +0000)]
Tue Jul  2 10:44:37 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>

* elf/rtld.c (dl_main): Set _dl_rtld_map's DT_DEBUG location too.

28 years ago* rpm/template (%build): Use @prefix@ instead of always /usr.
Roland McGrath [Tue, 2 Jul 1996 21:57:31 +0000 (21:57 +0000)]
* rpm/template (%build): Use @prefix@ instead of always /usr.

Set up configparms only if @prefix@ is in fact /usr.
* rpm/Makefile ($(config)): Substitute $(prefix) for @prefix@.

28 years ago* elf/Makefile: Add missing endif.
Roland McGrath [Tue, 2 Jul 1996 21:53:43 +0000 (21:53 +0000)]
* elf/Makefile: Add missing endif.

28 years ago* nss/nss_files/files-ethers.c (ntohost): Fix db key.
Roland McGrath [Tue, 2 Jul 1996 19:42:29 +0000 (19:42 +0000)]
* nss/nss_files/files-ethers.c (ntohost): Fix db key.

28 years ago* nss/nss_files/files-network.c: Pass empty for new DB_LOOKUP args.
Roland McGrath [Tue, 2 Jul 1996 19:35:40 +0000 (19:35 +0000)]
* nss/nss_files/files-network.c: Pass empty for new DB_LOOKUP args.

(DATABASE): Define this instead of DATAFILE.
* nss/nss_files/files-hosts.c: Likewise.
(hostbyname): Use LOOKUP_NAME macro.

* nss/nss_db/db-XXX.c: New file.
* nss/Makefile (services): Add db.
(libnss_db-inhibit-o): New variable.
(libnss_db-routines): New variable.
(distribute): Append db-XXX.c.
(libnss_db.so): Depend on libdb.so and libnss_files.so.
($(libnss_db-routines:%=$(objpfx)%.c)): New static pattern rule.

* nss/nss_files/files-XXX.c (DB_LOOKUP): Add KEYSIZE and KEYPATTERN
args, ignored.
(DATAFILE): New macro.
* nss/nss_files/files-parse.c (GENERIC): If undefined, define to
"files-XXX.c".
* nss/nss_files/files-rpc.c: Include GENERIC instead of "files-XXX.c".
Pass db key args to DB_LOOKUP.
(DATAFILE): Macro removed.
(DATABASE): New macro replaces it, lacks "/etc/" prefix.
* nss/nss_files/files-service.c: Likewise.
* nss/nss_files/files-pwd.c: Likewise.
* nss/nss_files/files-proto.c: Likewise.
* nss/nss_files/files-grp.c: Likewise.
* nss/nss_files/files-ethers.c: Likewise.

* elf/linux-compat.c: File removed.
* elf/Makefile (distribute): Remove linux-compat.c.
(ld-linux.so.1): Remove target and associated variables.

* sunrpc/xdr.c: Remove malloc decl.
* sunrpc/portmap.c: Likewise.

* sunrpc/svc_tcp.c (abort): Don't declare.  Instead define as macro
casting abort to fn returning bool_t.

* nss/nss_files/files-parse.c [EXTERN_PARSER]: Do an extern decl of
the parser function.
[EXTERN_PARSER] (LINE_PARSER): Define to empty.
* nss/nss_files/files-pwd.c (EXTERN_PARSER): Define it.
* nss/nss_files/files-grp.c: Likewise.

* Makeconfig (BUILD_CC): If undefined, define to $(CC).

* sunrpc/rpc/types.h: Include stdlib.h instead of declaring malloc.

* Makeconfig (built-program-cmd): Use $(rtld-installed-name) in place
of ld.so so lookups for that soname find it.

* nss/Makefile (libnss_dns.so): Depend on libresolv.so.
(resobjdir, LDLIBS-nss_dns.so): Variables removed.

28 years agoTue Jul 2 10:44:37 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
Roland McGrath [Tue, 2 Jul 1996 17:43:35 +0000 (17:43 +0000)]
Tue Jul  2 10:44:37 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>

* pwd/fgetpwent.c: Don't include ../nss/nss_files/files-parse.c to
define parse_line function.
(parse_line): #define to _nss_files_parse_pwent and
add extern decl for that.

* nss/nss_files/files-XXX.c (internal_getent): Return
NSS_STATUS_TRYAGAIN for ERANGE error.

* sysdeps/i386/strtok.S (LreturnNULL): Save current state ptr instead
of null, so next round returns null again instead of bombing.  Fix
from drepper.

* nss/nss_files/files-parse.c (LINE_PARSER): Take new first arg EOLSET.
Remove ; after `ENTDATA_DECL (data)'.
Truncate line at strpbrk (line, EOLSET "\n").
(ENTDATA_DECL): Put ; at end.
(MIDLINE_COMMENTS): Macro removed.
* nss/nss_files/files-ethers.c: Pass new argument.
* nss/nss_files/files-hosts.c: Likewise.
* nss/nss_files/files-network.c: Likewise.
* nss/nss_files/files-parse.c: Likewise.
* nss/nss_files/files-proto.c: Likewise.
* nss/nss_files/files-rpc.c: Likewise.
* nss/nss_files/files-service.c: Likewise.
* grp/fgetgrent.c: Likewise.
* pwd/fgetpwent.c: Likewise.
* nss/nss_files/files-pwd.c: Get parse_line with extern decl, since
fgetpwent.c already defines it.
* nss/nss_files/files-grp.c: Likewise.

* elf/dl-load.c (_dl_map_object): Use any object with matching l_name
as well as any matching with l_libname.  Fix DT_SONAME lookup to use
string table properly.

* elf/rtld.c (dl_main): Set _dl_rtld_map.l_name from _dl_argv[0] when
invoked directly, and l_libname from that if PT_INTERP missing.
Set l_name from l_libname only if not set from argv.

* time/europe, time/northamerica: Updated from ADO 96i.

* stdio-common/tst-ungetc.c: Include unistd.h.

28 years agoMon Jul 1 15:44:34 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu> cvs/libc-960702
Roland McGrath [Mon, 1 Jul 1996 23:04:49 +0000 (23:04 +0000)]
Mon Jul  1 15:44:34 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>

* inet/Makefile (routines): Change getnetbypt to getnetbyad.

Mon Jul  1 12:29:50 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>

* nss/Makefile (databases): Change host to hosts.
* nss/host-lookup.c: Renamed to nss/hosts-lookup.c.

* nss/nsswitch.c (nss_parse_service_list): Use const for NAME.

* nss/nss_files/files-parse.c (parse_list): Correct alignment fixup.

* string/string.h (strndupa): Pass missing arg to strnlen.

* inet/getnetbypt_r.c: Renamed to ...
* inet/getnetbyad_r.c: this; fixed function name.
* inet/getnetbypt.c: Renamed to ...
* inet/getnetbyad.c: this; fixed function name.

Sat Jun 29 01:08:35 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

* grp/getgrgid_r.c (LOOKUP_TYPE): Define to struct group, not
struct passwd.

Fri Jun 28 16:53:01 1996  David Mosberger-Tang  <davidm@azstarnet.com>

* resolv/res_hconf.c (strndup): Remove function.

* nss/nsswitch.c (nss_lookup_function): Declare loadbase and ref
using ElfW() instead of Elf32_*.

* sysdeps/unix/sysv/linux/alpha/init-first.h,
  sysdeps/unix/sysv/linux/m68k/init-first.h,
  sysdeps/unix/sysv/linux/i386/init-first.h: New files.
* sysdeps/unix/sysv/linux/init-first.c: Use platform-dependent
  init-first.h to make abstract machine dependent parts of
initialization.

* sysdeps/unix/alpha/sysdep.h: Undo PIC-optimization of syscall
error handling.  It's safer that way.

* sysdeps/unix/alpha/sysdep.S: Make ldgp part of the prologue.
Fix by Richard Henderson.

* sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt): Fix
  typo/extraneous whitespace.

* sunrpc/xdr.c (xdr_int, xdr_u_int): Use <limits.h> to test
determine what integer sizes we're dealing with.

* hurd/hurdsig.c (_hurd_internal_post_signal): In pending signal
check for signal zero, repair logical sense of test by
parenthesizing correctly.

Thu Jun 27 04:04:27 1996  David Mosberger-Tang  <davidm@azstarnet.com>

* configure.in (config_machine): Make ELF the default even for
Linux/Alpha unless a configuration of the form *-*-linux*ecoff
is specified.

* nss/nss_files/files-hosts.c (ENTDATA): Define it.
* nss/nss_files/files-parse.c (struct parser_data): Define entdata
member only #ifdef ENTDATA.
(ENTDATA_DECL): New macro.
(LINE_PARSER): Use it for entdata decl.
(parse_list): Find the space for LIST from DATA->linebuffer instead of
from the input LINE, which might not be writable buffer space.
(LINE_PARSER): Use `parser_stclass' in place of `static inline'.
[ENTDATA] (parser_stclass): #define to `static inline'.
[!ENDATA] (parser_stclass): #define to empty.
[!ENTDATA] (parse_line): #define to _nss_files_parse_ENTNAME; the
function is exported to -lnss_files users.

* string/strndup.c: Add missing arg.

* string/strndup.c (strndup): Always terminate the string.

28 years agoAdd *.mo
Roland McGrath [Mon, 1 Jul 1996 23:03:12 +0000 (23:03 +0000)]
Add *.mo

28 years ago* hurd/report-wait.c (describe_number): Make I unsigned long.
Miles Bader [Mon, 1 Jul 1996 22:37:26 +0000 (22:37 +0000)]
* hurd/report-wait.c (describe_number): Make I unsigned long.

28 years ago(describe_number): Make I unsigned long.
Miles Bader [Mon, 1 Jul 1996 22:35:18 +0000 (22:35 +0000)]
(describe_number): Make I unsigned long.

28 years agoMon Jul 1 12:29:50 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
Roland McGrath [Mon, 1 Jul 1996 22:16:41 +0000 (22:16 +0000)]
Mon Jul  1 12:29:50 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>

* nss/Makefile (databases): Change host to hosts.
* nss/host-lookup.c: Renamed to nss/hosts-lookup.c.

28 years agoMon Jul 1 12:29:50 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
Roland McGrath [Mon, 1 Jul 1996 22:16:08 +0000 (22:16 +0000)]
Mon Jul  1 12:29:50 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>

* inet/Makefile (routines): Change getnetbypt to getnetbyad.
* inet/getnetbypt_r.c: Renamed to ...
* inet/getnetbyad_r.c: this; fixed function name.
* inet/getnetbypt.c: Renamed to ...
* inet/getnetbyad.c: this; fixed function name.

28 years agoMon Jul 1 13:32:42 1996 Miles Bader <miles@gnu.ai.mit.edu>
Miles Bader [Mon, 1 Jul 1996 19:33:30 +0000 (19:33 +0000)]
Mon Jul  1 13:32:42 1996  Miles Bader  <miles@gnu.ai.mit.edu>

* login/login.c (login): Only Frob OLD->ut_type if getutline_r
actually found any entry.

* login/pututline_r.c (pututline_r): If not located after any
entry don't use UTMP_DATA->ubuf, and seek to the end before adding.
Lock the file before stating.

28 years ago(pututline_r): If not located after any entry don't use UTMP_DATA->ubuf, and seek...
Miles Bader [Mon, 1 Jul 1996 19:19:08 +0000 (19:19 +0000)]
(pututline_r): If not located after any entry don't use UTMP_DATA->ubuf, and   seek to the end before adding.  Lock the file before stating.

28 years agoFri Jun 28 15:46:02 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
Roland McGrath [Mon, 1 Jul 1996 18:10:03 +0000 (18:10 +0000)]
Fri Jun 28 15:46:02 1996  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>

* hurd/hurdsig.c (_hurd_internal_post_signal): In pending signal
check for signal zero, repair logical sense of test by
parenthesizing correctly.

28 years agoFri Jun 28 15:46:02 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
Roland McGrath [Mon, 1 Jul 1996 18:00:14 +0000 (18:00 +0000)]
Fri Jun 28 15:46:02 1996  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>

* hurd/hurdsig.c (_hurd_internal_post_signal): In
  check-for-pending signals code, release _hurd_siglock before
  jumping to deliver_pending.

* hurd/hurdsig.c (_hurd_internal_post_signal): In pending signal
check for signal zero, repair logical sense of test by
parethisizing correctly.

28 years agoSat Jun 29 00:02:11 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
Roland McGrath [Mon, 1 Jul 1996 16:32:03 +0000 (16:32 +0000)]
Sat Jun 29 00:02:11 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

* string/strndup.c (strndup): Properly terminate the new
string; add missing second argument to strnlen.
* string/string.h (strndupa): Likewise.

28 years agoFri Jun 28 23:25:35 1996 Miles Bader <miles@gnu.ai.mit.edu> cvs/libc-960629 cvs/libc-960630 cvs/libc-960701
Miles Bader [Sat, 29 Jun 1996 03:40:40 +0000 (03:40 +0000)]
Fri Jun 28 23:25:35 1996  Miles Bader  <miles@gnu.ai.mit.edu>

* login/login.c (login): Initialize DATA so that setutent_r will
  actually do something.

28 years ago(login): Initialize DATA so that setutent_r will actually do something.
Miles Bader [Sat, 29 Jun 1996 03:37:49 +0000 (03:37 +0000)]
(login): Initialize DATA so that setutent_r will actually do something.

28 years ago(_hurd_internal_post_signal): In check-for-pending signals code, release _hurd_sigloc...
Thomas Bushnell, BSG [Fri, 28 Jun 1996 20:29:45 +0000 (20:29 +0000)]
(_hurd_internal_post_signal): In check-for-pending signals code, release _hurd_siglock before jumping to deliver_pending.

28 years ago(_hurd_internal_post_signal): In pending signal check for signal zero, repair logical...
Thomas Bushnell, BSG [Fri, 28 Jun 1996 19:44:50 +0000 (19:44 +0000)]
(_hurd_internal_post_signal): In pending signal check for signal zero, repair logical sense of test by parethisizing correctly.

28 years ago(mips:*:*:UMIPS): Fix typo in last change.
Richard Kenner [Fri, 28 Jun 1996 17:28:58 +0000 (17:28 +0000)]
(mips:*:*:UMIPS): Fix typo in last change.

28 years agoFri Jun 28 07:27:10 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
Roland McGrath [Fri, 28 Jun 1996 11:42:05 +0000 (11:42 +0000)]
Fri Jun 28 07:27:10 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>

* string/strndup.c (strndup): Always terminate the string.
* string/string.h (strndupa): Likewise.

Thu Jun 27 14:22:31 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

* stdio/Makefile (routines): Add vscanf.
* stdio-common/Makefile (routines): Remove vscanf.
* stdio-common/vscanf.c: Move to ...
* stdio/vscanf.c: here.

* rpm/Makefile (headers, install-lib, install-lib.so,
versioned, install-bin, install-sbin, install-data,
install-others): Add $(-VARIABLE).

28 years agoFri Jun 28 02:41:08 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu> cvs/libc-960628
Roland McGrath [Fri, 28 Jun 1996 08:56:59 +0000 (08:56 +0000)]
Fri Jun 28 02:41:08 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>

* nss/Makefile (databases): New variable.
(routines, libnss_files-routines): Use it.
(subdir-dirs): Compute from $(services).

* sysdeps/unix/sysv/linux/syscalls.list (create_module, delete_module,
init_module, klogctl): Use EXTRA in the "caller" column so these get
added to unix-extra-syscalls and thus compiled in misc.

* string/Makefile (routines): Add strndup.
* string/strndup.c: New file.
* string/string.h: Declare strndup.
(strndupa): New macro.

* string/string.h: Declare __strdup.
* string/strdup.c: Deansideclized.  Define __ name and weak alias.

* string/string.h: Don't define memccpy as macro for [__OPTIMIZE__].

Thu Jun 27 23:43:22 1996  Richard Henderson  <rth@tamu.edu>

* sysdeps/alpha/dl-machine.h (elf_machine_rela):  The Alpha's
address-of operation and plt format conspire to require all
dynamic relocs to be resolved to actual symbols not plt entries.

Thu Jun 27 02:49:28 1996  Ulrich Drepper  <drepper@cygnus.com>

* catgets/gencat.c: Add casts to avoid signed<->unsigned warnings.

* grp/initgroups.c (initgroups): De-ansi-fy.
Move declaration of NGROUPS and GROUPS outside #if so that
the code compiles for NGROUPS_MAX != 0.

* inet/Makefile (headers): Add netinet/ether.h and netinet/if_ether.h.
(routines): Add ether_aton, ether_aton_r, ether_hton, ether_line,
ether_ntoa, ether_ntoa_r, and ether_ntoh.
* inet/ether_aton.c, inet/ether_aton_r.c, inet/ether_hton.c,
inet/ether_line.c, inet/ether_ntoa.c, inet/ether_ntoa_r.c,
inet/ether_ntoh.c: New files.  Implementation of functions to
handle Ethernet address to host mapping.
* inet/netinet/ether.h: New file.  Declare ether_* functions.
* netinet/ether.h: Wrapper around inet/netinet/ether.h for glibc
compilation.
* nss/ethers-lookup.c: New file.  Lookup function for ethers database.
* nss/Makefile (routines): Add ethers-lookup.
(libnss_files-routines): Add files-ethers.

* nss/getXXent_r.c: Don't define set*ent and end*ent function
with _r suffix.

* nss/nss_files/files-XXX.c (internal_endent): Don't reset
KEEP_STREAM every time called.
(_nss_files_end): Reset KEEP_STREAM here instead.
(internal_getent): If STREAM == NULL try to open instead of
signalling error.
Use cast to prevent warning.
Terminate read line in case the buffer is too small.

* nss/nss_files/files-ethers.c: New file.  Implementation of
Ethernet adress<->hostname lookup through files interface.

* stdlib/mbstowcs.c: Define based on mbsrtowcs().
* stdlib/mbtowc.c: Define based on mbrtowc().
* stdlib/wcstombs.c: Define based on wcsrtombs().
* stdlib/wctomb.c: Define based on wcrtomb().

* sunrpc/xdr.c (xdr_u_int): Avoid bogus call to
unexpected_sizes_in_xdr_u_int.

* sysdeps/generic/netinet/if_ether.h: New file.  Generic declaration
of `struct ether_addr'.
* sysdeps/unix/sysv/linux/netinet/if_ether.h: New file.  Linux specific
declaration of `struct ether_addr'.

* wcsmbs/mbrtowc.c: Handle case where argument PS is NULL.
* wcsmbs/mbsrtowcs.c: Ditto.
* wcsmbs/wcrtomb.c: Ditto.
* wcsmbs/wcsrtombs.c: Ditto.

* wcsmbs/mbsinit.c: Prepare for PS being NULL.

28 years agoThu Jun 27 23:43:22 1996 Richard Henderson <rth@tamu.edu>
Roland McGrath [Fri, 28 Jun 1996 06:39:22 +0000 (06:39 +0000)]
Thu Jun 27 23:43:22 1996  Richard Henderson  <rth@tamu.edu>

* sysdeps/alpha/dl-machine.h (elf_machine_rela):  The Alpha's
address-of operation and plt format conspire to require all
dynamic relocs to be resolved to actual symbols not plt entries.

28 years ago* hurd/get-host.c <fcntl.h>: New include. cvs/libc-960627
Miles Bader [Wed, 26 Jun 1996 21:07:21 +0000 (21:07 +0000)]
* hurd/get-host.c <fcntl.h>: New include.

* hurd/set-host.c <fcntl.h>: New include.
(_hurd_set_host_config): Include NEW in args to dir_link.
Return NWROTE, not NREAD.

28 years agoWed Jun 26 13:19:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
Miles Bader [Wed, 26 Jun 1996 17:46:38 +0000 (17:46 +0000)]
Wed Jun 26 13:19:35 1996  Miles Bader  <miles@gnu.ai.mit.edu>

* sysdeps/mach/hurd/getcwd.c
(_hurd_canonicalize_directory_name_internal): Don't deallocate
DOTID & DOTDEVID until we're finished with them (we need to keep
them at least until we've fetched the next level of id ports, so
that mach will be able to use the same name if they're the same).
Add inner_errlose: label, which deallocates DOTID & DOTDEVID and
jumps to errlose, for those places where such cleanup is needed.

28 years ago(_hurd_canonicalize_directory_name_internal): Don't deallocate DOTID & DOTDEVID...
Miles Bader [Wed, 26 Jun 1996 17:44:44 +0000 (17:44 +0000)]
(_hurd_canonicalize_directory_name_internal):   Don't deallocate DOTID & DOTDEVID until we're finished with them (we need     to keep them at least until we've fetched the next level of id ports, so     that mach will be able to use the same name if they're the same).   Add inner_errlose: label, which deallocates DOTID & DOTDEVID and jumps to     errlose, for those places where such cleanup is needed.

28 years agoWed Jun 26 01:58:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
Roland McGrath [Wed, 26 Jun 1996 15:46:01 +0000 (15:46 +0000)]
Wed Jun 26 01:58:49 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>

* nss/nss_files/files-parse.c (parse_list): Count null in EOL calc.

Move DB code into separate -ldb library.
* db/Makefile (extra-libs): New variable, list libdb.
(routines): Renamed to libdb-routines.
* shlib-versions: Add libdb=2.

* nss/network-lookup.c (DEFAULT_CONFIG): New macro.
* nss/host-lookup.c (DEFAULT_CONFIG): New macro.

* nss/nsswitch.c (nss_parse_service_list): Use __strncasecmp instead
of strncasecmp.  Extend syntax to grok [!foo=bar].

* sysdeps/generic/strncase.c: Define __strncasecmp with strncasecmp as
weak alias.
* string/string.h: Declare __strncasecmp.

* nss/nsswitch.c (nss_parse_file): Call __getline, not getline.
(service_alias): Variable removed.
(nss_parse_service_list): New function, broken out of nss_getline.
Remove alias conversion; we will just use symlinks.
(__nss_database_lookup): Take new string arg DEFCONFIG.
If no entry exists, make one with service list parsed from that.
* nss/nsswitch.h: Update protocol for __nss_database_lookup.
* nss/XXX-lookup.c (DEFAULT_CONFIG): New macro, set to 0 if undefined.
(DB_LOOKUP_FCT): Pass it to _nss_database_lookup.

* grp/initgroups.c: Rewritten using getgrent.  Handle unlimited group
list size.

* sunrpc/xdr.c (xdr_int): #if 0 out unresolved references in dead code.

Wed Jun 26 01:56:50 1996  Ulrich Drepper  <drepper@cygnus.com>

* locale/programs/locale.c (long_options): Short form of
--version option is `-V'.
(main): Recognize `-V' as option, not `-v'.
Call `usage' instead of printing error message for illegal
option.
(usage): Document `-V'.

28 years agoWed Jun 26 01:58:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu> cvs/libc-960626
Roland McGrath [Wed, 26 Jun 1996 06:13:37 +0000 (06:13 +0000)]
Wed Jun 26 01:58:49 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>

* sunrpc/xdr.c (xdr_int): #if 0 out unresolved references in dead code.

28 years agoTue Jun 25 17:22:55 1996 Miles Bader <miles@gnu.ai.mit.edu>
Miles Bader [Tue, 25 Jun 1996 21:50:49 +0000 (21:50 +0000)]
Tue Jun 25 17:22:55 1996  Miles Bader  <miles@gnu.ai.mit.edu>

* sysdeps/mach/hurd/getcwd.c
(_hurd_canonicalize_directory_name_internal): Initialize PARENT to
THISDIR, and don't ever deallocate PARENT unless it's != THISDIR.

28 years ago(_hurd_canonicalize_directory_name_internal): Initialize PARENT to THISDIR, and...
Miles Bader [Tue, 25 Jun 1996 21:48:49 +0000 (21:48 +0000)]
(_hurd_canonicalize_directory_name_internal): Initialize PARENT to   THISDIR, and don't ever deallocate PARENT unless it != THISDIR.

28 years agoTue Jun 25 10:58:23 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
Roland McGrath [Tue, 25 Jun 1996 18:22:06 +0000 (18:22 +0000)]
Tue Jun 25 10:58:23 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>

* inet/getrpcent.c: Fix macros.
* inet/getrpcent_r.c: Fix macros.

* elf/dlsym.c (dlsym): Search the global scope if HANDLE is null.

* elf/dl-load.c (_dl_map_object_from_fd): Initialize L.

28 years agoTue Jun 25 09:55:47 1996 David Mosberger-Tang <davidm@AZStarNet.com>
Roland McGrath [Tue, 25 Jun 1996 13:56:54 +0000 (13:56 +0000)]
Tue Jun 25 09:55:47 1996  David Mosberger-Tang  <davidm@AZStarNet.com>

* catgets/gencat.c (write_out): Use %Zu to print variables of type
  size_t.
* resolv/res_debug.c (__p_rr): Print size_t variable as %lu and
cast it to (unsigned long) to make it work both on 32 and 64
bit architectures.

Sat Jun 22 13:05:25 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

* locale/Makefile (distribute): Add `programs/' prefix to all
files in that directory.

* Makerules (distinfo-vars): Assign subdir directly so that `ifdef
subdir' works.

* MakeTAGS (sources, headers): Make them simply expanded variables
so that all-dist is expanded before it is changed.

28 years ago* Make-dist (dist): Don't depend on crypt tar file. Remove that rule.
Roland McGrath [Tue, 25 Jun 1996 13:49:53 +0000 (13:49 +0000)]
* Make-dist (dist): Don't depend on crypt tar file.  Remove that rule.

28 years ago* Makefile (subdirs): Remove crypt.
Roland McGrath [Tue, 25 Jun 1996 13:46:05 +0000 (13:46 +0000)]
* Makefile (subdirs): Remove crypt.

* crypt: Directory removed.  It will be made an independent library
distribution.

* Makefile (distribute): Add rpm/{Makefile,teplate,rpmrc}.

28 years ago* inet/getrpcent_r.c (DATABASE_NAME): New macro.
Roland McGrath [Tue, 25 Jun 1996 13:40:47 +0000 (13:40 +0000)]
* inet/getrpcent_r.c (DATABASE_NAME): New macro.

28 years ago* inet/getrpcbynumber.c (BUFLEN): New macro.
Roland McGrath [Tue, 25 Jun 1996 12:13:01 +0000 (12:13 +0000)]
* inet/getrpcbynumber.c (BUFLEN): New macro.

* configure.in (--no-whole-archive check): Remove backslashes in cmd.

28 years ago* Makefile (headers): Add libc-lock.h.
Roland McGrath [Tue, 25 Jun 1996 11:59:42 +0000 (11:59 +0000)]
* Makefile (headers): Add libc-lock.h.

* sysdeps/stub/libc-lock.h: New file.

* inet/getrpcbynumber.c: Remove _r typo.

* elf/dl-load.c (_dl_map_object): Fix typo in last change.

28 years ago* resolv/Makefile (distribute): Remove res_hconf.h; add mapv4v6addr.h
Roland McGrath [Tue, 25 Jun 1996 10:52:53 +0000 (10:52 +0000)]
* resolv/Makefile (distribute): Remove res_hconf.h; add mapv4v6addr.h

and mapv4v6hostent.h.
(routines): Move res* and gethnamaddr into libresolv-routines.
(libresolv-routines): New variable, put them there.
(extra-libs): New variable, list libresolv.
(CPPFLAGS): Add -D for get*by* to res_get*by*.

28 years ago* nss/nss_files/files-parse.c (parse_list): Reset ELT for elements
Roland McGrath [Tue, 25 Jun 1996 10:20:09 +0000 (10:20 +0000)]
* nss/nss_files/files-parse.c (parse_list): Reset ELT for elements

after the first!

* nss/nsswitch.c (__nss_database_lookup): If nsswitch.conf is missing
or doesn't mention DATABASE, use an internal default equivalent to
"DATABASE: compat [NOTFOUND=return] dns [NOTFOUND=return] files".
(nss_lookup_function): Call nss_new_service as needed.
(nss_parse_file): Don't bother calling nss_new_service here.

* grp/fgetgrent.c (LINE_PARSER): Pass zero SWALLOW arg for fields.
* pwd/fgetpwent.c: Likewise.

28 years agoTue Jun 25 02:59:11 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu> cvs/libc-960625
Roland McGrath [Tue, 25 Jun 1996 08:56:57 +0000 (08:56 +0000)]
Tue Jun 25 02:59:11 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>

* malloc/malloc.h: Declare malloc_object_allocated_size, malloc_walk.
* malloc/Makefile (dist-routines): Add malloc-size, malloc-walk.
* malloc/malloc-size.c: New file.
* malloc/malloc-walk.c: New file.

* malloc/malloc-find.c (malloc_find_object_address): Return null if
PTR is outside the heap.

* elf/dl-load.c (_dl_map_object): If the requested name matches the
  soname of a loaded object, use that object.

Mon Jun 24 19:57:01 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>

* Makefile (subdirs): Add nss.

* inet/Makefile (routines): Add getrpcent, getrpcbyname,
getrpcbynumber, getrpcent_r, getrpcbyname_r, getrpcbynumber_r.
* inet/getrpcbynumber_r.c: New file.
* inet/getrpcbynumber.c: New file.
* inet/getrpcbyname.c: New file.
* inet/getrpcbyname_r.c: New file.
* inet/getrpcent_r.c: New file.
* inet/getrpcent.c: New file.
* nss/rpc-lookup.c: New file.
* nss/nss_files/files-rpc.c: New file.
* nss/Makefile (routines): Add rpc-lookup.
(libnss_files-routines): Add files-rpc.
* sunrpc/Makefile (routines): Remove getrpcent.
* sunrpc/getrpcent.c: File removed.

* nss/getXXent_r.c (REENTRANT_GETNAME): Clear NO_MORE when NIP is
non-null on entry.

* Makeconfig (rpath-link): Add $(nssobjdir).
(nssobjdir): New variable.

* Makerules: Move shared library building before objects rules, so
versions are known before extra-lib.mk gets included.
* extra-lib.mk (lib-noranlib): Depend on the shared object too.

* pwd/getpwuid.c: Rewritten using nss.
* pwd/getpwnam.c: Likewise.
* pwd/getpwent.c: Likewise.
* grp/getgrnam.c: Likewise.
* grp/getgrgid.c: Likewise.
* grp/getgrent.c: Likewise.
* pwd/Makefile (routines): Add getpwent_r, getpwnam_r, getpwuid_r.
* pwd/getpwent_r.c: New file.
* pwd/getpwnam_r.c: New file.
* pwd/getpwuid_r.c: New file.
* grp/Makefile (routines): Add getgrent_r, getgrgid_r, getgrnam_r.
* grp/getgrnam_r.c: New file.
* grp/getgrgid_r.c: New file.
* grp/getgrent_r.c: New file.
* grp/Makefile (routines): Remove grpopen, grpread.
* pwd/Makefile (routines): Remove pwdopen, pwdread.
* grp/grpopen.c, grp/grpread.c, pwd/pwdopen.c, pwd/pwdread.c: Removed.

* pwd/fgetpwent.c: Rewritten using files-parse.c.
* grp/fgetgrent.c: Likewise.

* nss/Makefile (routines): Add grp-lookup and pwd-lookup.
* nss/pwd-lookup.c, nss/grp-lookup.c: New files.
* nss/nss_files/files-grp.c: New file.
* nss/nss_files/files-pwd.c: New file.

* nss/Makefile (subdir-dirs): New variable; use it in vpath.

* nss/nss_files/files-parse.c: New file.
* nss/nss_files/files-XXX.c: New file.
* nss/nss_files/files-hosts.c, nss/nss_files/files-proto.c,
nss/nss_files/files-service.c, nss/nss_files/files-network.c:
Rewritten using them.

* nss/Makefile (libnss_files-routines): Remove files-host.
Add files-hosts, files-grp, files-pwd.

* nss/nss_dns/dns-network.c: Don't include <pthread.h>.

Mon Jun 24 22:39:12 1996  Richard Henderson  <rth@tamu.edu>

* sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
A .plt entry now loads the .rela.plt offset directly rather
than making us calculate it.

Sun Jun 23 15:24:05 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>

* time/Makefile ($(installed-localtime-file) rule): Do
$(make-target-directory) first.

* resolv.h: Fix wrapper for resolv/resolv.h.

* configure.in (ld --no-whole-archive check): Use AC_TRY_COMMAND.
Compile dummy file and pass -nostdlib -nostartfiles so as not to
require installed libraries.

* shlib-versions (*-*-*): Set libresolv=2, libnss_files=1,
libnss_dns=1.

Sun Jun 23 19:42:05 1996  Ulrich Drepper  <drepper@cygnus.com>

* resolv/netdb.h (_PATH_NSSWITCH_CONF): New macro.

* inet/herrno.c: New file.

* resolv/res_init.c: Remove res_hconf calls.

* nss/Makefile, nss/XXX-lookup.c, nss/file-lookup.c,
nss/getXXbyYY.c, nss/getXXbyYY_r.c, nss/getXXent.c,
nss/getXXent_r.c, nss/host-lookup.c, nss/network-lookup.c,
nss/nsswitch.c, nss/nsswitch.h, nss/proto-lookup.c,
nss/service-lookup.c: New files.  Implementation of name
service switch, following the approach in Solaris.
Interface specification and general structure inspired by Peter
Eriksson <pen@lysator.liu.se>.
* nss/nss_files/files-host.c, nss/nss_files/files-network.c,
nss/nss_files/files-proto.c, nss/nss_files/files-service.c:
Implementation of libnss_files.so module for file based databases
in NSS service.
* nss/nss_dns/dns-host.c, nss/nss_dns/dns-network.c: Implementation
        if libnss_dns.so module for DNS name lookup in NSS service.

* inet/getproto.c, inet/getprtent.c, inet/getprtname.c,
inet/getservent.c, inet/getsrvbynm.c, inet/getsrvbypt.c:
Changed to serve as interface to NSS.
* inet/gethstbyad.c, inet/gethstbyad_r.c, inet/gethstbynm.c,
inet/gethstbynm2.c, inet/gethstbynm2_r.c, inet/gethstbynm_r.c,
inet/gethstent.c, inet/gethstent_r.c, inet/getnetbynm.c,
inet/getnetbynm_r.c, inet/getnetbypt.c, inet/getnetbypt_r.c,
inet/getnetent.c, inet/getnetent_r.c, inet/getproto_r.c,
inet/getprtent_r.c, inet/getprtname_r.c, inet/getservent_r.c,
inet/getsrvbynm_r.c, inet/getsrvbypt_r.c: New files.  Implement
interfaces to NSS, including reentrant functions.

* resolv/getnetbyaddr.c, resolv/getnetbyname.c, resolv/getnetent.c,
resolv/sethostent.c: Removed:  Obsoleted by NSS.

* resolv/mapv4v6addr.h, resolv/mapv4v6hostent.h: Extracted from
gethnamaddr.c.  These private functions are now used in more
than one file.

* resolv/inet_pton.c, resolv/gethnamaddr.c: Updated to bind-4.9.4-T5B.

Sat Jun 22 16:49:47 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

* rpm/Makefile ($(config)): Make sure the word list in the for
loop is syntactically non-empty.

28 years agoSat Jun 22 21:29:52 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu> cvs/libc-1-92 cvs/libc-960623 cvs/libc-960624 glibc-1.92
Roland McGrath [Sun, 23 Jun 1996 01:31:00 +0000 (01:31 +0000)]
Sat Jun 22 21:29:52 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>

* Version 1.92 test release.

Sat Jun 22 23:30:07 1996  David Mosberger-Tang  <davidm@azstarnet.com>

* sysdeps/unix/sysv/linux/syscalls.list (ksyslog_ctl): Rename
to klogctl to match prototype in sys/klog.h.

* sysdeps/posix/libc_fatal.c: Add include of <string.h>.
* sysdeps/unix/sysv/linux/gethostid.c: Ditto.

* sysdeps/posix/getcwd.c (__canonicalize_directory_name_internal):
Remove.  Code is now part of __getcwd again.  The old function
never really worked for anything but THISDIR==".".

* sysdeps/alpha/Makefile (CFLAGS-rtld.c): Add -mbuild-constants
only when building ELF version of library.

* libio/libioP.h (_IO_vscanf): Add prototype.

* posix/unistd.h (syscall): Change sysno arg and return value
to int long.

* version.h (VERSION): Updated to 1.92.

28 years ago* version.h (VERSION): Version 1.92 test release.
Roland McGrath [Sat, 22 Jun 1996 22:06:08 +0000 (22:06 +0000)]
* version.h (VERSION): Version 1.92 test release.

* misc/Makefile (headers): Add ar.h.
* misc/ar.h: New file.

* config.make.in (BUILD_CC): New variable.
* configure.in: Check for BUILD_CC if $host != $build.

* posix/glob.c: Include <alloca.h> only [HAVE_ALLOCA_H], not [sparc].

* Makerules [! objects] (subdir_lib): Depend on the stamp$o files.
(stamp$o files): New targets, create them empty, no deps.

Update from bind-4.9.4-T3B.

28 years agoRegenerated
Roland McGrath [Sat, 22 Jun 1996 21:14:17 +0000 (21:14 +0000)]
Regenerated

Sat Jun 22 10:44:09 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>

* posix/glob.c: Include <alloca.h> only [HAVE_ALLOCA_H], not [sparc].

Fri Jun 21 00:27:51 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>

* posix/fnmatch.c (fnmatch): Fix \*[*?]+ case to increment name ptr
  only for ?s, not for *s.  Fix from Chet Ramey.

Wed May 22 17:22:14 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>

* posix/glob.c [VMS]: Don't include <pwd.h>.
[HAVE_VMSDIR_H]: Include "vmsdir.h".
(glob) [VMS]: Don't grok ~.

* posix/glob.h [_AMIGA]: Remove `struct stat;' forward decl.

28 years agoSat Jun 22 10:44:09 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
Roland McGrath [Sat, 22 Jun 1996 15:00:08 +0000 (15:00 +0000)]
Sat Jun 22 10:44:09 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>

* rpm/template (Source): New field.
(%prep, %build, %install): New sections.
(%files): Add %doc FAQ NEWS NOTES README.
* rpm/rpmrc (builddir): Removed.

28 years ago* elf/dl-load.c (_dl_map_object_from_fd): Fix mapping and l_phdr cvs/libc-960622
Roland McGrath [Fri, 21 Jun 1996 21:37:08 +0000 (21:37 +0000)]
* elf/dl-load.c (_dl_map_object_from_fd): Fix mapping and l_phdr

  guessing to not assume p_vaddr of first load cmd is zero.

28 years ago* sysdeps/sparc/elf/start.S: New file.
Roland McGrath [Fri, 21 Jun 1996 21:01:27 +0000 (21:01 +0000)]
* sysdeps/sparc/elf/start.S: New file.

* sysdeps/sparc/dl-machine.h: New file.

* posix/fnmatch.c (fnmatch): Fix \*[*?]+ case to increment name ptr
  only for ?s, not for *s.  Fix from Chet Ramey.

Fixes thanks to Raja R Harinath <harinath@cs.umn.edu>:
* sysdeps/unix/sysv/utmpbits.h: Define _HAVE_UT_{TYPE,ID,TV,HOST}.
Use __{BEGIN,END}_DECLS.
(_PATH_WTMP, _PATH_UTMP, _PATH_LASTLOG): New macros.
* login/utmp.h (UTMP_FILE, UTMP_FILENAME, WTMP_FILE, WTMP_FILENAME):
New macros, moved here from sysdeps/gnu/utmpbits.h.
* sysdeps/generic/utmpbits.h (_HAVE_UT_HOST): Define it.
* sysdeps/gnu/utmpbits.h (_HAVE_UT_HOST): Likewise.
* login/logout.c: Use ut_host only #if _HAVE_UT_HOST.
Use sizeof instead of UT_*SIZE.
* login/logwtmp.c: Likewise.

* misc/tsearch.c (tdelete): Define as weak alias to __tdelete.

* version.c (banner): Add trailing newline.

28 years agoFri Jun 21 00:27:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu> cvs/libc-960621
Roland McGrath [Fri, 21 Jun 1996 04:33:09 +0000 (04:33 +0000)]
Fri Jun 21 00:27:51 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>

* login/utmp.h: Declare login_tty.

Thu Jun 20 21:19:07 1996  Richard Henderson  <rth@tamu.edu>

* sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt):
Changed to a 12-byte PLT entry to remove dependency on $gp.
Take a new got_addr parameter.
(elf_machine_rela): Pass the new parameter.
(ELF_MACHINE_RUNTIME_TRAMPOLINE): Do arithmetic for 12-byte PLT.
(RTLD_START): Do normal linkage with program entry.

__hurd_file_name_lookup, __hurd_file_name_split): Add & use LOOKUP
argument.
__hurd_file_name_lookup_retry, hurd_file_name_lookup_retry:

28 years agoThu Jun 20 21:19:07 1996 Richard Henderson <rth@tamu.edu>
Roland McGrath [Fri, 21 Jun 1996 04:30:50 +0000 (04:30 +0000)]
Thu Jun 20 21:19:07 1996  Richard Henderson  <rth@tamu.edu>

* sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt):
Changed to a 12-byte PLT entry to remove dependency on $gp.
Take a new got_addr parameter.
(elf_machine_rela): Pass the new parameter.
(ELF_MACHINE_RUNTIME_TRAMPOLINE): Do arithmetic for 12-byte PLT.
(RTLD_START): Do normal linkage with program entry.

28 years agoThu Jun 20 12:18:21 1996 Miles Bader <miles@gnu.ai.mit.edu>
Miles Bader [Thu, 20 Jun 1996 21:32:45 +0000 (21:32 +0000)]
Thu Jun 20 12:18:21 1996  Miles Bader  <miles@gnu.ai.mit.edu>

* sysdeps/mach/hurd/brk.c (_hurd_brk): Initialize to 0.

* hurd/getuids.c (getuids): New weak link to __getuids.

28 years ago(___brk_addr): Now a variable, initialized to 0, instead of a weak link to _hurd_brk.
Miles Bader [Thu, 20 Jun 1996 17:34:37 +0000 (17:34 +0000)]
(___brk_addr):   Now a variable, initialized to 0, instead of a weak link to _hurd_brk.