source: trunk/libs/newlib/src/libgloss/cr16/sys/syscall.h @ 444

Last change on this file since 444 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 1.1 KB
Line 
1/* cr16 syscall.h file. This is used only by the simulator. These numbers
2   match the syscalls used by the sim port which are different from linux
3   system calls.
4   This will allow correct generation of sim/common/nltvals.def  */
5   
6
7#ifndef _SYS_SYSCALL_H_
8#define _SYS_SYSCALL_H_
9
10/* Note: This file may be included by assembler source.  */
11
12#define SYS_fork        2
13#define SYS_wait4       7
14#define SYS_create      8
15#define SYS_link        9
16#define SYS_execv       11
17#define SYS_chdir       12
18#define SYS_mknod       14
19#define SYS_chmod       15
20#define SYS_chown       16
21#define SYS_getpid      20
22#define SYS_isatty      21
23#define SYS_fstat       22
24#define SYS_ARG         24
25#define SYS_stat        38
26#define SYS_pipe        42
27#define SYS_execve      59
28#define SYS_kill        60
29#define SYS_utime       201
30#define SYS_wait        202
31#define SYS_time        0x300
32#define SYS_open        0x401
33#define SYS_close       0x402
34#define SYS_read        0x403
35#define SYS_write       0x404
36#define SYS_lseek       0x405
37#define SYS_rename      0x406
38#define SYS_unlink      0x407
39#define SYS_exit        0x410
40
41#endif
Note: See TracBrowser for help on using the repository browser.