summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorlukem <lukem@NetBSD.org>1999-01-16 07:59:39 +0000
committerlukem <lukem@NetBSD.org>1999-01-16 07:59:39 +0000
commitd3f8abaacbd3035be60812575fbdcbccfd32b032 (patch)
tree6066547275d2ae5b07e1022001c04bc22213bf33 /lib
parent73a39058456088f783daf8a2186466799043f23a (diff)
reference nsswitch.conf(5)
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/getgrent.312
-rw-r--r--lib/libc/gen/getnetgrent.319
-rw-r--r--lib/libc/gen/getpwent.35
-rw-r--r--lib/libc/gen/getusershell.319
-rw-r--r--lib/libc/net/gethostbyname.35
-rw-r--r--lib/libc/net/getnetent.311
6 files changed, 32 insertions, 39 deletions
diff --git a/lib/libc/gen/getgrent.3 b/lib/libc/gen/getgrent.3
index bd38faf1a6a..b3e49a12273 100644
--- a/lib/libc/gen/getgrent.3
+++ b/lib/libc/gen/getgrent.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: getgrent.3,v 1.11 1998/02/05 18:46:37 perry Exp $
+.\" $NetBSD: getgrent.3,v 1.12 1999/01/16 08:03:08 lukem Exp $
.\"
.\" Copyright (c) 1989, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -33,7 +33,7 @@
.\"
.\" @(#)getgrent.3 8.2 (Berkeley) 4/19/94
.\"
-.Dd April 19, 1994
+.Dd January 16, 1999
.Dt GETGRENT 3
.Os
.Sh NAME
@@ -65,10 +65,7 @@
.Ft void
.Fn endgrent void
.Sh DESCRIPTION
-These functions operate on the group database file
-.Pa /etc/group
-which is described
-in
+These functions operate on the group database file which is described in
.Xr group 5 .
Each line of the database is defined by the structure
.Ar group
@@ -150,7 +147,8 @@ group database file
.El
.Sh SEE ALSO
.Xr getpwent 3 ,
-.Xr group 5
+.Xr group 5 ,
+.Xr nsswitch.conf 5
.Sh STANDARDS
The
.Fn getgrnam
diff --git a/lib/libc/gen/getnetgrent.3 b/lib/libc/gen/getnetgrent.3
index 7195b6640ad..4150ab7f736 100644
--- a/lib/libc/gen/getnetgrent.3
+++ b/lib/libc/gen/getnetgrent.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: getnetgrent.3,v 1.7 1998/08/29 08:32:33 lukem Exp $
+.\" $NetBSD: getnetgrent.3,v 1.8 1999/01/16 08:05:33 lukem Exp $
.\"
.\" Copyright (c) 1992, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -33,7 +33,7 @@
.\"
.\" @(#)getnetgrent.3 8.1 (Berkeley) 6/4/93
.\"
-.Dd June 4, 1993
+.Dd January 16, 1999
.Dt GETNETGRENT 3
.Os
.Sh NAME
@@ -55,17 +55,9 @@
.Ft void
.Fn endnetgrent void
.Sh DESCRIPTION
-These functions operate on the netgroup database file
-.Pa /etc/netgroup.db
-which is described
-in
+These functions operate on the netgroup database file which is described in
.Xr netgroup 5 .
-If that file does not exist, and the system supports
-.Sy YP ,
-then the
-.Sy netgroup
-.Sy YP
-databases are used instead.
+.Pp
The database defines a set of netgroups, each made up of one or more triples:
.Bd -literal -offset indent
(host, user, domain)
@@ -125,7 +117,8 @@ have no return value.
netgroup database file
.El
.Sh SEE ALSO
-.Xr netgroup 5
+.Xr netgroup 5 ,
+.Xr nsswitch.conf 5
.Sh BUGS
The function
.Fn getnetgrent
diff --git a/lib/libc/gen/getpwent.3 b/lib/libc/gen/getpwent.3
index 2a6ee79bd4a..3206e7fa333 100644
--- a/lib/libc/gen/getpwent.3
+++ b/lib/libc/gen/getpwent.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: getpwent.3,v 1.13 1998/04/28 20:11:34 fair Exp $
+.\" $NetBSD: getpwent.3,v 1.14 1999/01/16 07:59:39 lukem Exp $
.\"
.\" Copyright (c) 1988, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -33,7 +33,7 @@
.\"
.\" @(#)getpwent.3 8.2 (Berkeley) 12/11/93
.\"
-.Dd December 11, 1993
+.Dd January 16, 1999
.Dt GETPWENT 3
.Os
.Sh NAME
@@ -168,6 +168,7 @@ A Version 7 format password file
.Sh SEE ALSO
.Xr getlogin 2 ,
.Xr getgrent 3 ,
+.Xr nsswitch.conf 5 ,
.Xr passwd 5 ,
.Xr pwd_mkdb 8 ,
.Xr vipw 8
diff --git a/lib/libc/gen/getusershell.3 b/lib/libc/gen/getusershell.3
index 29697e09b4c..be8a1383474 100644
--- a/lib/libc/gen/getusershell.3
+++ b/lib/libc/gen/getusershell.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: getusershell.3,v 1.4 1998/02/05 18:46:58 perry Exp $
+.\" $NetBSD: getusershell.3,v 1.5 1999/01/16 08:11:03 lukem Exp $
.\"
.\" Copyright (c) 1985, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -33,14 +33,14 @@
.\"
.\" @(#)getusershell.3 8.1 (Berkeley) 6/4/93
.\"
-.Dd June 4, 1993
+.Dd January 16, 1999
.Dt GETUSERSHELL 3
.Os BSD 4.3
.Sh NAME
.Nm getusershell ,
.Nm setusershell ,
.Nm endusershell
-.Nd get legal user shells
+.Nd get valid user shells
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
@@ -54,18 +54,16 @@
The
.Fn getusershell
function
-returns a pointer to a legal user shell as defined by the
-system manager in the file
-.Pa /etc/shells .
-If
-.Pa /etc/shells
-is unreadable or does not exist,
+returns a pointer to a valid user shell as defined by the
+system manager in the shells database as described in
+.Xr shells 5 .
+If the shells database is not available,
.Fn getusershell
behaves as if
.Pa /bin/sh
and
.Pa /bin/csh
-were listed in the file.
+were listed.
.Pp
The
.Fn getusershell
@@ -86,6 +84,7 @@ The routine
returns a null pointer (0) on
.Dv EOF .
.Sh SEE ALSO
+.Xr nsswitch.conf 5 ,
.Xr shells 5
.Sh HISTORY
The
diff --git a/lib/libc/net/gethostbyname.3 b/lib/libc/net/gethostbyname.3
index 3664fa36c2a..040509902b1 100644
--- a/lib/libc/net/gethostbyname.3
+++ b/lib/libc/net/gethostbyname.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: gethostbyname.3,v 1.12 1998/04/28 20:25:53 fair Exp $
+.\" $NetBSD: gethostbyname.3,v 1.13 1999/01/16 08:20:26 lukem Exp $
.\"
.\" Copyright (c) 1983, 1987, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -33,7 +33,7 @@
.\"
.\" @(#)gethostbyname.3 8.4 (Berkeley) 5/25/95
.\"
-.Dd May 25, 1995
+.Dd January 16, 1999
.Dt GETHOSTBYNAME 3
.Os BSD 4.2
.Sh NAME
@@ -204,6 +204,7 @@ for example, a mail-forwarder may be registered for this domain.
.Sh SEE ALSO
.Xr resolver 3 ,
.Xr hosts 5 ,
+.Xr nsswitch.conf 5 ,
.Xr hostname 7 ,
.Xr named 8
.Sh CAVEAT
diff --git a/lib/libc/net/getnetent.3 b/lib/libc/net/getnetent.3
index 88a578cb2a5..cdf2bbc5a95 100644
--- a/lib/libc/net/getnetent.3
+++ b/lib/libc/net/getnetent.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: getnetent.3,v 1.6 1998/02/05 18:48:45 perry Exp $
+.\" $NetBSD: getnetent.3,v 1.7 1999/01/16 08:13:28 lukem Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -33,7 +33,7 @@
.\"
.\" @(#)getnetent.3 8.1 (Berkeley) 6/4/93
.\"
-.Dd June 4, 1993
+.Dd January 16, 1999
.Dt GETNETENT 3
.Os BSD 4.2
.Sh NAME
@@ -65,8 +65,8 @@ functions
each return a pointer to an object with the
following structure
containing the broken-out
-fields of a line in the network data base,
-.Pa /etc/networks .
+fields of a line in the network data base as described in
+.Xr networks 5 .
.Bd -literal -offset indent
struct netent {
char *n_name; /* official name of net */
@@ -133,7 +133,8 @@ Null pointer
.Dv EOF
or error.
.Sh SEE ALSO
-.Xr networks 5
+.Xr networks 5 ,
+.Xr nsswitch.conf 5
.Sh HISTORY
The
.Fn getnetent ,