/*
 * sys/syscall.h
 */


#ifndef share_syscall_h
#define share_syscall_h


/* システムコール番号。 */
#define	SYS_OPEN			0
#define	SYS_EXEC			1
#define	SYS_READ			2
#define	SYS_WRITE			3
#define	SYS_CLOSE			4
#define	SYS_LSEEK			5
#define	SYS_MKDIR			6
#define	SYS_CREAT			7
#define	SYS_RENAME			8
#define	SYS_UNLINK			9
#define	SYS_RMDIR			10
#define	SYS_OPENDIR			11
#define	SYS_READDIR			12
#define	SYS_REWINDDIR		13
#define	SYS_CHDIR			14
#define	SYS_FCHDIR			15
#define	SYS_GETCWD			16
#define	SYS_LOCK			17
#define	SYS_MOUNT			18
#define	SYS_UMOUNT			19
#define	SYS_FORK			20
#define	SYS_EXIT			21
#define	SYS_SLEEP			22
#define	SYS_ALARM			23
#define	SYS_TIME			24
#define	SYS_GETTIMEOFDAY	25
#define	SYS_SYNC			26
#define	SYS_WAIT			27
#define	SYS_GETPID			28
#define	SYS_GETGID          29
#define	SYS_GETPGID         30
#define	SYS_GETPPID         31
#define	SYS_GETUID          32
#define	SYS_GETSID          33
#define	SYS_SETGID          34
#define	SYS_SETPGID         35
#define	SYS_SETUID			36
#define	SYS_SETSID			37
#define	SYS_TIMES			38
#define	SYS_SIGACTION		39
#define	SYS_SIGPROCMASK		40
#define	SYS_KILL			41
#define	SYS_SIGPENDING		42
#define	SYS_SIGSUSPEND		43
#define	SYS_STAT			44
#define	SYS_FCNTL			45
#define	SYS_CHATTR			46
#define	SYS_FCHATTR			47
#define	SYS_BRK				48
#define	SYS_REBOOT			49
#define	SYS_IOCTL			50
#define	SYS_LINK			51
#define	SYS_SYMLINK			52
#define	SYS_READLINK		53
#define	SYS_SELECT			54
#define	SYS_POLL			55
#define	SYS_GETFSSTAT		56
#define	SYS_STATFS			57
#define	SYS_UNAME			58
#define	SYS_TTYNAME			59
#define	SYS_SETTIME			60
#define	SYS_SOCKET			61
#define	SYS_SEND			62
#define	SYS_RECV			63
#define	SYS_CONNECT			64
#define	SYS_SHUTDOWN		65
#define	SYS_BIND			66
#define	SYS_LISTEN			67
#define	SYS_ACCEPT			68
#define	SYS_GETSOCKNAME		69
#define	SYS_GETPEERNAME		70
#define	SYS_GETSOCKOPT		71
#define	SYS_SETSOCKOPT		72
#define	SYS_SENDMSG			73
#define	SYS_RECVMSG			74
#define	SYS_GETITIMER		75
#define	SYS_SETITIMER		76
#define	SYS_TEST			77
#define	SYS_ENTRYS			78		/* システムコールエントリー数。 */


#endif
