summaryrefslogtreecommitdiffhomepage
path: root/dev/libSystem/src/JailCalls.cc
blob: f7ca5becb8bd31c48d5849346cdd3eb997127999 (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"));
}