Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src getent cannot report on termcap as we now use terminfo.
details: https://anonhg.NetBSD.org/src/rev/4a7ca9010838
branches: trunk
changeset: 751415:4a7ca9010838
user: roy <roy%NetBSD.org@localhost>
date: Wed Feb 03 18:11:18 2010 +0000
description:
getent cannot report on termcap as we now use terminfo.
diffstat:
include/paths.h | 3 +--
usr.bin/getent/getent.1 | 11 ++++-------
usr.bin/getent/getent.c | 15 ++-------------
3 files changed, 7 insertions(+), 22 deletions(-)
diffs (113 lines):
diff -r 9f02e7c8635c -r 4a7ca9010838 include/paths.h
--- a/include/paths.h Wed Feb 03 17:16:29 2010 +0000
+++ b/include/paths.h Wed Feb 03 18:11:18 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: paths.h,v 1.35 2009/12/22 14:24:37 pooka Exp $ */
+/* $NetBSD: paths.h,v 1.36 2010/02/03 18:11:18 roy Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -91,7 +91,6 @@
#define _PATH_SOUND "/dev/sound"
#define _PATH_SOUND0 "/dev/sound0"
#define _PATH_SYSMON "/dev/sysmon"
-#define _PATH_TERMCAP "/usr/share/misc/termcap"
#define _PATH_TTY "/dev/tty"
#define _PATH_UNIX "/netbsd"
#define _PATH_URANDOM "/dev/urandom"
diff -r 9f02e7c8635c -r 4a7ca9010838 usr.bin/getent/getent.1
--- a/usr.bin/getent/getent.1 Wed Feb 03 17:16:29 2010 +0000
+++ b/usr.bin/getent/getent.1 Wed Feb 03 18:11:18 2010 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: getent.1,v 1.19 2009/03/15 15:19:57 joerg Exp $
+.\" $NetBSD: getent.1,v 1.20 2010/02/03 18:11:18 roy Exp $
.\"
.\" Copyright (c) 2004 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 May 14, 2008
+.Dd February 3, 2010
.Dt GETENT 1
.Os
.Sh NAME
@@ -68,7 +68,6 @@
.It rpc Ta name number [alias ...]
.It services Ta name port/protocol [alias ...]
.It shells Ta /path/to/shell
-.It termcap Ta entry
.El
.Pp
If one or more
@@ -98,8 +97,7 @@
.Xr cgetcap 3
style databases (
.Sy disktab ,
-.Sy printcap ,
-.Sy termcap )
+.Sy printcap)
specifying a key, lists the entry for that key, and specifying more arguments
after the key are used as fields in that key, and only the values of the keys
are returned.
@@ -131,8 +129,7 @@
.Xr printcap 5 ,
.Xr rpc 5 ,
.Xr services 5 ,
-.Xr shells 5 ,
-.Xr termcap 5
+.Xr shells 5
.Sh HISTORY
A
.Nm
diff -r 9f02e7c8635c -r 4a7ca9010838 usr.bin/getent/getent.c
--- a/usr.bin/getent/getent.c Wed Feb 03 17:16:29 2010 +0000
+++ b/usr.bin/getent/getent.c Wed Feb 03 18:11:18 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: getent.c,v 1.16 2009/04/12 10:27:08 lukem Exp $ */
+/* $NetBSD: getent.c,v 1.17 2010/02/03 18:11:18 roy Exp $ */
/*-
* Copyright (c) 2004-2006 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: getent.c,v 1.16 2009/04/12 10:27:08 lukem Exp $");
+__RCSID("$NetBSD: getent.c,v 1.17 2010/02/03 18:11:18 roy Exp $");
#endif /* not lint */
#include <sys/socket.h>
@@ -80,7 +80,6 @@
static int rpc(int, char *[]);
static int services(int, char *[]);
static int shells(int, char *[]);
-static int termcap(int, char *[]);
enum {
RV_OK = 0,
@@ -106,7 +105,6 @@
{ "rpc", rpc, },
{ "services", services, },
{ "shells", shells, },
- { "termcap", termcap, },
{ NULL, NULL, },
};
@@ -683,15 +681,6 @@
}
/*
- * termcap
- */
-
-static int
-termcap(int argc, char *argv[])
-{
- return handlecap(_PATH_TERMCAP, argc, argv);
-}
- /*
* protocols
*/
Home |
Main Index |
Thread Index |
Old Index