OSDN Git Service

(split) LDP: draft snapshot generated from latest ja.po files.
[linuxjm/LDP_man-pages.git] / draft / man3 / getservent.3
index 7ae2050..dce25b2 100644 (file)
 .\" Modified Mon Apr 22 01:50:54 1996 by Martin Schulze <joey@infodrom.north.de>
 .\" 2001-07-25 added a clause about NULL proto (Martin Michlmayr or David N. Welton)
 .\"
-.\" Japanese Version Copyright (c) 1998 NAKANO Takeo all rights reserved.
-.\" Translated Fri Mar 15 1998 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
-.\" Updated Thu 16 Aug 2001 by NAKANO Takeo
-.\" Updated 2008-09-19, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
+.\"*******************************************************************
 .\"
-.TH GETSERVENT 3  2008-08-19 "GNU" "Linux Programmer's Manual"
-.\"O .SH NAME
-.\"O getservent, getservbyname, getservbyport, setservent, endservent \-
-.\"O get service entry
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.TH GETSERVENT 3 2008\-08\-19 GNU "Linux Programmer's Manual"
 .SH 名前
-getservent, getservbyname, getservbyport, setservent, endservent \- サービスのエントリを取得する
-.\"O .SH SYNOPSIS
+getservent, getservbyname, getservbyport, setservent, endservent \-
+サービスのエントリを取得する
 .SH 書式
 .nf
-.B #include <netdb.h>
+\fB#include <netdb.h>\fP
 .sp
-.B struct servent *getservent(void);
+\fBstruct servent *getservent(void);\fP
 .sp
-.BI "struct servent *getservbyname(const char *" name ", const char *" proto );
+\fBstruct servent *getservbyname(const char *\fP\fIname\fP\fB, const char *\fP\fIproto\fP\fB);\fP
 .sp
-.BI "struct servent *getservbyport(int " port ", const char *" proto );
+\fBstruct servent *getservbyport(int \fP\fIport\fP\fB, const char *\fP\fIproto\fP\fB);\fP
 .sp
-.BI "void setservent(int " stayopen );
+\fBvoid setservent(int \fP\fIstayopen\fP\fB);\fP
 .sp
-.B void endservent(void);
+\fBvoid endservent(void);\fP
 .fi
-.\"O .SH DESCRIPTION
 .SH 説明
-.\"O The
-.\"O .BR getservent ()
-.\"O function reads the next entry from the services database (see
-.\"O .BR services (5))
-.\"O and returns a \fIservent\fP structure containing
-.\"O the broken-out fields from the entry.
-.\"O A connection is opened to the database if necessary.
-.BR getservent ()
-関数はサービスのデータベース
-.RB ( services (5)
-参照) から次のエントリを読み込み、
-そのエントリを \fIservent\fP 構造体の要素別のフィールドに格納し、
-その構造体を返す。
-必要であれば、データベースへの接続がオープンされる。
+\fBgetservent\fP()  関数はサービスのデータベース (\fBservices\fP(5)  参照) から次のエントリを読み込み、 そのエントリを
+\fIservent\fP 構造体の要素別のフィールドに格納し、 その構造体を返す。 必要であれば、データベースへの接続がオープンされる。
 .PP
-.\"O The
-.\"O .BR getservbyname ()
-.\"O function returns a \fIservent\fP structure
-.\"O for the entry from the database
-.\"O that matches the service \fIname\fP using protocol \fIproto\fP.
-.\"O If \fIproto\fP is NULL, any protocol will be matched.
-.\"O A connection is opened to the database if necessary.
-.BR getservbyname ()
-関数は、
-プロトコル \fIproto\fP を用いるサービスの名前 \fIname\fP
-にマッチするエントリをデータベースから探し、
-そのエントリを収めた \fIservent\fP 構造体を返す。
-\fIproto\fP が NULL の場合は、任意のプロトコルにマッチする。
-必要であれば、データベースへの接続がオープンされる。
+\fBgetservbyname\fP()  関数は、 プロトコル \fIproto\fP を用いるサービスの名前 \fIname\fP
+にマッチするエントリをデータベースから探し、 そのエントリを収めた \fIservent\fP 構造体を返す。 \fIproto\fP が NULL
+の場合は、任意のプロトコルにマッチする。 必要であれば、データベースへの接続がオープンされる。
 .PP
-.\"O The
-.\"O .BR getservbyport ()
-.\"O function returns a \fIservent\fP structure
-.\"O for the entry from the database
-.\"O that matches the port \fIport\fP (given in network byte order)
-.\"O using protocol \fIproto\fP.
-.\"O If \fIproto\fP is NULL, any protocol will be matched.
-.\"O A connection is opened to the database if necessary.
-.BR getservbyport ()
-関数は、
-プロトコル \fIproto\fP を用いるサービスのポート番号 \fIport\fP
-にマッチするエントリをデータベースから探し、
-そのエントリの内容を収めた \fIservent\fP 構造体を返す
-(ポート番号 \fIport\fP はネットワーク・バイトオーダで指定する)。
-\fIproto\fP が NULL の場合は任意のプロトコルにマッチする。
+\fBgetservbyport\fP()  関数は、 プロトコル \fIproto\fP を用いるサービスのポート番号 \fIport\fP
+にマッチするエントリをデータベースから探し、 そのエントリの内容を収めた \fIservent\fP 構造体を返す (ポート番号 \fIport\fP
+はネットワーク・バイトオーダで指定する)。 \fIproto\fP が NULL の場合は任意のプロトコルにマッチする。
 必要であれば、データベースへの接続がオープンされる。
 .PP
-.\"O The
-.\"O .BR setservent ()
-.\"O function opens a connection to the database,
-.\"O and sets the next entry to the first entry.
-.\"O If \fIstayopen\fP is nonzero,
-.\"O then the connection to the database
-.\"O will not be closed between calls to one of the
-.\"O .BR getserv* ()
-.\"O functions.
-.BR setservent ()
-関数はデータベースへの接続をオープンし、
-次の読み込みエントリを先頭のエントリに設定する。
-\fIstayopen\fP が 0 でない場合、
-一つ一つの
-.BR getserv* ()
-関数の呼び出し間でデータベースへの接続をクローズしない。
+\fBsetservent\fP()  関数はデータベースへの接続をオープンし、 次の読み込みエントリを先頭のエントリに設定する。 \fIstayopen\fP が
+0 でない場合、 一つ一つの \fBgetserv*\fP()  関数の呼び出し間でデータベースへの接続をクローズしない。
 .PP
-.\"O The
-.\"O .BR endservent ()
-.\"O function closes the connection to the database.
-.BR endservent ()
-関数はデータベースへの接続をクローズする。
+\fBendservent\fP()  関数はデータベースへの接続をクローズする。
 .PP
-.\"O The \fIservent\fP structure is defined in \fI<netdb.h>\fP as follows:
 \fIservent\fP 構造体は \fI<netdb.h>\fP で以下のように定義されている。
 .sp
 .in +4n
@@ -141,55 +83,27 @@ struct servent {
 .fi
 .in
 .PP
-.\"O The members of the \fIservent\fP structure are:
 \fIservent\fP 構造体のメンバーは以下の通り。
-.RS
-.TP 12
-.I s_name
-.\"O The official name of the service.
+.TP 
+\fIs_name\fP
 サービスの正式名 (official name)。
-.TP
-.I s_aliases
-.\"O A NULL-terminated list of alternative names for the service.
-サービスの別名のリスト。
-リストは NULL で終端される。
-.TP
-.I s_port
-.\"O The port number for the service given in network byte order.
+.TP 
+\fIs_aliases\fP
+サービスの別名のリスト。 リストは NULL で終端される。
+.TP 
+\fIs_port\fP
 サービスのポート番号。ネットワークバイトオーダで指定される。
-.TP
-.I s_proto
-.\"O The name of the protocol to use with this service.
+.TP 
+\fIs_proto\fP
 このサービスと共に用いるプロトコルの名前。
-.RE
-.\"O .SH "RETURN VALUE"
 .SH 返り値
-.\"O The
-.\"O .BR getservent (),
-.\"O .BR getservbyname ()
-.\"O and
-.\"O .BR getservbyport ()
-.\"O functions return a pointer to a
-.\"O statically allocated \fIservent\fP structure, or a NULL pointer if an
-.\"O error occurs or the end of the file is reached.
-.BR getservent (),
-.BR getservbyname (),
-.BR getservbyport ()
-関数は、
-静的に割り当てられた \fIservent\fP 構造体へのポインタを返す。
-エラーが起こったり、ファイルの末尾に達した場合は NULL ポインタを返す。
-.\"O .SH FILES
+\fBgetservent\fP(), \fBgetservbyname\fP(), \fBgetservbyport\fP()  関数は、 静的に割り当てられた
+\fIservent\fP 構造体へのポインタを返す。 エラーが起こったり、ファイルの末尾に達した場合は NULL ポインタを返す。
 .SH ファイル
-.TP
-.I /etc/services
-.\"O services database file
+.TP 
+\fI/etc/services\fP
 サービスのデータベースファイル
-.\"O .SH "CONFORMING TO"
 .SH 準拠
-4.3BSD, POSIX.1-2001.
-.\"O .SH "SEE ALSO"
+4.3BSD, POSIX.1\-2001.
 .SH 関連項目
-.BR getnetent (3),
-.BR getprotoent (3),
-.BR getservent_r (3),
-.BR services (5)
+\fBgetnetent\fP(3), \fBgetprotoent\fP(3), \fBgetservent_r\fP(3), \fBservices\fP(5)