Here are the patches for exporting memrchr, once my patches to newlib are accepted.
Yaakov
2012-05-09 Yaakov Selkowitz <yselkowitz@...> * cygwin.din (memrchr): Export. * posix.sgml (std-gnu): Add memrchr. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump. Index: cygwin.din =================================================================== RCS file: /cvs/src/src/winsup/cygwin/cygwin.din,v retrieving revision 1.254 diff -u -p -r1.254 cygwin.din --- cygwin.din 22 Feb 2012 01:58:24 -0000 1.254 +++ cygwin.din 9 May 2012 08:11:16 -0000 @@ -1062,6 +1062,7 @@ memmove NOSIGFE _memmove = memmove NOSIGFE mempcpy NOSIGFE __mempcpy = mempcpy NOSIGFE +memrchr NOSIGFE memset NOSIGFE _memset = memset NOSIGFE mkdir SIGFE Index: posix.sgml =================================================================== RCS file: /cvs/src/src/winsup/cygwin/posix.sgml,v retrieving revision 1.77 diff -u -p -r1.77 posix.sgml --- posix.sgml 30 Mar 2012 11:29:56 -0000 1.77 +++ posix.sgml 9 May 2012 08:11:16 -0000 @@ -1126,6 +1126,7 @@ also IEEE Std 1003.1-2008 (POSIX.1-2008) lsetxattr memmem mempcpy + memrchr mkostemp mkostemps pipe2 Index: include/cygwin/version.h =================================================================== RCS file: /cvs/src/src/winsup/cygwin/include/cygwin/version.h,v retrieving revision 1.368 diff -u -p -r1.368 version.h --- include/cygwin/version.h 24 Apr 2012 16:05:20 -0000 1.368 +++ include/cygwin/version.h 9 May 2012 08:11:17 -0000 @@ -429,12 +429,13 @@ details. */ 258: Export get_current_dir_name. 259: Export pthread_sigqueue. 260: Export scandirat. + 261: Export memrchr. */ /* Note that we forgot to bump the api for ualarm, strtoll, strtoull */ #define CYGWIN_VERSION_API_MAJOR 0 -#define CYGWIN_VERSION_API_MINOR 260 +#define CYGWIN_VERSION_API_MINOR 261 /* There is also a compatibity version number associated with the shared memory regions. It is incremented when incompatible
2012-05-09 Yaakov Selkowitz <yselkowitz@...> * new-features.sgml (ov-new1.7.15): Document memrchr. Index: new-features.sgml =================================================================== RCS file: /cvs/src/src/winsup/doc/new-features.sgml,v retrieving revision 1.116 diff -u -p -r1.116 new-features.sgml --- new-features.sgml 9 May 2012 07:32:48 -0000 1.116 +++ new-features.sgml 9 May 2012 08:15:17 -0000 @@ -7,6 +7,10 @@ CYGWIN=pipe_byte option now forces the opening of pipes in byte mode rather than message mode. </para></listitem> +<listitem><para> +New API: memrchr. +</para></listitem> + </itemizedlist> </sect2>