accept.c File Reference

#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <net/netlib.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 accept.c:

Go to the source code of this file.

Defines

#define DEBUG   0

Functions

static int _tcp_accept (int socket, struct sockaddr *_RESTRICT address, socklen_t *_RESTRICT address_len)
int accept (int socket, struct sockaddr *_RESTRICT address, socklen_t *_RESTRICT address_len)


Define Documentation

#define DEBUG   0
 

Definition at line 17 of file accept.c.


Function Documentation

static int _tcp_accept int  socket,
struct sockaddr *_RESTRICT  address,
socklen_t *_RESTRICT  address_len
[static]
 

Definition at line 37 of file accept.c.

References close, errno, getpeername, ioctl, NULL, NWIOGTCPCOOKIE, NWIOTCPACCEPTTO, O_RDWR, open, r, and TCP_DEVICE.

Referenced by accept().

int accept int  socket,
struct sockaddr *_RESTRICT  address,
socklen_t *_RESTRICT  address_len
 

Definition at line 22 of file accept.c.

References _tcp_accept(), ENOSYS, errno, fprintf(), r, and stderr.


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