summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2003-01-04 01:11:49 +0000
committertjr <tjr@FreeBSD.org>2003-01-04 01:11:49 +0000
commit550b215d09000da78048f10f0f87576b1e6c18e4 (patch)
tree6ca57ca1e07fd281e0ffdca339dc1576317eaa8b /lib/libc
parent81ba2af45b09180cc2da011a068202da70b60b34 (diff)
downloadFreeBSD-src-550b215d09000da78048f10f0f87576b1e6c18e4.zip
FreeBSD-src-550b215d09000da78048f10f0f87576b1e6c18e4.tar.gz
Rename UL_GETSIZE to UL_GETFSIZE and UL_SETSIZE to UL_SETFSIZE; these are
the names required by 1003.1-2001. The old names are retained for source compatibility with FreeBSD 5.0 and will be removed before 6.0.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/ulimit.38
-rw-r--r--lib/libc/gen/ulimit.c4
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc/gen/ulimit.3 b/lib/libc/gen/ulimit.3
index c5030a5..e4c2d76 100644
--- a/lib/libc/gen/ulimit.3
+++ b/lib/libc/gen/ulimit.3
@@ -23,7 +23,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd August 8, 2002
+.Dd January 4, 2003
.Dt ULIMIT 3
.Os
.Sh NAME
@@ -43,11 +43,11 @@ Currently this is limited to the maximum file size.
The
.Fa cmd
argument is one of the following:
-.Bl -tag -width ".Dv UL_GETSIZE"
-.It Dv UL_GETSIZE
+.Bl -tag -width ".Dv UL_GETFSIZE"
+.It Dv UL_GETFSIZE
will return the maximum file size in units of 512 blocks of
the current process.
-.It Dv UL_SETSIZE
+.It Dv UL_SETFSIZE
will attempt to set the maximum file size of the current
process and its children with the second argument expressed as a long.
.El
diff --git a/lib/libc/gen/ulimit.c b/lib/libc/gen/ulimit.c
index 158b6a3..e1bc020 100644
--- a/lib/libc/gen/ulimit.c
+++ b/lib/libc/gen/ulimit.c
@@ -42,14 +42,14 @@ ulimit(int cmd, ...)
va_list ap;
long arg;
- if (cmd == UL_GETSIZE) {
+ if (cmd == UL_GETFSIZE) {
if (getrlimit(RLIMIT_FSIZE, &limit) == -1)
return (-1);
limit.rlim_cur /= 512;
if (limit.rlim_cur > LONG_MAX)
return (LONG_MAX);
return ((long)limit.rlim_cur);
- } else if (cmd == UL_SETSIZE) {
+ } else if (cmd == UL_SETFSIZE) {
va_start(ap, cmd);
arg = va_arg(ap, long);
va_end(ap);
OpenPOWER on IntegriCloud