Update.
authorUlrich Drepper <drepper@redhat.com>
Sat, 22 Apr 2000 07:19:25 +0000 (07:19 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 22 Apr 2000 07:19:25 +0000 (07:19 +0000)
2000-04-22  Ulrich Drepper  <drepper@redhat.com>

* assert/assert-perr.c: Include <stdlib.h> for abort prototype.
* libio/ftello.c: Likewise.
* libio/ftello64.c: Likewise.
* libio/ioftell.c: Likewise.
* sysdeps/generic/memrchr.c: Likewise.
* sysdeps/posix/libc_fatal.c: Likewise.
* sysdeps/unix/sysv/linux/init-first.c: Likewise.
* misc/fstab.c: Include <string.h> for strcmp prototype.
* sysdeps/generic/ldsodefs.h: Likewise.
* sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
Patch by Kurt Roeckx <Q@ping.be>.

* nss/Makefile (libnss_db-dbs): Renamed from libnss_db-routines.
Remove db-open.  Change all uses.
(libnss_db-routines): Define as $(libnss_db-dbs) db-open.

2000-04-21  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/unix/sysv/linux/alpha/msgctl.c (__syscall_msgctl): Declare.
* sysdeps/unix/sysv/linux/alpha/semctl.c (__syscall_semctl): Declare.
* sysdeps/unix/sysv/linux/alpha/shmctl.c (__syscall_shmctl): Declare.
* sysdeps/unix/sysv/linux/alpha/getrusage.S: Surround uses of $f28
with .set noat/at to shut up warnings.
* sysdeps/unix/sysv/linux/alpha/syscalls.list (__fstatfs64): Add alias.
* sysdeps/unix/sysv/linux/alpha/ioperm.c (init_iosys): Allow
compilation if __NR_pciconfig_iobase is not defined.
* sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__fstatfs64):
Add alias.

19 files changed:
ChangeLog
assert/assert-perr.c
libio/ftello.c
libio/ftello64.c
libio/ioftell.c
misc/fstab.c
nss/Makefile
sysdeps/generic/ldsodefs.h
sysdeps/generic/memrchr.c
sysdeps/posix/libc_fatal.c
sysdeps/unix/sysv/linux/alpha/getrusage.S
sysdeps/unix/sysv/linux/alpha/ioperm.c
sysdeps/unix/sysv/linux/alpha/msgctl.c
sysdeps/unix/sysv/linux/alpha/semctl.c
sysdeps/unix/sysv/linux/alpha/shmctl.c
sysdeps/unix/sysv/linux/alpha/syscalls.list
sysdeps/unix/sysv/linux/i386/sigaction.c
sysdeps/unix/sysv/linux/init-first.c
sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list

index ec11f1c..6043ab7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,34 @@
+2000-04-22  Ulrich Drepper  <drepper@redhat.com>
+
+       * assert/assert-perr.c: Include <stdlib.h> for abort prototype.
+       * libio/ftello.c: Likewise.
+       * libio/ftello64.c: Likewise.
+       * libio/ioftell.c: Likewise.
+       * sysdeps/generic/memrchr.c: Likewise.
+       * sysdeps/posix/libc_fatal.c: Likewise.
+       * sysdeps/unix/sysv/linux/init-first.c: Likewise.
+       * misc/fstab.c: Include <string.h> for strcmp prototype.
+       * sysdeps/generic/ldsodefs.h: Likewise.
+       * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
+       Patch by Kurt Roeckx <Q@ping.be>.
+
+       * nss/Makefile (libnss_db-dbs): Renamed from libnss_db-routines.
+       Remove db-open.  Change all uses.
+       (libnss_db-routines): Define as $(libnss_db-dbs) db-open.
+
+2000-04-21  Jakub Jelinek  <jakub@redhat.com>
+
+       * sysdeps/unix/sysv/linux/alpha/msgctl.c (__syscall_msgctl): Declare.
+       * sysdeps/unix/sysv/linux/alpha/semctl.c (__syscall_semctl): Declare.
+       * sysdeps/unix/sysv/linux/alpha/shmctl.c (__syscall_shmctl): Declare.
+       * sysdeps/unix/sysv/linux/alpha/getrusage.S: Surround uses of $f28
+       with .set noat/at to shut up warnings.
+       * sysdeps/unix/sysv/linux/alpha/syscalls.list (__fstatfs64): Add alias.
+       * sysdeps/unix/sysv/linux/alpha/ioperm.c (init_iosys): Allow
+       compilation if __NR_pciconfig_iobase is not defined.
+       * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__fstatfs64):
+       Add alias.
+
 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
 
        * manual/sysinfo.texi: Fix typo.
index 384735d..6f7ee6c 100644 (file)
@@ -18,6 +18,7 @@
 
 #include <assert.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <sysdep.h>
 #include <libintl.h>
index ed4ef8b..2f0e7a3 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993, 95, 96, 97, 98, 99 Free Software Foundation, Inc.
+/* Copyright (C) 1993, 95, 96, 97, 98, 99, 2000 Free Software Foundation, Inc.
    This file is part of the GNU IO Library.
 
    This library is free software; you can redistribute it and/or
@@ -24,6 +24,7 @@
    General Public License.  */
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <libioP.h>
 #include <errno.h>
 
@@ -34,7 +35,7 @@ ftello (fp)
 {
   _IO_off_t pos;
   CHECK_FILE (fp, -1L);
-  _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile, fp);
+  _IO_cleanup_region_start ((void (*) (void *)) _IO_funlockfile, fp);
   _IO_flockfile (fp);
   pos = _IO_seekoff (fp, 0, _IO_seek_cur, 0);
   if (_IO_in_backup (fp))
index 7cb7562..32fb387 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993, 95, 96, 97, 98, 99 Free Software Foundation, Inc.
+/* Copyright (C) 1993, 95, 96, 97, 98, 99, 2000 Free Software Foundation, Inc.
    This file is part of the GNU IO Library.
 
    This library is free software; you can redistribute it and/or
@@ -24,6 +24,7 @@
    General Public License.  */
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <libioP.h>
 #include <errno.h>
 
@@ -35,7 +36,7 @@ ftello64 (fp)
 #ifdef _G_LSEEK64
   _IO_off64_t pos;
   CHECK_FILE (fp, -1L);
-  _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile, fp);
+  _IO_cleanup_region_start ((void (*) (void *)) _IO_funlockfile, fp);
   _IO_flockfile (fp);
   pos = _IO_seekoff (fp, 0, _IO_seek_cur, 0);
   if (_IO_in_backup (fp))
index 38cb2f3..e8b6c7a 100644 (file)
@@ -24,6 +24,7 @@
    General Public License.  */
 
 #include "libioP.h"
+#include <stdlib.h>
 #include <errno.h>
 /* ANSI explicily requires setting errno to a positive value on failure. */
 
index a4d7aae..f053f8d 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1996, 1997, 1998, 2000 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
@@ -20,6 +20,7 @@
 #include <mntent.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <bits/libc-lock.h>
 
 #define BUFFER_SIZE 0x1fc0
index 7f546f8..5e94c34 100644 (file)
@@ -64,11 +64,11 @@ vpath %.c $(subdir-dirs)
 libnss_files-routines  := $(addprefix files-,$(databases))
 distribute             += files-XXX.c files-parse.c
 
-libnss_db-routines     := $(addprefix db-,$(filter-out hosts network key,\
+libnss_db-dbs          := $(addprefix db-,$(filter-out hosts network key,\
                                                        $(databases))) \
-                          db-open
+libnss_db-routines     := $(libnss_db-dbs) db-open
 generated              += $(filter-out db-alias.c db-netgrp.c, \
-                                       $(addsuffix .c,$(libnss_db-routines)))
+                                       $(addsuffix .c,$(libnss_db-dbs)))
 distribute             += $(addprefix nss_db/, db-XXX.c nss_db.h dummy-db.h)
 
 
@@ -85,7 +85,7 @@ include ../Rules
 
 $(objpfx)libnss_db.so: $(objpfx)libnss_files.so $(libdl)
 
-$(libnss_db-routines:%=$(objpfx)%.c): $(objpfx)db-%.c: nss_files/files-%.c
+$(libnss_db-dbs:%=$(objpfx)%.c): $(objpfx)db-%.c: nss_files/files-%.c
        @rm -f $@.new
        (echo '#define EXTERN_PARSER';\
         echo '#define GENERIC "../nss_db/db-XXX.c"';\
index 3c6fbcb..ff58115 100644 (file)
@@ -25,6 +25,7 @@
 #define __need_size_t
 #define __need_NULL
 #include <stddef.h>
+#include <string.h>
 
 #include <elf.h>
 #include <dlfcn.h>
index 874caf1..0dc1007 100644 (file)
@@ -1,5 +1,5 @@
 /* memrchr -- find the last occurrence of a byte in a memory block
-   Copyright (C) 1991, 1993, 1996, 1997, 1999 Free Software Foundation, Inc.
+   Copyright (C) 1991, 93, 96, 97, 99, 2000 Free Software Foundation, Inc.
    Based on strlen implementation by Torbjorn Granlund (tege@sics.se),
    with help from Dan Sahlin (dan@sics.se) and
    commentary by Jim Blandy (jimb@ai.mit.edu);
@@ -21,6 +21,8 @@
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
+#include <stdlib.h>
+
 #ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
index b1e5623..f4c4d9b 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993, 1994, 1995, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1993, 1994, 1995, 1997, 2000 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
@@ -17,6 +17,7 @@
    Boston, MA 02111-1307, USA.  */
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <unistd.h>
 #include <errno.h>
 #include <sysdep.h>
index 0c7fb1a..8d96455 100644 (file)
@@ -99,7 +99,9 @@ $do32:        ldi     v0, SYS_ify(osf_getrusage)
        ldt     $f25, 96(a1)            # ru_msgrcv
        ldt     $f26, 104(a1)           # ru_nsignals
        ldt     $f27, 112(a1)           # ru_nvcsw
+       .set noat
        ldt     $f28, 120(a1)           # ru_nivcsw
+       .set at
        stq     t0, 0(a1)
        stq     t1, 8(a1)
        stq     t2, 16(a1)
@@ -117,7 +119,9 @@ $do32:      ldi     v0, SYS_ify(osf_getrusage)
        stt     $f25, 112(a1)
        stt     $f26, 120(a1)
        stt     $f27, 128(a1)
+       .set noat
        stt     $f28, 136(a1)
+       .set at
 
        addq    sp, 16, sp
        ret
index 310930b..98f7163 100644 (file)
@@ -537,6 +537,7 @@ init_iosys (void)
 
   /* First try the pciconfig_iobase syscall added to 2.2.15 and 2.3.99.  */
 
+#ifdef __NR_pciconfig_iobase
   addr = __pciconfig_iobase (IOBASE_DENSE_MEM, 0, 0);
   if (addr != -1)
     {
@@ -578,6 +579,7 @@ init_iosys (void)
 
       return 0;
     }
+#endif
 
   /* Second, collect the contents of /etc/alpha_systype or /proc/cpuinfo.  */
 
index 693b4d4..709b5c0 100644 (file)
@@ -44,6 +44,8 @@ struct __old_msqid_ds
   __ipc_pid_t msg_lrpid;               /* pid of last msgrcv() */
 };
 
+extern int __syscall_msgctl (int, int, void *);
+
 /* Allows to control internal state and destruction of message queue
    objects.  */
 int __new_msgctl (int, int, struct msqid_ds *);
index a453474..4be4fb2 100644 (file)
@@ -49,6 +49,7 @@ union semun
   struct seminfo *__buf;       /* buffer for IPC_INFO */
 };
 
