diff options
author | Mark Wielaard <mjw@redhat.com> | 2008-10-05 00:29:49 +0200 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2008-10-05 00:29:49 +0200 |
commit | 5311c037f83f66967f9de4cc66815f93940bb005 (patch) | |
tree | f86f69bbd474ca2ed2d9105054df848d3c6e40f9 | |
parent | 8e6335965169b37a977fd923ddf7bbe9fd5c3aef (diff) | |
download | systemtap-steved-5311c037f83f66967f9de4cc66815f93940bb005.tar.gz systemtap-steved-5311c037f83f66967f9de4cc66815f93940bb005.tar.xz systemtap-steved-5311c037f83f66967f9de4cc66815f93940bb005.zip |
Expect syscall faccessat, fchmodat, linkat, symlinkat, readlinkat chain-calls.
-rw-r--r-- | testsuite/systemtap.syscall/ChangeLog | 8 | ||||
-rw-r--r-- | testsuite/systemtap.syscall/access.c | 18 | ||||
-rw-r--r-- | testsuite/systemtap.syscall/chmod.c | 3 | ||||
-rw-r--r-- | testsuite/systemtap.syscall/link.c | 13 |
4 files changed, 31 insertions, 11 deletions
diff --git a/testsuite/systemtap.syscall/ChangeLog b/testsuite/systemtap.syscall/ChangeLog index 772f980a..7cb97dff 100644 --- a/testsuite/systemtap.syscall/ChangeLog +++ b/testsuite/systemtap.syscall/ChangeLog @@ -1,3 +1,11 @@ +2008-10-04 Mark Wielaard <mjw@redhat.com> + + * access.c: sys_access() calls through to sys_faccessat(). + * chmod.c: sys_chmod() calls through to sys_fchmodat(). + * link.c: sys_link() calls through to sys_linkat(), + sys_symlink() calls through to sys_symlinkat(), + sys_readlink() calls through to sys_readlinkat(). + 2008-09-17 Mark Wielaard <mjw@redhat.com> * forkwait.c: Low byte of flags is always set to SIGCHLD. diff --git a/testsuite/systemtap.syscall/access.c b/testsuite/systemtap.syscall/access.c index 065206b7..682424d4 100644 --- a/testsuite/systemtap.syscall/access.c +++ b/testsuite/systemtap.syscall/access.c @@ -13,22 +13,28 @@ int main() fd1 = creat("foobar1",S_IREAD|S_IWRITE); access("foobar1", F_OK); - // access ("foobar1", F_OK) = 0 + // access ("foobar1", F_OK) + // faccessat (AT_FDCWD, "foobar1", F_OK) = 0 access("foobar1", R_OK); - // access ("foobar1", R_OK) = 0 + // access ("foobar1", R_OK) + // faccessat (AT_FDCWD, "foobar1", R_OK) = 0 access("foobar1", W_OK); - // access ("foobar1", W_OK) = 0 + // access ("foobar1", W_OK) + // faccessat (AT_FDCWD, "foobar1", W_OK) = 0 access("foobar1", X_OK); - // access ("foobar1", X_OK) = -NNNN (EACCES) + // access ("foobar1", X_OK) + // faccessat (AT_FDCWD, "foobar1", X_OK) = -NNNN (EACCES) access("foobar1", R_OK|W_OK); - // access ("foobar1", W_OK |R_OK) = 0 + // access ("foobar1", W_OK |R_OK) + // faccessat (AT_FDCWD, "foobar1", W_OK |R_OK) = 0 access("foobar1", R_OK|W_OK|X_OK); - // access ("foobar1", X_OK |W_OK |R_OK) = -NNNN (EACCES) + // access ("foobar1", X_OK |W_OK |R_OK) + // faccessat (AT_FDCWD, "foobar1", X_OK |W_OK |R_OK) = -NNNN (EACCES) return 0; } diff --git a/testsuite/systemtap.syscall/chmod.c b/testsuite/systemtap.syscall/chmod.c index 671c74bc..9b0c58e1 100644 --- a/testsuite/systemtap.syscall/chmod.c +++ b/testsuite/systemtap.syscall/chmod.c @@ -14,7 +14,8 @@ int main() // open ("foobar", O_WRONLY|O_CREAT, 0666) = NNNN chmod("foobar", 0644); - // chmod ("foobar", 0644) = 0 + // chmod ("foobar", 0644) + // fchmodat (AT_FDCWD, "foobar", 0644) = 0 fchmod(fd, 0444); // fchmod (NNNN, 0444) = 0 diff --git a/testsuite/systemtap.syscall/link.c b/testsuite/systemtap.syscall/link.c index 89d7545d..81280bf2 100644 --- a/testsuite/systemtap.syscall/link.c +++ b/testsuite/systemtap.syscall/link.c @@ -13,19 +13,24 @@ int main() close(fd); link("foobar", "foobar2"); - // link ("foobar", "foobar2") = 0 + // link ("foobar", "foobar2") + // linkat (AT_FDCWD, "foobar", AT_FDCWD, "foobar2", 0x0) = 0 link("foobar", "foobar"); - // link ("foobar", "foobar") = -NNNN (EEXIST) + // link ("foobar", "foobar") + // linkat (AT_FDCWD, "foobar", AT_FDCWD, "foobar", 0x0) = -NNNN (EEXIST) link("nonexist", "foo"); - // link ("nonexist", "foo") = -NNNN (ENOENT) + // link ("nonexist", "foo") + // linkat (AT_FDCWD, "nonexist", AT_FDCWD, "foo", 0x0) = -NNNN (ENOENT) symlink("foobar", "Sfoobar"); - // symlink ("foobar", "Sfoobar") = 0 + // symlink ("foobar", "Sfoobar") + // symlinkat ("foobar", AT_FDCWD, "Sfoobar") = 0 readlink("Sfoobar", buf, sizeof(buf)); // readlink ("Sfoobar", XXXX, 128) + // readlinkat (AT_FDCWD, "Sfoobar", XXXX, 128) return 0; } |