Module Name: src
Committed By: bouyer
Date: Sun Nov 15 16:58:20 UTC 2015
Modified Files:
src/lib/libutil [netbsd-6]: login_cap.c
src/share/man/man5 [netbsd-6]: login.conf.5
Log Message:
Pull up following revision(s) (requested by kamil in ticket #1317):
share/man/man5/login.conf.5: revisions 1.29, 1.30, 1.31
lib/libutil/login_cap.c: revision 1.32
Clean-up resources (sys/sys/resource.h) usage
Add vmemoryuse to login_cap(3)
Document vmemoryuse in login.conf(5)
Document proc.pid.rlimit.vmemoryuse and proc.pid.rlimit.maxlwp in
sysctl(7)
Document SBSIZE, AS, VMEM and NTHR in share/doc/psd/05.sysman/1.6.t
Reviewed by <riastradh>
Approved by <pgoyette>
Tested by Dominik Bialy
Closes PR xsrc/49912
Bump date for previous.
Clean-up documentation of login.conf(5)
Remove redundant word "limit" from sentences "Maximum ...".
Note that vmemoryuse might specify both maximum and current limits.
Remove redundant 'in bytes' from the description of vmemoryuse, it's not
ed
in the next section describing the argument type 'size'.
Changes inspired by <riastradh> in PR xsrc/49912
To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.29.32.1 src/lib/libutil/login_cap.c
cvs rdiff -u -r1.25 -r1.25.4.1 src/share/man/man5/login.conf.5
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libutil/login_cap.c
diff -u src/lib/libutil/login_cap.c:1.29 src/lib/libutil/login_cap.c:1.29.32.1
--- src/lib/libutil/login_cap.c:1.29 Tue Dec 4 22:09:02 2007
+++ src/lib/libutil/login_cap.c Sun Nov 15 16:58:20 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: login_cap.c,v 1.29 2007/12/04 22:09:02 mjf Exp $ */
+/* $NetBSD: login_cap.c,v 1.29.32.1 2015/11/15 16:58:20 bouyer Exp $ */
/*-
* Copyright (c) 1995,1997 Berkeley Software Design, Inc. All rights reserved.
@@ -36,7 +36,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: login_cap.c,v 1.29 2007/12/04 22:09:02 mjf Exp $");
+__RCSID("$NetBSD: login_cap.c,v 1.29.32.1 2015/11/15 16:58:20 bouyer Exp $");
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -423,6 +423,7 @@ static struct {
{ RLIMIT_NOFILE, R_CNUMB, "openfiles", },
{ RLIMIT_CORE, R_CSIZE, "coredumpsize", },
{ RLIMIT_SBSIZE, R_CSIZE, "sbsize", },
+ { RLIMIT_AS, R_CSIZE, "vmemoryuse", },
{ -1, 0, 0 }
};
Index: src/share/man/man5/login.conf.5
diff -u src/share/man/man5/login.conf.5:1.25 src/share/man/man5/login.conf.5:1.25.4.1
--- src/share/man/man5/login.conf.5:1.25 Sat Jun 4 05:30:45 2011
+++ src/share/man/man5/login.conf.5 Sun Nov 15 16:58:20 2015
@@ -1,4 +1,4 @@
-.\" $NetBSD: login.conf.5,v 1.25 2011/06/04 05:30:45 dholland Exp $
+.\" $NetBSD: login.conf.5,v 1.25.4.1 2015/11/15 16:58:20 bouyer Exp $
.\"
.\" Copyright (c) 1995,1996,1997 Berkeley Software Design, Inc.
.\" All rights reserved.
@@ -33,7 +33,7 @@
.\"
.\" BSDI login.conf.5,v 2.19 1998/02/19 23:39:39 prb Exp
.\"
-.Dd November 18, 2008
+.Dd July 11, 2015
.Dt LOGIN.CONF 5
.Os
.Sh NAME
@@ -94,7 +94,7 @@ displays it before the welcome message.)
.\"
.sp
.It Sy coredumpsize Ta size Ta "" Ta
-Maximum coredump size limit.
+Maximum coredump size.
.\"
.sp
.It Sy cputime Ta time Ta "" Ta
@@ -102,11 +102,11 @@ CPU usage limit.
.\"
.sp
.It Sy datasize Ta size Ta "" Ta
-Maximum data size limit.
+Maximum data size.
.\"
.sp
.It Sy filesize Ta size Ta "" Ta
-Maximum file size limit.
+Maximum file size.
.\"
.sp
.It Sy host.allow Ta string Ta "" Ta
@@ -168,11 +168,11 @@ Maximum number of processes.
.\"
.sp
.It Sy memorylocked Ta size Ta "" Ta
-Maximum locked in core memory size limit.
+Maximum locked in core memory size.
.\"
.sp
.It Sy memoryuse Ta size Ta "" Ta
-Maximum in core memoryuse size limit.
+Maximum in core memoryuse size.
.\"
.sp
.It Sy minpasswordlen Ta number Ta "" Ta
@@ -224,7 +224,7 @@ Require home directory to login.
.\"
.sp
.It Sy sbsize Ta size Ta "" Ta
-Maximum socket buffer size limit.
+Maximum socket buffer size.
.\"
.sp
.It Sy setenv Ta list Ta "" Ta
@@ -241,7 +241,7 @@ environment variable will contain the sh
.\"
.sp
.It Sy stacksize Ta size Ta "" Ta
-Maximum stack size limit.
+Maximum stack size.
.\"
.sp
.It Sy tc Ta string Ta "" Ta
@@ -266,6 +266,10 @@ See
.Xr umask 2 .
.\"
.sp
+.It Sy vmemoryuse Ta size Ta "" Ta
+Maximum virtual address space size.
+.\"
+.sp
.It Sy welcome Ta file Ta Li /etc/motd Ta
File containing welcome message.
.Xr login 1
@@ -284,8 +288,9 @@ The resource limit entries
.Sy memoryuse ,
.Sy openfiles ,
.Sy sbsize ,
+.Sy stacksize
and
-.Sy stacksize )
+.Sy vmemoryuse )
actually specify both the maximum and current limits (see
.Xr getrlimit 2 ) .
The current limit is the one normally used,