summaryrefslogtreecommitdiffhomepage
path: root/src/libSystem/SystemKit
diff options
context:
space:
mode:
Diffstat (limited to 'src/libSystem/SystemKit')
-rw-r--r--src/libSystem/SystemKit/Macros.h5
-rw-r--r--src/libSystem/SystemKit/System.h12
2 files changed, 14 insertions, 3 deletions
diff --git a/src/libSystem/SystemKit/Macros.h b/src/libSystem/SystemKit/Macros.h
index 37150b01..1673d427 100644
--- a/src/libSystem/SystemKit/Macros.h
+++ b/src/libSystem/SystemKit/Macros.h
@@ -15,6 +15,9 @@
#define ATTRIBUTE(X) __attribute__((X))
+#define __THREAD_SAFE ATTRIBUTE(thread_safe)
+#define __THREAD_UNSAFE
+
#define IMPORT_CXX extern "C++"
#define IMPORT_C extern "C"
@@ -91,7 +94,7 @@ typedef nullPtr NullPtr;
#endif
#ifndef kib_cast
-#define kib_cast(X) (UInt64)((X) *1024)
+#define kib_cast(X) (UInt64)((X) * 1024)
#endif
#ifndef MIB
diff --git a/src/libSystem/SystemKit/System.h b/src/libSystem/SystemKit/System.h
index 69cce9a7..7e4a9ae6 100644
--- a/src/libSystem/SystemKit/System.h
+++ b/src/libSystem/SystemKit/System.h
@@ -21,7 +21,8 @@
/// @brief Types API.
// ------------------------------------------------------------------------------------------ //
-/// @brief Reference type, used for all references in the system, such as file descriptors, dylib handles, thread handles, etc.
+/// @brief Reference type, used for all references in the system, such as file descriptors, dylib
+/// handles, thread handles, etc.
struct REF_TYPE {
UInt64 __hash; /// @brief Hash of the syscall
VoidPtr __self; /// @brief Syscall self value.
@@ -398,7 +399,8 @@ IMPORT_C UInt64 StrMathToNumber(const Char* in, const Char** endp, const SInt16
// ------------------------------------------------------------------------------------------ //
/// @brief Create a semaphore.
-IMPORT_C _Output SemaphoreRef SemCreate(_Input UInt32 initial_count, _Input UInt32 max_count, _Input const Char* name);
+IMPORT_C _Output SemaphoreRef SemCreate(_Input UInt32 initial_count, _Input UInt32 max_count,
+ _Input const Char* name);
/// @brief Wait on a semaphore.
IMPORT_C SInt32 SemWait(_Input SemaphoreRef sem);
@@ -406,4 +408,10 @@ IMPORT_C SInt32 SemWait(_Input SemaphoreRef sem);
/// @brief Close a semaphore.
IMPORT_C SInt32 SemClose(_Input SemaphoreRef sem);
+// ------------------------------------------------------------------------------------------ //
+// @brief User AgeAuth API.
+// ------------------------------------------------------------------------------------------ //
+
+IMPORT_C SInt32 UserIsAdult(_Input SInt32 uid);
+
#endif // ifndef SYSTEMKIT_SYSTEM_H