blob: 453fdb704281af26dcf03cb170111decab812309 (
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
|
/* Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
*/
#include "types.h"
extern int errno;
extern int tcperrno;
/* TCP_GSOCKNAME -- Get socket name. Return the current network name for the
* indicated socket.
*/
tcp_gsockname (s, name, namelen)
u_sock s; /* the socket */
struct sockaddr *name; /* endpoint of communications */
int namelen; /* maxlen in; actual len out */
{
int status;
/* MACHDEP */
status = getsockname (s, name, namelen);
tcperrno = errno;
return (status);
}
|