summaryrefslogtreecommitdiff
path: root/usr/src/man/man3socket/getservbyname.3socket
diff options
context:
space:
mode:
authorYuri Pankov <yuri.pankov@nexenta.com>2011-10-03 04:36:40 -0700
committerYuri Pankov <yuri.pankov@nexenta.com>2011-10-03 04:36:40 -0700
commited22c7109fc5dd9e1b7a5d0333bdc7ad2718e2ab (patch)
tree3b2f488c4a03bda877119449bd63c01fa32aa6f2 /usr/src/man/man3socket/getservbyname.3socket
parentaf8dc4373b25cce2c0bbb80f24e791f99eccbb6f (diff)
downloadillumos-gate-ed22c7109fc5dd9e1b7a5d0333bdc7ad2718e2ab.tar.gz
1502 Remove conversion cruft from manpages
Reviewed by: Alexander Eremin <alexander.eremin@nexenta.com> Reviewed by: Gordon Ross <gordon.w.ross@gmail.com> Reviewed by: Garrett D'Amore <garrett.damore@gmail.com>
Diffstat (limited to 'usr/src/man/man3socket/getservbyname.3socket')
-rw-r--r--usr/src/man/man3socket/getservbyname.3socket33
1 files changed, 9 insertions, 24 deletions
diff --git a/usr/src/man/man3socket/getservbyname.3socket b/usr/src/man/man3socket/getservbyname.3socket
index 606ca35ff2..cc251a2252 100644
--- a/usr/src/man/man3socket/getservbyname.3socket
+++ b/usr/src/man/man3socket/getservbyname.3socket
@@ -1,7 +1,7 @@
'\" te
-.\" Copyright (c) 1983, Regents of the University of California. All rights reserved. The Berkeley software License Agreement specifies the terms and conditions for redistribution. Copyright 1989 AT&T. Copyright (c) 2007, Sun Microsystems, Inc.
+.\" Copyright (c) 1983, Regents of the University of California. All rights reserved. The Berkeley software License Agreement specifies the terms and conditions for redistribution. Copyright 1989 AT&T. Copyright (c) 2007, Sun Microsystems, Inc.
.\" All Rights Reserved.
-.TH getservbyname 3SOCKET "31 Jan 2007" "SunOS 5.11" "Sockets Library Functions"
+.TH GETSERVBYNAME 3SOCKET "Jan 31, 2007"
.SH NAME
getservbyname, getservbyname_r, getservbyport, getservbyport_r, getservent,
getservent_r, setservent, endservent \- get service entry
@@ -165,8 +165,8 @@ in <\fBnetdb.h\fR>:
.nf
struct servent {
char *s_name; /* official name of service */
- char **s_aliases; /* alias list */
- int s_port; /* port service resides at */
+ char **s_aliases; /* alias list */
+ int s_port; /* port service resides at */
char *s_proto; /* protocol to use */
};
.fi
@@ -177,46 +177,38 @@ struct servent {
The members of this structure are:
.sp
.ne 2
-.mk
.na
\fB\fBs_name\fR\fR
.ad
.RS 13n
-.rt
The official name of the service.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBs_aliases\fR\fR
.ad
.RS 13n
-.rt
A zero terminated list of alternate names for the service.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBs_port\fR\fR
.ad
.RS 13n
-.rt
The port number at which the service resides. Port numbers are
returned in network byte order.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBs_proto\fR\fR
.ad
.RS 13n
-.rt
The name of the protocol to use when contacting the service
.RE
@@ -252,34 +244,28 @@ result. See \fBIntro\fR(2) for the proper usage and interpretation of
.SH FILES
.sp
.ne 2
-.mk
.na
\fB\fB/etc/services\fR\fR
.ad
.RS 22n
-.rt
Internet network services
.RE
.sp
.ne 2
-.mk
.na
\fB\fB/etc/netconfig\fR\fR
.ad
.RS 22n
-.rt
network configuration file
.RE
.sp
.ne 2
-.mk
.na
\fB\fB/etc/nsswitch.conf\fR\fR
.ad
.RS 22n
-.rt
configuration file for the name-service switch
.RE
@@ -291,13 +277,12 @@ See \fBattributes\fR(5) for descriptions of the following attributes:
.sp
.TS
-tab() box;
-cw(2.75i) |cw(2.75i)
-lw(2.75i) |lw(2.75i)
-.
-ATTRIBUTE TYPEATTRIBUTE VALUE
+box;
+c | c
+l | l .
+ATTRIBUTE TYPE ATTRIBUTE VALUE
_
-MT-LevelT{
+MT-Level T{
See "Reentrant Interfaces" in \fBDESCRIPTION\fR.
T}
.TE