This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
[PATCH] Export strchrnul (pending newlib patch)
- From: "Yaakov (Cygwin/X)" <yselkowitz at users dot sourceforge dot net>
- To: cygwin-patches <cygwin-patches at cygwin dot com>
- Date: Sun, 27 Mar 2011 22:38:16 -0500
- Subject: [PATCH] Export strchrnul (pending newlib patch)
Here's the Cygwin patch to export strchrnul(3) once accepted in newlib.
Yaakov
2011-03-27 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
* cygwin.din (strchrnul): Export.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
* posix.sgml (std-gnu): Add strchrnul.
Index: cygwin.din
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/cygwin.din,v
retrieving revision 1.232
diff -u -r1.232 cygwin.din
--- cygwin.din 22 Feb 2011 01:32:42 -0000 1.232
+++ cygwin.din 28 Mar 2011 03:02:47 -0000
@@ -1583,6 +1583,7 @@
_strcat = strcat NOSIGFE
strchr NOSIGFE
_strchr = strchr NOSIGFE
+strchrnul NOSIGFE
strcmp NOSIGFE
_strcmp = strcmp NOSIGFE
strcoll NOSIGFE
Index: posix.sgml
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/posix.sgml,v
retrieving revision 1.53
diff -u -r1.53 posix.sgml
--- posix.sgml 10 Feb 2011 10:51:13 -0000 1.53
+++ posix.sgml 28 Mar 2011 03:02:47 -0000
@@ -1112,6 +1112,7 @@
pow10f
removexattr
setxattr
+ strchrnul
tdestroy
timegm
timelocal
Index: include/cygwin/version.h
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/include/cygwin/version.h,v
retrieving revision 1.336
diff -u -r1.336 version.h
--- include/cygwin/version.h 1 Mar 2011 22:35:00 -0000 1.336
+++ include/cygwin/version.h 28 Mar 2011 03:02:47 -0000
@@ -400,12 +400,13 @@
234: Export program_invocation_name, program_invocation_short_name.
235: Export madvise.
236: Export pthread_yield, __xpg_strerror_r.
+ 237: Export strchrnul.
*/
/* Note that we forgot to bump the api for ualarm, strtoll, strtoull */
#define CYGWIN_VERSION_API_MAJOR 0
-#define CYGWIN_VERSION_API_MINOR 236
+#define CYGWIN_VERSION_API_MINOR 237
/* There is also a compatibity version number associated with the
shared memory regions. It is incremented when incompatible