isfdtype (3) Linux Manual Page
isfdtype – test file type of a file descriptor Synopsis#include <sys/stat.h> #include <sys/socket.h> int isfdtype(int fd, int fdtype);Feature Test Macro Requirements for glibc (see feature_test_macros(7)): isfdtype(): Since glibc 2.20: _DEFAULT_SOURCE Before glibc 2.20: _BSD_SOURCE || _SVID_SOURCEDescriptionThe isfdtype() function tests whether the file descriptor fd refers to a file of type fdtype. The fdtype argument specifies…
