Searched refs:addr (Results 1 - 25 of 56) sorted by relevance

123

/PHP_5_4/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.c307 const struct sockaddr *addr,
323 if ((n = connect(sockfd, addr, addrlen)) != 0) {
396 return (connect(sockfd, addr, addrlen) == 0) ? 0 : -1;
505 PHPAPI int php_network_parse_network_address_with_port(const char *addr, long addrlen, struct sockaddr *sa, socklen_t *sl TSRMLS_DC) argument
519 if (*addr == '[') {
520 colon = memchr(addr + 1, ']', addrlen-1);
525 addr++;
527 colon = memchr(addr, ':', addrlen);
534 tmp = estrndup(addr, colon - addr);
306 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
592 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
660 php_network_get_peer_name(php_socket_t sock, char **textaddr, long *textaddrlen, struct sockaddr **addr, socklen_t *addrlen TSRMLS_DC) argument
680 php_network_get_sock_name(php_socket_t sock, char **textaddr, long *textaddrlen, struct sockaddr **addr, socklen_t *addrlen TSRMLS_DC) argument
711 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
936 php_any_addr(int family, php_sockaddr_storage *addr, unsigned short port) argument
963 php_sockaddr_size(php_sockaddr_storage *addr) argument
[all...]
H A Dphp_network.h234 const struct sockaddr *addr,
241 #define php_connect_nonb(sock, addr, addrlen, timeout) \
242 php_network_connect_socket((sock), (addr), (addrlen), 0, (timeout), NULL, NULL)
250 struct sockaddr **addr,
259 struct sockaddr **addr,
265 struct sockaddr **addr,
269 PHPAPI void php_any_addr(int family, php_sockaddr_storage *addr, unsigned short port);
270 PHPAPI int php_sockaddr_size(php_sockaddr_storage *addr);
296 struct sockaddr **addr,
300 PHPAPI int php_network_parse_network_address_with_port(const char *addr,
[all...]
/PHP_5_4/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.h13 int fpm_trace_get_long(long addr, long *data);
14 int fpm_trace_get_strz(char *buf, size_t sz, long addr);
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));
H A Dfpm_sockets.h25 enum fpm_address_domain fpm_sockets_domain_from_address(char *addr);
/PHP_5_4/ext/shmop/
H A Dphp_shmop.h47 char *addr; member in struct:php_shmop
H A Dshmop.c130 shmdt(shmop->addr);
221 shmop->addr = shmat(shmop->shmid, 0, shmop->shmatflg);
222 if (shmop->addr == (char*) -1) {
264 startaddr = shmop->addr + start;
339 memcpy(shmop->addr + offset, data, writesize);
/PHP_5_4/ext/sockets/
H A Dmulticast.c168 struct in_addr addr;
173 if (php_if_index_to_addr4(if_index, sock, &addr TSRMLS_CC) ==
176 mreq.imr_interface = addr;
233 struct in_addr addr;
242 if (php_if_index_to_addr4(if_index, sock, &addr TSRMLS_CC) ==
245 mreqs.imr_interface = addr;
366 int php_add4_to_if_index(struct in_addr *addr, php_socket *php_sock, unsigned *if_index TSRMLS_DC) argument
375 if (addr->s_addr == INADDR_ANY) {
396 if (r.dwAddr == addr->s_addr) {
404 inet_ntop(AF_INET, addr, addr_st
450 php_add4_to_if_index(struct in_addr *addr, php_socket *php_sock, unsigned *if_index TSRMLS_DC) argument
[all...]
H A Dmulticast.h38 struct in_addr *addr,
H A Dsockets.c180 ZEND_ARG_INFO(1, addr)
186 ZEND_ARG_INFO(1, addr)
198 ZEND_ARG_INFO(0, addr)
208 ZEND_ARG_INFO(0, addr)
240 ZEND_ARG_INFO(0, addr)
612 /* Sets addr by hostname, or by ip in string form (AF_INET6) */
676 /* Sets addr by hostname, or by ip in string form (AF_INET) */
705 /* Sets addr by hostname or by ip in string form (AF_INET or AF_INET6,
1360 /* {{{ proto bool socket_getsockname(resource socket, string &addr[, int &port])
1364 zval *arg1, *addr, *por local
1565 char *addr; local
1669 char *addr; local
1946 char *buf, *addr; local
2561 php_sockaddr_storage addr; local
[all...]
/PHP_5_4/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...]
/PHP_5_4/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::__anon312
156 struct sockaddr *addr; member in struct:_php_stream_xport_param::__anon313
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...]
/PHP_5_4/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;
/PHP_5_4/ext/pcre/pcrelib/sljit/
H A DsljitLir.h279 sljit_uw addr; member in struct:sljit_label
286 sljit_uw addr; member in struct:sljit_jump
296 sljit_uw addr; member in struct:sljit_const
1099 static SLJIT_INLINE sljit_uw sljit_get_label_addr(struct sljit_label *label) { return label->addr; }
1100 static SLJIT_INLINE sljit_uw sljit_get_jump_addr(struct sljit_jump *jump) { return jump->addr; }
1101 static SLJIT_INLINE sljit_uw sljit_get_const_addr(struct sljit_const *const_) { return const_->addr; }
1104 SLJIT_API_FUNC_ATTRIBUTE void sljit_set_jump_addr(sljit_uw addr, sljit_uw new_addr);
1105 SLJIT_API_FUNC_ATTRIBUTE void sljit_set_const(sljit_uw addr, sljit_sw new_constant);
1187 sljit_sw addr; member in struct:sljit_function_context
1192 /* Fill the context arguments using the addr an
[all...]
H A DsljitNativeARM_64.c176 jump->addr -= sizeof(sljit_ins);
214 sljit_uw addr; local
242 SLJIT_ASSERT(!jump || jump->addr >= word_count);
243 SLJIT_ASSERT(!const_ || const_->addr >= word_count);
245 label->addr = (sljit_uw)code_ptr;
249 if (jump && jump->addr == word_count) {
250 jump->addr = (sljit_uw)(code_ptr - 4);
254 if (const_ && const_->addr == word_count) {
255 const_->addr = (sljit_uw)code_ptr;
266 label->addr
2016 sljit_set_jump_addr(sljit_uw addr, sljit_uw new_addr) argument
2023 sljit_set_const(sljit_uw addr, sljit_sw new_constant) argument
[all...]
H A DsljitNativeMIPS_common.c242 inst = (sljit_ins*)jump->addr;
260 jump->addr -= sizeof(sljit_ins);
266 jump->addr -= 2 * sizeof(sljit_ins);
282 jump->addr -= sizeof(sljit_ins);
288 if ((jump->flags & IS_MOVABLE) && (target_addr & ~0xfffffff) == ((jump->addr + 2 * sizeof(sljit_ins)) & ~0xfffffff)) {
297 else if ((target_addr & ~0xfffffff) == ((jump->addr + 3 * sizeof(sljit_ins)) & ~0xfffffff)) {
303 jump->addr += sizeof(sljit_ins);
309 if ((jump->flags & IS_MOVABLE) && (target_addr & ~0xfffffff) == (jump->addr & ~0xfffffff)) {
313 jump->addr -= sizeof(sljit_ins);
317 if ((target_addr & ~0xfffffff) == ((jump->addr
367 sljit_uw addr; local
[all...]
H A DsljitNativePPC_common.c227 SLJIT_API_FUNC_ATTRIBUTE void sljit_set_function_context(void** func_ptr, struct sljit_function_context* context, sljit_sw addr, void* func) argument
233 context->addr = addr ? addr : ptrs[0];
325 sljit_uw addr; local
357 SLJIT_ASSERT(!jump || jump->addr >= word_count);
358 SLJIT_ASSERT(!const_ || const_->addr >= word_count);
362 label->addr = (sljit_uw)code_ptr;
366 if (jump && jump->addr == word_count) {
368 jump->addr
[all...]
H A DsljitNativeSPARC_common.c214 inst = (sljit_ins*)jump->addr;
223 jump->addr -= sizeof(sljit_ins);
251 jump->addr = (sljit_uw)inst;
264 jump->addr = (sljit_uw)inst;
279 sljit_uw addr; local
304 SLJIT_ASSERT(!jump || jump->addr >= word_count);
305 SLJIT_ASSERT(!const_ || const_->addr >= word_count);
309 label->addr = (sljit_uw)code_ptr;
313 if (jump && jump->addr == word_count) {
315 jump->addr
[all...]

Completed in 42 milliseconds

123