SOCKFD_LOOKUP

Section: (9)
Updated: 09 October 2005
Index Return to Main Contents

 

NAME

sockfd_lookup - Go from a file number to its socket slot  

SYNOPSIS

"SYNOPSIS"

struct socket * sockfd_lookup (int fd, int * err);  

ARGUMENTS

fd
file handle
err
pointer to an error code return
 

DESCRIPTION

The file handle passed in is locked and the socket it is bound too is returned. If an error occurs the err pointer is overwritten with a negative errno code and NULL is returned. The function checks for both invalid handles and passing a handle which is not a socket.

On a success the socket object pointer is returned.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 00:02:52 GMT, October 09, 2005