1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-19 15:33:56 +00:00

Implement ulimit -b for RLIMIT_SBSIZE.

This commit is contained in:
Brian Feldman 1999-10-09 20:56:06 +00:00
parent 6b3ced11a2
commit 7cde774d15
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=52072

View File

@ -348,6 +348,9 @@ static const struct limits limits[] = {
#endif
#ifdef RLIMIT_SWAP
{ "swap limit", "kbytes", RLIMIT_SWAP, 1024, 'w' },
#endif
#ifdef RLIMIT_SBSIZE
{ "sbsize", "bytes", RLIMIT_SBSIZE, 1, 'b' },
#endif
{ (char *) 0, (char *)0, 0, 0, '\0' }
};
@ -367,7 +370,7 @@ ulimitcmd(argc, argv)
struct rlimit limit;
what = 'f';
while ((optc = nextopt("HSatfdsmcnul")) != '\0')
while ((optc = nextopt("HSatfdsmcnulb")) != '\0')
switch (optc) {
case 'H':
how = HARD;