-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate constant.m4 for linux 32, linux 64 and osx. Only constant.m4 generated. linux 64 uses 64 bit system calls, which triggered cosmetic changes.
- Loading branch information
albert
committed
Apr 23, 2013
1 parent
d3043d4
commit 2047423
Showing
4 changed files
with
163 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
|
||
_C{ ------------------------------------------------------------ } | ||
_C{ Constants stolen from C in linux 64 bit environment. } | ||
_C{ ------------------------------------------------------------ } | ||
|
||
SEEK_SET EQU 0x0 | ||
TCGETS EQU 0x5401 | ||
TCSETS EQU 0x5402 | ||
ECHO EQU 0x8 | ||
EAGAIN EQU 0xb | ||
EINTR EQU 0x4 | ||
EPIPE EQU 0x20 | ||
VMIN EQU 0x6 | ||
VTIME EQU 0x5 | ||
ICANON EQU 0x2 | ||
O_RDWR EQU 0x2 | ||
O_RDONLY EQU 0x0 | ||
O_WRONLY EQU 0x1 | ||
O_CREAT EQU 0x40 | ||
O_NONBLOCK EQU 0x800 | ||
SIZE_TERMIO EQU 0x3c | ||
|
||
_C{ Numbers of system calls. See "Linux kernel Internals" Appendix A. } | ||
_C{ By M.Beck, H. Boehme e.a. Addison Wesley. } | ||
_C{ The system calls themselves are extensively documented in chapter } | ||
_C{ 2 of the man pages, e.g. "man 2 exit"} | ||
|
||
exit EQU 0x3c | ||
open EQU 0x2 | ||
close EQU 0x3 | ||
creat EQU 0x55 | ||
unlink EQU 0x57 | ||
chdir EQU 0x50 | ||
read EQU 0x0 | ||
select EQU 0x17 | ||
write EQU 0x1 | ||
ioctl EQU 0x10 | ||
ioperm EQU 0xad | ||
iopl EQU 0xac | ||
lseek EQU 0x8 | ||
execve EQU 0x3b | ||
fork EQU 0x39 | ||
waitpid EQU 0x3d | ||
pipe EQU 0x16 | ||
|
||
wait4 EQU waitpid | ||
RAWIO EQU (ECHO | ICANON) | ||
|
||
_C{ ------------------------------------------------------------ } | ||
_C{ End of constants stolen from C in linux 64 bit environment. } | ||
_C{ ------------------------------------------------------------ } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
; ------------------------------------------------------------ | ||
; Constants stolen from C in OSX environment. | ||
; ------------------------------------------------------------ | ||
|
||
SEEK_SET EQU 0x0 | ||
TCGETS EQU 0x5401 | ||
TCSETS EQU 0x5402 | ||
ECHO EQU 0x8 | ||
EAGAIN EQU 0xb | ||
EINTR EQU 0x4 | ||
EPIPE EQU 0x20 | ||
VMIN EQU 0x6 | ||
VTIME EQU 0x5 | ||
ICANON EQU 0x2 | ||
O_RDWR EQU 0x2 | ||
O_RDONLY EQU 0x0 | ||
O_WRONLY EQU 0x1 | ||
O_CREAT EQU 0x40 | ||
O_NONBLOCK EQU 0x800 | ||
SIZE_TERMIO EQU 0x3c | ||
|
||
|
||
; ------------------------------ | ||
; syscall constant declarations: | ||
; ------------------------------ | ||
|
||
exit EQU 0x1 | ||
open EQU 0x5 | ||
close EQU 0x6 | ||
creat EQU 0x8 | ||
unlink EQU 0xa | ||
chdir EQU 0xc | ||
read EQU 0x3 | ||
_newselect EQU 0x5D | ||
write EQU 0x4 | ||
ioctl EQU 0x36 | ||
; ioperm EQU 0x65 ; non-existent? | ||
; iopl EQU 0x6e ; non-existent? | ||
_osx_lseek EQU 0xC7 | ||
_osx_execve EQU 59 | ||
fork EQU 0x2 | ||
waitpid EQU 0x7 | ||
|
||
RAWIO EQU (ECHO | ICANON) | ||
|
||
; ------------------------------------------------------------ | ||
; End of constants stolen from C in OSX environment. | ||
; ------------------------------------------------------------ |