blob: c5872fee5574485a248a5b22d3dd2378211bd332 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
/* Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
*/
#include "types.h"
extern int errno;
extern int tcperrno;
/* TCP_SOCKET -- Create an endpoint for communications (a socket) and bind the
* socket to an i/o descriptor, returning the descriptor as the function value.
*/
u_sock
tcp_socket (af, type, protocol)
int af; /* address format, e.g, AF_INET */
int type; /* socket type, e.g., SOCK_STREAM */
int protocol; /* communications protocol, if used */
{
u_sock s;
/* MACHDEP */
eprintf ("socket\n");
s = socket (af, type, protocol);
tcperrno = errno;
return (s);
}
|