[issue1711] memmem() in string.h should be more or less VISIBLE on x86_64?

Sascha Wildner saw at online.de
Wed Mar 31 13:07:16 PDT 2010


Am 31.03.2010 21:55, schrieb David Shao (via DragonFly issue tracker):
New submission from David Shao<davshao at gmail.com>:

The memmem() function has a prototype given in /usr/include/string.h, (and
/usr/src/lib/libc/string/memmem.c exists) only it is required that __BSD_VISIBLE
be defined.  Unfortunately a check of gcc 4.1.2
gcc -E -dM -<  /dev/null | sort

shows no sign of any *VISIBLE.
__BSD_VISIBLE is not a builtin. It's defined in <sys/cdefs.h> and is 1 
for our default compilation environment (unless any _POSIX_C_SOURCE or 
similar macros are set).

Sascha

--
http://yoyodyne.ath.cx




More information about the Bugs mailing list