mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Rename <sortix/syscallnum.h> to <sortix/syscall.h>.
This commit is contained in:
parent
53aa659743
commit
ad8d025c32
6 changed files with 10 additions and 14 deletions
|
@ -1,6 +1,6 @@
|
|||
/*******************************************************************************
|
||||
|
||||
Copyright(C) Jonas 'Sortie' Termansen 2013.
|
||||
Copyright(C) Jonas 'Sortie' Termansen 2013, 2014.
|
||||
|
||||
This file is part of Sortix.
|
||||
|
||||
|
@ -22,8 +22,6 @@
|
|||
|
||||
*******************************************************************************/
|
||||
|
||||
#include <sortix/syscallnum.h>
|
||||
|
||||
#include <sortix/kernel/kernel.h>
|
||||
#include <sortix/kernel/kthread.h>
|
||||
#include <sortix/kernel/process.h>
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
#include <stddef.h>
|
||||
|
||||
#include <sortix/syscallnum.h>
|
||||
#include <sortix/syscall.h>
|
||||
|
||||
namespace Sortix {
|
||||
namespace Syscall {
|
||||
|
|
|
@ -17,8 +17,8 @@
|
|||
You should have received a copy of the GNU General Public License along with
|
||||
Sortix. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
sortix/syscallnum.h
|
||||
Stores numerical constants for each available system call on this kernel.
|
||||
sortix/syscall.h
|
||||
Numeric constants identifying each system call.
|
||||
|
||||
*******************************************************************************/
|
||||
|
|
@ -31,7 +31,6 @@
|
|||
|
||||
#include <sortix/poll.h>
|
||||
#include <sortix/sigset.h>
|
||||
#include <sortix/syscallnum.h>
|
||||
#include <sortix/timespec.h>
|
||||
|
||||
#include <sortix/kernel/copy.h>
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
#include <stddef.h>
|
||||
|
||||
#include <sortix/syscallnum.h>
|
||||
#include <sortix/syscall.h>
|
||||
|
||||
#include <sortix/kernel/kernel.h>
|
||||
#include <sortix/kernel/process.h>
|
||||
|
@ -57,7 +57,6 @@ void Init()
|
|||
|
||||
void Register(size_t index, void* function)
|
||||
{
|
||||
|
||||
if ( SYSCALL_MAX_NUM <= index )
|
||||
PanicF("Attempted to register system call %p to index %zu, but "
|
||||
"SYSCALL_MAX_NUM = %zu", function, index, (size_t) SYSCALL_MAX_NUM);
|
||||
|
|
|
@ -22,16 +22,16 @@
|
|||
|
||||
*******************************************************************************/
|
||||
|
||||
#if defined(__is_sortix_kernel)
|
||||
#error "This file is part of user-space and should not be built in kernel mode"
|
||||
#endif
|
||||
|
||||
#ifndef INCLUDE_SYS_SYSCALL_H
|
||||
#define INCLUDE_SYS_SYSCALL_H
|
||||
|
||||
#if !__STDC_HOSTED__
|
||||
#error "This file is part of user-space and should not be built into libk"
|
||||
#endif
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
#include <sortix/syscallnum.h>
|
||||
#include <sortix/syscall.h>
|
||||
|
||||
/* Expand a macro and convert it to string. */
|
||||
#define SYSCALL_STRINGIFY_EXPAND(foo) #foo
|
||||
|
|
Loading…
Reference in a new issue