The Pedigree Project 0.1
pedigreecSyscallNumbers.h
1/*
2 * Copyright (c) 2008-2014, Pedigree Developers
3 *
4 * Please see the CONTRIB file in the root of the source tree for a full
5 * list of contributors.
6 *
7 * Permission to use, copy, modify, and distribute this software for any
8 * purpose with or without fee is hereby granted, provided that the above
9 * copyright notice and this permission notice appear in all copies.
10 *
11 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 */
19
20#ifndef PEDIGREE_C_SYSCALL_NUMBERS_H
21#define PEDIGREE_C_SYSCALL_NUMBERS_H
22#include <config.h>
23
24#define PEDIGREE_LOGIN 1
25#define PEDIGREE_SIGRET 2
26#define PEDIGREE_INIT_SIGRET 3
27#define PEDIGREE_INIT_PTHREADS 4
28#define PEDIGREE_LOAD_KEYMAP 5
29#define PEDIGREE_GET_MOUNT 6
30#define PEDIGREE_REBOOT 7
31
32// System call numbers 8-20 are reserved.
33#define PEDIGREE_MODULE_LOAD 21
34#define PEDIGREE_MODULE_UNLOAD 22
35#define PEDIGREE_MODULE_IS_LOADED 23
36#define PEDIGREE_MODULE_GET_DEPENDING 24
37
38// System call numbers 25-26 are reserved.
39
40#define PEDIGREE_SYS_REQUEST_MEM 27
41
42#define PEDIGREE_HALTFS 28
43#define PEDIGREE_INPUT_INHIBIT_EVENTS 29
44
45#define PEDIGREE_EVENT_RETURN 60
46// System call numbers 64-79 are reserved.
47
48#endif