| Server IP : 162.214.74.102 / Your IP : 216.73.217.114 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/src/debug/php-5.6.40/sapi/fpm/fpm/ |
Upload File : |
/* $Id: fpm_trace.c,v 1.1 2008/07/20 20:59:00 anight Exp $ */
/* (c) 2007,2008 Andrei Nigmatulin */
#include "fpm_config.h"
#include <sys/types.h>
#include "fpm_trace.h"
int fpm_trace_get_strz(char *buf, size_t sz, long addr) /* {{{ */
{
int i;
long l;
char *lc = (char *) &l;
if (0 > fpm_trace_get_long(addr, &l)) {
return -1;
}
i = l % SIZEOF_LONG;
l -= i;
for (addr = l; ; addr += SIZEOF_LONG) {
if (0 > fpm_trace_get_long(addr, &l)) {
return -1;
}
for ( ; i < SIZEOF_LONG; i++) {
--sz;
if (sz && lc[i]) {
*buf++ = lc[i];
continue;
}
*buf = '\0';
return 0;
}
i = 0;
}
}
/* }}} */