summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.syscall/dir.c
diff options
context:
space:
mode:
authorhunt <hunt>2007-06-21 04:12:06 +0000
committerhunt <hunt>2007-06-21 04:12:06 +0000
commitcb7f0d1a2afef80d045efd2150ba3721efd84c47 (patch)
treed14c94a4fdee80dd21a2742700ba1892bec352c0 /testsuite/systemtap.syscall/dir.c
parent66f08017b92f685f9e62f76731c9cfc79a53f0b0 (diff)
downloadsystemtap-steved-cb7f0d1a2afef80d045efd2150ba3721efd84c47.tar.gz
systemtap-steved-cb7f0d1a2afef80d045efd2150ba3721efd84c47.tar.xz
systemtap-steved-cb7f0d1a2afef80d045efd2150ba3721efd84c47.zip
2007-06-21 Martin Hunt <hunt@redhat.com>
* chmod.c, dir.c, mmap.c, net1.c, readwrite.c, stat.c, sync.c, trunc.c: Eliminated hardcoded fd numbers.
Diffstat (limited to 'testsuite/systemtap.syscall/dir.c')
-rw-r--r--testsuite/systemtap.syscall/dir.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/testsuite/systemtap.syscall/dir.c b/testsuite/systemtap.syscall/dir.c
index 3609fecd..5de4ce35 100644
--- a/testsuite/systemtap.syscall/dir.c
+++ b/testsuite/systemtap.syscall/dir.c
@@ -20,31 +20,31 @@ int main()
// chdir ("..") = 0
fd = open("foobar", O_RDONLY);
- // open ("foobar", O_RDONLY) = 4
+ // open ("foobar", O_RDONLY) = NNNN
fchdir(fd);
- // fchdir (4) = 0
+ // fchdir (NNNN) = 0
chdir("..");
// chdir ("..") = 0
close(fd);
- // close (4) = 0
+ // close (NNNN) = 0
rmdir("foobar");
// rmdir ("foobar") = 0
fd = open(".", O_RDONLY);
- // open (".", O_RDONLY) = 4
+ // open (".", O_RDONLY) = NNNN
#ifdef SYS_mkdirat
mkdirat(fd, "xyzzy", 0765);
- // mkdirat (4, "xyzzy", 0765) = 0
+ // mkdirat (NNNN, "xyzzy", 0765) = 0
#endif
close(fd);
- // close (4) = 0
+ // close (NNNN) = 0
rmdir("xyzzy");
// rmdir ("xyzzy") =