[1/2] system_data_types.7: Add 'regex_t'

Message ID 20201011111525.9735-1-colomar.6.4.3@gmail.com
State Not applicable
Headers
Series [1/2] system_data_types.7: Add 'regex_t' |

Commit Message

Alejandro Colomar Oct. 11, 2020, 11:15 a.m. UTC
  Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
---
 man7/system_data_types.7 | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
  

Comments

Michael Kerrisk \(man-pages\) Oct. 11, 2020, 12:25 p.m. UTC | #1
On 10/11/20 1:15 PM, Alejandro Colomar wrote:
> Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
> ---
>  man7/system_data_types.7 | 23 +++++++++++++++++++++++
>  1 file changed, 23 insertions(+)

Thanks, Alex. Patch applied.

Cheers,

Michael

> diff --git a/man7/system_data_types.7 b/man7/system_data_types.7
> index a4a2e0ab8..8a894b2e0 100644
> --- a/man7/system_data_types.7
> +++ b/man7/system_data_types.7
> @@ -786,6 +786,29 @@ and
>  .I ssize_t
>  types in this page.
>  .RE
> +.\"------------------------------------- regex_t ----------------------/
> +.TP
> +.I regex_t
> +.RS
> +Include:
> +.IR <regex.h> .
> +.PP
> +.EX
> +typedef struct {
> +    size_t  re_nsub; /* Number of parenthesized subexpressions. */
> +} regex_t;
> +.EE
> +.PP
> +This is a structure type used in regular expression matching.
> +It holds a compiled regular expression, compiled with
> +.IR regcomp (3).
> +.PP
> +Conforming to:
> +POSIX.1-2001 and later.
> +.PP
> +See also:
> +.BR regex (3)
> +.RE
>  .\"------------------------------------- regmatch_t -------------------/
>  .TP
>  .I regmatch_t
>
  

Patch

diff --git a/man7/system_data_types.7 b/man7/system_data_types.7
index a4a2e0ab8..8a894b2e0 100644
--- a/man7/system_data_types.7
+++ b/man7/system_data_types.7
@@ -786,6 +786,29 @@  and
 .I ssize_t
 types in this page.
 .RE
+.\"------------------------------------- regex_t ----------------------/
+.TP
+.I regex_t
+.RS
+Include:
+.IR <regex.h> .
+.PP
+.EX
+typedef struct {
+    size_t  re_nsub; /* Number of parenthesized subexpressions. */
+} regex_t;
+.EE
+.PP
+This is a structure type used in regular expression matching.
+It holds a compiled regular expression, compiled with
+.IR regcomp (3).
+.PP
+Conforming to:
+POSIX.1-2001 and later.
+.PP
+See also:
+.BR regex (3)
+.RE
 .\"------------------------------------- regmatch_t -------------------/
 .TP
 .I regmatch_t