Tor 0.4.9.8
Loading...
Searching...
No Matches
socketpair.c File Reference

Replacement socketpair() for systems that lack it. More...

#include "lib/cc/torint.h"
#include "lib/net/socketpair.h"
#include "lib/net/inaddr_st.h"
#include "lib/arch/bytes.h"
#include <errno.h>
#include <string.h>

Go to the source code of this file.

Macros

#define closesocket(x)
 
#define socket_errno()
 
#define SOCKET_EPROTONOSUPPORT   EPROTONOSUPPORT
 

Detailed Description

Replacement socketpair() for systems that lack it.

Definition in file socketpair.c.

Macro Definition Documentation

◆ closesocket

#define closesocket ( x)
Value:
close(x)

Definition at line 31 of file socketpair.c.

◆ SOCKET_EPROTONOSUPPORT

#define SOCKET_EPROTONOSUPPORT   EPROTONOSUPPORT

Definition at line 33 of file socketpair.c.

◆ socket_errno

#define socket_errno ( )
Value:
(errno)

Definition at line 32 of file socketpair.c.