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 | |
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.
-rw-r--r-- | testsuite/systemtap.syscall/ChangeLog | 4 | ||||
-rw-r--r-- | testsuite/systemtap.syscall/clock.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/systemtap.syscall/ChangeLog b/testsuite/systemtap.syscall/ChangeLog index f9f4030e..af5e9458 100644 --- a/testsuite/systemtap.syscall/ChangeLog +++ b/testsuite/systemtap.syscall/ChangeLog @@ -1,5 +1,9 @@ 2007-04-23 Martin Hunt <hunt@redhat.com> + * clock.c (main): Ifdef SYS_time. + +2007-04-23 Martin Hunt <hunt@redhat.com> + * mmap.c (main): Use open() instead of creat(). 2007-04-23 Martin Hunt <hunt@redhat.com> 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 |