summaryrefslogtreecommitdiffhomepage
path: root/dev/libSystem/src/JailCalls.cc
blob: 71fe2e937d9fdea2592f691ce18bd5a2e149894f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* -------------------------------------------

  Copyright (C) 2025, Amlal El Mahrouss, licensed under the Apache 2.0 license.

------------------------------------------- */

#include <libSystem/SystemKit/Err.h>
#include <libSystem/SystemKit/Jail.h>
#include <libSystem/SystemKit/Syscall.h>
#include <libSystem/SystemKit/System.h>
#include <libSystem/SystemKit/Verify.h>

using namespace LibSystem;

IMPORT_C struct JAIL* JailGetCurrent(Void) {
  return (struct JAIL*) libsys_syscall_arg_1(SYSCALL_HASH("JailGetCurrent"));
}