aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1997-05-26 22:28:25 +0000
committerUlrich Drepper <drepper@redhat.com>1997-05-26 22:28:25 +0000
commit1bf0f668e67d376ffe04db565a1de3d4ff3057f3 (patch)
tree2af60420b54d7e5e8159d5af28adf45113b70a3b
parentb5fba1adf74a976d2d0151fca9f3250b7dc7f286 (diff)
downloadglibc-1bf0f668e67d376ffe04db565a1de3d4ff3057f3.tar.xz
glibc-1bf0f668e67d376ffe04db565a1de3d4ff3057f3.zip
De-ansidecl-fy.
-rw-r--r--sysdeps/am29k/ffs.c31
-rw-r--r--sysdeps/i960/ffs.c35
-rw-r--r--sysdeps/m68k/ffs.c33
-rw-r--r--sysdeps/m88k/ffs.c31
-rw-r--r--sysdeps/mips/__longjmp.c36
-rw-r--r--sysdeps/rs6000/ffs.c31
-rw-r--r--sysdeps/standalone/brk.c57
-rw-r--r--sysdeps/standalone/i386/force_cpu386/_exit.c35
-rw-r--r--sysdeps/standalone/i386/force_cpu386/brdinit.c52
-rw-r--r--sysdeps/standalone/i386/force_cpu386/console.c66
-rw-r--r--sysdeps/standalone/i960/nindy960/_exit.c35
-rw-r--r--sysdeps/standalone/i960/nindy960/brdinit.c48
-rw-r--r--sysdeps/standalone/i960/nindy960/console.c46
-rw-r--r--sysdeps/standalone/m68k/m68020/mvme136/_exit.c40
-rw-r--r--sysdeps/standalone/m68k/m68020/mvme136/brdinit.c46
-rw-r--r--sysdeps/unix/bsd/sun/sunos4/tcflow.c33
-rw-r--r--sysdeps/unix/bsd/sun/sunos4/tcflush.c33
-rw-r--r--sysdeps/unix/bsd/sun/sunos4/tcgetattr.c34
-rw-r--r--sysdeps/unix/bsd/sun/sunos4/tcsendbrk.c33
-rw-r--r--sysdeps/unix/bsd/sun/sunos4/wait4.c38
-rw-r--r--sysdeps/unix/bsd/ultrix4/mips/sigvec.c51
-rw-r--r--sysdeps/unix/sysv/irix4/fpathconf.c33
-rw-r--r--sysdeps/unix/sysv/irix4/getgroups.c35
-rw-r--r--sysdeps/unix/sysv/irix4/getrusage.c34
-rw-r--r--sysdeps/unix/sysv/irix4/pathconf.c33
-rw-r--r--sysdeps/unix/sysv/irix4/setgroups.c35
-rw-r--r--sysdeps/unix/sysv/irix4/sigtramp.c48
-rw-r--r--sysdeps/unix/sysv/irix4/start.c37
-rw-r--r--sysdeps/unix/sysv/irix4/sysconf.c32
-rw-r--r--sysdeps/unix/sysv/sco3.2.4/__setpgid.c32
-rw-r--r--sysdeps/unix/sysv/sco3.2.4/getgroups.c32
-rw-r--r--sysdeps/unix/sysv/sysv4/__getpgid.c31
-rw-r--r--sysdeps/unix/sysv/sysv4/__setpgid.c32
-rw-r--r--sysdeps/unix/sysv/sysv4/ftruncate.c34
-rw-r--r--sysdeps/unix/sysv/sysv4/gethostname.c32
-rw-r--r--sysdeps/unix/sysv/sysv4/getpgid.c32
-rw-r--r--sysdeps/unix/sysv/sysv4/sethostname.c32
-rw-r--r--sysdeps/unix/sysv/sysv4/setpgid.c32
-rw-r--r--sysdeps/unix/sysv/sysv4/setsid.c31
-rw-r--r--sysdeps/vax/__longjmp.c31
-rw-r--r--sysdeps/vax/memccpy.c41
41 files changed, 769 insertions, 754 deletions
diff --git a/sysdeps/am29k/ffs.c b/sysdeps/am29k/ffs.c
index 0f38f8795c..fe656e1697 100644
--- a/sysdeps/am29k/ffs.c
+++ b/sysdeps/am29k/ffs.c
@@ -1,24 +1,24 @@
/* ffs -- find first set bit in a word, counted from least significant end.
For Amd 290x0.
- Copyright (C) 1991, 1992 Free Software Foundation, Inc.
+ Copyright (C) 1991, 1992, 1997 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
Contributed by Torbjorn Granlund (tege@sics.se).
-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 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.
+ 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. */
+ 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., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA. */
-#include <ansidecl.h>
#include <bstring.h>
#undef ffs
@@ -26,7 +26,8 @@ Cambridge, MA 02139, USA. */
#ifdef __GNUC__
int
-DEFUN(ffs, (x), int x)
+ffs (x)
+ int x;
{
int cnt;
diff --git a/sysdeps/i960/ffs.c b/sysdeps/i960/ffs.c
index 62b8742da7..7846c4b1db 100644
--- a/sysdeps/i960/ffs.c
+++ b/sysdeps/i960/ffs.c
@@ -1,25 +1,25 @@
/* ffs -- find first set bit in a word, counted from least significant end.
For i960 Core architecture
- Copyright (C) 1994 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+ Copyright (C) 1994, 1997 Free Software Foundation, Inc.
Contributed by Joel Sherrill (jsherril@redstone-emh2.army.mil),
- On-Line Applications Research Corporation.
+ On-Line Applications Research Corporation.
-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 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.
+ 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. */
+ 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., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA. */
-#include <ansidecl.h>
#include <string.h>
#undef ffs
@@ -27,11 +27,12 @@ Cambridge, MA 02139, USA. */
#if defined (__GNUC__) && defined (__i960__)
int
-DEFUN(ffs, (x), int x)
+ffs (x)
+ int x;
{
int cnt;
- asm("scanbit %1,%0" : "=d" (cnt) : "rm" (x & -x));
+ asm ("scanbit %1,%0" : "=d" (cnt) : "rm" (x & -x));
return cnt;
}
diff --git a/sysdeps/m68k/ffs.c b/sysdeps/m68k/ffs.c
index 9de7cf3c41..26044b12ec 100644
--- a/sysdeps/m68k/ffs.c
+++ b/sysdeps/m68k/ffs.c
@@ -1,24 +1,24 @@
/* ffs -- find first set bit in a word, counted from least significant end.
For mc68020, mc68030, mc68040.
- Copyright (C) 1991, 1992 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+ Copyright (C) 1991, 1992, 1997 Free Software Foundation, Inc.
Contributed by Torbjorn Granlund (tege@sics.se).
-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 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.
+ 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. */
+ 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., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA. */
-#include <ansidecl.h>
#include <string.h>
#undef ffs
@@ -26,11 +26,12 @@ Cambridge, MA 02139, USA. */
#if defined (__GNUC__) && defined (__mc68020__)
int
-DEFUN(ffs, (x), int x)
+ffs (x)
+ int x;
{
int cnt;
- asm("bfffo %1{#0:#0},%0" : "=d" (cnt) : "dm" (x & -x));
+ asm ("bfffo %1{#0:#0},%0" : "=d" (cnt) : "dm" (x & -x));
return 32 - cnt;
}
diff --git a/sysdeps/m88k/ffs.c b/sysdeps/m88k/ffs.c
index effca9a0d2..3658f0882d 100644
--- a/sysdeps/m88k/ffs.c
+++ b/sysdeps/m88k/ffs.c
@@ -1,24 +1,24 @@
/* ffs -- find first set bit in a word, counted from least significant end.
For Motorola 88000.
- Copyright (C) 1991, 1992 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+ Copyright (C) 1991, 1992, 1997 Free Software Foundation, Inc.
Contributed by Torbjorn Granlund (tege@sics.se).
-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 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.
+ 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. */
+ 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., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA. */
-#include <ansidecl.h>
#include <bstring.h>
#undef ffs
@@ -26,7 +26,8 @@ Cambridge, MA 02139, USA. */
#ifdef __GNUC__
int
-DEFUN(ffs, (x), int x)
+ffs (x)
+ int x;
{
int cnt;
diff --git a/sysdeps/mips/__longjmp.c b/sysdeps/mips/__longjmp.c
index c54d8a9139..9b4c1e14e0 100644
--- a/sysdeps/mips/__longjmp.c
+++ b/sysdeps/mips/__longjmp.c
@@ -1,22 +1,22 @@
-/* Copyright (C) 1992, 1995 Free Software Foundation, Inc.
+/* Copyright (C) 1992, 1995, 1997 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
Contributed by Brendan Kehoe (brendan@zen.org).
-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 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.
+ 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. */
+ 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., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA. */
-#include <ansidecl.h>
#include <setjmp.h>
#include <stdlib.h>
@@ -27,7 +27,9 @@ Cambridge, MA 02139, USA. */
#endif
void
-DEFUN(__longjmp, (env, val_arg), __jmp_buf env AND int val_arg)
+__longjmp (env, val_arg)
+ __jmp_buf env;
+ int val_arg;
{
/* gcc 1.39.19 miscompiled the longjmp routine (as it did setjmp before
the hack around it); force it to use $a1 for the longjmp value.
@@ -42,7 +44,7 @@ DEFUN(__longjmp, (env, val_arg), __jmp_buf env AND int val_arg)
asm volatile ("l.d $f26, %0" : : "m" (env[0].__fpregs[3]));
asm volatile ("l.d $f28, %0" : : "m" (env[0].__fpregs[4]));
asm volatile ("l.d $f30, %0" : : "m" (env[0].__fpregs[5]));
-
+
/* Restore the stack pointer. */
asm volatile ("lw $29, %0" : : "m" (env[0].__sp));
@@ -68,7 +70,7 @@ DEFUN(__longjmp, (env, val_arg), __jmp_buf env AND int val_arg)
/* Get the PC. */
asm volatile ("lw $31, %0" : : "m" (env[0].__pc));
-
+
/* Give setjmp 1 if given a 0, or what they gave us if non-zero. */
if (val == 0)
asm volatile ("li $2, 1");
diff --git a/sysdeps/rs6000/ffs.c b/sysdeps/rs6000/ffs.c
index 598c15c01a..f078c91e98 100644
--- a/sysdeps/rs6000/ffs.c
+++ b/sysdeps/rs6000/ffs.c
@@ -1,24 +1,24 @@
/* ffs -- find first set bit in a word, counted from least significant end.
For IBM rs6000.
- Copyright (C) 1991, 1992 Free Software Foundation, Inc.
+ Copyright (C) 1991, 1992, 1997 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
Contributed by Torbjorn Granlund (tege@sics.se).
-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 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.
+ 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. */
+ You should have received a copy of the GNU Library General Public