X-Git-Url: http://git.osdn.net/view?p=linuxjm%2FLDP_man-pages.git;a=blobdiff_plain;f=original%2Fman3%2Fre_comp.3;h=6803fbf1af63077028138b4fbf828a12e8d63211;hp=04ce94ce3600e75fbca089d8271911e813ca6d7a;hb=4ea6bb24817f6f049d6bbc90ecd77a869876f9b0;hpb=633a2252e0be3c867dce264a180a89ce8181d36f diff --git a/original/man3/re_comp.3 b/original/man3/re_comp.3 index 04ce94ce..6803fbf1 100644 --- a/original/man3/re_comp.3 +++ b/original/man3/re_comp.3 @@ -1,5 +1,6 @@ .\" Copyright (C), 1995, Graeme W. Wilford. (Wilf.) .\" +.\" %%%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. @@ -19,10 +20,11 @@ .\" .\" 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" +.TH RE_COMP 3 2014-05-28 "GNU" "Linux Programmer's Manual" .SH NAME re_comp, re_exec \- BSD regex functions .SH SYNOPSIS @@ -32,9 +34,9 @@ re_comp, re_exec \- BSD regex functions .br .B #include .sp -.BI "char *re_comp(char *" regex ); +.BI "char *re_comp(const char *" regex ); .sp -.BI "int re_exec(char *" string ); +.BI "int re_exec(const char *" string ); .SH DESCRIPTION .BR re_comp () is used to compile the null-terminated regular expression pointed to by @@ -53,7 +55,7 @@ is used to assess whether the null-terminated string pointed to by .I string matches the previously compiled .IR regex . -.SH "RETURN VALUE" +.SH RETURN VALUE .BR re_comp () returns NULL on successful compilation of .I regex @@ -61,13 +63,29 @@ otherwise it returns a pointer to an appropriate error message. .BR re_exec () returns 1 for a successful match, zero for failure. -.SH "CONFORMING TO" +.SH ATTRIBUTES +.SS Multithreading (see pthreads(7)) +The +.BR re_comp () +and +.BR re_exec () +functions are not thread-safe. +.SH CONFORMING TO 4.3BSD. .SH NOTES These functions are obsolete; the functions documented in .BR regcomp (3) should be used instead. -.SH "SEE ALSO" +.SH SEE ALSO .BR regcomp (3), .BR regex (7), GNU regex manual +.SH COLOPHON +This page is part of release 3.79 of the Linux +.I man-pages +project. +A description of the project, +information about reporting bugs, +and the latest version of this page, +can be found at +\%http://www.kernel.org/doc/man\-pages/.