48 lines
1.5 KiB
C
48 lines
1.5 KiB
C
/* Calcite, include/kernel-public/syscall-numbers.h
|
|
* Copyright 2025-2026 Benji Dial
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful, but
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
* for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along
|
|
* with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
enum {
|
|
SYSCALL_END_THREAD,
|
|
SYSCALL_MAP_FRAMEBUFFER,
|
|
SYSCALL_OPEN_FILE,
|
|
SYSCALL_CLOSE_FILE,
|
|
SYSCALL_GET_FILE_SIZE,
|
|
SYSCALL_READ_FILE,
|
|
SYSCALL_WAIT_FOR_MOUSE_PACKET,
|
|
SYSCALL_MAP_PAGES,
|
|
SYSCALL_SLEEP_MS,
|
|
SYSCALL_START_ELF,
|
|
SYSCALL_IPC_CREATE_DGRAM_RECEIVER,
|
|
SYSCALL_IPC_CREATE_DGRAM_SENDER,
|
|
SYSCALL_IPC_RECEIVE_DGRAM,
|
|
SYSCALL_IPC_SEND_DGRAM,
|
|
SYSCALL_CREATE_THREAD,
|
|
SYSCALL_GET_ENVVAR,
|
|
SYSCALL_CREATE_MUTEX,
|
|
SYSCALL_ACQUIRE_MUTEX,
|
|
SYSCALL_RELEASE_MUTEX,
|
|
SYSCALL_CREATE_EVENT,
|
|
SYSCALL_SIGNAL_EVENT,
|
|
SYSCALL_WAIT_EVENT,
|
|
SYSCALL_IPC_CREATE_PRIVATE_DGRAM_PIPE,
|
|
SYSCALL_IPC_CREATE_PRIVATE_DGRAM_RECEIVER,
|
|
SYSCALL_IPC_CREATE_PRIVATE_DGRAM_SENDER,
|
|
SYSCALL_GET_MS_SINCE_BOOT,
|
|
SYSCALL_SLEEP_UNTIL_MS_SINCE_BOOT
|
|
};
|