cc -pthread -Wall -Wextra getsockname.c -o getsockname -D_GNU_SOURCE -D_BSD_SOURCE -D_ALL_SOURCE -D_DEFAULT_SOURCE -lm -lpthread -lrt