source: trunk/libs/newlib/src/libgloss/sparc/libsys/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: 702 bytes
Line 
1#ifndef _SYSCALL_H_
2#define _SYSCALL_H_
3
4/*
5 * This file defines the minimal set of system calls needed
6 * by newlib for both sunos4 and solaris2.
7 *
8 * WARNING: This file can be included by assembler files.
9 */
10
11/* Process control.  */
12#define SYS_exit        1
13#define SYS_getpid      20
14#define SYS_kill        37
15
16/* File stuff.  */
17#define SYS_read        3
18#define SYS_write       4
19#define SYS_open        5
20#define SYS_close       6
21#define SYS_lseek       19
22
23/* Memory stuff.  */
24#define SYS_brk         17
25
26/* Directory stuff.  */
27#define SYS_unlink      10
28#define SYS_chdir       12
29#ifdef SVR4
30#define SYS_stat        18
31#define SYS_fstat       28
32#define SYS_lstat       88
33#else
34#define SYS_stat        38
35#define SYS_fstat       62
36#define SYS_lstat       40
37#endif
38
39#endif /* _SYSCALL_H_ */
Note: See TracBrowser for help on using the repository browser.