1#!/bin/sh
2
3# Check mmap/mprotect/munmap syscalls decoding.
4
5. "${srcdir=.}/init.sh"
6
7syscall=mprotect,munmap
8for n in mmap mmap2; do
9	$STRACE -e$n -h > /dev/null && syscall=$syscall,$n
10done
11
12OUT="$LOG.out"
13
14run_prog > /dev/null
15run_strace -e$syscall $args > "$OUT"
16match_grep "$LOG" "$OUT"
17
18rm -f "$OUT"
19
20exit 0
21