]> git.ipfire.org Git - thirdparty/glibc.git/blame - include/assert.h
nptl: Move pthread_attr_setinheritsched implementation into libc.
[thirdparty/glibc.git] / include / assert.h
CommitLineData
28f540f4 1#include <assert/assert.h>
6b87a564 2
31341567 3#ifndef _ISOMAC
37ba7d66
UD
4/* This prints an "Assertion failed" message and aborts.
5 In installed assert.h this is only conditionally declared,
6 so it has to be repeated here. */
a784e502
UD
7extern void __assert_fail (const char *__assertion, const char *__file,
8 unsigned int __line, const char *__function)
f8a3b5bf 9 __THROW __attribute__ ((__noreturn__));
37ba7d66 10
7a9ce79a 11/* Likewise, but prints the error text for ERRNUM. */
a784e502 12extern void __assert_perror_fail (int __errnum, const char *__file,
7a9ce79a 13 unsigned int __line,
a784e502 14 const char *__function)
7a9ce79a
RM
15 __THROW __attribute__ ((__noreturn__));
16
f8a3b5bf
UD
17/* The real implementation of the two functions above. */
18extern void __assert_fail_base (const char *fmt, const char *assertion,
19 const char *file, unsigned int line,
20 const char *function)
048dd681 21 __THROW __attribute__ ((__noreturn__)) attribute_hidden;
f8a3b5bf 22
3d1870fa 23# if IS_IN (libc) || (IS_IN (rtld) && !defined NO_RTLD_HIDDEN)
37ba7d66 24hidden_proto (__assert_fail)
7a9ce79a 25hidden_proto (__assert_perror_fail)
31341567 26# endif
51d46f73 27#endif