58 lines
1.4 KiB
C
58 lines
1.4 KiB
C
/*
|
|
* Copyright 2010 Stefan Lankes, Chair for Operating Systems,
|
|
* RWTH Aachen University
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*
|
|
* This file is part of MetalSVM.
|
|
*/
|
|
|
|
/**
|
|
* @author Stefan Lankes
|
|
* @file include/metalsvm/syscall.h
|
|
* @brief System call number definitions
|
|
*
|
|
* This file contains define constants for every syscall's number.
|
|
*/
|
|
|
|
#ifndef __SYSCALL_H__
|
|
#define __SYSCALL_H__
|
|
|
|
#include <metalsvm/config.h>
|
|
#include <asm/syscall.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define __NR_exit 0
|
|
#define __NR_write 1
|
|
#define __NR_open 2
|
|
#define __NR_close 3
|
|
#define __NR_read 4
|
|
#define __NR_lseek 6
|
|
#define __NR_unlink 7
|
|
#define __NR_getpid 8
|
|
#define __NR_kill 9
|
|
#define __NR_fstat 10
|
|
#define __NR_sbrk 11
|
|
#define __NR_fork 12
|
|
#define __NR_wait 13
|
|
#define __NR_execve 14
|
|
#define __NR_times 15
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|