mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
7a9ce79a3b
* sysdeps/mach/hurd/pwrite64.c: No libc_hidden_def (__libc_pwrite64). * sysdeps/mach/hurd/dl-sysdep.c (__GI_abort): Define alias for abort. * include/assert.h (__assert_perror_fail): Declare it, do hidden_proto. * assert/assert-perr.c: Add libc_hidden_def. * elf/dl-minimal.c [! NDEBUG] (__assert_perror_fail): New function. * sysdeps/gnu/errlist-compat.awk: Don't fail if there are no versions found at all. * sysdeps/gnu/Versions: File removed. Moved all #errlist-compat sys_errlist stuff to ... * sysdeps/unix/sysv/linux/Versions: ... here. * mach/mach.h: Include <features.h>.
20 lines
706 B
C
20 lines
706 B
C
#include <assert/assert.h>
|
|
|
|
/* This prints an "Assertion failed" message and aborts.
|
|
In installed assert.h this is only conditionally declared,
|
|
so it has to be repeated here. */
|
|
extern void __assert_fail (__const char *__assertion, __const char *__file,
|
|
unsigned int __line, __const char *__function)
|
|
__THROW __attribute__ ((__noreturn__));
|
|
|
|
/* Likewise, but prints the error text for ERRNUM. */
|
|
extern void __assert_perror_fail (int __errnum, __const char *__file,
|
|
unsigned int __line,
|
|
__const char *__function)
|
|
__THROW __attribute__ ((__noreturn__));
|
|
|
|
#if !defined NOT_IN_libc || defined IS_IN_rtld
|
|
hidden_proto (__assert_fail)
|
|
hidden_proto (__assert_perror_fail)
|
|
#endif
|