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
System: NetBSD 4.0 NetBSD 4.0 (SPACEROME) #6: Fri Feb 1 
17:50:31 UTC 2008
Architecture: powerpc
Machine: macppc

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.


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

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


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

Home | Main Index | Thread Index | Old Index