aboutsummaryrefslogtreecommitdiff
path: root/lib/libsys/libsys.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libsys/libsys.h')
-rw-r--r--lib/libsys/libsys.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/libsys/libsys.h b/lib/libsys/libsys.h
new file mode 100644
index 000000000000..4ac7cfc14256
--- /dev/null
+++ b/lib/libsys/libsys.h
@@ -0,0 +1,25 @@
+/*-
+ * SPDX-License-Identifier: BSD-2-Clause
+ *
+ * Copyright (c) 2024 SRI International
+ *
+ * This software was developed by SRI International, the University of
+ * Cambridge Computer Laboratory (Department of Computer Science and
+ * Technology), and Capabilities Limited under Defense Advanced Research
+ * Projects Agency (DARPA) Contract No. FA8750-24-C-B047 ("DEC").
+ */
+
+#ifndef _LIBSYS_H_
+#define _LIBSYS_H_
+
+#include <sys/types.h>
+
+#include <_libsys.h>
+
+typedef int (__sys_syscall_t)(int number, ...);
+typedef int (__sys___syscall_t)(int64_t number, ...);
+
+int __sys_syscall(int number, ...);
+off_t __sys___syscall(int64_t number, ...);
+
+#endif /* _LIBSYS_H_ */