This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

ia64/bits/resource.h


This patch updates bits/resource.h for ia64 to line up with the other
architectures and add the missing RLIMIT_LOCKS.

Andreas.

2000-10-23  Andreas Schwab  <schwab@suse.de>

	* sysdeps/unix/sysv/linux/ia64/bits/resource.h (RLIMIT_LOCKS):
	Added.
	(RLIMIT_NLIMITS): Sync with kernel definition.
	(PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Also define as macros.

Index: sysdeps/unix/sysv/linux/ia64/bits/resource.h
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/ia64/bits/resource.h,v
retrieving revision 1.3
diff -u -a -u -r1.3 sysdeps/unix/sysv/linux/ia64/bits/resource.h
--- sysdeps/unix/sysv/linux/ia64/bits/resource.h	2000/08/10 04:19:20	1.3
+++ sysdeps/unix/sysv/linux/ia64/bits/resource.h	2000/10/23 19:24:51
@@ -76,14 +76,18 @@
   RLIMIT_AS = 9,
 #define RLIMIT_AS RLIMIT_AS
 
-  RLIM_NLIMITS = 10
+  /* Maximum number of file locks.  */
+  RLIMIT_LOCKS = 10,
+#define RLIMIT_LOCKS RLIMIT_LOCKS
+
+  RLIMIT_NLIMITS = 11,
+  RLIM_NLIMITS = RLIMIT_NLIMITS
 #define RLIMIT_NLIMITS RLIMIT_NLIMITS
 #define RLIM_NLIMITS RLIM_NLIMITS
 };
 
 /* Value to indicate that there is no limit.  */
-#undef RLIM_INFINITY
-# define RLIM_INFINITY ~0UL
+#define RLIM_INFINITY ~0UL
 
 #ifdef __USE_LARGEFILE64
 # define RLIM64_INFINITY ~0UL
@@ -189,6 +193,9 @@
 enum __priority_which
 {
   PRIO_PROCESS = 0,		/* WHO is a process ID.  */
+#define PRIO_PROCESS PRIO_PROCESS
   PRIO_PGRP = 1,		/* WHO is a process group ID.  */
+#define PRIO_PGRP PRIO_PGRP
   PRIO_USER = 2			/* WHO is a user ID.  */
+#define PRIO_USER PRIO_USER
 };

-- 
Andreas Schwab                                  "And now for something
SuSE Labs                                        completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]