summaryrefslogtreecommitdiff
path: root/resource
diff options
context:
space:
mode:
Diffstat (limited to 'resource')
-rw-r--r--resource/Makefile2
-rw-r--r--resource/getpriority.c6
-rw-r--r--resource/getrlimit.c2
-rw-r--r--resource/getrlimit64.c2
-rw-r--r--resource/getrusage.c6
-rw-r--r--resource/nice.c5
-rw-r--r--resource/setpriority.c7
-rw-r--r--resource/setrlimit.c2
-rw-r--r--resource/setrlimit64.c6
-rw-r--r--resource/sys/resource.h2
-rw-r--r--resource/sys/vlimit.h2
-rw-r--r--resource/sys/vtimes.h2
-rw-r--r--resource/ulimit.c2
-rw-r--r--resource/ulimit.h2
-rw-r--r--resource/vlimit.c6
-rw-r--r--resource/vtimes.c6
16 files changed, 23 insertions, 37 deletions
diff --git a/resource/Makefile b/resource/Makefile
index 54f4c25af4..3aaadfde6e 100644
--- a/resource/Makefile
+++ b/resource/Makefile
@@ -1,4 +1,4 @@
-# Copyright (C) 1991-2015 Free Software Foundation, Inc.
+# Copyright (C) 1991-2016 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
diff --git a/resource/getpriority.c b/resource/getpriority.c
index 6df7294578..379fef9db7 100644
--- a/resource/getpriority.c
+++ b/resource/getpriority.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2015 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2016 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
@@ -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/getrlimit.c b/resource/getrlimit.c
index d367c7fd8a..4d3e058f55 100644
--- a/resource/getrlimit.c
+++ b/resource/getrlimit.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2015 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2016 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
diff --git a/resource/getrlimit64.c b/resource/getrlimit64.c
index cb494cc4d1..769046b91d 100644
--- a/resource/getrlimit64.c
+++ b/resource/getrlimit64.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2015 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2016 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
diff --git a/resource/getrusage.c b/resource/getrusage.c
index ebda1d2964..0db1e6f675 100644
--- a/resource/getrusage.c
+++ b/resource/getrusage.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2015 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2016 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
@@ -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 208fcc01c9..64b2c57398 100644
--- a/resource/nice.c
+++ b/resource/nice.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1992-2015 Free Software Foundation, Inc.
+/* Copyright (C) 1992-2016 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
@@ -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 91521bdbb9..49c29b139a 100644
--- a/resource/setpriority.c
+++ b/resource/setpriority.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2015 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2016 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
@@ -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/setrlimit.c b/resource/setrlimit.c
index d6ea34c468..a6ddcc4d61 100644
--- a/resource/setrlimit.c
+++ b/resource/setrlimit.c
@@ -1,5 +1,5 @@
/* Set process resource limits. Stub version.
- Copyright (C) 1991-2015 Free Software Foundation, Inc.
+ Copyright (C) 1991-2016 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
diff --git a/resource/setrlimit64.c b/resource/setrlimit64.c
index 217ad22a39..8e6ec2b60d 100644
--- a/resource/setrlimit64.c
+++ b/resource/setrlimit64.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2015 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2016 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
@@ -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/sys/resource.h b/resource/sys/resource.h
index f2e617ad68..dfef7ac17b 100644
--- a/resource/sys/resource.h
+++ b/resource/sys/resource.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1992-2015 Free Software Foundation, Inc.
+/* Copyright (C) 1992-2016 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
diff --git a/resource/sys/vlimit.h b/resource/sys/vlimit.h
index a344a07a05..d21b42dc63 100644
--- a/resource/sys/vlimit.h
+++ b/resource/sys/vlimit.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2015 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2016 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
diff --git a/resource/sys/vtimes.h b/resource/sys/vtimes.h
index 2ac31d94e6..c6af2bad8d 100644
--- a/resource/sys/vtimes.h
+++ b/resource/sys/vtimes.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2015 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2016 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
diff --git a/resource/ulimit.c b/resource/ulimit.c
index dca376e284..6e017fa883 100644
--- a/resource/ulimit.c
+++ b/resource/ulimit.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2015 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2016 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
diff --git a/resource/ulimit.h b/resource/ulimit.h
index f0a5d70c56..aefc1b9f6b 100644
--- a/resource/ulimit.h
+++ b/resource/ulimit.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997-2015 Free Software Foundation, Inc.
+/* Copyright (C) 1997-2016 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
diff --git a/resource/vlimit.c b/resource/vlimit.c
index 14cfee02b9..d817eeabbe 100644
--- a/resource/vlimit.c
+++ b/resource/vlimit.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2015 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2016 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
@@ -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 a8816b0d3f..40d03ff459 100644
--- a/resource/vtimes.c
+++ b/resource/vtimes.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2015 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2016 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
@@ -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)