summary refs log tree commit diff
path: root/socket
diff options
context:
space:
mode:
Diffstat (limited to 'socket')
-rw-r--r--socket/Makefile5
-rw-r--r--socket/Versions4
-rw-r--r--socket/sys/socket.h6
3 files changed, 13 insertions, 2 deletions
diff --git a/socket/Makefile b/socket/Makefile
index fb97705bb4..c967df27e7 100644
--- a/socket/Makefile
+++ b/socket/Makefile
@@ -1,4 +1,4 @@
-# Copyright (C) 1991,95,96,97,98,99,2000 Free Software Foundation, Inc.
+# Copyright (C) 1991,95,96,97,98,99,2000,2001 Free Software Foundation, Inc.
 # This file is part of the GNU C Library.
 
 # The GNU C Library is free software; you can redistribute it and/or
@@ -26,7 +26,8 @@ headers	:= sys/socket.h sys/un.h bits/sockaddr.h bits/socket.h \
 
 routines := accept bind connect getpeername getsockname getsockopt	\
 	    listen recv recvfrom recvmsg send sendmsg sendto		\
-	    setsockopt shutdown socket socketpair isfdtype opensock
+	    setsockopt shutdown socket socketpair isfdtype opensock	\
+	    sockatmark
 
 distribute := ifreq.h
 
diff --git a/socket/Versions b/socket/Versions
index 6b114c8e31..e9ac6093e5 100644
--- a/socket/Versions
+++ b/socket/Versions
@@ -32,4 +32,8 @@ libc {
     # s*
     send; sendmsg; sendto; setsockopt; shutdown; socket; socketpair;
   }
+  GLIBC_2.2.4 {
+    # Addition from P1003.1-200x
+    sockatmark;
+  }
 }
diff --git a/socket/sys/socket.h b/socket/sys/socket.h
index 7ccb7dd8d0..3ff4fc5fa2 100644
--- a/socket/sys/socket.h
+++ b/socket/sys/socket.h
@@ -199,6 +199,12 @@ extern int accept (int __fd, __SOCKADDR_ARG __addr,
 extern int shutdown (int __fd, int __how) __THROW;
 
 
+#ifdef __USE_XOPEN2K
+/* Determine wheter socket is at a out-of-band mark.  */
+extern int sockatmark (int __fd) __THROW;
+#endif
+
+
 #ifdef __USE_MISC
 /* FDTYPE is S_IFSOCK or another S_IF* macro defined in <sys/stat.h>;
    returns 1 if FD is open on an object of the indicated type, 0 if not,