Move to new processctl syscall, share common kernel and ulib headers

This commit is contained in:
2025-09-05 15:44:57 +02:00
parent ca92a0e6a8
commit 708c53c64d
20 changed files with 98 additions and 27 deletions

18
share/hdrs/errors.h Normal file
View File

@ -0,0 +1,18 @@
#ifndef ERRORS_H_
#define ERRORS_H_
enum {
E_OK = 0,
E_NOMEMORY = -1,
E_UNKNOWN_FSTYPE = -2,
E_NOENTRY = -3,
E_OUTOFBOUNDS = -4,
E_UNKNOWN_SDTYPE = -5,
E_TODO = -6,
E_BADIO = -7,
E_BADSYSCALL = -8,
E_DOSCHEDULING = -9,
E_INVALIDARGUMENT = -10,
};
#endif // ERRORS_H_

9
share/hdrs/syscall.h Normal file
View File

@ -0,0 +1,9 @@
#ifndef SHARE_HDRS_SYSCALL_H_
#define SHARE_HDRS_SYSCALL_H_
enum {
SYS_DEBUGPRINT = 1,
SYS_PROCESSCTL = 2,
};
#endif // SHARE_HDRS_SYSCALL_H_