mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:07:45 +00:00
Add getgid() and getpid() syscalls. Prep for LibC.
This commit is contained in:
parent
bae59609e3
commit
85bcf2ed0f
5 changed files with 34 additions and 13 deletions
|
@ -77,6 +77,8 @@ public:
|
|||
void setState(State s) { m_state = s; }
|
||||
|
||||
uid_t sys$getuid();
|
||||
gid_t sys$getgid();
|
||||
pid_t sys$getpid();
|
||||
int sys$open(const char* path, size_t pathLength);
|
||||
int sys$close(int fd);
|
||||
int sys$read(int fd, void* outbuf, size_t nread);
|
||||
|
@ -118,6 +120,7 @@ private:
|
|||
void (*m_entry)() { nullptr };
|
||||
pid_t m_pid { 0 };
|
||||
uid_t m_uid { 0 };
|
||||
gid_t m_gid { 0 };
|
||||
DWORD m_ticks { 0 };
|
||||
DWORD m_ticksLeft { 0 };
|
||||
IPC::Handle m_handle { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue