diff options
author | Ranjith Kumaran <ranjith@cygnus.com> | 2000-03-17 22:48:54 +0000 |
---|---|---|
committer | Ranjith Kumaran <ranjith@cygnus.com> | 2000-03-17 22:48:54 +0000 |
commit | 03261851a10dd2d6900a0a00a7515a0a46fb5d76 (patch) | |
tree | 7c22ac6cbbc99fd5cd1b5426853be8d4fd7bfcf1 /libgloss/sparc/libsys/syscall.h | |
parent | fae4c299f14fc23e2829c8656992eba21f79242a (diff) | |
download | cygnal-03261851a10dd2d6900a0a00a7515a0a46fb5d76.tar.gz cygnal-03261851a10dd2d6900a0a00a7515a0a46fb5d76.tar.bz2 cygnal-03261851a10dd2d6900a0a00a7515a0a46fb5d76.zip |
20000317 sourceware import
Diffstat (limited to 'libgloss/sparc/libsys/syscall.h')
-rw-r--r-- | libgloss/sparc/libsys/syscall.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/libgloss/sparc/libsys/syscall.h b/libgloss/sparc/libsys/syscall.h new file mode 100644 index 000000000..457fe3a5d --- /dev/null +++ b/libgloss/sparc/libsys/syscall.h @@ -0,0 +1,39 @@ +#ifndef _SYSCALL_H_ +#define _SYSCALL_H_ + +/* + * This file defines the minimal set of system calls needed + * by newlib for both sunos4 and solaris2. + * + * WARNING: This file can be included by assembler files. + */ + +/* Process control. */ +#define SYS_exit 1 +#define SYS_getpid 20 +#define SYS_kill 37 + +/* File stuff. */ +#define SYS_read 3 +#define SYS_write 4 +#define SYS_open 5 +#define SYS_close 6 +#define SYS_lseek 19 + +/* Memory stuff. */ +#define SYS_brk 17 + +/* Directory stuff. */ +#define SYS_unlink 10 +#define SYS_chdir 12 +#ifdef SVR4 +#define SYS_stat 18 +#define SYS_fstat 28 +#define SYS_lstat 88 +#else +#define SYS_stat 38 +#define SYS_fstat 62 +#define SYS_lstat 40 +#endif + +#endif /* _SYSCALL_H_ */ |