This is the mail archive of the
mailing list for the glibc project.
[2.22 PATCH] Correct comments about the history of <regexp.h>.
- From: Zack Weinberg <zackw at panix dot com>
- To: libc-alpha at sourceware dot org
- Date: Wed, 5 Aug 2015 10:58:02 -0400
- Subject: [2.22 PATCH] Correct comments about the history of <regexp.h>.
- Authentication-results: sourceware.org; auth=none
-----BEGIN PGP SIGNED MESSAGE-----
In the "Kill regexp.h" thread, Joseph dug up more accurate information
about exactly which editions of the Single Unix Standard included and
deprecated this header.
This only affects comments and NEWS; please consider for 2.22.
* misc/regexp.h: Correct commentary about the editions of the
Single Unix Standard that included this header.
* NEWS: Likewise.
NEWS | 2 +-
misc/regexp.h | 9 +++++----
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/NEWS b/NEWS
index 4c31de7..43dcfdb 100644
- --- a/NEWS
@@ -84,7 +84,7 @@ Version 2.22
release. Use of this header will trigger a deprecation warning.
Application developers should update their code to use <regex.h> instead.
- - This header was formerly part of SUSv2, but was deprecated in 1997 and
+ This header was formerly part of SUS, but was deprecated in 1994 and
removed from the standard in 2001. Also, the glibc implementation
leaks memory. See BZ#18681 for more details.
diff --git a/misc/regexp.h b/misc/regexp.h
index 3460989..42394f7 100644
- --- a/misc/regexp.h
@@ -19,10 +19,11 @@
#define _REGEXP_H 1
- -/* The contents of this header file were standardized in the
- - Single Unix Specification, Version 2 (1997) but marked as
- - LEGACY; new applications were already being encouraged to
- - use <regex.h> instead. POSIX.1-2001 removed this header.
+/* The contents of this header file were originally standardized in
+ the Single Unix Specification, Issue 3 (1992). In Issue 4 (1994)
+ the header was marked as TO BE WITHDRAWN, and new applications
+ were encouraged to use <regex.h> instead. It was officially
+ withdrawn from the standard in Issue 6 (aka POSIX.1-2001).
This header is provided only for backward compatibility.
It will be removed in the next release of the GNU C Library.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
-----END PGP SIGNATURE-----