]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
regex.3: Remove unnecessary include
authorAlejandro Colomar <colomar.6.4.3@gmail.com>
Sat, 10 Oct 2020 17:50:02 +0000 (19:50 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Sun, 11 Oct 2020 05:38:41 +0000 (07:38 +0200)
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>
man3/regex.3

index d4f7a09e7b9857c5b318733d428bcf8137e052ac..414011d912167d37bc3b3124bca2d3f423d824ee 100644 (file)
@@ -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 );