mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-17 10:30:20 +00:00
f720d3d212
1999-10-27 Andreas Jaeger <aj@suse.de> * 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 <jdd@cs.toronto.edu>. (_res_hconf_reorder_addrs): Made thread safe. (free_mem): New function, needed for malloc debugging. 1999-10-29 Andreas Jaeger <aj@suse.de> * 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.
12 lines
338 B
C
12 lines
338 B
C
#ifndef _SYS_SOCKET_H
|
|
#include <socket/sys/socket.h>
|
|
|
|
/* 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
|