diff options
author | hunt <hunt> | 2007-04-23 19:49:48 +0000 |
---|---|---|
committer | hunt <hunt> | 2007-04-23 19:49:48 +0000 |
commit | 7f4cce15d398c00b98ce8277216162f0cde17f6a (patch) | |
tree | 9fc3aae0d8ad19438102373b47857450323a4aa5 /testsuite/systemtap.syscall/clock.c | |
parent | 5bc4ac10aaa5e85a081f2975972be1241286a07b (diff) | |
download | systemtap-steved-7f4cce15d398c00b98ce8277216162f0cde17f6a.tar.gz systemtap-steved-7f4cce15d398c00b98ce8277216162f0cde17f6a.tar.xz systemtap-steved-7f4cce15d398c00b98ce8277216162f0cde17f6a.zip |
2007-04-23 Martin Hunt <hunt@redhat.com>
* clock.c (main): Ifdef SYS_time.
Diffstat (limited to 'testsuite/systemtap.syscall/clock.c')
-rw-r--r-- | testsuite/systemtap.syscall/clock.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/testsuite/systemtap.syscall/clock.c b/testsuite/systemtap.syscall/clock.c index c6b1302e..fdbc4f7a 100644 --- a/testsuite/systemtap.syscall/clock.c +++ b/testsuite/systemtap.syscall/clock.c @@ -12,11 +12,13 @@ int main() struct timespec ts; time_t tt; +#ifdef SYS_time syscall(SYS_time, &tt); // time (XXXX) = NNNN syscall(SYS_time, NULL); // time (0x[0]+) = NNNN +#endif t = syscall(SYS_gettimeofday, &tv, NULL); // gettimeofday (XXXX, 0x[0]+) = 0 |