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:
parent
4c6a91d0c0
commit
9ffc2fe840
Notes:
sideshowbarker
2024-07-18 18:27:08 +09:00
Author: https://github.com/gunnarbeutner Commit: https://github.com/SerenityOS/serenity/commit/9ffc2fe840f Pull-request: https://github.com/SerenityOS/serenity/pull/6967
2 changed files with 6 additions and 0 deletions
|
@ -1180,3 +1180,8 @@ int unlockpt([[maybe_unused]] int fd)
|
|||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
void _Exit(int status)
|
||||
{
|
||||
_exit(status);
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue