aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-10-09 21:56:43 +0000
committerUlrich Drepper <drepper@redhat.com>1999-10-09 21:56:43 +0000
commitc1422e5b7cdb4400f934c91bcefa3a1a96d789fb (patch)
tree7f8981b86c4ce4b5bb899f690eeb03d6645826a5 /resource
parentPretty print. (diff)
downloadglibc-c1422e5b7cdb4400f934c91bcefa3a1a96d789fb.tar.gz
glibc-c1422e5b7cdb4400f934c91bcefa3a1a96d789fb.tar.bz2
glibc-c1422e5b7cdb4400f934c91bcefa3a1a96d789fb.zip
Update.
Patch by khendricks@ivey.uwo.ca [libc/1382].
Diffstat (limited to 'resource')
-rw-r--r--resource/sys/resource.h34
-rw-r--r--resource/sys/vlimit.h4
-rw-r--r--resource/sys/vtimes.h4
-rw-r--r--resource/ulimit.h4
4 files changed, 23 insertions, 23 deletions
diff --git a/resource/sys/resource.h b/resource/sys/resource.h
index e44193b326..9eca1677d7 100644
--- a/resource/sys/resource.h
+++ b/resource/sys/resource.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1992, 1994, 1996, 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1992, 94, 96, 97, 98, 99 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
@@ -29,56 +29,56 @@ __BEGIN_DECLS
/* Put the soft and hard limits for RESOURCE in *RLIMITS.
Returns 0 if successful, -1 if not (and sets errno). */
#ifndef __USE_FILE_OFFSET64
-extern int getrlimit __P ((enum __rlimit_resource __resource,
- struct rlimit *__rlimits));
+extern int getrlimit (enum __rlimit_resource __resource,
+ struct rlimit *__rlimits) __THROW;
#else
# ifdef __REDIRECT
-extern int __REDIRECT (getrlimit, __P ((enum __rlimit_resource __resource,
- struct rlimit *__rlimits)),
+extern int __REDIRECT (getrlimit, (enum __rlimit_resource __resource,
+ struct rlimit *__rlimits) __THROW,
getrlimit64);
# else
# define getrlimit getrlimit64
# endif
#endif
#ifdef __USE_LARGEFILE64
-extern int getrlimit64 __P ((enum __rlimit_resource __resource,
- struct rlimit64 *__rlimits));
+extern int getrlimit64 (enum __rlimit_resource __resource,
+ struct rlimit64 *__rlimits) __THROW;
#endif
/* Set the soft and hard limits for RESOURCE to *RLIMITS.
Only the super-user can increase hard limits.
Return 0 if successful, -1 if not (and sets errno). */
#ifndef __USE_FILE_OFFSET64
-extern int setrlimit __P ((enum __rlimit_resource __resource,
- __const struct rlimit *__rlimits));
+extern int setrlimit (enum __rlimit_resource __resource,
+ __const struct rlimit *__rlimits) __THROW;
#else
# ifdef __REDIRECT
-extern int __REDIRECT (setrlimit, __P ((enum __rlimit_resource __resource,
- __const struct rlimit *__rlimits)),
+extern int __REDIRECT (setrlimit, (enum __rlimit_resource __resource,
+ __const struct rlimit *__rlimits) __THROW,
setrlimit64);
# else
# define setrlimit setrlimit64
# endif
#endif
#ifdef __USE_LARGEFILE64
-extern int setrlimit64 __P ((enum __rlimit_resource __resource,
- __const struct rlimit64 *__rlimits));
+extern int setrlimit64 (enum __rlimit_resource __resource,
+ __const struct rlimit64 *__rlimits) __THROW;
#endif
/* Return resource usage information on process indicated by WHO
and put it in *USAGE. Returns 0 for success, -1 for failure. */
-extern int getrusage __P ((enum __rusage_who __who, struct rusage *__usage));
+extern int getrusage (enum __rusage_who __who, struct rusage *__usage) __THROW;
/* Return the highest priority of any process specified by WHICH and WHO
(see above); if WHO is zero, the current process, process group, or user
(as specified by WHO) is used. A lower priority number means higher
priority. Priorities range from PRIO_MIN to PRIO_MAX (above). */
-extern int getpriority __P ((enum __priority_which __which, int __who));
+extern int getpriority (enum __priority_which __which, int __who) __THROW;
/* Set the priority of all processes specified by WHICH and WHO (see above)
to PRIO. Returns 0 on success, -1 on errors. */
-extern int setpriority __P ((enum __priority_which __which, int __who,
- int __prio));
+extern int setpriority (enum __priority_which __which, int __who, int __prio)
+ __THROW;
__END_DECLS
diff --git a/resource/sys/vlimit.h b/resource/sys/vlimit.h
index d66368ab92..3af27b7161 100644
--- a/resource/sys/vlimit.h
+++ b/resource/sys/vlimit.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1992, 1996 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1992, 1996, 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
@@ -60,7 +60,7 @@ enum __vlimit_resource
/* Set the soft limit for RESOURCE to be VALUE.
Returns 0 for success, -1 for failure. */
-extern int vlimit __P ((enum __vlimit_resource __resource, int __value));
+extern int vlimit (enum __vlimit_resource __resource, int __value) __THROW;
__END_DECLS
diff --git a/resource/sys/vtimes.h b/resource/sys/vtimes.h
index 51117d4108..d8fa3b465f 100644
--- a/resource/sys/vtimes.h
+++ b/resource/sys/vtimes.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1992, 1996 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1992, 1996, 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
@@ -62,7 +62,7 @@ struct vtimes
/* If CURRENT is not NULL, write statistics for the current process into
*CURRENT. If CHILD is not NULL, write statistics for all terminated child
processes into *CHILD. Returns 0 for success, -1 for failure. */
-extern int vtimes __P ((struct vtimes * __current, struct vtimes * __child));
+extern int vtimes (struct vtimes * __current, struct vtimes * __child) __THROW;
__END_DECLS
diff --git a/resource/ulimit.h b/resource/ulimit.h
index 19bffccaac..2ad923021b 100644
--- a/resource/ulimit.h
+++ b/resource/ulimit.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998, 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
@@ -41,7 +41,7 @@ enum
__BEGIN_DECLS
/* Control process limits according to CMD. */
-extern long int ulimit __P ((int __cmd, ...));
+extern long int ulimit (int __cmd, ...) __THROW;
__END_DECLS