I would like to get rid of the warnings. When I compile the source code with
gcc -Wall -ansi -o test test.c
I get back
te
getresuid() and seteuid() are GNU extension function, add
getresuid()
seteuid()
#define _GNU_SOURCE
before including all the headers, or add -D_GNU_SOURCE in GCC options.
-D_GNU_SOURCE
You shouldn't define __USE_GNU macro directly, it's supposed to be used only internally in glibc.
__USE_GNU
I solved by adding #include <unistd.h>
#include <unistd.h>