diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-11-09 10:42:36 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-11-09 10:42:36 +0100 |
| commit | 2309e65eed070ee5e03e02a35fd89af48fc90fbe (patch) | |
| tree | 5769f1bd181ca413ea05093b49efff6288fc89b0 /dev/SCIKit | |
| parent | 84d91a9fd9c3363d0e0db581356d4cd58c03d1db (diff) | |
IMP: Adding syscalls to SCIKit.
Diffstat (limited to 'dev/SCIKit')
| -rw-r--r-- | dev/SCIKit/LPC.h | 1 | ||||
| -rw-r--r-- | dev/SCIKit/SysCalls.h | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/dev/SCIKit/LPC.h b/dev/SCIKit/LPC.h index 56bb3804..af59804b 100644 --- a/dev/SCIKit/LPC.h +++ b/dev/SCIKit/LPC.h @@ -10,6 +10,7 @@ /// @file LPC.h /// @brief Local Process Code type and values. + #define ErrLocalIsOk() (kLastError == kErrorSuccess) #define ErrLocalFailed() (kLastError != kErrorSuccess) #define ErrLocal() (kLastError) diff --git a/dev/SCIKit/SysCalls.h b/dev/SCIKit/SysCalls.h index 6504c9c2..563c8d69 100644 --- a/dev/SCIKit/SysCalls.h +++ b/dev/SCIKit/SysCalls.h @@ -8,3 +8,13 @@ Purpose: SCIKit Macros header. ------------------------------------------- */ #pragma once + +#include <SCIKit/Macros.h> + +/// @brief Here we define filesystem calls. + +SYSCALL_DECL(FCloseFile, const SCIObject handle); +SYSCALL_DECL(FOpenFile, const Char* name, const Char* rest); +SYSCALL_DECL(FSeekFile, const SCIObject handle, const SizeT pos); +SYSCALL_DECL(FReadFile, const SCIObject handle, const Char* out_buf, const SizeT out_buf_size); +SYSCALL_DECL(FWriteFile, const SCIObject handle, const Char* out_buf, const SizeT out_buf_size);
\ No newline at end of file |
