syscalls/mprotect: Cleanup UCLINUX ifdefs.

Add mprotect directory to FILTER_OUT_DIRS on UCLINUX.

Remove the UCLINUX ifdefs from the code.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
syscalls/mprotect: Cleanup.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
syscalls/mprotect: Fix mmap() error checks.

The addr < 0 is always true. Make use of proper MAP_FAILED constant
instead.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
syscalls/mprotect01: Straighten up the logic.

Pass the pointer to the current testcase to the setup function instead of
passing the values via global variables + various small fixes.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
syscalls/mprotect03: Make use of SAFE_WRITE().

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>