| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
Use inline functions instead of GNU C statement expressions, and
make them available to userland. With clues from guenther@.
ok guenther@ kettenis@
|
|
|
|
| |
this has been pointed out to me by a couple of people now.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
use these on armv7 as a backend for byteswapping things that endian.h
provide.
i dunno if its faster, but it makes smaller code. saves 30k on
GENERIC-OMAP.
ok jsing@ bmercer@ jsg@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* you can #include <sys/endian.h> instead of <machine/endian.h>,
and ditto <endian.h> (fixes code that pulls in <sys/endian.h> first)
* those will always export the symbols that POSIX specified for
<endian.h>, including the new {be,le}{16,32,64}toh() set. c.f.
http://austingroupbugs.net/view.php?id=162
if __BSD_VISIBLE then you also get the symbols that our <machine/endian.h>
currently exports (ntohs, NTOHS, dlg's bemtoh*, etc)
* when doing POSIX compiles (not __BSD_VISIBLE), then <netinet/in.h> and
<arpa/inet.h> will *stop* exporting the extra symbols like BYTE_ORDER
and betoh*
ok deraadt@
|
| |
|
|
|
|
| |
Discussed and okay drahn@. Okay deraadt@.
|
|
|
|
| |
Okay guenther@, millert@.
|
|
|
|
|
| |
in sys/cdefs.h) instead of _FOO_SOURCE. Also fix several namespace
pollution issues, including the byte order defines. OK deraadt@
|
| |
|
|
|