mirror of
https://gitlab.xiph.org/xiph/icecast-common.git
synced 2024-09-01 03:54:15 -04:00
net gets the namespace deep cleansing treatment.
I suspect all this may be unnecessary, only because I've never heard of this before. But then, I don't do much library work, and better safe than sorry. svn path=/trunk/net/; revision=5083
This commit is contained in:
parent
d0a179694b
commit
4a83cc46cd
@ -20,6 +20,13 @@
|
||||
**
|
||||
*/
|
||||
|
||||
#ifdef _mangle
|
||||
# define resolver_initialize _mangle(resolver_initialize)
|
||||
# define resolver_shutdown _mangle(resolver_shutdown)
|
||||
# define resolver_getname _mangle(resolver_getname)
|
||||
# define resolver_getip _mangle(resolver_getip)
|
||||
#endif
|
||||
|
||||
void resolver_initialize(void);
|
||||
void resolver_shutdown(void);
|
||||
|
||||
|
@ -137,12 +137,15 @@ int sock_stalled (int error)
|
||||
error == EALREADY;
|
||||
}
|
||||
|
||||
int sock_success (int error)
|
||||
#if 0
|
||||
/* what is this??? */
|
||||
static int sock_success (int error)
|
||||
{
|
||||
return error == 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
int sock_connect_pending (int error)
|
||||
static int sock_connect_pending (int error)
|
||||
{
|
||||
return error == EINPROGRESS || error == EALREADY;
|
||||
}
|
||||
|
28
net/sock.h
28
net/sock.h
@ -66,6 +66,34 @@ typedef int sock_t;
|
||||
/* sock connect macro */
|
||||
#define sock_connect(h, p) sock_connect_wto(h, p, 0)
|
||||
|
||||
#ifdef _mangle
|
||||
# define sock_initialize _mangle(sock_initialize)
|
||||
# define sock_shutdown _mangle(sock_shutdown)
|
||||
# define sock_get_localip _mangle(sock_get_localip)
|
||||
# define sock_error _mangle(sock_error)
|
||||
# define sock_recoverable _mangle(sock_recoverable)
|
||||
# define sock_stalled _mangle(sock_stalled)
|
||||
# define sock_valid_socket _mangle(sock_valid_socket)
|
||||
# define sock_set_blocking _mangle(sock_set_blocking)
|
||||
# define sock_set_nolinger _mangle(sock_set_nolinger)
|
||||
# define sock_set_nodelay _mangle(sock_set_nodelay)
|
||||
# define sock_set_keepalive _mangle(sock_set_keepalive)
|
||||
# define sock_close _mangle(sock_close)
|
||||
# define sock_connect_wto _mangle(sock_connect_wto)
|
||||
# define sock_connect_non_blocking _mangle(sock_connect_non_blocking)
|
||||
# define sock_connected _mangle(sock_connected)
|
||||
# define sock_write_bytes _mangle(sock_write_bytes)
|
||||
# define sock_write _mangle(sock_write)
|
||||
# define sock_write_fmt _mangle(sock_write_fmt)
|
||||
# define sock_write_string _mangle(sock_write_string)
|
||||
# define sock_writev _mangle(sock_writev)
|
||||
# define sock_read_bytes _mangle(sock_read_bytes)
|
||||
# define sock_read_line _mangle(sock_read_line)
|
||||
# define sock_get_server_socket _mangle(sock_get_server_socket)
|
||||
# define sock_listen _mangle(sock_listen)
|
||||
# define sock_accept _mangle(sock_accept)
|
||||
#endif
|
||||
|
||||
/* Misc socket functions */
|
||||
void sock_initialize(void);
|
||||
void sock_shutdown(void);
|
||||
|
Loading…
Reference in New Issue
Block a user