summaryrefslogtreecommitdiffstats
path: root/usr.bin/limits
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>2002-09-18 16:25:59 +0000
committergreen <green@FreeBSD.org>2002-09-18 16:25:59 +0000
commit040e8fab25d0f7c62eddaf291da400b4aeb62cb0 (patch)
tree83f3f3db397375fa597967d84cb84c5ac28d35cc /usr.bin/limits
parent0987f2ef37f3ac4f9d8a33bba573f083c15abc9c (diff)
downloadFreeBSD-src-040e8fab25d0f7c62eddaf291da400b4aeb62cb0.zip
FreeBSD-src-040e8fab25d0f7c62eddaf291da400b4aeb62cb0.tar.gz
Update the usage string in the limits(1) manpage to include -b for
sbsize. Also, correct the format string in getopt(3) usage to reflect that -b takes an argument, and correct another case of RLIMIT_SBSIZE having been forgotten.
Diffstat (limited to 'usr.bin/limits')
-rw-r--r--usr.bin/limits/limits.18
-rw-r--r--usr.bin/limits/limits.c3
2 files changed, 6 insertions, 5 deletions
diff --git a/usr.bin/limits/limits.1 b/usr.bin/limits/limits.1
index 5aa4803..b3a154c 100644
--- a/usr.bin/limits/limits.1
+++ b/usr.bin/limits/limits.1
@@ -30,11 +30,11 @@
.Op Fl C Ar class
.Op Fl SHB
.Op Fl ea
-.Op Fl cdflmnstuv Op val
+.Op Fl bcdflmnstuv Op val
.Nm
.Op Fl C Ar class
.Op Fl SHB
-.Op Fl cdflmnstuv Op val
+.Op Fl bcdflmnstuv Op val
.Op Fl E
.Op Ar name Ns = Ns Ar value ...
.Op Ar command
@@ -42,11 +42,11 @@
.Op Fl U Ar user
.Op Fl SHB
.Op Fl ea
-.Op Fl cdflmnstuv Op val
+.Op Fl bcdflmnstuv Op val
.Nm
.Op Fl U Ar user
.Op Fl SHB
-.Op Fl cdflmnstuv Op val
+.Op Fl bcdflmnstuv Op val
.Op Fl E
.Op Ar name Ns = Ns Ar value ...
.Op Ar command
diff --git a/usr.bin/limits/limits.c b/usr.bin/limits/limits.c
index 454b718..8164b5b 100644
--- a/usr.bin/limits/limits.c
+++ b/usr.bin/limits/limits.c
@@ -260,7 +260,7 @@ main(int argc, char *argv[])
}
optarg = NULL;
- while ((ch = getopt(argc, argv, ":EeC:U:BSHabc:d:f:l:m:n:s:t:u:v:")) != -1) {
+ while ((ch = getopt(argc, argv, ":EeC:U:BSHab:c:d:f:l:m:n:s:t:u:v:")) != -1) {
switch(ch) {
case 'a':
doall = 1;
@@ -539,6 +539,7 @@ resource_num(int which, int ch, const char *str)
case RLIMIT_CORE:
case RLIMIT_RSS:
case RLIMIT_MEMLOCK:
+ case RLIMIT_SBSIZE:
case RLIMIT_VMEM:
errno = 0;
res = 0;
OpenPOWER on IntegriCloud