Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
(__getpeername): Add declaration.
  • Loading branch information
Andreas Jaeger committed Aug 21, 2000
1 parent fbe57a0 commit 3d421b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/sys/socket.h
Expand Up @@ -15,4 +15,8 @@ extern int __socketpair (int __domain, int __type, int __protocol,
ioctl calls to talk to the kernel. */
extern int __opensock (void) internal_function;

/* Put the address of the peer connected to socket FD into *ADDR
(which is *LEN bytes long), and its actual length into *LEN. */
extern int __getpeername (int __fd, __SOCKADDR_ARG __addr, socklen_t *__len);

#endif

0 comments on commit 3d421b2

Please sign in to comment.