-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1771 from ccoffing/noreturn
[libc] exit,abort,longjmp are noreturn
- Loading branch information
Showing
3 changed files
with
7 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
|
||
/* stdlib.h <[email protected]> */ | ||
#include <features.h> | ||
#include <stdnoreturn.h> | ||
#include <sys/types.h> | ||
#include <malloc.h> | ||
|
||
|
@@ -52,9 +53,9 @@ char *getenv(const char *name); | |
int putenv(char *string); | ||
char *mktemp(char *template); | ||
|
||
void abort (void); | ||
noreturn void abort (void); | ||
int atexit (void (* function) ()); | ||
void exit (int status); | ||
noreturn void exit (int status); | ||
int system(const char *command); | ||
void qsort(void *base, size_t nel, size_t width, | ||
int (*compar)(/*const void *, const void * */)); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters