aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-10-13 03:48:22 +0200
committerMattias Andrée <maandree@operamail.com>2015-10-13 03:48:22 +0200
commit05af780f82210b80783fa5870bce28189cc25cf1 (patch)
tree16cf2169f85775491ba44695bef1dd9a83fbc97a /include
parentstatic_assert is only defined if C11 is used (diff)
downloadslibc-05af780f82210b80783fa5870bce28189cc25cf1.tar.gz
slibc-05af780f82210b80783fa5870bce28189cc25cf1.tar.bz2
slibc-05af780f82210b80783fa5870bce28189cc25cf1.tar.xz
__noreturn shall be at the beginning of the prototypes
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'include')
-rw-r--r--include/assert.h4
-rw-r--r--include/err.h12
-rw-r--r--include/stdlib.h8
-rw-r--r--include/unistd.h2
4 files changed, 13 insertions, 13 deletions
diff --git a/include/assert.h b/include/assert.h
index c3d69f3..73ebabd 100644
--- a/include/assert.h
+++ b/include/assert.h
@@ -92,8 +92,8 @@
* @param line The line in the source code whence the assertion was made
* @param func The function in the source code whence the assertion was made
*/
-void __assert_fail(const char*, int, const char*, int, const char*)
- __GCC_ONLY(__attribute__((nonnull(3, 5)))) __noreturn;
+__noreturn void __assert_fail(const char*, int, const char*, int, const char*)
+ __GCC_ONLY(__attribute__((nonnull(3, 5))));
diff --git a/include/err.h b/include/err.h
index 3f52afc..ca28491 100644
--- a/include/err.h
+++ b/include/err.h
@@ -87,8 +87,8 @@ void vwarnx(const char*, va_list);
* @param format Formatting-string for the warning.
* @param ... Formatting-arguments.
*/
-void err(int, const char*, ...)
- __GCC_ONLY(__attribute__((format(printf, 2, 3)))) __noreturn;
+__noreturn void err(int, const char*, ...)
+ __GCC_ONLY(__attribute__((format(printf, 2, 3))));
/**
* Print an error message to stderr, followed by a
@@ -100,7 +100,7 @@ void err(int, const char*, ...)
* @param format Formatting-string for the warning.
* @param args Formatting-arguments.
*/
-void verr(int, const char*, va_list) __noreturn;
+__noreturn void verr(int, const char*, va_list);
/**
* Print an error message to stderr, but do not print a
@@ -112,8 +112,8 @@ void verr(int, const char*, va_list) __noreturn;
* @param format Formatting-string for the warning.
* @param ... Formatting-arguments.
*/
-void errx(int, const char*, ...)
- __noreturn __GCC_ONLY(__attribute__((format(printf, 2, 3))));
+__noreturn void errx(int, const char*, ...)
+ __GCC_ONLY(__attribute__((format(printf, 2, 3))));
/**
* Print an error message to stderr, but do not print a
@@ -125,7 +125,7 @@ void errx(int, const char*, ...)
* @param format Formatting-string for the warning.
* @param args Formatting-arguments.
*/
-void verrx(int, const char*, va_list) __noreturn;
+__noreturn void verrx(int, const char*, va_list);
diff --git a/include/stdlib.h b/include/stdlib.h
index 4fba1a0..43f36c6 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -262,13 +262,13 @@ void srand(unsigned int seed);
/* TODO implement exit-functions */
-void abort(void) __noreturn;
-void _Exit(int) __noreturn;
+__noreturn void abort(void);
+__noreturn void _Exit(int);
int atexit(void (*)(void));
int on_exit(void (*)(int, void*), void*);
-void exit(int) __noreturn;
+__noreturn void exit(int);
int at_quick_exit (void (*) (void));
-void quick_exit(int) __noreturn;
+__noreturn void quick_exit(int);
diff --git a/include/unistd.h b/include/unistd.h
index 6402c27..fb4992d 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -135,7 +135,7 @@ void* sbrk(ptrdiff_t) /* TODO implement sbrk */
/* TODO implement exit-functions */
-void _exit(int) __noreturn;
+__noreturn void _exit(int);
/* TODO implement I/O */