safe_macros: Add SAFE_GETRESUID and SAFE_GETRESGID

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
setegid/setegid01.c: cleanup

* Delete some useless commtents.

* Add setup() and cleanup().

* Move the test body from main() to setegid_verify().

* Remove verbose, options global variables and help() function.

* Use safe macros.

* Some cleanup.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
setegid/setegid02.c: add EPERM errno test

Add EPERM errno test for setegid(2).

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>