File: services.5

package info (click to toggle)
manpages-ja 0.5.0.0.20080615-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 20,508 kB
  • ctags: 1
  • sloc: sh: 13,690; perl: 157; makefile: 114
file content (209 lines) | stat: -rw-r--r-- 6,680 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
.\" Hey Emacs! This file is -*- nroff -*- source.
.\"
.\" This manpage is Copyright (C) 1996 Austin Donnelly <and1000@cam.ac.uk>,
.\"  with additional material (c) 1995 Martin Schulze <joey@infodrom.north.de>
.\"
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\" Permission is granted to copy and distribute modified versions of this
.\" manual under the conditions for verbatim copying, provided that the
.\" entire resulting derived work is distributed under the terms of a
.\" permission notice identical to this one.
.\" 
.\" Since the Linux kernel and libraries are constantly changing, this
.\" manual page may be incorrect or out-of-date.  The author(s) assume no
.\" responsibility for errors or omissions, or for damages resulting from
.\" the use of the information contained herein.  The author(s) may not
.\" have taken the same level of care in the production of this manual,
.\" which is licensed free of charge, as they might when working
.\" professionally.
.\" 
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
.\"
.\"   This manpage was made by merging two independently written manpages,
.\"   one written by Martin Schulze (18 Oct 95), the other written by
.\"   Austin Donnelly, (9 Jan 96).
.\"
.\" Thu Jan 11 12:14:41 1996 Austin Donnelly  <and1000@cam.ac.uk>
.\"   * Merged two services(5) manpages
.\"
.\" Japanese Version Copyright (c) 1997 MOTOKI Akihiro
.\"       all rights reserved.
.\" Translated Wed Aug 20 08:32:26 JST 1997
.\"       by MOTOKI Akihiro <motoki@hal.t.u-tokyo.ac.jp>
.\"
.TH SERVICES 5 1996-01-11 "Linux" "Linux Programmer's Manual"
.SH ̾
services \- 󥿡ͥå ͥåȥӥ ꥹ
.SH 
.B services
ϡ󥿡ͥåȥӥʬ䤹̾ȡ
Υӥ˳Ƥ줿ݡֹ
ץȥμδ֤бط񤫤ƤƥȥեǤ롣
ͥåȥưץϤ٤ơ
Υӥбݡֹ (ȥץȥ) 뤿ˡ
ΥեĴ٤ɬפ롣
C 饤֥ؿǤ
.BR getservent (3),
.BR getservbyname (3),
.BR getservbyport (3),
.BR setservent (3),
.BR endservent (3)
Ѥ뤳ȤǡץϤΥեĴ٤뤳ȤǤ롣

ݡֹϡIANA (Internet Assigned Numbers Authority) ˤä
ƤƤꡢߤϥݡֹƤݤ
TCP  UDP ξΥץȥƤ뤳ȤˤʤäƤ롣
ΤᡢۤȤɤΥӥФơ
Ȥ TCP ΥӥξǤäƤ⡢бܤĤ뤳Ȥˤʤ롣

1024 꾮ݡֹ ( 'low numbered' ݡ) 
 (root) ¤ˤäƤΤ߻Ѥ뤳ȤǤ
.RB ( bind (2), 
.BR tcp (7),
.BR udp (7)
)
ϡΥݡȤ³륯饤ȤФơ
ΥݡȤưƤ륵ӥɸŪʼǤꡢ
η׻Υ桼ưƤ
ʥӥǤϤʤȤݾڤ뤿Ǥ롣
IANA Ƥ褯Ѥݡֹϡ
̾盧Τ褦ʴԤѤǤϰϤ֤롣

.B services
եˤ륵ӥФܤäƤ⡢ɬ⤽Υӥ
ߤη׻ưƤǤϤʤѲǽʥ󥿡ͥåȥӥ
ĤƤ
.BR inetd.conf (5)
˵ҤƤ롣٤ƤΥӥ
.BR inetd (8)
ˤäƵư櫓ǤϤʤΤǡ
.BR inetd.conf (5)
ˤϽ񤫤Ƥʤӥ⤢뤳Ȥդɬפ롣
äˡͥåȥ˥塼 (NNTP)  ᡼ (SMTP) ΥСϡƥ൯ư
ץȤ鵯ư뤳Ȥ¿

