/opt/IBM/openxlC/17.1.1/bin/ibm-clang -pthread -Wall -Wextra -Werror=implicit-function-declaration unistd/dup3.c -o unistd/dup3 -D_GNU_SOURCE -D_BSD_SOURCE -D_ALL_SOURCE -D_DEFAULT_SOURCE -lm -lpthread -lrt -latomic unistd/dup3.c:10:7: error: call to undeclared function 'dup3'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] if ( dup3(2, 42, O_CLOEXEC) < 0 ) ^ 1 error generated.