]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(_hurd_priority_which_map): Declare it.
authorRoland McGrath <roland@gnu.org>
Mon, 24 Oct 1994 04:16:57 +0000 (04:16 +0000)
committerRoland McGrath <roland@gnu.org>
Mon, 24 Oct 1994 04:16:57 +0000 (04:16 +0000)
hurd/hurd/resource.h

index 2d8c77726ea6b51686723d55a49f05f61c22c767..071423627cc7dc69ff16f2f46b8fd3b9504e8780 100644 (file)
@@ -20,10 +20,19 @@ Cambridge, MA 02139, USA.  */
 #ifndef _HURD_RESOURCE_H
 #define _HURD_RESOURCE_H
 
+#include <sys/types.h>
 #include <sys/resource.h>
 
 /* This array contains the current resource limits for the process.  */
 extern struct rlimit _hurd_rlimits[RLIM_NLIMITS];
 extern struct mutex _hurd_rlimit_lock; /* Locks _hurd_rlimits.  */
 
+
+/* Helper function for getpriority and setpriority.
+   Maps FUNCTION over all the processes specified by WHICH and WHO.
+   Returns FUNCTION's result the first time it returns nonzero.
+   If FUNCTION never returns nonzero, this returns zero.  */
+extern error_t _hurd_priority_which_map (enum __priority_which which, int who,
+                                        error_t (*function) (pid_t));
+
 #endif