Files

17 lines
373 B
C
Raw Permalink Normal View History

2020-04-17 11:24:05 +01:00
#include <stdlib.h>
#include <unistd.h>
2020-04-17 11:24:05 +01:00
#include <stdio.h>
2022-05-26 14:09:23 +01:00
/* defined in dyld/main.c */
extern const char *dyld_exec_path(void);
2020-04-17 11:24:05 +01:00
_Noreturn void abort(void)
{
2022-05-26 14:09:23 +01:00
/* yes we're faking the job number shut up */
char header[64];
snprintf(header, sizeof header, "[1] %6d abort", getpid());
fprintf(stderr, "%-20s %s\n", header, dyld_exec_path());
2020-04-17 11:24:05 +01:00
exit(-1);
}