mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-07-12 15:59:17 +00:00
userspace/libc_test: add test functions for various libc components
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
@ -16,3 +16,11 @@
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
int test___errno_location(void)
|
||||
{
|
||||
(*__errno_location()) = ENOENT;
|
||||
if ((*__errno_location()) != ENOENT)
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user