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.
This commit is contained in:
Brian Feldman 2002-09-18 16:25:59 +00:00
parent 9ceffc28f3
commit 873caac499
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=103549
2 changed files with 6 additions and 5 deletions

View File

@ -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

View File

@ -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;