OSDN Git Service

Update draft pages
[linuxjm/LDP_man-pages.git] / draft / man3 / re_comp.3
index 5233452..74b5a1b 100644 (file)
@@ -1,10 +1,6 @@
 .\" Copyright (C), 1995, Graeme W. Wilford. (Wilf.)
 .\"
-.\" Japanese Version Copyright (c) 1997 HIROFUMI Nishizuka
-.\"    all rights reserved.
-.\" Translated Thu Dec 18 15:06:31 JST 1997
-.\"    by HIROFUMI Nishizuka <nishi@rpts.cl.nec.co.jp>
-.\"
+.\" %%%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.
 .\"
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
 .\"
 .\" Wed Jun 14 16:10:28 BST 1995 Wilf. (G.Wilford@@ee.surrey.ac.uk)
 .\"
-.TH RE_COMP 3 1995-07-14 "GNU" "Linux Programmer's Manual"
-.SH Ì¾Á°
-re_comp, re_exec \- BSD ¤ÎÀµµ¬É½¸½´Ø¿ô
-.SH ½ñ¼°
-.B #define _REGEX_RE_COMP
+.\"*******************************************************************
+.\"
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.\"
+.\" Japanese Version Copyright (c) 1997 HIROFUMI Nishizuka
+.\"    all rights reserved.
+.\" Translated Thu Dec 18 15:06:31 JST 1997
+.\"    by HIROFUMI Nishizuka <nishi@rpts.cl.nec.co.jp>
+.\"
+.TH RE_COMP 3 2014\-05\-28 GNU "Linux Programmer's Manual"
+.SH 名前
+re_comp, re_exec \- BSD の正規表現関数
+.SH 書式
+\fB#define _REGEX_RE_COMP\fP
 .br
-.B #include <sys/types.h>
+\fB#include <sys/types.h>\fP
 .br
-.B #include <regex.h>
+\fB#include <regex.h>\fP
 .sp
-.BI "char *re_comp(char *" regex );
+\fBchar *re_comp(const char *\fP\fIregex\fP\fB);\fP
 .sp
-.BI "int re_exec(char *" string );
-.SH ÀâÌÀ
-.BR re_comp ()
-¤Ï¡¢
-.I regex
-¤Ç¼¨¤µ¤ì¤ë NULL ¤Ç½ªÃ¼¤µ¤ì¤¿Àµµ¬É½¸½¤ò¥³¥ó¥Ñ¥¤¥ë¤¹¤ë¤¿¤á¤Ë»ÈÍѤµ¤ì¤ë¡£
-¥³¥ó¥Ñ¥¤¥ë¤µ¤ì¤¿¥Ñ¥¿¡¼¥ó¤ÏÀÅŪ¤ÊÎΰè¤ò»ÈÍѤ·¤Æ¤ª¤ê¡¢¤½¤Î¥Ñ¥¿¡¼¥ó¥Ð¥Ã¥Õ¥¡
-¤Ï°Ê¹ß¤Î
-.BR re_comp ()
-¤Î»ÈÍѤˤè¤Ã¤Æ¾å½ñ¤­¤µ¤ì¤ë¡£
-¤â¤·
-.I regex
-¤¬ NULL ¤Ê¤é¤Ð²¿¤ÎÁàºî¤â¹Ô¤ï¤ì¤º¡¢¥Ñ¥¿¡¼¥ó¥Ð¥Ã¥Õ¥¡¤ÎÆâÍƤÏ
-ÃÖ¤­´¹¤¨¤é¤ì¤Ê¤¤¡£
+\fBint re_exec(const char *\fP\fIstring\fP\fB);\fP
+.SH 説明
+\fBre_comp\fP()  は、 \fIregex\fP で示されるヌルで終端された正規表現をコンパイルするために使用される。
+コンパイルされたパターンは静的な領域を使用しており、そのパターンバッファ は以降の \fBre_comp\fP()  の使用によって上書きされる。 もし
+\fIregex\fP が NULL ならば何の操作も行われず、パターンバッファの内容は 置き換えられない。
 
-.BR re_exec ()
-¤Ï¡¢
-.I string
-¤¬»Ø¤¹ NULL ¤Ç½ªÃ¼¤µ¤ì¤¿Ê¸»úÎó¤¬Á°²ó¥³¥ó¥Ñ¥¤¥ë¤µ¤ì¤¿
-.I regex
-¤Ë¥Þ¥Ã¥Á¤¹¤ë¤«¤É¤¦¤«¤òɾ²Á¤¹¤ë¤¿¤á¤Ë»ÈÍѤµ¤ì¤ë¡£
-.SH ÊÖ¤êÃÍ
-.BR re_comp ()
-¤Ï¡¢
-.I regex
-¤Î¥³¥ó¥Ñ¥¤¥ë¤ËÀ®¸ù¤·¤¿¾ì¹ç NULL ¤òÊÖ¤·¡¢
-¤½¤ì°Ê³°¤Î¾ì¹ç¤ÏŬÀڤʥ¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤Ø¤Î¥Ý¥¤¥ó¥¿¤òÊÖ¤¹¡£
+\fBre_exec\fP()  は、 \fIstring\fP が指すヌルで終端された文字列が前回コンパイルされた \fIregex\fP
+にマッチするかどうかを評価するために使用される。
+.SH 返り値
+\fBre_comp\fP()  は、 \fIregex\fP のコンパイルに成功した場合 NULL を返し、
+それ以外の場合は適切なエラーメッセージへのポインタを返す。
 
-.BR re_exec ()
-¤Ï¡¢°ìÃפ·¤¿¾ì¹ç 1 ¤ò¡¢¼ºÇÔ¤·¤¿¾ì¹ç 0 ¤òÊÖ¤¹¡£
-.SH ½àµò
+\fBre_exec\fP()  は、一致した場合 1 を、失敗した場合 0 を返す。
+.SH 属性
+.SS "マルチスレッディング (pthreads(7) 参照)"
+関数 \fBre_comp\fP() と \fBre_exec\fP() はスレッドセーフではない。
+.SH 準拠
 4.3BSD.
-.\"O .SH NOTES
-.SH Ãí°Õ
-.\"O These functions are obsolete; the functions documented in
-.\"O .BR regcomp (3)
-.\"O should be used instead.
-¤³¤ì¤é¤Î´Ø¿ô¤ÏÇÑ»ßͽÄê¤Ç¤¢¤ë¡£Âå¤ï¤ê¤Ë
-.BR regcomp (3)
-¤Ë½ñ¤«¤ì¤Æ¤¤¤ë´Ø¿ô¤ò»ÈÍѤ¹¤Ù¤­¤Ç¤¢¤ë¡£
-.SH ´ØÏ¢¹àÌÜ
-.BR regcomp (3),
-.BR regex (7),
-GNU regex manual
+.SH 注意
+これらの関数は廃止予定である。代わりに \fBregcomp\fP(3)  に書かれている関数を使用すべきである。
+.SH 関連項目
+\fBregcomp\fP(3), \fBregex\fP(7), GNU regex manual
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.78 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。