source: trunk/libs/newlib/src/libgloss/riscv/machine/syscall.h @ 621

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

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

File size: 1.5 KB
Line 
1/* Copyright (c) 2017  SiFive Inc. All rights reserved.
2
3   This copyrighted material is made available to anyone wishing to use,
4   modify, copy, or redistribute it subject to the terms and conditions
5   of the FreeBSD License.   This program is distributed in the hope that
6   it will be useful, but WITHOUT ANY WARRANTY expressed or implied,
7   including the implied warranties of MERCHANTABILITY or FITNESS FOR
8   A PARTICULAR PURPOSE.  A copy of this license is available at
9   http://www.opensource.org/licenses.
10*/
11
12#ifndef _MACHINE_SYSCALL_H
13#define _MACHINE_SYSCALL_H
14
15#define SYS_getcwd 17
16#define SYS_dup 23
17#define SYS_fcntl 25
18#define SYS_faccessat 48
19#define SYS_chdir 49
20#define SYS_openat 56
21#define SYS_close 57
22#define SYS_getdents 61
23#define SYS_lseek 62
24#define SYS_read 63
25#define SYS_write 64
26#define SYS_writev 66
27#define SYS_pread 67
28#define SYS_pwrite 68
29#define SYS_fstatat 79
30#define SYS_fstat 80
31#define SYS_exit 93
32#define SYS_exit_group 94
33#define SYS_kill 129
34#define SYS_rt_sigaction 134
35#define SYS_times 153
36#define SYS_uname 160
37#define SYS_gettimeofday 169
38#define SYS_getpid 172
39#define SYS_getuid 174
40#define SYS_geteuid 175
41#define SYS_getgid 176
42#define SYS_getegid 177
43#define SYS_brk 214
44#define SYS_munmap 215
45#define SYS_mremap 216
46#define SYS_mmap 222
47#define SYS_open 1024
48#define SYS_link 1025
49#define SYS_unlink 1026
50#define SYS_mkdir 1030
51#define SYS_access 1033
52#define SYS_stat 1038
53#define SYS_lstat 1039
54#define SYS_time 1062
55#define SYS_getmainvars 2011
56
57#endif
Note: See TracBrowser for help on using the repository browser.