summaryrefslogtreecommitdiffhomepage
path: root/src/libSystem/SystemKit
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-11-28 21:21:59 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-11-28 21:21:59 +0100
commitf6a36fbc4e04d4952bf13b553b7c07e88fbaf19f (patch)
tree1176634e7092241ec55092dda7476f6de73e668c /src/libSystem/SystemKit
parentb968b1b35667f7f03119a4d891c72722bb24b663 (diff)
feat: libSystem: use UInt64/UInt32 instead of SizeT depending on system
target and data size. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/libSystem/SystemKit')
-rw-r--r--src/libSystem/SystemKit/System.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/libSystem/SystemKit/System.h b/src/libSystem/SystemKit/System.h
index 544b7ee3..e4222910 100644
--- a/src/libSystem/SystemKit/System.h
+++ b/src/libSystem/SystemKit/System.h
@@ -97,13 +97,13 @@ IMPORT_C const Char* IoDimFile(_Input Ref dir_desc);
/// @param out_data the data to write.
/// @param sz_data the size of the data to write.
/// @return the number of bytes written.
-IMPORT_C UInt32 IoWriteFile(_Input Ref file_desc, _Output VoidPtr out_data, SizeT sz_data);
+IMPORT_C UInt32 IoWriteFile(_Input Ref file_desc, _Output VoidPtr out_data, UInt64 sz_data);
/// @brief Read data from a file.
/// @param file_desc the file descriptor.
/// @param out_data the data to read.
/// @param sz_data the size of the data to read.
-IMPORT_C UInt32 IoReadFile(_Input Ref file_desc, _Output VoidPtr* out_data, SizeT sz_data);
+IMPORT_C UInt32 IoReadFile(_Input Ref file_desc, _Output VoidPtr* out_data, UInt64 sz_data);
/// @brief Rewind the file pointer to the beginning of the file.
/// @param file_desc the file descriptor.
@@ -131,8 +131,8 @@ IMPORT_C UInt32 RtlSpawnIB(UIntPtr process_id);
/// @brief Spawns a process with a unique pid (stored as UIntPtr).
/// @param process_path process filesystem path.
/// @return > 0 process was created.
-IMPORT_C UIntPtr RtlSpawnProcess(const Char* process_path, SizeT argc, Char** argv, Char** envp,
- SizeT envp_len);
+IMPORT_C UIntPtr RtlSpawnProcess(const Char* process_path, UInt32 argc, Char** argv, Char** envp,
+ UInt32 envp_len);
/// @brief Exits a process with an exit_code.
/// @return if it has succeeded true, otherwise false.
@@ -146,7 +146,7 @@ IMPORT_C Bool RtlExitProcess(UIntPtr handle, UIntPtr exit_code);
/// @param len the length of it.
/// @param flags the flags of it.
/// @return heap pointer.
-IMPORT_C VoidPtr MmCreateHeap(_Input SizeT len, _Input UInt32 flags);
+IMPORT_C VoidPtr MmCreateHeap(_Input UInt64 len, _Input UInt32 flags);
/// @brief Destroys the pointer
/// @param heap the heap itself.
@@ -163,13 +163,13 @@ IMPORT_C UInt32 MmGetHeapFlags(_Input VoidPtr heap);
IMPORT_C UInt32 MmFillCRC32Heap(_Input VoidPtr heap);
/// @brief Copy memory region.
-IMPORT_C VoidPtr MmCopyMemory(_Input VoidPtr dest, _Input VoidPtr src, _Input SizeT len);
+IMPORT_C VoidPtr MmCopyMemory(_Input VoidPtr dest, _Input VoidPtr src, _Input UInt64 len);
/// @brief Compare memory regions.
-IMPORT_C SInt64 MmCmpMemory(_Input VoidPtr dest, _Input VoidPtr src, _Input SizeT len);
+IMPORT_C SInt64 MmCmpMemory(_Input VoidPtr dest, _Input VoidPtr src, _Input UInt64 len);
/// @brief Fill memory region.
-IMPORT_C VoidPtr MmFillMemory(_Input VoidPtr dest, _Input SizeT len, _Input UInt8 value);
+IMPORT_C VoidPtr MmFillMemory(_Input VoidPtr dest, _Input UInt64 len, _Input UInt8 value);
/// @brief Compare string regions.
IMPORT_C SInt64 MmStrCmp(_Input const Char* dest, _Input const Char* src);