Home
last modified time | relevance | path

Searched refs:addr (Results 1 – 25 of 109) sorted by relevance

12345

/php-src/sapi/fpm/fpm/
H A Dfpm_trace.c9 int fpm_trace_get_strz(char *buf, size_t sz, long addr) /* {{{ */ in fpm_trace_get_strz() argument
12 long l = addr; in fpm_trace_get_strz()
17 for (addr = l; ; addr += SIZEOF_LONG) { in fpm_trace_get_strz()
18 if (0 > fpm_trace_get_long(addr, &l)) { in fpm_trace_get_strz()
H A Dfpm_trace_ptrace.c55 int fpm_trace_get_long(long addr, long *data) /* {{{ */ in fpm_trace_get_long() argument
60 .piod_offs = (void *) addr, in fpm_trace_get_long()
71 *data = ptrace(PTRACE_PEEKDATA, traced_pid, (void *) addr, 0); in fpm_trace_get_long()
H A Dfpm_trace.h11 int fpm_trace_get_long(long addr, long *data);
12 int fpm_trace_get_strz(char *buf, size_t sz, long addr);
H A Dfpm_trace_mach.c80 int fpm_trace_get_long(long addr, long *data) /* {{{ */ in fpm_trace_get_long() argument
82 size_t offset = ((uintptr_t) (addr) % fpm_pagesize); in fpm_trace_get_long()
83 vm_offset_t base = (uintptr_t) (addr) - offset; in fpm_trace_get_long()
H A Dfpm_trace_pread.c54 int fpm_trace_get_long(long addr, long *data) /* {{{ */ in fpm_trace_get_long() argument
56 if (sizeof(*data) != pread(mem_file, (void *) data, sizeof(*data), (uintptr_t) addr)) { in fpm_trace_get_long()
H A Dfpm_sockets.c316 if ((status = getaddrinfo(addr, port, &hints, &servinfo)) != 0) { in fpm_socket_af_inet_socket_by_addr()
325 zlog(ZLOG_DEBUG, "Found address for %s, socket opened on %s", addr, tmpbuf); in fpm_socket_af_inet_socket_by_addr()
328 zlog(ZLOG_WARNING, "Found multiple addresses for %s, %s ignored", addr, tmpbuf); in fpm_socket_af_inet_socket_by_addr()
342 char *addr = NULL; in fpm_socket_af_inet_listening_socket() local
350 addr = dup_address; in fpm_socket_af_inet_listening_socket()
353 addr_len = strlen(addr); in fpm_socket_af_inet_listening_socket()
354 if (addr[0] == '[' && addr[addr_len - 1] == ']') { in fpm_socket_af_inet_listening_socket()
355 addr[addr_len - 1] = '\0'; in fpm_socket_af_inet_listening_socket()
356 addr++; in fpm_socket_af_inet_listening_socket()
370 if (addr) { in fpm_socket_af_inet_listening_socket()
[all …]
/php-src/sapi/phpdbg/
H A Dphpdbg_watch.h68 } addr; member
120 int phpdbg_watchpoint_segfault_handler(void *addr);
123 void phpdbg_create_addr_watchpoint(void *addr, size_t size, phpdbg_watchpoint_t *watch);
138 static zend_always_inline void *phpdbg_get_page_boundary(void *addr) { in phpdbg_get_page_boundary() argument
139 return (void *) ((size_t) addr & ~(phpdbg_pagesize - 1)); in phpdbg_get_page_boundary()
142 static zend_always_inline size_t phpdbg_get_total_page_size(void *addr, size_t size) { in phpdbg_get_total_page_size() argument
143 …t) phpdbg_get_page_boundary((void *) ((size_t) addr + size - 1)) - (size_t) phpdbg_get_page_bounda… in phpdbg_get_total_page_size()
H A Dphpdbg_watch.c230addr.ptr) > (char *) addr || (char *) phpdbg_get_page_boundary(watch->addr.ptr) + phpdbg_get_total… in phpdbg_check_for_watchpoint()
290 addr
350 watch->addr.ptr = addr;
405 } else if (coll->reference.addr.ptr) {
425 if (Z_REFCOUNTED_P(watch->addr.zv)) {
445 if (Z_ISREF_P(watch->addr.zv)) {
461 coll->reference.addr.ptr = NULL;
564 if (element->watch->addr.ptr == ptr) {
602 zv = element->watch->addr.zv;
782 zv = element->parent->watch->addr.zv;
[all …]
H A Dphpdbg_win.c22 int mprotect(void *addr, size_t size, int protection) { in mprotect() argument
24 …return (int)VirtualProtect(addr, size, protection == (PROT_READ | PROT_WRITE) ? PAGE_READWRITE : P… in mprotect()
/php-src/ext/ffi/tests/
H A Dnested_addr.phpt2 FFI Cannot nest FFI::addr() calls
16 $structPtrPtr = \FFI::addr(\FFI::addr($struct));
19 Fatal error: Uncaught FFI\Exception: FFI::addr() cannot create a reference to a temporary pointer i…
21 #0 %s(%d): FFI::addr(Object(FFI\CData:struct <anonymous>*))
/php-src/ext/opcache/jit/ir/
H A Dir_disasm.c96 sym->addr = addr; in ir_disasm_add_symbol()
106 if (sym->addr > node->addr) { in ir_disasm_add_symbol()
115 } else if (sym->addr < node->addr) { in ir_disasm_add_symbol()
124 IR_ASSERT(sym->addr == node->addr); in ir_disasm_add_symbol()
193 if (addr < node->addr) { in ir_disasm_find_symbol()
198 *offset = addr - node->addr; in ir_disasm_find_symbol()
587 addr = 0;
590 addr = addr * 16 + (*r - '0');
592 addr = addr * 16 + (*r - 'A' + 10);
594 addr = addr * 16 + (*r - 'a' + 10);
[all …]
H A Dir_php.h15 void *zend_jit_snapshot_handler(ir_ctx *ctx, ir_ref snapshot_ref, ir_insn *snapshot, void *addr)
17 #define IR_SNAPSHOT_HANDLER(ctx, ref, insn, addr) \ argument
18 zend_jit_snapshot_handler(ctx, ref, insn, addr)
/php-src/main/streams/
H A Dtransports.c303 param.want_addr = addr ? 1 : 0; in php_stream_xport_accept()
311 if (addr) { in php_stream_xport_accept()
312 *addr = param.outputs.addr; in php_stream_xport_accept()
338 param.want_addr = addr ? 1 : 0; in php_stream_xport_get_name()
344 if (addr) { in php_stream_xport_get_name()
345 *addr = param.outputs.addr; in php_stream_xport_get_name()
421 if (!oob && addr == NULL) { in php_stream_xport_recvfrom()
446 param.want_addr = addr ? 1 : 0; in php_stream_xport_recvfrom()
455 if (addr) { in php_stream_xport_recvfrom()
456 *addr = param.outputs.addr; in php_stream_xport_recvfrom()
[all …]
H A Dphp_stream_transport.h82 void **addr, socklen_t *addrlen,
90 void **addr, socklen_t *addrlen
101 int flags, void **addr, socklen_t *addrlen,
107 int flags, void *addr, socklen_t addrlen);
143 struct sockaddr *addr; member
152 struct sockaddr *addr; member
/php-src/ext/curl/tests/
H A Dcurl_basic_008.phpt9 $addr = "www.".uniqid().".invalid";
10 if (gethostbyname($addr) != $addr) {
H A Dcurl_basic_010.phpt9 $addr = "www.".uniqid().".".uniqid();
10 if (gethostbyname($addr) != $addr) {
/php-src/ext/standard/
H A Dnet.c50 PHPAPI zend_string* php_inet_ntop(const struct sockaddr *addr) { in php_inet_ntop() argument
53 if (!addr) { return NULL; } in php_inet_ntop()
55 switch (addr->sa_family) { in php_inet_ntop()
59 …if (inet_ntop(AF_INET6, &(((struct sockaddr_in6*)addr)->sin6_addr), ZSTR_VAL(ret), INET6_ADDRSTRLE… in php_inet_ntop()
69 …if (inet_ntop(AF_INET, &(((struct sockaddr_in*)addr)->sin_addr), ZSTR_VAL(ret), INET_ADDRSTRLEN)) { in php_inet_ntop()
79 switch (addr->sa_family) { in php_inet_ntop()
87 if (getnameinfo(addr, addrlen, ZSTR_VAL(ret), NI_MAXHOST, NULL, 0, NI_NUMERICHOST) == SUCCESS) { in php_inet_ntop()
104 struct sockaddr *addr, struct sockaddr *netmask, in iface_append_unicast() argument
112 if (addr) { in iface_append_unicast()
113 add_assoc_long(&u, "family", addr->sa_family); in iface_append_unicast()
[all …]
/php-src/ext/sockets/tests/
H A Dsocket_recvmsg.phpt21 $addr = '::1';
38 $r = socket_sendto($sends1, $m = "testing packet", strlen($m), 0, $addr, 3001);
44 "name" => ["family" => AF_INET6, "addr" => "::1"],
66 [addr] => ::1
80 [addr] => ::1
H A Dsocket_sendrecvmsg_multi_msg.phpt19 $addr = '::1';
38 "name" => [ "addr" => "::1", "port" => 3003],
44 'addr' => '::1',
53 "name" => ["family" => AF_INET6, "addr" => "::1"],
76 [addr] => ::1
90 [addr] => ::1
H A Dsocket_sendrecvmsg_multi_msg-unix.phpt24 $addr = '::1';
43 "name" => [ "addr" => "::1", "port" => 3002],
55 "name" => ["family" => AF_INET6, "addr" => "::1"],
78 [addr] => ::1
92 [addr] => ::1
H A Dsocket_create_listen.phpt14 socket_getsockname($sock, $addr, $port);
15 var_dump($addr, $port);
H A Dsocket_create_listen-win32.phpt14 socket_getsockname($sock, $addr, $port);
15 var_dump($addr, $port);
/php-src/main/
H A Dphp_network.h272 const struct sockaddr *addr,
279 #define php_connect_nonb(sock, addr, addrlen, timeout) \ argument
280 php_network_connect_socket((sock), (addr), (addrlen), 0, (timeout), NULL, NULL)
288 struct sockaddr **addr,
298 struct sockaddr **addr,
304 struct sockaddr **addr,
308 PHPAPI void php_any_addr(int family, php_sockaddr_storage *addr, unsigned short port);
309 PHPAPI socklen_t php_sockaddr_size(php_sockaddr_storage *addr);
335 struct sockaddr **addr,
339 PHPAPI zend_result php_network_parse_network_address_with_port(const char *addr,
H A Dnetwork.c529 if (*addr == '[') {
535 addr++;
544 tmp = estrndup(addr, colon - addr);
608 struct sockaddr **addr, argument
612 if (addr) {
613 *addr = emalloc(sl);
614 memcpy(*addr, sa, sl);
667 struct sockaddr **addr, argument
678 addr, addrlen
698 addr, addrlen
[all …]
/php-src/Zend/
H A Dzend_call_stack.c134 void *addr; in zend_call_stack_get_linux_pthread() local
146 error = pthread_attr_getstack(&attr, &addr, &max_size); in zend_call_stack_get_linux_pthread()
162 addr = (int8_t*)addr + guard_size; in zend_call_stack_get_linux_pthread()
167 stack->base = (int8_t*)addr + max_size; in zend_call_stack_get_linux_pthread()
292 void *addr; in zend_call_stack_get_freebsd_pthread() local
305 error = pthread_attr_getstack(&attr, &addr, &max_size); in zend_call_stack_get_freebsd_pthread()
310 stack->base = (int8_t*)addr + max_size; in zend_call_stack_get_freebsd_pthread()
584 void *addr; in zend_call_stack_get_netbsd_pthread() local
592 error = pthread_attr_getstack(&attr, &addr, &max_size); in zend_call_stack_get_netbsd_pthread()
602 addr = (char *)addr + guard_size; in zend_call_stack_get_netbsd_pthread()
[all …]

Completed in 39 milliseconds

12345