mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
Rename some functions for consistency
This commit is contained in:
parent
8fb1aa6184
commit
b18bd8904e
@ -1723,7 +1723,7 @@ PHP_FUNCTION(socket_cmsg_space)
|
||||
RETURN_LONG((long)CMSG_SPACE(entry->size + n * entry->var_el_size));
|
||||
}
|
||||
|
||||
void _socket_sendrecvmsg_init(INIT_FUNC_ARGS)
|
||||
void php_socket_sendrecvmsg_init(INIT_FUNC_ARGS)
|
||||
{
|
||||
/* IPv6 ancillary data
|
||||
* Note that support for sticky options via setsockopt() is not implemented
|
||||
@ -1763,7 +1763,7 @@ void _socket_sendrecvmsg_init(INIT_FUNC_ARGS)
|
||||
#endif
|
||||
}
|
||||
|
||||
void _socket_sendrecvmsg_shutdown(SHUTDOWN_FUNC_ARGS)
|
||||
void php_socket_sendrecvmsg_shutdown(SHUTDOWN_FUNC_ARGS)
|
||||
{
|
||||
#ifdef ZTS
|
||||
tsrm_mutex_free(ancillary_mutex);
|
||||
|
@ -4,5 +4,5 @@ PHP_FUNCTION(socket_sendmsg);
|
||||
PHP_FUNCTION(socket_recvmsg);
|
||||
PHP_FUNCTION(socket_cmsg_space);
|
||||
|
||||
void _socket_sendrecvmsg_init(INIT_FUNC_ARGS);
|
||||
void _socket_sendrecvmsg_shutdown(SHUTDOWN_FUNC_ARGS);
|
||||
void php_socket_sendrecvmsg_init(INIT_FUNC_ARGS);
|
||||
void php_socket_sendrecvmsg_shutdown(SHUTDOWN_FUNC_ARGS);
|
||||
|
@ -751,7 +751,7 @@ PHP_MINIT_FUNCTION(sockets)
|
||||
REGISTER_LONG_CONSTANT("IPV6_UNICAST_HOPS", IPV6_UNICAST_HOPS, CONST_CS | CONST_PERSISTENT);
|
||||
#endif
|
||||
|
||||
_socket_sendrecvmsg_init(INIT_FUNC_ARGS_PASSTHRU);
|
||||
php_socket_sendrecvmsg_init(INIT_FUNC_ARGS_PASSTHRU);
|
||||
|
||||
return SUCCESS;
|
||||
}
|
||||
@ -774,7 +774,7 @@ PHP_RSHUTDOWN_FUNCTION(sockets)
|
||||
efree(SOCKETS_G(strerror_buf));
|
||||
SOCKETS_G(strerror_buf) = NULL;
|
||||
}
|
||||
_socket_sendrecvmsg_shutdown(SHUTDOWN_FUNC_ARGS_PASSTHRU);
|
||||
php_socket_sendrecvmsg_shutdown(SHUTDOWN_FUNC_ARGS_PASSTHRU);
|
||||
|
||||
return SUCCESS;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user