From 221f54f721a2f74e629bb70e34888205f68e95cc Mon Sep 17 00:00:00 2001 From: Wichert Akkerman Date: Thu, 18 Nov 1999 17:26:45 +0000 Subject: [PATCH] Now it builds on alpha again... --- defs.h | 1 + desc.c | 2 +- linux/alpha/syscallent.h | 2 +- linux/syscall.h | 16 ++++++++-------- time.c | 12 +++++++----- 5 files changed, 18 insertions(+), 15 deletions(-) diff --git a/defs.h b/defs.h index cf64c334..56e14b2e 100644 --- a/defs.h +++ b/defs.h @@ -334,6 +334,7 @@ extern void printtrailer P((struct tcb *)); extern void tabto P((int)); extern void call_summary P((FILE *)); extern void fake_execve P((struct tcb *, char *, char *[], char *[])); +extern void printtv32 P((struct tcb*, long)); extern int internal_fork P((struct tcb *)); extern int internal_exec P((struct tcb *)); diff --git a/desc.c b/desc.c index a0b7e0de..3b76e7ea 100644 --- a/desc.c +++ b/desc.c @@ -310,7 +310,7 @@ int bitness; #ifdef ALPHA if (bitness) { tv32=(struct timeval32*)&tv; - tprintf(", {%u, %u}", tv32.tv_sec, tv32.tv_usec); + tprintf(", {%u, %u}", tv32->tv_sec, tv32->tv_usec); } else #endif tprintf(", {%lu, %lu}", diff --git a/linux/alpha/syscallent.h b/linux/alpha/syscallent.h index 33a62d8b..ff53c29d 100644 --- a/linux/alpha/syscallent.h +++ b/linux/alpha/syscallent.h @@ -236,7 +236,7 @@ { 4, TI, sys_semget, "semget" }, /* 205 */ { 4, TI, printargs, "semop" }, /* 206 */ { 1, 0, printargs, "osf_utsname" }, /* 207 */ - { 3, TF, sys_lchown, "lchown" }, /* 208 */ + { 3, TF, sys_chown, "lchown" }, /* 208 */ { 3, TI, printargs, "osf_shmat" }, /* 209 */ { 4, TI, sys_shmctl, "shmctl" }, /* 210 */ { 4, TI, sys_shmdt, "shmdt" }, /* 211 */ diff --git a/linux/syscall.h b/linux/syscall.h index 85bdeae0..5860080f 100644 --- a/linux/syscall.h +++ b/linux/syscall.h @@ -97,14 +97,14 @@ int sys_poll(); /* architecture-specific calls */ #ifdef ALPHA -sys_osf_select(); -sys_osf_gettimeofday(); -sys_osf_settimeofday(); -sys_osf_getitimer(); -sys_osf_setitimer(); -sys_osf_getrusage(); -sys_osf_wait4(); -sys_osf_utimes(); +int sys_osf_select(); +int sys_osf_gettimeofday(); +int sys_osf_settimeofday(); +int sys_osf_getitimer(); +int sys_osf_setitimer(); +int sys_osf_getrusage(); +int sys_osf_wait4(); +int sys_osf_utimes(); #endif diff --git a/time.c b/time.c index 5f4902f0..5f3ec392 100644 --- a/time.c +++ b/time.c @@ -54,16 +54,18 @@ long addr; } #ifdef ALPHA +struct timeval32 +{ + unsigned tv_sec; + unsigned tv_usec; +}; + void printtv32(tcp, addr) struct tcb *tcp; long addr; { - struct timeval32 - { - unsigned tv_sec; - unsigned tv_usec; - }; + struct timeval32 tv; if (addr == 0) tprintf("NULL"); -- 2.40.0