about summary refs log tree commit diff
path: root/sysdeps/stub
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/stub')
-rw-r--r--sysdeps/stub/pause.c15
-rw-r--r--sysdeps/stub/time.c15
-rw-r--r--sysdeps/stub/ulimit.c15
3 files changed, 11 insertions, 34 deletions
diff --git a/sysdeps/stub/pause.c b/sysdeps/stub/pause.c
index 6d268643aa..b2a7adde76 100644
--- a/sysdeps/stub/pause.c
+++ b/sysdeps/stub/pause.c
@@ -16,7 +16,6 @@ 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 <ansidecl.h>
 #include <errno.h>
 #include <unistd.h>
 
@@ -25,18 +24,10 @@ Cambridge, MA 02139, USA.  */
    This is supposed to always return -1 and set errno to EINTR,
    but rules were meant to be broken.  */
 int
-DEFUN_VOID(pause)
+pause ()
 {
   errno = ENOSYS;
-  return(-1);
+  return -1;
 }
 
-
-
-#ifdef	 HAVE_GNU_LD
-
-#include <gnu-stabs.h>
-
-stub_warning(pause);
-
-#endif	/* GNU stabs.  */
+stub_warning (pause)
diff --git a/sysdeps/stub/time.c b/sysdeps/stub/time.c
index bc1d3fccfe..cb208bcf0b 100644
--- a/sysdeps/stub/time.c
+++ b/sysdeps/stub/time.c
@@ -16,14 +16,13 @@ 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 <ansidecl.h>
 #include <errno.h>
 #include <time.h>
 
-
 /* Return the time now, and store it in *TIMER if not NULL.  */
 time_t
-DEFUN(time, (timer), time_t *timer)
+time (timer)
+     time_t *timer;
 {
   errno = ENOSYS;
 
@@ -32,12 +31,4 @@ DEFUN(time, (timer), time_t *timer)
   return (time_t) -1;
 }
 
-
-
-#ifdef	 HAVE_GNU_LD
-
-#include <gnu-stabs.h>
-
-stub_warning(time);
-
-#endif	/* GNU stabs.  */
+stub_warning (time)
diff --git a/sysdeps/stub/ulimit.c b/sysdeps/stub/ulimit.c
index aa9e515983..84633c4e14 100644
--- a/sysdeps/stub/ulimit.c
+++ b/sysdeps/stub/ulimit.c
@@ -16,7 +16,6 @@ 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 <ansidecl.h>
 #include <sys/resource.h>
 #include <errno.h>
 
@@ -29,17 +28,13 @@ Cambridge, MA 02139, USA.  */
        can open.
    Returns -1 on errors.  */
 long int
-DEFUN(__ulimit, (cmd, newlimit), int cmd AND long int newlimit)
+__ulimit (cmd, newlimit)
+     int cmd;
+     long int newlimit;
 {
   errno = ENOSYS;
   return -1;
 }
+weak_alias (__ulimit, ulimit)
 
-
-#ifdef	 HAVE_GNU_LD
-
-#include <gnu-stabs.h>
-
-stub_warning(__ulimit);
-
-#endif	/* GNU stabs.  */
+stub_warning (ulimit)