NetBSD-Bugs archive

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

lib/38014: bswapXX()



>Number:         38014
>Category:       lib
>Synopsis:       bswapXX() is now exposed
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 13 00:30:00 +0000 2008
>Originator:     Jonathan A. Kollasch
>Release:        NetBSD 4.0
>Organization:
        
>Environment:
System: NetBSD spacerome.kollasch.net 4.0 NetBSD 4.0 (SPACEROME) #6: Fri Feb 1 
17:50:31 UTC 2008 
root%spacerome.kollasch.net@localhost:/usr/src/sys/arch/macppc/compile/SPACEROME
 macppc
Architecture: powerpc
Machine: macppc
>Description:

bswap* functions are now exposed too easily.

This breaks qemu, heimdal, arla, and other things that expect
these apparently non-standard macros/functions to not be
exposed-by-default in the normal environment.

>How-To-Repeat:

compile (on NetBSD-3, Linux, NetBSD-4):

#include <stdlib.h>
int
main(int argc, char *argv[])
{
        unsigned int foo;
        foo = bswap32(0x76543210);
        return EXIT_SUCCESS;
}

>Fix:

Revert changes to src/sys/sys/bswap.h since netbsd-3?



Home | Main Index | Thread Index | Old Index