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

123

/PHP_TRUNK/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.c246 char *addr = NULL; local
255 addr = dup_address;
267 if (addr != NULL) {
268 addr_len = strlen(addr);
269 if (addr[0] == '[' && addr[addr_len - 1] == ']') {
270 addr[addr_len - 1] = '\0';
271 addr++;
279 if ((status = getaddrinfo(addr, port_str, &hints, &servinfo)) != 0) {
H A Dfpm_sockets.h25 enum fpm_address_domain fpm_sockets_domain_from_address(char *addr);
/PHP_TRUNK/ext/pcre/pcrelib/sljit/
H A DsljitLir.h186 sljit_uw addr; member in struct:sljit_label
193 sljit_uw addr; member in struct:sljit_jump
203 sljit_uw addr; member in struct:sljit_const
902 static SLJIT_INLINE sljit_uw sljit_get_label_addr(struct sljit_label *label) { return label->addr; }
903 static SLJIT_INLINE sljit_uw sljit_get_jump_addr(struct sljit_jump *jump) { return jump->addr; }
904 static SLJIT_INLINE sljit_uw sljit_get_const_addr(struct sljit_const *const_) { return const_->addr; }
907 SLJIT_API_FUNC_ATTRIBUTE void sljit_set_jump_addr(sljit_uw addr, sljit_uw new_addr);
908 SLJIT_API_FUNC_ATTRIBUTE void sljit_set_const(sljit_uw addr, sljit_sw new_constant);
989 sljit_sw addr; member in struct:sljit_function_context
994 /* Fill the context arguments using the addr an
[all...]
H A DsljitNativeMIPS_common.c237 inst = (sljit_ins*)jump->addr;
255 jump->addr -= sizeof(sljit_ins);
261 jump->addr -= 2 * sizeof(sljit_ins);
277 jump->addr -= sizeof(sljit_ins);
283 if ((jump->flags & IS_MOVABLE) && (target_addr & ~0xfffffff) == ((jump->addr + 2 * sizeof(sljit_ins)) & ~0xfffffff)) {
292 else if ((target_addr & ~0xfffffff) == ((jump->addr + 3 * sizeof(sljit_ins)) & ~0xfffffff)) {
298 jump->addr += sizeof(sljit_ins);
304 if ((jump->flags & IS_MOVABLE) && (target_addr & ~0xfffffff) == (jump->addr & ~0xfffffff)) {
308 jump->addr -= sizeof(sljit_ins);
312 if ((target_addr & ~0xfffffff) == ((jump->addr
362 sljit_uw addr; local
[all...]
H A DsljitNativePPC_common.c221 SLJIT_API_FUNC_ATTRIBUTE void sljit_set_function_context(void** func_ptr, struct sljit_function_context* context, sljit_sw addr, void* func) argument
227 context->addr = addr ? addr : ptrs[0];
319 sljit_uw addr; local
351 SLJIT_ASSERT(!jump || jump->addr >= word_count);
352 SLJIT_ASSERT(!const_ || const_->addr >= word_count);
356 label->addr = (sljit_uw)code_ptr;
360 if (jump && jump->addr == word_count) {
362 jump->addr
[all...]
H A DsljitNativeSPARC_common.c209 inst = (sljit_ins*)jump->addr;
218 jump->addr -= sizeof(sljit_ins);
246 jump->addr = (sljit_uw)inst;
259 jump->addr = (sljit_uw)inst;
274 sljit_uw addr; local
299 SLJIT_ASSERT(!jump || jump->addr >= word_count);
300 SLJIT_ASSERT(!const_ || const_->addr >= word_count);
304 label->addr = (sljit_uw)code_ptr;
308 if (jump && jump->addr == word_count) {
310 jump->addr
[all...]
/PHP_TRUNK/ext/shmop/
H A Dshmop.c120 shmdt(shmop->addr);
210 shmop->addr = shmat(shmop->shmid, 0, shmop->shmatflg);
211 if (shmop->addr == (char*) -1) {
252 startaddr = shmop->addr + start;
322 memcpy(shmop->addr + offset, data->val, writesize);
H A Dphp_shmop.h47 char *addr; member in struct:php_shmop
/PHP_TRUNK/ext/sockets/
H A Dmulticast.c473 struct in_addr addr;
478 if (php_if_index_to_addr4(if_index, sock, &addr TSRMLS_CC) ==
481 mreq.imr_interface = addr;
538 struct in_addr addr;
547 if (php_if_index_to_addr4(if_index, sock, &addr TSRMLS_CC) ==
550 mreqs.imr_interface = addr;
671 int php_add4_to_if_index(struct in_addr *addr, php_socket *php_sock, unsigned *if_index TSRMLS_DC) argument
680 if (addr->s_addr == INADDR_ANY) {
701 if (r.dwAddr == addr->s_addr) {
709 inet_ntop(AF_INET, addr, addr_st
755 php_add4_to_if_index(struct in_addr *addr, php_socket *php_sock, unsigned *if_index TSRMLS_DC) argument
[all...]
/PHP_TRUNK/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);
/PHP_TRUNK/main/
H A Dphp_network.h242 const struct sockaddr *addr,
249 #define php_connect_nonb(sock, addr, addrlen, timeout) \
250 php_network_connect_socket((sock), (addr), (addrlen), 0, (timeout), NULL, NULL)
258 struct sockaddr **addr,
267 struct sockaddr **addr,
273 struct sockaddr **addr,
277 PHPAPI void php_any_addr(int family, php_sockaddr_storage *addr, unsigned short port);
278 PHPAPI int php_sockaddr_size(php_sockaddr_storage *addr);
304 struct sockaddr **addr,
308 PHPAPI int php_network_parse_network_address_with_port(const char *addr,
[all...]
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;
510 PHPAPI int php_network_parse_network_address_with_port(const char *addr, zend_long addrlen, struct sockaddr *sa, socklen_t *sl TSRMLS_DC) argument
524 if (*addr == '[') {
525 colon = memchr(addr + 1, ']', addrlen-1);
530 addr++;
532 colon = memchr(addr, ':', addrlen);
539 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, zend_string **error_string, int *error_code) argument
597 php_network_populate_name_from_sockaddr( struct sockaddr *sa, socklen_t sl, zend_string **textaddr, struct sockaddr **addr, socklen_t *addrlen TSRMLS_DC) argument
662 php_network_get_peer_name(php_socket_t sock, zend_string **textaddr, struct sockaddr **addr, socklen_t *addrlen TSRMLS_DC) argument
682 php_network_get_sock_name(php_socket_t sock, zend_string **textaddr, struct sockaddr **addr, socklen_t *addrlen TSRMLS_DC) argument
713 php_network_accept_incoming(php_socket_t srvsock, zend_string **textaddr, struct sockaddr **addr, socklen_t *addrlen, struct timeval *timeout, zend_string **error_string, int *error_code TSRMLS_DC) argument
947 php_any_addr(int family, php_sockaddr_storage *addr, unsigned short port) argument
974 php_sockaddr_size(php_sockaddr_storage *addr) argument
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_io.c168 PHPDBG_API int phpdbg_create_listenable_socket(const char *addr, unsigned short port, struct addrinfo *addr_res TSRMLS_DC) { argument
174 int8_t any_addr = *addr == '*';
186 rc = inet_pton(AF_INET, addr, &serveraddr);
193 rc = inet_pton(AF_INET6, addr, &serveraddr);
206 rc = getaddrinfo(addr, port_buf, &hints, &res);
217 wrote = snprintf(buf, 128, "Could not translate address '%s'", addr);
227 wrote = snprintf(buf, 256, "Host '%s' not found. %s", addr, estrdup(gai_strerror(rc)));
H A Dphpdbg_io.h29 PHPDBG_API int phpdbg_create_listenable_socket(const char *addr, unsigned short port, struct addrinfo *res TSRMLS_DC);
H A Dphpdbg_watch.c40 //#define HT_FROM_WATCH(watch) (watch->type == WATCH_ON_OBJECT ? watch->addr.obj->handlers->get_properties(watch->parent_container.zv TSRMLS_CC) : watch->type == WATCH_ON_ARRAY ? &watch->addr.arr->ht : NULL)
54 static phpdbg_watchpoint_t *phpdbg_check_for_watchpoint(void *addr TSRMLS_DC) {
56 phpdbg_btree_result *result = phpdbg_btree_find_closest(&PHPDBG_G(watchpoint_tree), (zend_ulong)phpdbg_get_page_boundary(addr) + phpdbg_pagesize - 1);
64 /* check if that addr is in a mprotect()'ed memory area */
65 if ((char *) phpdbg_get_page_boundary(watch->addr.ptr) > (char *) addr || (char *) phpdbg_get_page_boundary(watch->addr.ptr) + phpdbg_get_total_page_size(watch->addr.ptr, watch->size) < (char *) addr) {
94 phpdbg_create_addr_watchpoint(void *addr, size_t size, phpdbg_watchpoint_t *watch) argument
[all...]
H A Dphpdbg_watch.h64 } addr; member in struct:_phpdbg_watchpoint_t
88 int phpdbg_watchpoint_segfault_handler(void *addr TSRMLS_DC);
91 void phpdbg_create_addr_watchpoint(void *addr, size_t size, phpdbg_watchpoint_t *watch);
106 static zend_always_inline void *phpdbg_get_page_boundary(void *addr) { argument
107 return (void *) ((size_t) addr & ~(phpdbg_pagesize - 1));
110 static zend_always_inline size_t phpdbg_get_total_page_size(void *addr, size_t size) { argument
111 return (size_t) phpdbg_get_page_boundary((void *) ((size_t) addr + size - 1)) - (size_t) phpdbg_get_page_boundary(addr) + phpdbg_pagesize;
H A Dphpdbg_win.c24 int mprotect(void *addr, size_t size, int protection) { argument
26 return (int)VirtualProtect(addr, size, protection == (PROT_READ | PROT_WRITE) ? PAGE_READWRITE : PAGE_READONLY, &var);
H A Dphpdbg_win.h31 int mprotect(void *addr, size_t size, int protection);
/PHP_TRUNK/main/streams/
H A Dphp_stream_transport.h85 void **addr, socklen_t *addrlen,
93 void **addr, socklen_t *addrlen
104 int flags, void **addr, socklen_t *addrlen,
110 int flags, void *addr, socklen_t addrlen TSRMLS_DC);
146 struct sockaddr *addr; member in struct:_php_stream_xport_param::__anon8
155 struct sockaddr *addr; member in struct:_php_stream_xport_param::__anon9
H A Dtransports.c286 void **addr, socklen_t *addrlen,
298 param.want_addr = addr ? 1 : 0;
306 if (addr) {
307 *addr = param.outputs.addr;
324 void **addr, socklen_t *addrlen
333 param.want_addr = addr ? 1 : 0;
339 if (addr) {
340 *addr = param.outputs.addr;
284 php_stream_xport_accept(php_stream *stream, php_stream **client, zend_string **textaddr, void **addr, socklen_t *addrlen, struct timeval *timeout, zend_string **error_text TSRMLS_DC) argument
322 php_stream_xport_get_name(php_stream *stream, int want_peer, zend_string **textaddr, void **addr, socklen_t *addrlen TSRMLS_DC) argument
395 php_stream_xport_recvfrom(php_stream *stream, char *buf, size_t buflen, int flags, void **addr, socklen_t *addrlen, zend_string **textaddr TSRMLS_DC) argument
464 php_stream_xport_sendto(php_stream *stream, const char *buf, size_t buflen, int flags, void *addr, socklen_t addrlen TSRMLS_DC) argument
[all...]

Completed in 28 milliseconds

123