Skip to content

Commit e9e71c7

Browse files
authored
Merge pull request #903 from jphickey/fix-867-better-espipe-error
Fix #867, better error translation for ESPIPE errno
2 parents e599225 + 7853845 commit e9e71c7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/os/portable/os-impl-posix-io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ int32 OS_GenericSeek_Impl(const OS_object_token_t *token, int32 offset, uint32 w
138138
* Use a different error code to differentiate from an
139139
* error involving a bad whence/offset
140140
*/
141-
retval = OS_ERR_NOT_IMPLEMENTED;
141+
retval = OS_ERR_OPERATION_NOT_SUPPORTED;
142142
}
143143
else
144144
{

src/unit-test-coverage/portable/src/coveragetest-posix-io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ void Test_OS_GenericSeek_Impl(void)
8484

8585
/* The seek implementation also checks for this specific pipe errno */
8686
OCS_errno = OCS_ESPIPE;
87-
OSAPI_TEST_FUNCTION_RC(OS_GenericSeek_Impl, (&token, 0, OS_SEEK_END), OS_ERR_NOT_IMPLEMENTED);
87+
OSAPI_TEST_FUNCTION_RC(OS_GenericSeek_Impl, (&token, 0, OS_SEEK_END), OS_ERR_OPERATION_NOT_SUPPORTED);
8888
}
8989

9090
void Test_OS_GenericRead_Impl(void)

0 commit comments

Comments
 (0)