contur2
Loading...
Searching...
No Matches
syscall_ids.h
Go to the documentation of this file.
1
3
4#pragma once
5
6#include <cstdint>
7
8namespace contur {
9
11 enum class SyscallId : std::uint16_t
12 {
14 Exit = 0,
16 Write = 1,
18 Read = 2,
20 Fork = 3,
22 Exec = 4,
24 Wait = 5,
26 Open = 10,
28 Close = 11,
44 SemWait = 32,
48 GetPid = 40,
50 GetTime = 41,
52 Yield = 42,
53 };
54
55} // namespace contur
Definition block.h:15
@ Exit
Process requests termination.
Definition interrupt.h:23
SyscallId
Numeric identifiers for system calls.
Definition syscall_ids.h:12
@ Wait
Wait for child process.
Definition syscall_ids.h:24
@ GetTime
Query simulation time.
Definition syscall_ids.h:50
@ Fork
Create child process.
Definition syscall_ids.h:20
@ MutexLock
Lock mutex.
Definition syscall_ids.h:40
@ SemSignal
Signal/increment semaphore.
Definition syscall_ids.h:46
@ SendMessage
Send message to message queue.
Definition syscall_ids.h:32
@ Exec
Replace process image.
Definition syscall_ids.h:22
@ Yield
Voluntarily yield CPU.
Definition syscall_ids.h:52
@ ShmAttach
Attach to shared-memory region.
Definition syscall_ids.h:38
@ ShmCreate
Create shared-memory region.
Definition syscall_ids.h:36
@ SemWait
Wait/decrement semaphore.
Definition syscall_ids.h:44
@ ReceiveMessage
Receive message from message queue.
Definition syscall_ids.h:34
@ MutexUnlock
Unlock mutex.
Definition syscall_ids.h:42
@ GetPid
Query current process id.
Definition syscall_ids.h:48
@ Open
Open file/device.
Definition syscall_ids.h:26
@ Close
Close file/device.
Definition syscall_ids.h:28
@ CreatePipe
Create IPC pipe.
Definition syscall_ids.h:30