diff options
| author | Alejandro Colomar <colomar.6.4.3@gmail.com> | 2020-10-10 19:50:02 +0200 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2020-10-11 07:38:41 +0200 |
| commit | 71030dbdd225fc823ef9a2cb178985710f3ccb73 (patch) | |
| tree | d6a022bad4705dcc7e9684e536c958c0f13b5210 | |
| parent | 870d48813cf9aacaae6b51757435e8aecedaab85 (diff) | |
| download | man-pages-71030dbdd225fc823ef9a2cb178985710f3ccb73.tar.gz | |
regex.3: Remove unnecessary include
POSIX requires that the <regex.h> header shall define
the structures and symbolic constants used by the
regcomp(), regexec(), regerror(), and regfree() functions.
Therefore, there should be no need to include <sys/types.h>
at all.
The POSIX docs don't use that include:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/regcomp.html
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
| -rw-r--r-- | man3/regex.3 | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/man3/regex.3 b/man3/regex.3 index d4f7a09e7b..414011d912 100644 --- a/man3/regex.3 +++ b/man3/regex.3 @@ -32,7 +32,6 @@ regcomp, regexec, regerror, regfree \- POSIX regex functions .SH SYNOPSIS .nf -.B #include <sys/types.h> .B #include <regex.h> .PP .BI "int regcomp(regex_t *" preg ", const char *" regex ", int " cflags ); |
