libexplain  1.4.D001
Functions
libexplain/iocontrol/disambiguate/is_not_a_socket.c File Reference
#include <libexplain/ac/sys/ioctl.h>
#include <libexplain/ac/sys/stat.h>
#include <libexplain/iocontrol.h>

Go to the source code of this file.

Functions

int explain_iocontrol_disambiguate_is_not_a_socket (int fildes, int request, const void *data)

Function Documentation

int explain_iocontrol_disambiguate_is_not_a_socket ( int  fildes,
int  request,
const void *  data 
)

For use by individual ioctl handlers, a disambiguation that reports failure (-1) for sockets, and success (0) otherwise.

Definition at line 27 of file is_not_a_socket.c.