diff options
author | andreast <andreast@FreeBSD.org> | 2013-12-12 12:17:20 +0000 |
---|---|---|
committer | andreast <andreast@FreeBSD.org> | 2013-12-12 12:17:20 +0000 |
commit | 8843b343e66ad85232a61eb3687ce898616adb6f (patch) | |
tree | a5b1659dcbf4f44425eb3eb7c2589029ccfb2265 /lib/libc/stdlib/quick_exit.c | |
parent | cf9afebc6a89230e1c6e4972c4ca3bccd81a4750 (diff) | |
download | FreeBSD-src-8843b343e66ad85232a61eb3687ce898616adb6f.zip FreeBSD-src-8843b343e66ad85232a61eb3687ce898616adb6f.tar.gz |
MFC: r256932, r256938, r256953
r256932:
Add a new function (OF_getencprop()) that undoes the transformation applied
by encode-int. Specifically, it takes a set of 32-bit cell values and
changes them to host byte order. Most non-string instances of OF_getprop()
should be using this function, which is a no-op on big-endian platforms.
r256938:
A few other common cases for encode-int decoding: OF_getencprop_alloc()
and OF_searchencprop(). I thought about using the element size parameter
to OF_getprop_alloc() to do endian-switching automatically, but it breaks
use with structs and a *lot* of FDT code (which can hopefully be moved to
these new APIs).
r256953:
Fix build.
Diffstat (limited to 'lib/libc/stdlib/quick_exit.c')
0 files changed, 0 insertions, 0 deletions