libexplain  1.4.D001
Functions
libexplain/fileinfo/self_fd_n.c File Reference
#include <libexplain/ac/unistd.h>
#include <libexplain/fileinfo.h>

Go to the source code of this file.

Functions

int explain_fileinfo_self_fd_n (int fildes, char *data, size_t data_size)

Function Documentation

int explain_fileinfo_self_fd_n ( int  fildes,
char *  data,
size_t  data_size 
)

The explain_fileinfo_self_fd_n function may be used to obtain the path name of the file corresponding to the given file descriptor.

Parameters:
fildesThe file descriptor of interest.
dataWhere to return the path.
data_sizeThe maximum size of the returned path.
Returns:
true (non-zero) on success, or false (zero) on error

Definition at line 26 of file self_fd_n.c.