From f720d3d2120ebb9a87af7c10e0939fb9dfee20ef Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 29 Oct 1999 21:40:21 +0000 Subject: Update. 1999-10-27 Andreas Jaeger * sysdeps/generic/ifreq.h: New file. * resolv/res_hconf.c: Add missing includes to get all prototypes. (_res_hconf_reorder_addrs): Rewrite. This never worked before. Reported by John DiMarco . (_res_hconf_reorder_addrs): Made thread safe. (free_mem): New function, needed for malloc debugging. 1999-10-29 Andreas Jaeger * sysdeps/unix/sysv/linux/if_index.c (opensock): Move function to ... * sysdeps/generic/opensock.c (__opensock): ...here in a new file. * sysdeps/unix/sysv/linux/if_index.c: Change all callers of opensock to use __opensock. * socket/Makefile (routines): Add opensock. * include/sys/socket.h (__opensock): Add prototype declaration. --- include/sys/socket.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/sys/socket.h b/include/sys/socket.h index d6737f5..dadd866 100644 --- a/include/sys/socket.h +++ b/include/sys/socket.h @@ -3,4 +3,9 @@ /* Now define the internal interfaces. */ extern int __socket (int __domain, int __type, int __protocol) __THROW; + +/* Return a socket of any type. The socket can be used in subsequent + ioctl calls to talk to the kernel. */ +extern int __opensock (void) internal_function; + #endif -- cgit v1.1