gcc -pthread -Wall -Wextra -Werror=implicit-function-declaration unistd/getresgid.c -o unistd/getresgid -D_GNU_SOURCE -D_BSD_SOURCE -D_ALL_SOURCE -D_DEFAULT_SOURCE -lm -lpthread -lrt -lxnet -lsocket -latomic unistd/getresgid.c: In function 'main': unistd/getresgid.c:11:14: error: implicit declaration of function 'getresgid'; did you mean 'setregid'? [-Wimplicit-function-declaration] 11 | if ( getresgid(&rgid, &egid, &sgid) < 0 ) | ^~~~~~~~~ | setregid