]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
endian.h: Define uint{16,32,64}_t
authorWarner Losh <imp@FreeBSD.org>
Mon, 6 May 2024 15:10:46 +0000 (09:10 -0600)
committerWarner Losh <imp@FreeBSD.org>
Mon, 6 May 2024 16:43:14 +0000 (10:43 -0600)
commit1314d14c32713b448738cc821c04a5e7482bb4af
tree8dd31d815361a5d1ae96f48c01e41573dcce3195
parente12b7446bddcb91b869abef6048910cc15185a33
endian.h: Define uint{16,32,64}_t

The Draft Posix Issue 8 standard requires that these be defined. Define
them in the usual way that lets multiple headers define them. Opted to
not just use #include <stdint.h>, allowed by the draft, to be
conservative. Add notes about how we comply with Issue 8, and that we've
opted to define these only as macros, though the standard allows
functions, macros or both.

Sponsored by: Netflix
include/endian.h
sys/sys/_endian.h