summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/stdio.c
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2015-10-09 23:20:08 +0000
committerian <ian@FreeBSD.org>2015-10-09 23:20:08 +0000
commit80f6a6685f4d0e6af4803f0c32df3f93dd677352 (patch)
treeeae79388afe6e0f6155788dceed826036b464d7a /lib/libc/stdio/stdio.c
parenta3253b08529045721ee9be7f8e50b893b296c376 (diff)
downloadFreeBSD-src-80f6a6685f4d0e6af4803f0c32df3f93dd677352.zip
FreeBSD-src-80f6a6685f4d0e6af4803f0c32df3f93dd677352.tar.gz
Add iic2errno(), a helper function to translate IIC_Exxxxx status values to
errno values that are at least vaguely equivelent. Also add a new status value, IIC_ERESOURCE, to indicate a failure to acquire memory or other required resources to complete a transaction. The IIC_Exxxxxx values are supposed to communicate low-level details of the i2c transaction status between the lowest-layer hardware driver and higher-layer bus protocol and device drivers for slave devices on the bus. Most of those slave drivers just return all status values from the lower layers directly to their callers, resulting in crazy error reporting from a user's point of view (things like timeouts being reported as "no such process"). Now there's a helper function to make it easier to start cleaning up all those drivers.
Diffstat (limited to 'lib/libc/stdio/stdio.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud