Files
kolibrios/programs/develop/ktcc/trunk/libc.obj/source/stdlib/abort.c
Egor00f aa619aa602
Some checks failed
Build system / Check kernel codestyle (pull_request) Successful in 25s
Build system / Build (pull_request) Failing after 1m6s
libc.obj: add copyright & delete _exit.h & fix tabs in crt0.asm
2026-03-07 21:51:58 +05:00

18 lines
278 B
C

/*
* SPDX-License-Identifier: GPL-2.0-only
* Copyright (C) 2026 KolibriOS team
*/
#include <stdio.h>
#include <stdlib.h>
#include <sys/ksys.h>
void abort()
{
ksys_thread_t t;
_ksys_thread_info(&t, -1);
fprintf(stderr, "\nAbort in %d\n", t.pid);
_exit(128);
}