sys/endian.h & machine/endian.h cleanup

看板DFBSD_submit作者時間21年前 (2004/07/04 11:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
Hi, the patch ftp://dragonflybsd.dyndns.org/endian.h provides a first step to cleaning up the endian support. It is meant for inclusing after release, but there are some show stoppers to be done first. Since the patch removes the obsolete NTOHL family of macros, I'm going through the tree first to clean it up. I haven't decided wether direct mapping of htonl and ntohl to __bswap32 for the userland will go in, because it generates a lot of compiler warnings about long casted to __uint32_t. For the kernel this is fine, because it denotes a possible 64-bit portability problem. Joerg
文章代碼(AID): #10vtBt00 (DFBSD_submit)