Skip to contentSkip to conversation

system_data_types.7: Add 'regex_t'

PATCH Superseded Alejandro Colomar 2 participants 4 messages Oct 11, 2020 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 system_data_types.7: Add 'regex_t'

---
 man7/system_data_types.7 | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
man7/system_data_types.7 +23 -0
index a4a2e0ab8..8a894b2e0 100644
@@ -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
Signature · 1 line
2.28.0
#1 lore raw

PATCH 2/2 regex_t.3: New link to system_data_types(7)

---
 man3/regex_t.3 | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 man3/regex_t.3
man3/regex_t.3 new file +1 -0
new file mode 100644
index 000000000..db50c0f09
@@ -0,0 +1 @@
+.so man7/system_data_types.7
Signature · 1 line
2.28.0
#3 lore raw
In reply to Alejandro Colomar
Quoted 4 lines · Alejandro Colomar
---
 man7/system_data_types.7 | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

Thanks, Alex. Patch applied.

Cheers,

Michael

Quoted 35 lines
man7/system_data_types.7 +23 -0
index a4a2e0ab8..8a894b2e0 100644
@@ -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
Signature · 3 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
#2 lore raw

Re: [PATCH 2/2] regex_t.3: New link to system_data_types(7)

In reply to Alejandro Colomar
Quoted 1 line · Alejandro Colomar

Thanks, Alex. Patch applied.

Cheers,

Michael

Quoted 13 lines
---
 man3/regex_t.3 | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 man3/regex_t.3
man3/regex_t.3 new file +1 -0
new file mode 100644
index 000000000..db50c0f09
@@ -0,0 +1 @@
+.so man7/system_data_types.7
Signature · 3 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/