LibC: Implement the _Exit function

libstdc++v3 checks whether this function is available and makes
certain functions available in the std namespace if so.
This commit is contained in:
Gunnar Beutner 2021-05-08 20:46:06 +02:00 committed by Andreas Kling
parent 4c6a91d0c0
commit 9ffc2fe840
Notes: sideshowbarker 2024-07-18 18:27:08 +09:00
2 changed files with 6 additions and 0 deletions

View file

@ -1180,3 +1180,8 @@ int unlockpt([[maybe_unused]] int fd)
return 0;
}
}
void _Exit(int status)
{
_exit(status);
}

View file

@ -61,6 +61,7 @@ int mbtowc(wchar_t*, const char*, size_t);
int wctomb(char*, wchar_t);
size_t wcstombs(char*, const wchar_t*, size_t);
char* realpath(const char* pathname, char* buffer);
__attribute__((noreturn)) void _Exit(int status);
#define RAND_MAX 32767
int rand();