int
main(void)
{
+ skip_if_unavailable("/proc/self/task/");
+
static const char dir[] = "attach-f-p.test cmd";
pid_t pid = getpid();
int rc = chdir(dir);
. "${srcdir=.}/init.sh"
-# strace -f -p is implemented using /proc/$pid/task/
-[ -d /proc/self/task/ ] ||
- framework_skip_ '/proc/self/task/ is not available'
run_prog_skip_if_failed \
kill -0 $$
run_prog ../attach-f-p-cmd > /dev/null
. "${srcdir=.}/init.sh"
-# strace -P is implemented using /proc/self/fd
-[ -d /proc/self/fd/ ] ||
- framework_skip_ '/proc/self/fd/ is not available'
-
syscall=$NAME
run_prog > /dev/null
sample=$syscall.sample
int
main(void)
{
+ skip_if_unavailable("/proc/self/fd/");
+
static const struct sockaddr_un addr = {
.sun_family = AF_UNIX,
.sun_path = TEST_SOCKET
. "${srcdir=.}/init.sh"
-# strace -y is implemented using /proc/self/fd
-[ -d /proc/self/fd/ ] ||
- framework_skip_ '/proc/self/fd/ is not available'
-
check_prog sed
-run_prog "../$NAME" > /dev/null
+run_prog > /dev/null
run_strace -a20 -y -eclose,network $args > "$EXP"
# Filter out close() calls made by ld.so and libc.
int
main(void)
{
+ skip_if_unavailable("/proc/self/fd/");
+
const struct sockaddr_in addr = {
.sin_family = AF_INET,
.sin_addr.s_addr = htonl(INADDR_LOOPBACK)
. "${srcdir=.}/init.sh"
-# strace -yy is implemented using /proc/self/fd
-[ -d /proc/self/fd/ ] ||
- framework_skip_ '/proc/self/fd/ is not available'
-
check_prog sed
run_prog ../netlink_inet_diag
-run_prog "../$NAME" > /dev/null
+run_prog > /dev/null
run_strace -a22 -yy -eclose,network $args > "$EXP"
# Filter out close() calls made by ld.so and libc.
int
main(void)
{
+ skip_if_unavailable("/proc/self/fd/");
+
struct sockaddr_nl addr = {
.nl_family = AF_NETLINK,
.nl_pid = getpid()
. "${srcdir=.}/init.sh"
-# strace -yy is implemented using /proc/self/fd
-[ -d /proc/self/fd/ ] ||
- framework_skip_ '/proc/self/fd/ is not available'
-
check_prog sed
run_prog ../netlink_netlink_diag
-run_prog "../$NAME" > /dev/null
+run_prog > /dev/null
run_strace -a22 -yy -eclose,network $args > "$EXP"
# Filter out close() calls made by ld.so and libc.
int
main(void)
{
+ skip_if_unavailable("/proc/self/fd/");
+
struct sockaddr_un addr = {
.sun_family = AF_UNIX,
.sun_path = TEST_SOCKET
. "${srcdir=.}/init.sh"
-# strace -yy is implemented using /proc/self/fd
-[ -d /proc/self/fd/ ] ||
- framework_skip_ '/proc/self/fd/ is not available'
-
check_prog sed
run_prog ../netlink_unix_diag
-run_prog "../$NAME" > /dev/null
+run_prog > /dev/null
run_strace -a22 -yy -eclose,network $args > "$EXP"
# Filter out close() calls made by ld.so and libc.
int
main(void)
{
-# if !IS_FSTAT
+# if IS_FSTAT
+ skip_if_unavailable("/proc/self/fd/");
+# else
static const char full[] = "/dev/full";
# endif
static const char sample[] = TEST_SYSCALL_STR ".sample";