2011-10-27 00:05:20 +02:00
|
|
|
/******************************************************************************
|
|
|
|
|
|
|
|
COPYRIGHT(C) JONAS 'SORTIE' TERMANSEN 2011.
|
|
|
|
|
|
|
|
This file is part of Sortix.
|
|
|
|
|
|
|
|
Sortix 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.
|
|
|
|
|
|
|
|
Sortix 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 Sortix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
syscallnum.h
|
|
|
|
Stores numerical constants for each available system call on this kernel.
|
|
|
|
|
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
#ifndef SORTIX_SYSCALLNUM_H
|
|
|
|
#define SORTIX_SYSCALLNUM_H
|
|
|
|
|
|
|
|
#define SYSCALL_BAD_SYSCALL 0
|
|
|
|
#define SYSCALL_EXIT 1
|
|
|
|
#define SYSCALL_SLEEP 2
|
|
|
|
#define SYSCALL_USLEEP 3
|
|
|
|
#define SYSCALL_PRINT_STRING 4
|
|
|
|
#define SYSCALL_CREATE_FRAME 5
|
|
|
|
#define SYSCALL_CHANGE_FRAME 6
|
|
|
|
#define SYSCALL_DELETE_FRAME 7
|
|
|
|
#define SYSCALL_SET_FREQUENCY 9
|
|
|
|
#define SYSCALL_EXEC 10
|
|
|
|
#define SYSCALL_PRINT_PATH_FILES 11
|
2011-09-21 20:52:29 +02:00
|
|
|
#define SYSCALL_FORK 12
|
|
|
|
#define SYSCALL_GETPID 13
|
|
|
|
#define SYSCALL_GETPPID 14
|
2011-11-03 18:26:43 +01:00
|
|
|
#define SYSCALL_GET_FILEINFO 15
|
|
|
|
#define SYSCALL_GET_NUM_FILES 16
|
2011-11-06 22:00:29 +01:00
|
|
|
#define SYSCALL_WAIT 17
|
2011-11-16 08:37:29 +01:00
|
|
|
#define SYSCALL_READ 18
|
|
|
|
#define SYSCALL_WRITE 19
|
|
|
|
#define SYSCALL_PIPE 20
|
2011-11-17 10:22:43 +01:00
|
|
|
#define SYSCALL_CLOSE 21
|
2011-11-17 22:28:20 +01:00
|
|
|
#define SYSCALL_DUP 22
|
2011-11-17 23:31:41 +01:00
|
|
|
#define SYSCALL_OPEN 23
|
2011-11-21 00:02:53 +01:00
|
|
|
#define SYSCALL_READDIRENTS 24
|
2011-11-21 12:19:57 +01:00
|
|
|
#define SYSCALL_CHDIR 25
|
|
|
|
#define SYSCALL_GETCWD 26
|
2011-11-21 18:49:55 +01:00
|
|
|
#define SYSCALL_UNLINK 27
|
2011-11-22 17:26:47 +01:00
|
|
|
#define SYSCALL_REGISTER_ERRNO 28
|
2011-09-15 22:38:40 +02:00
|
|
|
#define SYSCALL_REGISTER_SIGNAL_HANDLER 29
|
|
|
|
#define SYSCALL_SIGRETURN 30
|
|
|
|
#define SYSCALL_KILL 31
|
2011-11-26 20:14:57 +01:00
|
|
|
#define SYSCALL_MEMSTAT 32
|
2011-11-26 20:56:45 +01:00
|
|
|
#define SYSCALL_ISATTY 33
|
2011-11-28 16:28:56 +01:00
|
|
|
#define SYSCALL_UPTIME 34
|
2011-12-16 13:24:49 +01:00
|
|
|
#define SYSCALL_SBRK 35
|
2011-12-26 23:12:12 +01:00
|
|
|
#define SYSCALL_SEEK 36
|
2012-01-08 14:58:57 +01:00
|
|
|
#define SYSCALL_GET_PAGE_SIZE 37
|
2012-01-14 16:25:28 +01:00
|
|
|
#define SYSCALL_MKDIR 38
|
|
|
|
#define SYSCALL_RMDIR 39
|
2012-01-14 16:37:21 +01:00
|
|
|
#define SYSCALL_TRUNCATE 40
|
|
|
|
#define SYSCALL_FTRUNCATE 41
|
2012-01-22 16:48:57 +01:00
|
|
|
#define SYSCALL_SETTERMMODE 42
|
|
|
|
#define SYSCALL_GETTERMMODE 43
|
2012-02-22 00:30:34 +01:00
|
|
|
#define SYSCALL_STAT 44
|
|
|
|
#define SYSCALL_FSTAT 45
|
|
|
|
#define SYSCALL_MAX_NUM 46 /* index of highest constant + 1 */
|
2011-10-27 00:05:20 +02:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|