Module Name: src
Committed By: roy
Date: Fri Feb 5 09:42:22 UTC 2010
Modified Files:
src/lib/libterminfo: term.c terminfo.5 terminfo.5.in
Log Message:
Allow loading of a terminfo database in /rescue.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libterminfo/term.c
cvs rdiff -u -r1.3 -r1.4 src/lib/libterminfo/terminfo.5
cvs rdiff -u -r1.5 -r1.6 src/lib/libterminfo/terminfo.5.in
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libterminfo/term.c
diff -u src/lib/libterminfo/term.c:1.1 src/lib/libterminfo/term.c:1.2
--- src/lib/libterminfo/term.c:1.1 Wed Feb 3 15:16:32 2010
+++ src/lib/libterminfo/term.c Fri Feb 5 09:42:21 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: term.c,v 1.1 2010/02/03 15:16:32 roy Exp $ */
+/* $NetBSD: term.c,v 1.2 2010/02/05 09:42:21 roy Exp $ */
/*
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: term.c,v 1.1 2010/02/03 15:16:32 roy Exp $");
+__RCSID("$NetBSD: term.c,v 1.2 2010/02/05 09:42:21 roy Exp $");
#include <sys/stat.h>
@@ -44,7 +44,7 @@
#include <term_private.h>
#include <term.h>
-#define TERMINFO_DIRS "/usr/share/misc/terminfo:/etc/terminfo:"
+#define TERMINFO_DIRS "/usr/share/misc/terminfo:/etc/terminfo:/rescue/terminfo"
static char database[PATH_MAX];
static char pathbuf[PATH_MAX];
Index: src/lib/libterminfo/terminfo.5
diff -u src/lib/libterminfo/terminfo.5:1.3 src/lib/libterminfo/terminfo.5:1.4
--- src/lib/libterminfo/terminfo.5:1.3 Thu Feb 4 09:45:30 2010
+++ src/lib/libterminfo/terminfo.5 Fri Feb 5 09:42:21 2010
@@ -1,7 +1,7 @@
.\"DO NOT EDIT
.\"Automatically generated from termcap.5.in
.\"
-.\" $NetBSD: terminfo.5,v 1.3 2010/02/04 09:45:30 roy Exp $
+.\" $NetBSD: terminfo.5,v 1.4 2010/02/05 09:42:21 roy Exp $
.\"
.\" Copyright (c) 2009 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -30,7 +30,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd October 1, 2009
+.Dd February 5, 2009
.Dt TERMINFO 5
.Os
.Sh NAME
@@ -668,7 +668,9 @@
will first look for
.Pa $HOME/.terminfo.db ,
followed by
-.Pa /usr/share/misc/terminfo.db
+.Pa /usr/share/misc/terminfo.db ,
+followed by
+.Pa /rescue/terminfo.db
and
.Pa /etc/terminfo.db .
.Sh FILES
@@ -677,6 +679,8 @@
Database of terminal descriptions for personal use.
.It Pa /etc/terminfo.db
Database of terminal descriptions for use during boot or single user.
+.It Pa /rescue/terminfo.db
+Database of terminal descriptions for use when rescuing the system.
.It Pa /usr/share/misc/terminfo
File containing terminal descriptions.
.It Pa /usr/share/misc/terminfo.db
Index: src/lib/libterminfo/terminfo.5.in
diff -u src/lib/libterminfo/terminfo.5.in:1.5 src/lib/libterminfo/terminfo.5.in:1.6
--- src/lib/libterminfo/terminfo.5.in:1.5 Thu Feb 4 09:45:30 2010
+++ src/lib/libterminfo/terminfo.5.in Fri Feb 5 09:42:21 2010
@@ -1,4 +1,4 @@
-.\" $NetBSD: terminfo.5.in,v 1.5 2010/02/04 09:45:30 roy Exp $
+.\" $NetBSD: terminfo.5.in,v 1.6 2010/02/05 09:42:21 roy Exp $
.\"
.\" Copyright (c) 2009 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -27,7 +27,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd October 1, 2009
+.Dd February 5, 2009
.Dt TERMINFO 5
.Os
.Sh NAME
@@ -204,7 +204,9 @@
will first look for
.Pa $HOME/.terminfo.db ,
followed by
-.Pa /usr/share/misc/terminfo.db
+.Pa /usr/share/misc/terminfo.db ,
+followed by
+.Pa /rescue/terminfo.db
and
.Pa /etc/terminfo.db .
.Sh FILES
@@ -213,6 +215,8 @@
Database of terminal descriptions for personal use.
.It Pa /etc/terminfo.db
Database of terminal descriptions for use during boot or single user.
+.It Pa /rescue/terminfo.db
+Database of terminal descriptions for use when rescuing the system.
.It Pa /usr/share/misc/terminfo
File containing terminal descriptions.
.It Pa /usr/share/misc/terminfo.db