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

[DragonFlyBSD - Bug #1711] (Closed) memmem() in string.h should be more or less VISIBLE on x86_64?


From: Sascha Wildner via Redmine <bugtracker-admin@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 19 Jan 2012 18:21:10 -0800

Issue #1711 has been updated by Sascha Wildner.

Status changed from New to Closed
Assignee deleted (0)

All issues fixed, closing.

----------------------------------------
Bug #1711: memmem() in string.h should be more or less VISIBLE on x86_64?
http://bugs.dragonflybsd.org/issues/1711

Author: David Shao
Status: Closed
Priority: Normal
Assignee: 
Category: 
Target version: 


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.

Suppose on x86_64 some package, say scmgit-base, detects the existence of
memmem() yet because it too  does not define any *VISIBLE uses an implicit
definition of memmem(), as is indicated in the build messages:

    checking for memmem... yes
    checking for library containing memmem... none required
and
    
    diff.c:369: warning: implicit declaration of function 'memmem'



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