diff --git a/UnixBench/src/syscall.c b/UnixBench/src/syscall.c index f0e0683..b44ee41 100644 --- a/UnixBench/src/syscall.c +++ b/UnixBench/src/syscall.c @@ -28,6 +28,7 @@ char SCCSid[] = "@(#) @(#)syscall.c:3.3 -- 5/15/91 19:30:21"; #include #include #include +#include #include "timeit.c" unsigned long iter; @@ -65,7 +66,7 @@ char *argv[]; case 'm': while (1) { close(dup(0)); - getpid(); + syscall(SYS_getpid); getuid(); umask(022); iter++; @@ -79,7 +80,7 @@ char *argv[]; /* NOTREACHED */ case 'g': while (1) { - getpid(); + syscall(SYS_getpid); iter++; } /* NOTREACHED */