about summary refs log tree commit diff
path: root/include/sys/socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sys/socket.h')
-rw-r--r--include/sys/socket.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sys/socket.h b/include/sys/socket.h
index 576c5934bb..7d889ac928 100644
--- a/include/sys/socket.h
+++ b/include/sys/socket.h
@@ -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