getsockname.c File Reference

#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <net/gen/in.h>
#include <net/gen/tcp.h>
#include <net/gen/tcp_io.h>
#include <net/gen/udp.h>
#include <net/gen/udp_io.h>

Include dependency graph for getsockname.c:

Go to the source code of this file.

Functions

int getsockname (int fd, struct sockaddr *_RESTRICT address, socklen_t *_RESTRICT address_len)


Function Documentation

int getsockname int  fd,
struct sockaddr *_RESTRICT  address,
socklen_t *_RESTRICT  address_len
 

Definition at line 31 of file getsockname.c.

References AF_INET, errno, fprintf(), inet_ntoa(), ioctl, memcpy(), memset(), ntohs, NWIOGTCPCONF, nwio_tcpconf::nwtc_locaddr, nwio_tcpconf::nwtc_locport, nwio_tcpconf::nwtc_remaddr, nwio_tcpconf::nwtc_remport, sin(), and stderr.


Generated on Fri Apr 14 23:16:50 2006 for minix by  doxygen 1.4.6