diff options
Diffstat (limited to 'resource')
-rw-r--r-- | resource/getpriority.c | 4 | ||||
-rw-r--r-- | resource/getrusage.c | 4 | ||||
-rw-r--r-- | resource/nice.c | 3 | ||||
-rw-r--r-- | resource/setpriority.c | 5 | ||||
-rw-r--r-- | resource/setrlimit64.c | 4 | ||||
-rw-r--r-- | resource/vlimit.c | 4 | ||||
-rw-r--r-- | resource/vtimes.c | 4 |
7 files changed, 7 insertions, 21 deletions
diff --git a/resource/getpriority.c b/resource/getpriority.c index 6df7294..105b77e 100644 --- a/resource/getpriority.c +++ b/resource/getpriority.c @@ -23,9 +23,7 @@ or user (as specified by WHO) is used. A lower priority number means higher priority. Priorities range from PRIO_MIN to PRIO_MAX. */ int -__getpriority (which, who) - enum __priority_which which; - id_t who; +__getpriority (enum __priority_which which, id_t who) { __set_errno (ENOSYS); return -1; diff --git a/resource/getrusage.c b/resource/getrusage.c index ebda1d2..a403402 100644 --- a/resource/getrusage.c +++ b/resource/getrusage.c @@ -21,9 +21,7 @@ /* Return resource usage information on process indicated by WHO and put it in *USAGE. Returns 0 for success, -1 for failure. */ int -__getrusage (who, usage) - enum __rusage_who who; - struct rusage *usage; +__getrusage (enum __rusage_who who, struct rusage *usage) { __set_errno (ENOSYS); return -1; diff --git a/resource/nice.c b/resource/nice.c index 208fcc0..7f49037 100644 --- a/resource/nice.c +++ b/resource/nice.c @@ -21,8 +21,7 @@ /* Increment the scheduling priority of the calling process by INCR. The superuser may use a negative INCR to decrement the priority. */ int -nice (incr) - int incr; +nice (int incr) { __set_errno (ENOSYS); return -1; diff --git a/resource/setpriority.c b/resource/setpriority.c index 91521bd..e9def1e 100644 --- a/resource/setpriority.c +++ b/resource/setpriority.c @@ -21,10 +21,7 @@ /* Set the priority of all processes specified by WHICH and WHO to PRIO. Returns 0 on success, -1 on errors. */ int -__setpriority (which, who, prio) - enum __priority_which which; - id_t who; - int prio; +__setpriority (enum __priority_which which, id_t who, int prio) { __set_errno (ENOSYS); return -1; diff --git a/resource/setrlimit64.c b/resource/setrlimit64.c index 217ad22..7c7a126 100644 --- a/resource/setrlimit64.c +++ b/resource/setrlimit64.c @@ -23,9 +23,7 @@ Only the super-user can increase hard limits. Return 0 if successful, -1 if not (and sets errno). */ int -setrlimit64 (resource, rlimits) - enum __rlimit_resource resource; - const struct rlimit64 *rlimits; +setrlimit64 (enum __rlimit_resource resource, const struct rlimit64 *rlimits) { struct rlimit rlimits32; diff --git a/resource/vlimit.c b/resource/vlimit.c index 14cfee0..0ae4220 100644 --- a/resource/vlimit.c +++ b/resource/vlimit.c @@ -26,9 +26,7 @@ /* Set the soft limit for RESOURCE to be VALUE. Returns 0 for success, -1 for failure. */ int -vlimit (resource, value) - enum __vlimit_resource resource; - int value; +vlimit (enum __vlimit_resource resource, int value) { if (resource >= LIM_CPU && resource <= LIM_MAXRSS) { diff --git a/resource/vtimes.c b/resource/vtimes.c index a8816b0..7d2c34b 100644 --- a/resource/vtimes.c +++ b/resource/vtimes.c @@ -53,9 +53,7 @@ vtimes_one (struct vtimes *vt, enum __rusage_who who) *CURRENT. If CHILD is not NULL, write statistics for all terminated child processes into *CHILD. Returns 0 for success, -1 for failure. */ int -vtimes (current, child) - struct vtimes *current; - struct vtimes *child; +vtimes (struct vtimes *current, struct vtimes *child) { if (vtimes_one (current, RUSAGE_SELF) < 0 || vtimes_one (child, RUSAGE_CHILDREN) < 0) |