From eb48c9632eb9b40b0855003d48e5547c542d2abe Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 1 Jul 1996 23:04:49 +0000 Subject: Mon Jul 1 15:44:34 1996 Roland McGrath * inet/Makefile (routines): Change getnetbypt to getnetbyad. Mon Jul 1 12:29:50 1996 Roland McGrath * 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 * grp/getgrgid_r.c (LOOKUP_TYPE): Define to struct group, not struct passwd. Fri Jun 28 16:53:01 1996 David Mosberger-Tang * 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 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 * 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. --- ChangeLog | 82 +++++++++++++++++++++++++++++++++++--- stdio-common/Makefile | 2 +- stdio-common/vscanf.c | 32 --------------- stdio/Makefile | 2 +- stdio/vscanf.c | 32 +++++++++++++++ sysdeps/unix/sysv/linux/alpha/Dist | 1 + sysdeps/unix/sysv/linux/i386/Dist | 1 + sysdeps/unix/sysv/linux/m68k/Dist | 1 + 8 files changed, 114 insertions(+), 39 deletions(-) delete mode 100644 stdio-common/vscanf.c create mode 100644 stdio/vscanf.c create mode 100644 sysdeps/unix/sysv/linux/m68k/Dist diff --git a/ChangeLog b/ChangeLog index 7ea2f69e11..3cd520683f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Mon Jul 1 15:44:34 1996 Roland McGrath + + * inet/Makefile (routines): Change getnetbypt to getnetbyad. + Mon Jul 1 13:32:42 1996 Miles Bader * hurd/report-wait.c (describe_number): Make I unsigned long. @@ -9,25 +13,93 @@ Mon Jul 1 13:32:42 1996 Miles Bader entry don't use UTMP_DATA->ubuf, and seek to the end before adding. Lock the file before stating. +Mon Jul 1 12:29:50 1996 Roland McGrath + + * 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 + + * grp/getgrgid_r.c (LOOKUP_TYPE): Define to struct group, not + struct passwd. + Fri Jun 28 23:25:35 1996 Miles Bader * login/login.c (login): Initialize DATA so that setutent_r will actually do something. +Fri Jun 28 16:53:01 1996 David Mosberger-Tang + + * 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 to test + determine what integer sizes we're dealing with. + Fri Jun 28 15:46:02 1996 Michael I. Bushnell, p/BSG + * hurd/hurdsig.c (_hurd_internal_post_signal): In pending signal + check for signal zero, repair logical sense of test by + parenthesizing correctly. + * 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. - +Thu Jun 27 04:04:27 1996 David Mosberger-Tang + + * configure.in (config_machine): Make ELF the default even for + Linux/Alpha unless a configuration of the form *-*-linux*ecoff + is specified. + Fri Jun 28 07:27:10 1996 Roland McGrath - * string/strndup.c (strndup): Always terminate the string. + * 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/string.h (strndupa): Likewise. + * string/strndup.c (strndup): Always terminate the string. Thu Jun 27 14:22:31 1996 Andreas Schwab diff --git a/stdio-common/Makefile b/stdio-common/Makefile index 00e34c520e..7fe1987158 100644 --- a/stdio-common/Makefile +++ b/stdio-common/Makefile @@ -27,7 +27,7 @@ routines := \ ctermid cuserid \ vfprintf vprintf printf_fp reg-printf printf-prs _itoa \ fprintf printf snprintf sprintf asprintf dprintf \ - vfscanf vscanf \ + vfscanf \ fscanf scanf sscanf \ perror psignal \ tmpfile tmpnam tempnam tempname \ diff --git a/stdio-common/vscanf.c b/stdio-common/vscanf.c deleted file mode 100644 index 0d829440e9..0000000000 --- a/stdio-common/vscanf.c +++ /dev/null @@ -1,32 +0,0 @@ -/* Copyright (C) 1991, 1992 Free Software Foundation, Inc. -This file is part of the GNU C Library. - -The GNU C Library is free software; you can redistribute it and/or -modify it under the terms of the GNU Library General Public License as -published by the Free Software Foundation; either version 2 of the -License, or (at your option) any later version. - -The GNU C Library is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -Library General Public License for more details. - -You should have received a copy of the GNU Library General Public -License along with the GNU C Library; see the file COPYING.LIB. If -not, write to the Free Software Foundation, Inc., 675 Mass Ave, -Cambridge, MA 02139, USA. */ - -#include -#include -#include - -#undef vscanf - - -/* Read formatted input from stdin according to the format - string in FORMAT, using the argument list in ARG. */ -int -DEFUN(vscanf, (format, arg), CONST char *format AND va_list arg) -{ - return vfscanf (stdin, format, arg); -} diff --git a/stdio/Makefile b/stdio/Makefile index 718c492fd4..9c69e52335 100644 --- a/stdio/Makefile +++ b/stdio/Makefile @@ -35,7 +35,7 @@ routines := \ fgets gets fputs puts \ getdelim \ fclose fflush \ - vdprintf vsnprintf vsprintf vasprintf vsscanf \ + vdprintf vsnprintf vsprintf vasprintf vsscanf vscanf \ memstream obstream linewrap \ internals sysd-stdio pipestream stdio_init libc_fatal aux := defs glue diff --git a/stdio/vscanf.c b/stdio/vscanf.c new file mode 100644 index 0000000000..0d829440e9 --- /dev/null +++ b/stdio/vscanf.c @@ -0,0 +1,32 @@ +/* Copyright (C) 1991, 1992 Free Software Foundation, Inc. +This file is part of the GNU C Library. + +The GNU C Library is free software; you can redistribute it and/or +modify it under the terms of the GNU Library General Public License as +published by the Free Software Foundation; either version 2 of the +License, or (at your option) any later version. + +The GNU C Library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Library General Public License for more details. + +You should have received a copy of the GNU Library General Public +License along with the GNU C Library; see the file COPYING.LIB. If +not, write to the Free Software Foundation, Inc., 675 Mass Ave, +Cambridge, MA 02139, USA. */ + +#include +#include +#include + +#undef vscanf + + +/* Read formatted input from stdin according to the format + string in FORMAT, using the argument list in ARG. */ +int +DEFUN(vscanf, (format, arg), CONST char *format AND va_list arg) +{ + return vfscanf (stdin, format, arg); +} diff --git a/sysdeps/unix/sysv/linux/alpha/Dist b/sysdeps/unix/sysv/linux/alpha/Dist index 235a443104..5c0e8d1c7e 100644 --- a/sysdeps/unix/sysv/linux/alpha/Dist +++ b/sysdeps/unix/sysv/linux/alpha/Dist @@ -1,3 +1,4 @@ alpha/ptrace.h alpha/regdef.h ieee_get_fp_control.S ieee_set_fp_control.S ioperm.c +init-first.h diff --git a/sysdeps/unix/sysv/linux/i386/Dist b/sysdeps/unix/sysv/linux/i386/Dist index 430fe6e9e5..f81ff6a146 100644 --- a/sysdeps/unix/sysv/linux/i386/Dist +++ b/sysdeps/unix/sysv/linux/i386/Dist @@ -1 +1,2 @@ sys/perm.h sys/vm86.h +init-first.h diff --git a/sysdeps/unix/sysv/linux/m68k/Dist b/sysdeps/unix/sysv/linux/m68k/Dist new file mode 100644 index 0000000000..2c6d09e88f --- /dev/null +++ b/sysdeps/unix/sysv/linux/m68k/Dist @@ -0,0 +1 @@ +init-first.h -- cgit v1.2.3