summaryrefslogtreecommitdiff
path: root/bin/ksh
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2004-04-17 15:40:12 +0000
committerchristos <christos@NetBSD.org>2004-04-17 15:40:12 +0000
commit6acf809e533f2e8897a865aed89572d255cd3a06 (patch)
tree7dc8a9bf0bd5b2f19b576fcee0f07297e21af4ef /bin/ksh
parent9a3ad9349279a9bbc117f78b2cf9ffb19df2326e (diff)
understand rlimit sbsize
Diffstat (limited to 'bin/ksh')
-rw-r--r--bin/ksh/c_ulimit.c9
-rw-r--r--bin/ksh/ksh.Man8
2 files changed, 11 insertions, 6 deletions
diff --git a/bin/ksh/c_ulimit.c b/bin/ksh/c_ulimit.c
index 0e0b09de856..7305a2e1c82 100644
--- a/bin/ksh/c_ulimit.c
+++ b/bin/ksh/c_ulimit.c
@@ -1,4 +1,4 @@
-/* $NetBSD: c_ulimit.c,v 1.5 2003/06/23 11:38:54 agc Exp $ */
+/* $NetBSD: c_ulimit.c,v 1.6 2004/04/17 15:40:12 christos Exp $ */
/*
ulimit -- handle "ulimit" builtin
@@ -20,7 +20,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: c_ulimit.c,v 1.5 2003/06/23 11:38:54 agc Exp $");
+__RCSID("$NetBSD: c_ulimit.c,v 1.6 2004/04/17 15:40:12 christos Exp $");
#endif
@@ -117,7 +117,10 @@ c_ulimit(wp)
# endif /* UL_GMEMLIM */
#endif /* RLIMIT_VMEM */
#ifdef RLIMIT_SWAP
- { "swap(kbytes)", RLIMIT_SWAP, RLIMIT_SWAP, 1024, 'w' },
+ { "swap(kbytes)", RLIMIT, RLIMIT_SWAP, RLIMIT_SWAP, 1024, 'w' },
+#endif
+#ifdef RLIMIT_SBSIZE
+ { "sbsize(bytes)", RLIMIT, RLIMIT_SBSIZE, RLIMIT_SBSIZE, 1, 'b' },
#endif
{ (char *) 0 }
};
diff --git a/bin/ksh/ksh.Man b/bin/ksh/ksh.Man
index 99d61fdb436..9632f23a376 100644
--- a/bin/ksh/ksh.Man
+++ b/bin/ksh/ksh.Man
@@ -1,5 +1,5 @@
'\" t
-.\" $NetBSD: ksh.Man,v 1.16 2004/02/13 11:36:08 wiz Exp $
+.\" $NetBSD: ksh.Man,v 1.17 2004/04/17 15:40:12 christos Exp $
.\"{{{}}}
.\"{{{ Notes about man page
.\" - use the pseudo-macros .sh( and .sh) to begin and end sh-specific
@@ -2591,8 +2591,8 @@ Exported functions are not implemented yet.
T}
.TE
.\"}}}
-.\"{{{ ulimit [-acdfHlmnpsStvw] [value]
-.IP "\fBulimit\fP [\fB\-acdfHlmnpsStvw\fP] [\fIvalue\fP]"
+.\"{{{ ulimit [-abcdfHlmnpsStvw] [value]
+.IP "\fBulimit\fP [\fB\-abcdfHlmnpsStvw\fP] [\fIvalue\fP]"
Display or set process limits.
If no options are used, the file size limit (\fB\-f\fP) is assumed.
\fBvalue\fP, if specified, may be either be an arithmetic expression or the
@@ -2610,6 +2610,8 @@ Displays all limits; unless \fB\-H\fP is used, soft limits are displayed.
Set the hard limit only (default is to set both hard and soft limits).
.IP \fB\-S\fP
Set the soft limit only (default is to set both hard and soft limits).
+.IP \fB\-b\fP
+Impose a size limit of \fIn\fP bytes on the size of socket buffers.
.IP \fB\-c\fP
Impose a size limit of \fIn\fP blocks on the size of core dumps.
.IP \fB\-d\fP