From b98f55b806f9dfe9e9374faceed99b689c29f28e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 29 Dec 2022 23:37:32 +0100 Subject: Return platform-specific errors via ext4_blockdev_errno --- include/ext4_errno.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/ext4_errno.h') 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 #if !CONFIG_HAVE_OWN_ERRNO #include @@ -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 -- cgit v1.2.3