OSDN Git Service

Retire LDP man-pages repository
[linuxjm/LDP_man-pages.git] / release / man3 / getnetent_r.3
diff --git a/release/man3/getnetent_r.3 b/release/man3/getnetent_r.3
deleted file mode 100644 (file)
index d601b61..0000000
+++ /dev/null
@@ -1,123 +0,0 @@
-.\" Copyright 2008, Linux Foundation, written by Michael Kerrisk
-.\"    <mtk.manpages@gmail.com>
-.\"
-.\" %%%LICENSE_START(VERBATIM)
-.\" 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.
-.\" %%%LICENSE_END
-.\"
-.\"*******************************************************************
-.\"
-.\" This file was generated with po4a. Translate the source file.
-.\"
-.\"*******************************************************************
-.\"
-.\" Japanese Version Copyright (c) 2012  Akihiro MOTOKI
-.\"         all rights reserved.
-.\" Translated 2012-05-06, Akihiro MOTOKI <amotoki@gmail.com>
-.\"
-.TH GETNETENT_R 3 2010\-09\-10 GNU "Linux Programmer's Manual"
-.SH 名前
-getnetent_r, getnetbyname_r, getnetbyaddr_r \- ネットワークエントリーを
-取得する (リエントラント版)
-.SH 書式
-.nf
-\fB#include <netdb.h>\fP
-.sp
-\fBint getnetent_r(struct netent *\fP\fIresult_buf\fP\fB, char *\fP\fIbuf\fP\fB,\fP
-\fB                size_t \fP\fIbuflen\fP\fB, struct netent **\fP\fIresult\fP\fB,\fP
-\fB                int *\fP\fIh_errnop\fP\fB);\fP
-.sp
-\fBint getnetbyname_r(const char *\fP\fIname\fP\fB,\fP
-\fB                struct netent *\fP\fIresult_buf\fP\fB, char *\fP\fIbuf\fP\fB,\fP
-\fB                size_t \fP\fIbuflen\fP\fB, struct netent **\fP\fIresult\fP\fB,\fP
-\fB                int *\fP\fIh_errnop\fP\fB);\fP
-.sp
-\fBint getnetbyaddr_r(uint32_t \fP\fInet\fP\fB, int \fP\fItype\fP\fB,\fP
-\fB                struct netent *\fP\fIresult_buf\fP\fB, char *\fP\fIbuf\fP\fB,\fP
-\fB                size_t \fP\fIbuflen\fP\fB, struct netent **\fP\fIresult\fP\fB,\fP
-\fB                int *\fP\fIh_errnop\fP\fB);\fP
-.sp
-.fi
-.in -4n
-glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
-.ad l
-.in
-.sp
-\fBgetnetent_r\fP(), \fBgetnetbyname_r\fP(), \fBgetnetbyaddr_r\fP():
-.RS 4
-_BSD_SOURCE || _SVID_SOURCE
-.RE
-.ad b
-.SH 説明
-関数 \fBgetnetent_r\fP(), \fBgetnetbyname_r\fP(), \fBgetnetbyaddr_r\fP() は、
-それぞれ \fBgetnetent\fP(3), \fBgetnetbyname\fP(3), \fBgetnetbynumber\fP(3) の
-リエントラント版である。
-\fInetent\fP 構造体の返し方と、関数呼び出し時の引き数と返り値が異なる。
-このマニュアルページでは、リエントラントでない関数との違いだけを
-説明する。
-
-これらの関数は、関数の結果として静的に割り当てられた \fInetent\fP 構造体
-へのポインターを返すのではなく、 \fInetent\fP 構造体を \fIresult_buf\fP が
-指す場所にコピーする。
-
-.\" I can find no information on the required/recommended buffer size;
-.\" the nonreentrant functions use a 1024 byte buffer -- mtk.
-配列 \fIbuf\fP は、返される \fInetent\fP 構造体が指す文字列フィールドを格納
-するのに使用される (リエントラントでない関数の場合は、
-これらの文字列は静的な領域に格納される)。
-この配列の大きさは \fIbuflen\fP で指定される。
-\fIbuf\fP が小さすぎる場合、関数呼び出しはエラー \fBERANGE\fP で失敗し、
-呼び出し側ではもっと大きなバッファーで再度呼び出す必要がある (ほとんどの
-アプリケーションでは、長さ 1024 バイトのバッファーで十分なはずである)。
-
-関数呼び出しでネットワークレコードの取得に成功すると、
-\fI*result\fP は \fIresult_buf\fP を指すように設定される。
-それ以外の場合は \fI*result\fP に NULL が設定される。
-
-.\" getnetent.3 doesn't document any use of h_errno, but nevertheless
-.\" the nonreentrant functions no seem to set h_errno.
-\fIh_errnop\fP が指すバッファーは、リエントラントでない関数では
-グローバル変数 \fIh_errno\fP に格納されていた値を返すのに使用される。
-.SH 返り値
-成功すると、これらの関数は 0 を返す。エラーの場合、「エラー」の節の
-リストにある正のエラー番号のいずれかを返す。
-
-エラーの場合、レコードが見つからなかった場合 (\fBgetnetbyname_r\fP(),
-\fBgetnetbyaddr_r\fP()) やこれ以上レコードがない場合 (\fBgetnetent_r\fP())、
-\fIresult\fP には NULL が設定される。
-.SH エラー
-.TP 
-\fBENOENT\fP
-(\fBgetnetent_r\fP())  データベースにこれ以上レコードがない。
-.TP 
-\fBERANGE\fP
-\fIbuf\fP が小さすぎる。もっと大きなバッファーにして
-(または \fIbuflen\fP を増やして) 再度呼び出すこと。
-.SH 準拠
-これらの関数は GNU による拡張である。
-他のシステムにも同様の名前の関数が存在する場合があるが、
-通常は関数の引き数が異なる。
-.SH 関連項目
-\fBgetnetent\fP(3), \fBnetworks\fP(5)
-.SH この文書について
-この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部
-である。プロジェクトの説明とバグ報告に関する情報は
-http://www.kernel.org/doc/man\-pages/ に書かれている。