Searched defs:addr (Results 1 - 25 of 31) sorted by relevance

12

/PHP_5_5/main/
H A Dalloca.c106 static char *addr = NULL; /* Address of first `dummy', once known. */ local
109 if (addr == NULL)
111 addr = ADDRESS_FUNCTION (dummy);
118 if (ADDRESS_FUNCTION (dummy) > addr)
H A Dnetwork.c304 const struct sockaddr *addr,
320 if ((n = connect(sockfd, addr, addrlen)) != 0) {
393 return (connect(sockfd, addr, addrlen) == 0) ? 0 : -1;
502 PHPAPI int php_network_parse_network_address_with_port(const char *addr, long addrlen, struct sockaddr *sa, socklen_t *sl TSRMLS_DC) argument
516 if (*addr == '[') {
517 colon = memchr(addr + 1, ']', addrlen-1);
522 addr++;
524 colon = memchr(addr, ':', addrlen);
531 tmp = estrndup(addr, colon - addr);
303 php_network_connect_socket(php_socket_t sockfd, const struct sockaddr *addr, socklen_t addrlen, int asynchronous, struct timeval *timeout, char **error_string, int *error_code) argument
589 php_network_populate_name_from_sockaddr( struct sockaddr *sa, socklen_t sl, char **textaddr, long *textaddrlen, struct sockaddr **addr, socklen_t *addrlen TSRMLS_DC) argument
657 php_network_get_peer_name(php_socket_t sock, char **textaddr, long *textaddrlen, struct sockaddr **addr, socklen_t *addrlen TSRMLS_DC) argument
677 php_network_get_sock_name(php_socket_t sock, char **textaddr, long *textaddrlen, struct sockaddr **addr, socklen_t *addrlen TSRMLS_DC) argument
708 php_network_accept_incoming(php_socket_t srvsock, char **textaddr, long *textaddrlen, struct sockaddr **addr, socklen_t *addrlen, struct timeval *timeout, char **error_string, int *error_code TSRMLS_DC) argument
933 php_any_addr(int family, php_sockaddr_storage *addr, unsigned short port) argument
960 php_sockaddr_size(php_sockaddr_storage *addr) argument
[all...]
/PHP_5_5/sapi/fpm/fpm/
H A Dfpm_trace.c11 int fpm_trace_get_strz(char *buf, size_t sz, long addr) /* {{{ */ argument
17 if (0 > fpm_trace_get_long(addr, &l)) {
23 for (addr = l; ; addr += SIZEOF_LONG) {
24 if (0 > fpm_trace_get_long(addr, &l)) {
H A Dfpm_trace_mach.c83 int fpm_trace_get_long(long addr, long *data) /* {{{ */ argument
85 size_t offset = ((uintptr_t) (addr) % fpm_pagesize);
86 vm_offset_t base = (uintptr_t) (addr) - offset;
H A Dfpm_trace_pread.c58 int fpm_trace_get_long(long addr, long *data) /* {{{ */ argument
60 if (sizeof(*data) != pread(mem_file, (void *) data, sizeof(*data), (uintptr_t) addr)) {
H A Dfpm_trace_ptrace.c57 int fpm_trace_get_long(long addr, long *data) /* {{{ */ argument
62 .piod_offs = (void *) addr,
73 *data = ptrace(PTRACE_PEEKDATA, traced_pid, (void *) addr, 0);
H A Dfpm_sockets.c42 static int fpm_sockets_resolve_af_inet(char *node, char *service, struct sockaddr_in *addr) /* {{{ */ argument
59 *addr = *(struct sockaddr_in *) res->ai_addr;
260 char *addr = NULL; local
266 addr = dup_address;
279 if (addr) {
280 sa_in.sin_addr.s_addr = inet_addr(addr);
282 if (0 > fpm_sockets_resolve_af_inet(addr, NULL, &sa_in)) {
285 zlog(ZLOG_NOTICE, "address '%s' resolved as %u.%u.%u.%u", addr, IPQUAD(&sa_in.sin_addr));
/PHP_5_5/win32/
H A Dsendmail.c773 IN_ADDR addr; local
797 if (inet_pton(AF_INET, ent->h_name, &addr) == 1 || inet_pton(AF_INET6, ent->h_name, &addr6) == 1)
799 if (inet_pton(AF_INET, ent->h_name, &addr) == 1)
/PHP_5_5/ext/sockets/
H A Dconversions.c568 const struct in_addr *addr = (const struct in_addr *)data; local
575 if (inet_ntop(AF_INET, addr, Z_STRVAL_P(zv), size) == NULL) {
585 {"addr", sizeof("addr"), 0, offsetof(struct sockaddr_in, sin_addr), from_zval_write_sin_addr, to_zval_read_sin_addr},
626 const struct in6_addr *addr = (const struct in6_addr *)data; local
633 if (inet_ntop(AF_INET6, addr, Z_STRVAL_P(zv), size) == NULL) {
643 {"addr", sizeof("addr"), 0, offsetof(struct sockaddr_in6, sin6_addr), from_zval_write_sin6_addr, to_zval_read_sin6_addr},
1321 {"addr", sizeof("addr"),
[all...]
H A Dmulticast.c469 struct in_addr addr;
474 if (php_if_index_to_addr4(if_index, sock, &addr TSRMLS_CC) ==
477 mreq.imr_interface = addr;
534 struct in_addr addr;
543 if (php_if_index_to_addr4(if_index, sock, &addr TSRMLS_CC) ==
546 mreqs.imr_interface = addr;
667 int php_add4_to_if_index(struct in_addr *addr, php_socket *php_sock, unsigned *if_index TSRMLS_DC) argument
676 if (addr->s_addr == INADDR_ANY) {
697 if (r.dwAddr == addr->s_addr) {
705 inet_ntop(AF_INET, addr, addr_st
751 php_add4_to_if_index(struct in_addr *addr, php_socket *php_sock, unsigned *if_index TSRMLS_DC) argument
[all...]
H A Dsockets.c149 ZEND_ARG_INFO(1, addr)
155 ZEND_ARG_INFO(1, addr)
167 ZEND_ARG_INFO(0, addr)
177 ZEND_ARG_INFO(0, addr)
209 ZEND_ARG_INFO(0, addr)
1175 /* {{{ proto bool socket_getsockname(resource socket, string &addr[, int &port])
1179 zval *arg1, *addr, *port = NULL; local
1192 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rz|z", &arg1, &addr, &port) == FAILURE) {
1210 zval_dtor(addr);
1211 ZVAL_STRING(addr, addr
1380 char *addr; local
1484 char *addr; local
1766 char *buf, *addr; local
2220 php_sockaddr_storage addr; local
[all...]
/PHP_5_5/ext/shmop/
H A Dphp_shmop.h47 char *addr; member in struct:php_shmop
/PHP_5_5/ext/standard/
H A Dflock_compat.c178 register unsigned long acc = 0, addr = 0; local
207 addr = addr << 8 | acc;
218 addr <<= 8 * (3 - dots) ;
223 ap->s_addr = htonl(addr);
H A Ddns.c155 char *addr; local
159 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &addr, &addr_len) == FAILURE) {
163 hostname = php_gethostbyaddr(addr);
184 struct in_addr addr; local
190 } else if (inet_pton(AF_INET, ip, &addr)) {
191 hp = gethostbyaddr((char *) &addr, sizeof(addr), AF_INET);
196 addr.s_addr = inet_addr(ip);
198 if (addr.s_addr == -1) {
202 hp = gethostbyaddr((char *) &addr, sizeo
219 char *addr; local
[all...]
H A Dbasic_functions.c1618 ZEND_ARG_INFO(0, addr)
3943 char *addr; local
3951 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &addr, &addr_len) == FAILURE) {
3956 if (addr_len == 0 || inet_pton(AF_INET, addr, &ip) != 1) {
3961 if (addr_len == 0 || (ip = inet_addr(addr)) == INADDR_NONE) {
3966 !memcmp(addr, "255.255.255.255", sizeof("255.255.255.255") - 1)
/PHP_5_5/main/streams/
H A Dphp_stream_transport.h85 void **addr, socklen_t *addrlen,
93 void **addr, socklen_t *addrlen
104 long flags, void **addr, socklen_t *addrlen,
110 long flags, void *addr, socklen_t addrlen TSRMLS_DC);
147 struct sockaddr *addr; member in struct:_php_stream_xport_param::__anon314
156 struct sockaddr *addr; member in struct:_php_stream_xport_param::__anon315
H A Dtransports.c286 void **addr, socklen_t *addrlen,
298 param.want_addr = addr ? 1 : 0;
306 if (addr) {
307 *addr = param.outputs.addr;
325 void **addr, socklen_t *addrlen
334 param.want_addr = addr ? 1 : 0;
340 if (addr) {
341 *addr = param.outputs.addr;
284 php_stream_xport_accept(php_stream *stream, php_stream **client, char **textaddr, int *textaddrlen, void **addr, socklen_t *addrlen, struct timeval *timeout, char **error_text TSRMLS_DC) argument
323 php_stream_xport_get_name(php_stream *stream, int want_peer, char **textaddr, int *textaddrlen, void **addr, socklen_t *addrlen TSRMLS_DC) argument
397 php_stream_xport_recvfrom(php_stream *stream, char *buf, size_t buflen, long flags, void **addr, socklen_t *addrlen, char **textaddr, int *textaddrlen TSRMLS_DC) argument
467 php_stream_xport_sendto(php_stream *stream, const char *buf, size_t buflen, long flags, void *addr, socklen_t addrlen TSRMLS_DC) argument
[all...]
H A Dxp_socket.c234 struct sockaddr *addr, socklen_t addrlen
238 if (addr) {
239 ret = sendto(sock->socket, buf, buflen, flags, addr, addrlen);
247 struct sockaddr **addr, socklen_t *addrlen
253 int want_addr = textaddr || addr;
259 textaddr, textaddrlen, addr, addrlen TSRMLS_CC);
334 xparam->want_addr ? &xparam->outputs.addr : NULL,
343 xparam->want_addr ? &xparam->outputs.addr : NULL,
356 xparam->inputs.addr,
379 xparam->want_addr ? &xparam->outputs.addr
233 sock_sendto(php_netstream_data_t *sock, char *buf, size_t buflen, int flags, struct sockaddr *addr, socklen_t addrlen TSRMLS_DC) argument
245 sock_recvfrom(php_netstream_data_t *sock, char *buf, size_t buflen, int flags, char **textaddr, long *textaddrlen, struct sockaddr **addr, socklen_t *addrlen TSRMLS_DC) argument
[all...]
/PHP_5_5/TSRM/
H A Dtsrm_win32.c72 UnmapViewOfFile(ptr->addr);
410 static shm_pair *shm_get(int key, void *addr) argument
420 if (!addr && ptr->descriptor->shm_perm.key == key) {
422 } else if (ptr->addr == addr) {
666 shm->addr = MapViewOfFileEx(shm->segment, FILE_MAP_ALL_ACCESS, 0, 0, 0, NULL);
668 return shm->addr;
683 return UnmapViewOfFile(shm->addr) ? 0 : -1;
H A Dtsrm_win32.h54 void *addr; member in struct:__anon7
/PHP_5_5/Zend/
H A Dzend_alloc.h45 void *addr; member in struct:_zend_leak_info
/PHP_5_5/ext/ftp/
H A Dftp.c91 static int my_accept(ftpbuf_t *ftp, php_socket_t s, struct sockaddr *addr, socklen_t *addrlen);
1346 my_accept(ftpbuf_t *ftp, php_socket_t s, struct sockaddr *addr, socklen_t *addrlen) argument
1360 return accept(s, addr, addrlen);
1371 php_sockaddr_storage addr; local
1421 php_any_addr(sa->sa_family, &addr, 0);
1422 size = php_sockaddr_size(&addr);
1424 if (bind(fd, (struct sockaddr*) &addr, size) != 0) {
1429 if (getsockname(fd, (struct sockaddr*) &addr, &size) != 0) {
1447 snprintf(eprtarg, sizeof(eprtarg), "|2|%s|%hu|", out, ntohs(((struct sockaddr_in6 *) &addr)->sin6_port));
1464 ipbox.s[2] = ((struct sockaddr_in*) &addr)
1491 php_sockaddr_storage addr; local
[all...]
/PHP_5_5/sapi/apache_hooks/
H A Dphp_apache.c132 zval **addr; local
144 if (zend_hash_index_find(Z_OBJPROP_P(z), 0, (void **)&addr) == FAILURE) {
149 r = (request_rec *)Z_LVAL_PP(addr);
164 zval *addr; local
168 MAKE_STD_ZVAL(addr);
169 Z_TYPE_P(addr) = IS_LONG;
170 Z_LVAL_P(addr) = (int) r;
174 zend_hash_index_update(Z_OBJPROP_P(req), 0, &addr, sizeof(zval *), NULL); local
/PHP_5_5/sapi/continuity/
H A Dcapi.c405 static void capi_free(void *addr) argument
407 if (addr != NULL)
408 free(addr);
/PHP_5_5/sapi/nsapi/
H A Dnsapi.c140 static void nsapi_free(void *addr) argument
142 if (addr != NULL) {
143 FREE(addr);

Completed in 52 milliseconds

12