summaryrefslogtreecommitdiffstats
path: root/bin/csh
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>1999-10-09 20:47:59 +0000
committergreen <green@FreeBSD.org>1999-10-09 20:47:59 +0000
commit14b89019c6f151d71fd698017bd5f36e1843357d (patch)
tree787eed7bab22ec8900a8687e7efee05a03b5f3e0 /bin/csh
parentf980526bf65a754175b095da7e9c65301bc51ef6 (diff)
downloadFreeBSD-src-14b89019c6f151d71fd698017bd5f36e1843357d.zip
FreeBSD-src-14b89019c6f151d71fd698017bd5f36e1843357d.tar.gz
This implements the RLIMIT_SBSIZE ("sbsize") administrative limits for
userland. Currently, it can be enforced by login and csh. More shells supporting sbsize are welcome.
Diffstat (limited to 'bin/csh')
-rw-r--r--bin/csh/func.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/csh/func.c b/bin/csh/func.c
index 070fc84..2a1b802 100644
--- a/bin/csh/func.c
+++ b/bin/csh/func.c
@@ -1142,6 +1142,7 @@ static struct limits {
{ RLIMIT_MEMLOCK, "memorylocked", 1024, "kbytes" },
{ RLIMIT_NPROC, "maxproc", 1, "" },
{ RLIMIT_NOFILE, "openfiles", 1, "" },
+ { RLIMIT_SBSIZE, "sbsize ", 1, "bytes" },
{ -1, NULL, 0, NULL }
};
OpenPOWER on IntegriCloud