.B services
եξϡ
.I <netdb.h>

.B _PATH_SERVICES
ˤäƤ롣
ͤ̾
.I /etc/services
ꤵƤ롣

 1 ԤˤĤ 1 ӥҤƤꡢηϰʲ̤Ǥ롣
.IP
\f2service-name\ \ \ port\f3/\f2protocol\ \ \ \f1[\f2aliases ...\f1]
.TP
.TP 10
.I service-name
ӥɽʬ䤹̾ǤꡢκݤˤѤ롣
ʸȾʸ϶̤롣
饤ȥץ
.I service-name
ˤʤ̾դ뤳Ȥ¿
.TP
.I port
ӥФƻѤݡֹ档10 ʿǻꤹ롣
.TP
.I protocol
Ѥץȥμࡣϡ
.BR protocols (5)
եιܤȰפƤɬפ롣
̾Ѥͤϡ
.B tcp

.B udp 
Ǥ롣
.TP
.I aliases
ӥФ̾Υꥹ (ڤϥڡޤϥ) ǡ
ɬפˤʤн񤯤ȤǤ
(âΥХΥ򻲾ȤΤ)ޤ̾
ʸȾʸ϶̤롣
.PP
줾ζڤˤϡڡޤϥ֤Ѥ롣

Ȥϥ㡼 (#) ǻϤޤꡢιԤνޤǤȤȤߤʤ롣
ԤФ롣

ԤλϤΥڡ̵뤵ʤΤǡ
.I service-name
ϡƬ񤫤ʤФʤʤ
.I service-names
ϡڡȥְʳΰǽʸʤ鲿Ǥ褤ʤ
ߴ򾯤ʤ褦ʸ򤹤٤Ǥ롣
㤨Сa\-z 0\-9 ϥե (\-) ѤΤ̵Ȼפ롣

ꤵ줿˹ʤԤϤäƤϤʤʤ (ߤϡΤ褦ʹԤ
.BR getservent (3),
.BR getservbyname (3),
.BR getservbyport (3)
ˤä̵뤵롣ξεưϿǤʤ)

ŤСȤ꤫顢ºݤˤ
.I port
ֹ
.I protocol
δ֤Υå (/) ϡå夫 (,) ΤɤǤ⹽ʤ
ʤ顢ʤޤѤΤ˾ޤȤǤϤʤ

ΥեϡYellow Pages/NIS  BIND/Hesiod Τ褦ʥͥåȥ̾
ӥѤơͥåȥ̤ۤǽ⤢롣

.B services
եθܤʲ˼
.RS
.nf
.sp
.ta 3i
netstat         15/tcp
qotd            17/tcp          quote
msp             18/tcp          # message send protocol
msp             18/udp          # message send protocol
chargen         19/tcp          ttytst source
chargen         19/udp          ttytst source
ftp             21/tcp
# 22 \- unassigned
telnet          23/tcp
.fi
.RE
.SH ե
.TP
.I /etc/services
󥿡ͥå ͥåȥӥΥꥹ
.TP
.I <netdb.h>
.B _PATH_SERVICES

.SH Х
.BR getservent (3)
Υɤνǡ35 ĤޤǤ̾դ뤳ȤǤʤ

.B BUFSIZ
(ߤ 1024) ʸĹԤϡ
.BR getservent (3),
.BR getservbyname (3),
.BR getservbyport (3)
ˤ̵뤵롣ˡΤȤϼιԤᤵʤȤʤ롣
.SH Ϣ
.BR listen (2),
.BR endservent (3),
.BR getservbyname (3),
.BR getservbyport (3),
.BR getservent (3),
.BR setservent (3),
.BR inetd.conf (5),
.BR protocols (5),
.BR inetd (8)

ݡֹγƤƤ RFC (ǿǤ RFC\ 1700̾ STD0002)

Yellow Pages Service / NIS Υɥ

BIND/Hesiod Service Υɥ