* Why __memrchr vs. memrchr ? @ 2004-02-02 21:37 Denis Zaitsev 2004-02-02 22:17 ` Dmitry V. Levin 0 siblings, 1 reply; 5+ messages in thread From: Denis Zaitsev @ 2004-02-02 21:37 UTC (permalink / raw) To: libc-alpha, linux-gcc Why such a scheme is used in GLIBC: declare + define __memrchr, and than # ifdef __USE_GNU # define memrchr(s, c, n) __memrchr ((s), (c), (n)) # endif ? memrchr is not the GNU extension, is it? Thanks in advance. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Why __memrchr vs. memrchr ? 2004-02-02 21:37 Why __memrchr vs. memrchr ? Denis Zaitsev @ 2004-02-02 22:17 ` Dmitry V. Levin 2004-02-03 0:30 ` Denis Zaitsev 0 siblings, 1 reply; 5+ messages in thread From: Dmitry V. Levin @ 2004-02-02 22:17 UTC (permalink / raw) To: libc-alpha; +Cc: linux-gcc [-- Attachment #1: Type: text/plain, Size: 395 bytes --] Hi, On Tue, Feb 03, 2004 at 02:37:21AM +0500, Denis Zaitsev wrote: > Why such a scheme is used in GLIBC: > > declare + define __memrchr, and than > > # ifdef __USE_GNU > # define memrchr(s, c, n) __memrchr ((s), (c), (n)) > # endif > > ? memrchr is not the GNU extension, is it? According to memchr(3), "The memrchr() function is a GNU extension, available since glibc 2.1.91". -- ldv [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Why __memrchr vs. memrchr ? 2004-02-02 22:17 ` Dmitry V. Levin @ 2004-02-03 0:30 ` Denis Zaitsev 2004-02-03 6:03 ` Andreas Jaeger 0 siblings, 1 reply; 5+ messages in thread From: Denis Zaitsev @ 2004-02-03 0:30 UTC (permalink / raw) To: libc-alpha, linux-gcc On Tue, Feb 03, 2004 at 01:17:23AM +0300, Dmitry V. Levin wrote: > Hi, > > On Tue, Feb 03, 2004 at 02:37:21AM +0500, Denis Zaitsev wrote: > > Why such a scheme is used in GLIBC: > > > > declare + define __memrchr, and than > > > > # ifdef __USE_GNU > > # define memrchr(s, c, n) __memrchr ((s), (c), (n)) > > # endif > > > > ? memrchr is not the GNU extension, is it? > > According to memchr(3), > "The memrchr() function is a GNU extension, available since glibc 2.1.91". Oh, I'm sorry. This fact is omited from the texinfo GLIBC documentation... Thanks. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Why __memrchr vs. memrchr ? 2004-02-03 0:30 ` Denis Zaitsev @ 2004-02-03 6:03 ` Andreas Jaeger 2004-02-06 0:08 ` Denis Zaitsev 0 siblings, 1 reply; 5+ messages in thread From: Andreas Jaeger @ 2004-02-03 6:03 UTC (permalink / raw) To: libc-alpha; +Cc: linux-gcc [-- Attachment #1: Type: text/plain, Size: 979 bytes --] Denis Zaitsev <zzz@anda.ru> writes: > On Tue, Feb 03, 2004 at 01:17:23AM +0300, Dmitry V. Levin wrote: >> Hi, >> >> On Tue, Feb 03, 2004 at 02:37:21AM +0500, Denis Zaitsev wrote: >> > Why such a scheme is used in GLIBC: >> > >> > declare + define __memrchr, and than >> > >> > # ifdef __USE_GNU >> > # define memrchr(s, c, n) __memrchr ((s), (c), (n)) >> > # endif >> > >> > ? memrchr is not the GNU extension, is it? >> >> According to memchr(3), >> "The memrchr() function is a GNU extension, available since glibc 2.1.91". > > Oh, I'm sorry. This fact is omited from the texinfo GLIBC > documentation... It's in the Library Summary: `void * memrchr (const void *BLOCK, int C, size_t SIZE)' `string.h' (GNU): *Note Search Functions::. Andreas -- Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj SuSE Linux AG, Maxfeldstr. 5, 90409 Nürnberg, Germany GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126 [-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Why __memrchr vs. memrchr ? 2004-02-03 6:03 ` Andreas Jaeger @ 2004-02-06 0:08 ` Denis Zaitsev 0 siblings, 0 replies; 5+ messages in thread From: Denis Zaitsev @ 2004-02-06 0:08 UTC (permalink / raw) To: Andreas Jaeger; +Cc: libc-alpha, linux-gcc On Tue, Feb 03, 2004 at 07:03:40AM +0100, Andreas Jaeger wrote: > Denis Zaitsev <zzz@anda.ru> writes: > > > On Tue, Feb 03, 2004 at 01:17:23AM +0300, Dmitry V. Levin wrote: > >> > >> According to memchr(3), > >> "The memrchr() function is a GNU extension, available since glibc 2.1.91". > > > > Oh, I'm sorry. This fact is omited from the texinfo GLIBC > > documentation... > > It's in the Library Summary: > `void * memrchr (const void *BLOCK, int C, size_t SIZE)' > `string.h' (GNU): *Note Search Functions::. Indeed, it's shortly marked as (GNU) here and there. But that's not described in the texi manual. So, below is the tiny patch. Please, apply it. --- manual/string.texi.orig 2004-02-06 05:02:13.000000000 +0500 +++ manual/string.texi 2004-02-06 05:03:47.000000000 +0500 @@ -1625,6 +1625,8 @@ This function is a GNU extension. The function @code{memrchr} is like @code{memchr}, except that it searches backwards from the end of the block defined by @var{block} and @var{size} (instead of forwards from the front). + +This function is a GNU extension. @end deftypefun @comment string.h ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-02-06 0:08 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2004-02-02 21:37 Why __memrchr vs. memrchr ? Denis Zaitsev 2004-02-02 22:17 ` Dmitry V. Levin 2004-02-03 0:30 ` Denis Zaitsev 2004-02-03 6:03 ` Andreas Jaeger 2004-02-06 0:08 ` Denis Zaitsev
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).