about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/i386
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-11-02 16:04:00 +0000
committerUlrich Drepper <drepper@redhat.com>1999-11-02 16:04:00 +0000
commit03fc7ab6ed4bc2f71964a3d31ad578821256b6bc (patch)
treec37b35125e60935a79ee0831af8902534f087a45 /sysdeps/unix/sysv/linux/i386
parentecda4bdaa1835e9a7865667690e3e264c25085e6 (diff)
downloadglibc-03fc7ab6ed4bc2f71964a3d31ad578821256b6bc.tar.gz
glibc-03fc7ab6ed4bc2f71964a3d31ad578821256b6bc.tar.xz
glibc-03fc7ab6ed4bc2f71964a3d31ad578821256b6bc.zip
Update.
	* sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Add more pr* types used
	by the debugger.
	* sysdeps/unix/sysv/linux/arm/sys/procfs.h: Likewise.
	* sysdeps/unix/sysv/linux/i386/sys/procfs.h: Likewise.
	* sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
	* sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
	* sysdeps/unix/sysv/linux/sys/procfs.h: Likewise.

1999-11-01  Ulrich Drepper  <drepper@cygnus.com>
Diffstat (limited to 'sysdeps/unix/sysv/linux/i386')
-rw-r--r--sysdeps/unix/sysv/linux/i386/getrlimit.c7
-rw-r--r--sysdeps/unix/sysv/linux/i386/sys/procfs.h14
2 files changed, 18 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/i386/getrlimit.c b/sysdeps/unix/sysv/linux/i386/getrlimit.c
index 76f8caa7fa..25d0d3b458 100644
--- a/sysdeps/unix/sysv/linux/i386/getrlimit.c
+++ b/sysdeps/unix/sysv/linux/i386/getrlimit.c
@@ -17,7 +17,7 @@
    Boston, MA 02111-1307, USA.  */
 
 #include <errno.h>
-#include <resource.h>
+#include <sys/resource.h>
 
 #include <sysdep.h>
 #include <sys/syscall.h>
@@ -29,10 +29,12 @@
    the limits are now unsigned.  */
 #if !defined __ASSUME_NEW_GETRLIMIT_SYSCALL && defined __NR_ugetrlimit
 static int no_new_getrlimit;
+#else
+# define no_new_getrlimit	0
 #endif
 
 int
-getrlimit (resource, rlimits)
+__getrlimit (resource, rlimits)
      enum __rlimit_resource resource;
      struct rlimit *rlimits;
 {
@@ -59,3 +61,4 @@ getrlimit (resource, rlimits)
   return INLINE_SYSCALL (getrlimit, 2, resource, rlimits);
 #endif
 }
+weak_alias (__getrlimit, getrlimit)
diff --git a/sysdeps/unix/sysv/linux/i386/sys/procfs.h b/sysdeps/unix/sysv/linux/i386/sys/procfs.h
index d98d9f55f8..9c5528e1d1 100644
--- a/sysdeps/unix/sysv/linux/i386/sys/procfs.h
+++ b/sysdeps/unix/sysv/linux/i386/sys/procfs.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 1999 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
@@ -101,6 +101,18 @@ struct elf_prpsinfo
   };
 
 
+/* Addresses.  */
+typedef void *psaddr_t;
+
+/* Register sets.  Linux has different names.  */
+typedef gregset_t prgregset_t;
+typedef fpregset_t prfpregset_t;
+
+/* We don't have any differences between processes and threads,
+   therefore habe only ine PID type.  */
+typedef __pid_t lwpid_t;
+
+
 typedef struct elf_prstatus prstatus_t;
 typedef struct elf_prpsinfo prpsinfo_t;