DragonFly BSD
DragonFly bugs List (threaded) for 2010-03
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Sascha Wildner <saw@xxxxxxxxx>
Date: Wed, 31 Mar 2010 22:07:16 +0200

Am 31.03.2010 21:55, schrieb David Shao (via DragonFly issue tracker):

New submission from David Shao<davshao@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]