Rename <sortix/syscallnum.h> to <sortix/syscall.h>.

This commit is contained in:
Jonas 'Sortie' Termansen 2014-06-27 16:15:30 +02:00
parent 53aa659743
commit ad8d025c32
6 changed files with 10 additions and 14 deletions

View File

@ -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>

View File

@ -27,7 +27,7 @@
#include <stddef.h>
#include <sortix/syscallnum.h>
#include <sortix/syscall.h>
namespace Sortix {
namespace Syscall {

View File

@ -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.
*******************************************************************************/

View File

@ -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>

View File

@ -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);

View File

@ -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