about summary refs log tree commit diff
path: root/resource/sys/resource.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-04-21 22:58:23 +0000
committerUlrich Drepper <drepper@redhat.com>1998-04-21 22:58:23 +0000
commit01cad722667c7b25535b2d248598f3d535e7caa9 (patch)
tree606a2436a10d7d48fcbb3e1097500d8a0b8144d1 /resource/sys/resource.h
parent28f1c862ddaa3515d0f74102379301048c76cf0f (diff)
downloadglibc-01cad722667c7b25535b2d248598f3d535e7caa9.tar.gz
glibc-01cad722667c7b25535b2d248598f3d535e7caa9.tar.xz
glibc-01cad722667c7b25535b2d248598f3d535e7caa9.zip
Update.
1998-04-21 21:49  Zack Weinberg  <zack@rabi.phys.columbia.edu>

	* misc/sys/cdefs.h: New macro __REDIRECT to support changing the
	asm symbol name of functions.
	* include/features.h: Kill redundant test.

	* dirent/dirent.h: Use new macros to implement __USE_FILE_OFFSET64.
	* io/ftw.h: Likewise.
	* io/sys/stat.h: Likewise.
	* io/sys/statfs.h: Likewise.
	* io/sys/statvfs.h: Likewise.
	* libio/stdio.h: Likewise.
	* resource/sys/resource.h: Likewise.
	* rt/aio.h: Likewise.

	* posix/unistd.h: Use new macros for __USE_FILE_OFFSET64 and
	 __FAVOR_BSD.
	* signal/signal.h: Use new macros for BSD vs. SysV signal().

	* misc/Makefile: Drop bsd-compat.c.  Make libbsd-compat.a
	a dummy library.
	* misc/bsd-compat.c: Removed.
Diffstat (limited to 'resource/sys/resource.h')
-rw-r--r--resource/sys/resource.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/resource/sys/resource.h b/resource/sys/resource.h
index 1599f05ac3..62fb1da9bf 100644
--- a/resource/sys/resource.h
+++ b/resource/sys/resource.h
@@ -34,8 +34,13 @@ extern int __getrlimit __P ((enum __rlimit_resource __resource,
 extern int getrlimit __P ((enum __rlimit_resource __resource,
 			   struct rlimit *__rlimits));
 #else
-extern int getrlimit __P ((enum __rlimit_resource __resource,
-			   struct rlimit *__rlimits)) __asm__ ("getrlimit64");
+# ifdef __REDIRECT
+extern int __REDIRECT (getrlimit, __P ((enum __rlimit_resource __resource,
+					struct rlimit *__rlimits)),
+		       getrlimit64);
+# else
+#  define getrlimit getrlimit64
+# endif
 #endif
 #ifdef __USE_LARGEFILE64
 extern int getrlimit64 __P ((enum __rlimit_resource __resource,
@@ -49,8 +54,13 @@ extern int getrlimit64 __P ((enum __rlimit_resource __resource,
 extern int setrlimit __P ((enum __rlimit_resource __resource,
 			   struct rlimit *__rlimits));
 #else
-extern int setrlimit __P ((enum __rlimit_resource __resource,
-			   struct rlimit *__rlimits)) __asm__ ("setrlimit64");
+# ifdef __REDIRECT
+extern int __REDIRECT (setrlimit, __P ((enum __rlimit_resource __resource,
+					struct rlimit *__rlimits)),
+		       setrlimit64);
+# else
+#  define setrlimit setrlimit64
+# endif
 #endif
 #ifdef __USE_LARGEFILE64
 extern int setrlimit64 __P ((enum __rlimit_resource __resource,