mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 17:04:59 +00:00

SPDX License Identifiers are a more compact / standardized way of representing file license information. See: https://spdx.dev/resources/use/#identifiers This was done with the `ambr` search and replace tool. ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
20 lines
378 B
C++
20 lines
378 B
C++
/*
|
|
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <errno.h>
|
|
#include <stdarg.h>
|
|
#include <stdio.h>
|
|
#include <sys/prctl.h>
|
|
#include <syscall.h>
|
|
|
|
extern "C" {
|
|
|
|
int prctl(int option, uintptr_t arg1, uintptr_t arg2)
|
|
{
|
|
int rc = syscall(SC_prctl, option, arg1, arg2);
|
|
__RETURN_WITH_ERRNO(rc, rc, -1);
|
|
}
|
|
}
|