aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/linux-gnu/mksyscallent
diff options
context:
space:
mode:
authorIan Wienand <ianw@ieee.org>2006-06-19 14:20:05 +0200
committerIan Wienand <ianw@debian.org>2006-06-19 14:20:05 +0200
commitc53309ef99c205a2e9ae7ccbdf6557adcd52d24e (patch)
tree1e8d5c96c9fabda3401c7f293ae38f196c8b7496 /sysdeps/linux-gnu/mksyscallent
parent2fa4530b4300fdfbf977cd0bc3963be18c45cc30 (diff)
downloadltrace-c53309ef99c205a2e9ae7ccbdf6557adcd52d24e.tar.gz
Version 0.5
update syscalls to 2.6.17
Diffstat (limited to 'sysdeps/linux-gnu/mksyscallent')
-rwxr-xr-xsysdeps/linux-gnu/mksyscallent12
1 files changed, 7 insertions, 5 deletions
diff --git a/sysdeps/linux-gnu/mksyscallent b/sysdeps/linux-gnu/mksyscallent
index b4589db..e0c3ec7 100755
--- a/sysdeps/linux-gnu/mksyscallent
+++ b/sysdeps/linux-gnu/mksyscallent
@@ -2,19 +2,21 @@
# hack expression to generate arch/syscallent.h from <asm/unistd.h>
# It reads from stdin and writes to stdout
-# Currently (linux-2.2.3), it works OK on i386,m68k,arm
-# It does NOT work in mips
+# It should work OK on i386,m68k,arm,ia64
+# It does NOT work in mips, s390
# It is untested in other architectures
BEGIN {
max=0;
- FS="[ \t\n()\+]+";
+ FS="[ \t\n()+]+";
}
{
-# printf("/%s/%s/%s/%s/\n", $1, $2, $3, $4);
+ #debug
+ #printf("/%s/%s/%s/%s/\n", $1, $2, $3, $4);
if (($1 ~ /^#define$/) && ($2 ~ /^__NR_/)) {
- if (($3>=0) && ($3<=1000)) {
+ #ia64 syscalls are > 1000 (lower for x86 compat)
+ if (($3>=0) && ($3<=2000)) {
SYSCALL[$3]=substr($2,6);
if ($3 > max) {
max=$3;