forked from Qortal/Brooklyn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
377 B
22 lines
377 B
// SPDX-License-Identifier: GPL-2.0 |
|
/* |
|
* Copyright (C) 2019 Arm Limited |
|
* Original author: Dave Martin <[email protected]> |
|
*/ |
|
|
|
#include "system.h" |
|
|
|
#include <asm/unistd.h> |
|
|
|
#include "compiler.h" |
|
|
|
void __noreturn exit(int n) |
|
{ |
|
syscall(__NR_exit, n); |
|
__unreachable(); |
|
} |
|
|
|
ssize_t write(int fd, const void *buf, size_t size) |
|
{ |
|
return syscall(__NR_write, fd, buf, size); |
|
}
|
|
|