diff options
author | Brian Feldman <green@FreeBSD.org> | 2002-09-18 16:25:59 +0000 |
---|---|---|
committer | Brian Feldman <green@FreeBSD.org> | 2002-09-18 16:25:59 +0000 |
commit | 873caac4992b1464377d2c36932a75ee31666d85 (patch) | |
tree | 83f3f3db397375fa597967d84cb84c5ac28d35cc /usr.bin | |
parent | 9ceffc28f399a308d828530c1426d11611aa3742 (diff) | |
download | src-873caac4992b1464377d2c36932a75ee31666d85.tar.gz src-873caac4992b1464377d2c36932a75ee31666d85.zip |
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.
Notes
Notes:
svn path=/head/; revision=103549
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/limits/limits.1 | 8 | ||||
-rw-r--r-- | usr.bin/limits/limits.c | 3 |
2 files changed, 6 insertions, 5 deletions
diff --git a/usr.bin/limits/limits.1 b/usr.bin/limits/limits.1 index 5aa48035b66a..b3a154cefc22 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 454b718b4843..8164b5bc3a4f 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; |