getent cannot report on termcap as we now use terminfo.
This commit is contained in:
parent
70b8adf303
commit
588d0cb499
|
@ -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"
|
||||
|
|
|
@ -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 @@ may be one of:
|
|||
.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 @@ For
|
|||
.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 @@ or 3 if there is no support for enumeration on
|
|||
.Xr printcap 5 ,
|
||||
.Xr rpc 5 ,
|
||||
.Xr services 5 ,
|
||||
.Xr shells 5 ,
|
||||
.Xr termcap 5
|
||||
.Xr shells 5
|
||||
.Sh HISTORY
|
||||
A
|
||||
.Nm
|
||||
|
|
|
@ -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 protocols(int, char *[]);
|
|||
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 @@ static struct getentdb {
|
|||
{ "rpc", rpc, },
|
||||
{ "services", services, },
|
||||
{ "shells", shells, },
|
||||
{ "termcap", termcap, },
|
||||
|
||||
{ NULL, NULL, },
|
||||
};
|
||||
|
@ -682,15 +680,6 @@ disktab(int argc, char *argv[])
|
|||
return handlecap(_PATH_DISKTAB, argc, argv);
|
||||
}
|
||||
|
||||
/*
|
||||
* termcap
|
||||
*/
|
||||
|
||||
static int
|
||||
termcap(int argc, char *argv[])
|
||||
{
|
||||
return handlecap(_PATH_TERMCAP, argc, argv);
|
||||
}
|
||||
/*
|
||||
* protocols
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue