diff options
author | Alejandro Colomar <alx.manpages@gmail.com> | 2022-07-22 02:44:20 +0200 |
---|---|---|
committer | Alejandro Colomar <alx.manpages@gmail.com> | 2022-07-22 02:45:43 +0200 |
commit | ee95aefc79aa804cbc1b402fa9acec93c34cad46 (patch) | |
tree | 08a00c259e5f1ae3ac05646d80ca66f19273b0fd | |
parent | 49821a6adbcd9c8db0593b3ad070882ece01edd2 (diff) |
regex_t.3type, regmatch_t.3type, regoff_t.3type, system_data_types.7: Move regex_t, regmatch_t, and regoff_t to a separate page
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
-rw-r--r-- | man3type/regex_t.3type | 63 | ||||
-rw-r--r-- | man3type/regmatch_t.3type | 2 | ||||
-rw-r--r-- | man3type/regoff_t.3type | 2 | ||||
-rw-r--r-- | man7/system_data_types.7 | 79 |
4 files changed, 64 insertions, 82 deletions
diff --git a/man3type/regex_t.3type b/man3type/regex_t.3type index db50c0f09..12e353c4d 100644 --- a/man3type/regex_t.3type +++ b/man3type/regex_t.3type @@ -1 +1,62 @@ -.so man7/system_data_types.7 +.\" Copyright (c) 2020-2022 by Alejandro Colomar <colomar.6.4.3@gmail.com> +.\" and Copyright (c) 2020 by Michael Kerrisk <mtk.manpages@gmail.com> +.\" +.\" SPDX-License-Identifier: Linux-man-pages-copyleft +.\" +.\" +.TH regex_t 3type 2022-07-22 Linux "Linux Programmer's Manual" +.SH NAME +regex_t, regmatch_t, regoff_t +\- regular expression matching +.SH LIBRARY +Standard C library +.RI ( libc ) +.SH SYNOPSIS +.nf +.B #include <regex.h> +.PP +.B typedef struct { +.BR " size_t re_nsub;" " /* Number of parenthesized subexpressions */" +.B } regex_t; +.PP +.B typedef struct { +.BR " regoff_t rm_so;" " /* Byte offset from start of string + to start of substring */ +.BR " regoff_t rm_eo;" " /* Byte offset from start of string of + the first character after the end of + substring */ +.B } regmatch_t; +.PP +.BR typedef " /* ... */ " regoff_t; +.fi +.SH DESCRIPTION +.TP +.I regex_t +This is a structure type used in regular expression matching. +It holds a compiled regular expression, +compiled with +.BR regcomp (3). +.TP +.I regmatch_t +This is a structure type used in regular expression matching. +.TP +.I regoff_t +According to POSIX, +it shall be a signed integer type +capable of storing the largest value that can be stored in either an +.I ptrdiff_t +type or a +.I ssize_t +type. +.SH VERSIONS +Prior to POSIX.1-2008, +the type was +capable of storing the largest value that can be stored in either an +.I off_t +type or a +.I ssize_t +type. +.SH CONFORMING TO +POSIX.1-2001 and later. +.SH SEE ALSO +.BR regex (3) diff --git a/man3type/regmatch_t.3type b/man3type/regmatch_t.3type index db50c0f09..dc78f2cf2 100644 --- a/man3type/regmatch_t.3type +++ b/man3type/regmatch_t.3type @@ -1 +1 @@ -.so man7/system_data_types.7 +.so man3type/regex_t.3type diff --git a/man3type/regoff_t.3type b/man3type/regoff_t.3type index db50c0f09..dc78f2cf2 100644 --- a/man3type/regoff_t.3type +++ b/man3type/regoff_t.3type @@ -1 +1 @@ -.so man7/system_data_types.7 +.so man3type/regex_t.3type diff --git a/man7/system_data_types.7 b/man7/system_data_types.7 index b16b5632c..2b24f9f6d 100644 --- a/man7/system_data_types.7 +++ b/man7/system_data_types.7 @@ -59,87 +59,8 @@ system_data_types \- overview of system data types .\"------------------------------------- pid_t ------------------------/ .\"------------------------------------- ptrdiff_t --------------------/ .\"------------------------------------- regex_t ----------------------/ -.TP -.I regex_t -.RS -.IR 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 -.BR regcomp (3). -.PP -.IR "Conforming to" : -POSIX.1-2001 and later. -.PP -.IR "See also" : -.BR regex (3) -.RE .\"------------------------------------- regmatch_t -------------------/ -.TP -.I regmatch_t -.RS -.IR Include : -.IR <regex.h> . -.PP -.EX -typedef struct { - regoff_t rm_so; /* Byte offset from start of string - to start of substring */ - regoff_t rm_eo; /* Byte offset from start of string of - the first character after the end of - substring */ -} regmatch_t; -.EE -.PP -This is a structure type used in regular expression matching. -.PP -.IR "Conforming to" : -POSIX.1-2001 and later. -.PP -.IR "See also" : -.BR regexec (3) -.RE .\"------------------------------------- regoff_t ---------------------/ -.TP -.I regoff_t -.RS -.IR Include : -.IR <regex.h> . -.PP -According to POSIX, it shall be a signed integer type -capable of storing the largest value that can be stored in either a -.I ptrdiff_t -type or a -.I ssize_t -type. -.PP -.IR Versions : -Prior to POSIX.1-2008, the type was capable of storing -the largest value that can be stored in either an -.I off_t -type or a -.I ssize_t -type. -.PP -.IR "Conforming to" : -POSIX.1-2001 and later. -.PP -.IR "See also" : -.BR off_t (3type), -.BR ptrdiff_t (3type), -.BR ssize_t (3type) -.PP -See also the -.I regmatch_t -structure in this page. -.RE .\"------------------------------------- sigevent ---------------------/ .TP .I sigevent |