+extern int __syscall_semctl (int, int, int, void *);
 
 /* Return identifier for array of NSEMS semaphores associated with
    KEY.  */
index ebda160..70c420d 100644 (file)
@@ -52,6 +52,8 @@ struct __old_shminfo
   int shmall;
 };
 
+extern int __syscall_shmctl (int, int, void *);
+
 /* Provide operations to control over shared memory segments.  */
 int __new_shmctl (int, int, struct shmid_ds *);
 
index 617b6f5..d845761 100644 (file)
@@ -22,7 +22,7 @@ mmap          -       mmap            6       __mmap          mmap __mmap64 mmap64
 llseek         EXTRA   lseek           3       __libc_lseek64  __llseek llseek __lseek64 lseek64
 pread          -       pread           4       __libc_pread    __libc_pread64 __pread pread __pread64 pread64
 pwrite         -       pwrite          4       __libc_pwrite   __libc_pwrite64 __pwrite pwrite __pwrite64 pwrite64
-fstatfs                -       fstatfs         2       __fstatfs       fstatfs fstatfs64
+fstatfs                -       fstatfs         2       __fstatfs       fstatfs __fstatfs64 fstatfs64
 statfs         -       statfs          2       __statfs        statfs statfs64
 getrlimit      -       getrlimit       2       __getrlimit     getrlimit getrlimit64
 setrlimit      -       setrlimit       2       setrlimit       setrlimit64
index 8f2f308..2571f1d 100644 (file)
@@ -1,5 +1,5 @@
 /* POSIX.1 `sigaction' call for Linux/i386.
-   Copyright (C) 1991, 95, 96, 97, 98, 99 Free Software Foundation, Inc.
+   Copyright (C) 1991, 95, 96, 97, 98, 99, 2000 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
@@ -21,6 +21,7 @@
 #include <errno.h>
 #include <stddef.h>
 #include <signal.h>
+#include <string.h>
 
 #include <sysdep.h>
 #include <sys/syscall.h>
index 9f58d9c..2e0f7e0 100644 (file)
@@ -18,6 +18,7 @@
    Boston, MA 02111-1307, USA.  */
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <fcntl.h>
 #include <unistd.h>
 #include <sysdep.h>
index c4d40f5..58ea553 100644 (file)
@@ -4,7 +4,7 @@
 llseek         EXTRA   lseek           3       __llseek        llseek  __libc_lseek64 __lseek64 lseek64
 pread          -       pread           4       __libc_pread    __libc_pread64 __pread pread __pread64 pread64
 pwrite         -       pwrite          4       __libc_pwrite   __libc_pwrite64 __pwrite pwrite __pwrite64 pwrite64
-fstatfs                -       fstatfs         2       __fstatfs       fstatfs fstatfs64
+fstatfs                -       fstatfs         2       __fstatfs       fstatfs __fstatfs64 fstatfs64
 statfs         -       statfs          2       __statfs        statfs statfs64
 getrlimit      -       getrlimit       2       __getrlimit     getrlimit getrlimit64
 setrlimit      -       setrlimit       2       setrlimit       setrlimit64