diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-12-29 23:37:32 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-01-30 20:52:20 +0100 |
| commit | b98f55b806f9dfe9e9374faceed99b689c29f28e (patch) | |
| tree | 5c626761e0814ae7b9434a5fc66b1e2100743893 /include | |
| parent | 3dc752da8948564456ce2d721c266b4e1a50e7a1 (diff) | |
Return platform-specific errors via ext4_blockdev_errno2400-ext-errors
Diffstat (limited to 'include')
| -rw-r--r-- | include/ext4_blockdev.h | 2 | ||||
| -rw-r--r-- | include/ext4_errno.h | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/ext4_blockdev.h b/include/ext4_blockdev.h index 4673479..19b3e0c 100644 --- a/include/ext4_blockdev.h +++ b/include/ext4_blockdev.h @@ -258,6 +258,8 @@ int ext4_block_cache_flush(struct ext4_blockdev *bdev); * @return standard error code*/ int ext4_block_cache_write_back(struct ext4_blockdev *bdev, uint8_t on_off); +extern uint32_t ext4_blockdev_errno; + #ifdef __cplusplus } #endif diff --git a/include/ext4_errno.h b/include/ext4_errno.h index edf89a9..6735eaf 100644 --- a/include/ext4_errno.h +++ b/include/ext4_errno.h @@ -41,6 +41,7 @@ extern "C" { #endif #include "ext4_config.h" +#include <stdint.h> #if !CONFIG_HAVE_OWN_ERRNO #include <errno.h> @@ -84,6 +85,9 @@ extern "C" { #define EOK 0 #endif +/* Platform-specific error code from the last OS API call that was made */ +extern uint32_t ext4_platform_errno; + #ifdef __cplusplus } #endif |
