summaryrefslogtreecommitdiffstats
path: root/man1/getent.1
diff options
context:
space:
mode:
Diffstat (limited to 'man1/getent.1')
-rw-r--r--man1/getent.1122
1 files changed, 61 insertions, 61 deletions
diff --git a/man1/getent.1 b/man1/getent.1
index 8efbbe51a..a15459bc1 100644
--- a/man1/getent.1
+++ b/man1/getent.1
@@ -34,19 +34,19 @@ may be any of those supported by the GNU C Library, listed below:
When no
.I key
is provided, use
-.BR sethostent (3),
-.BR gethostent (3),
+.MR sethostent 3 ,
+.MR gethostent 3 ,
and
-.BR endhostent (3)
+.MR endhostent 3
to enumerate the hosts database.
This is identical to using
-.BR hosts (5).
+.MR hosts 5 .
When one or more
.I key
arguments are provided, pass each
.I key
in succession to
-.BR getaddrinfo (3)
+.MR getaddrinfo 3
with the address family
.BR AF_UNSPEC ,
enumerating each socket address structure returned.
@@ -63,7 +63,7 @@ Same as
but use the address family
.BR AF_INET6 .
The call to
-.BR getaddrinfo (3)
+.MR getaddrinfo 3
in this case includes the
.B AI_V4MAPPED
flag.
@@ -72,17 +72,17 @@ flag.
When no
.I key
is provided, use
-.BR setaliasent (3),
-.BR getaliasent (3),
+.MR setaliasent 3 ,
+.MR getaliasent 3 ,
and
-.BR endaliasent (3)
+.MR endaliasent 3
to enumerate the aliases database.
When one or more
.I key
arguments are provided, pass each
.I key
in succession to
-.BR getaliasbyname (3)
+.MR getaliasbyname 3
and display the result.
.TP
.B ethers
@@ -91,9 +91,9 @@ When one or more
arguments are provided, pass each
.I key
in succession to
-.BR ether_aton (3)
+.MR ether_aton 3
and
-.BR ether_hostton (3)
+.MR ether_hostton 3
until a result is obtained, and display the result.
Enumeration is not supported on
.BR ethers ,
@@ -105,59 +105,59 @@ must be provided.
When no
.I key
is provided, use
-.BR setgrent (3),
-.BR getgrent (3),
+.MR setgrent 3 ,
+.MR getgrent 3 ,
and
-.BR endgrent (3)
+.MR endgrent 3
to enumerate the group database.
When one or more
.I key
arguments are provided, pass each numeric
.I key
to
-.BR getgrgid (3)
+.MR getgrgid 3
and each nonnumeric
.I key
to
-.BR getgrnam (3)
+.MR getgrnam 3
and display the result.
.TP
.B gshadow
When no
.I key
is provided, use
-.BR setsgent (3),
-.BR getsgent (3),
+.MR setsgent 3 ,
+.MR getsgent 3 ,
and
-.BR endsgent (3)
+.MR endsgent 3
to enumerate the gshadow database.
When one or more
.I key
arguments are provided, pass each
.I key
in succession to
-.BR getsgnam (3)
+.MR getsgnam 3
and display the result.
.TP
.B hosts
When no
.I key
is provided, use
-.BR sethostent (3),
-.BR gethostent (3),
+.MR sethostent 3 ,
+.MR gethostent 3 ,
and
-.BR endhostent (3)
+.MR endhostent 3
to enumerate the hosts database.
When one or more
.I key
arguments are provided, pass each
.I key
to
-.BR gethostbyaddr (3)
+.MR gethostbyaddr 3
or
-.BR gethostbyname2 (3),
+.MR gethostbyname2 3 ,
depending on whether a call to
-.BR inet_pton (3)
+.MR inet_pton 3
indicates that the
.I key
is an IPv6 or IPv4 address or not, and display the result.
@@ -168,7 +168,7 @@ When one or more
arguments are provided, pass each
.I key
in succession to
-.BR getgrouplist (3)
+.MR getgrouplist 3
and display the result.
Enumeration is not supported on
.BR initgroups ,
@@ -182,9 +182,9 @@ When one
is provided, pass the
.I key
to
-.BR setnetgrent (3)
+.MR setnetgrent 3
and, using
-.BR getnetgrent (3)
+.MR getnetgrent 3
display the resulting string triple
.RI ( hostname ", " username ", " domainname ).
Alternatively, three
@@ -195,7 +195,7 @@ may be provided, which are interpreted as the
and
.I domainname
to match to a netgroup name via
-.BR innetgr (3).
+.MR innetgr 3 .
Enumeration is not supported on
.BR netgroup ,
so either one or three
@@ -206,122 +206,122 @@ must be provided.
When no
.I key
is provided, use
-.BR setnetent (3),
-.BR getnetent (3),
+.MR setnetent 3 ,
+.MR getnetent 3 ,
and
-.BR endnetent (3)
+.MR endnetent 3
to enumerate the networks database.
When one or more
.I key
arguments are provided, pass each numeric
.I key
to
-.BR getnetbyaddr (3)
+.MR getnetbyaddr 3
and each nonnumeric
.I key
to
-.BR getnetbyname (3)
+.MR getnetbyname 3
and display the result.
.TP
.B passwd
When no
.I key
is provided, use
-.BR setpwent (3),
-.BR getpwent (3),
+.MR setpwent 3 ,
+.MR getpwent 3 ,
and
-.BR endpwent (3)
+.MR endpwent 3
to enumerate the passwd database.
When one or more
.I key
arguments are provided, pass each numeric
.I key
to
-.BR getpwuid (3)
+.MR getpwuid 3
and each nonnumeric
.I key
to
-.BR getpwnam (3)
+.MR getpwnam 3
and display the result.
.TP
.B protocols
When no
.I key
is provided, use
-.BR setprotoent (3),
-.BR getprotoent (3),
+.MR setprotoent 3 ,
+.MR getprotoent 3 ,
and
-.BR endprotoent (3)
+.MR endprotoent 3
to enumerate the protocols database.
When one or more
.I key
arguments are provided, pass each numeric
.I key
to
-.BR getprotobynumber (3)
+.MR getprotobynumber 3
and each nonnumeric
.I key
to
-.BR getprotobyname (3)
+.MR getprotobyname 3
and display the result.
.TP
.B rpc
When no
.I key
is provided, use
-.BR setrpcent (3),
-.BR getrpcent (3),
+.MR setrpcent 3 ,
+.MR getrpcent 3 ,
and
-.BR endrpcent (3)
+.MR endrpcent 3
to enumerate the rpc database.
When one or more
.I key
arguments are provided, pass each numeric
.I key
to
-.BR getrpcbynumber (3)
+.MR getrpcbynumber 3
and each nonnumeric
.I key
to
-.BR getrpcbyname (3)
+.MR getrpcbyname 3
and display the result.
.TP
.B services
When no
.I key
is provided, use
-.BR setservent (3),
-.BR getservent (3),
+.MR setservent 3 ,
+.MR getservent 3 ,
and
-.BR endservent (3)
+.MR endservent 3
to enumerate the services database.
When one or more
.I key
arguments are provided, pass each numeric
.I key
to
-.BR getservbynumber (3)
+.MR getservbynumber 3
and each nonnumeric
.I key
to
-.BR getservbyname (3)
+.MR getservbyname 3
and display the result.
.TP
.B shadow
When no
.I key
is provided, use
-.BR setspent (3),
-.BR getspent (3),
+.MR setspent 3 ,
+.MR getspent 3 ,
and
-.BR endspent (3)
+.MR endspent 3
to enumerate the shadow database.
When one or more
.I key
arguments are provided, pass each
.I key
in succession to
-.BR getspnam (3)
+.MR getspnam 3
and display the result.
.SH OPTIONS
.TP
@@ -384,4 +384,4 @@ could not be found in the
Enumeration not supported on this
.IR database .
.SH SEE ALSO
-.BR nsswitch.conf (5)
+.MR nsswitch.conf 5