Home
last modified time | relevance | path

Searched refs:buf (Results 51 – 75 of 337) sorted by relevance

12345678910>>...14

/PHP-5.5/sapi/fpm/fpm/
H A Dfpm_trace.c11 int fpm_trace_get_strz(char *buf, size_t sz, long addr) /* {{{ */ in fpm_trace_get_strz() argument
30 *buf++ = lc[i]; in fpm_trace_get_strz()
33 *buf = '\0'; in fpm_trace_get_strz()
H A Dfastcgi.c433 char buf[128]; in fcgi_get_params() local
434 char *tmp = buf; in fcgi_get_params()
553 switch ((((fcgi_begin_request*)buf)->roleB1 << 8) + ((fcgi_begin_request*)buf)->roleB0) { in fcgi_read_request()
588 if (!fcgi_get_params(req, buf, buf+len)) { in fcgi_read_request()
615 if (!fcgi_get_params(req, buf, buf+len)) { in fcgi_read_request()
632 if ((p + 4 + 4 + str_length + zlen) >= (buf + sizeof(buf))) { in fcgi_read_request()
674 unsigned char buf[255]; in fcgi_read() local
748 char buf[8]; in fcgi_close() local
751 while (recv(req->fd, buf, sizeof(buf), 0) > 0) {} in fcgi_close()
757 char buf[8]; in fcgi_close()
[all …]
H A Dfpm_stdio.c90 char buf[max_buf_size]; in fpm_stdio_child_said() local
112 res = read(fd, buf + in_buf, max_buf_size - 1 - in_buf); in fpm_stdio_child_said()
145 buf[in_buf] = '\0'; in fpm_stdio_child_said()
159 nl = strchr(buf, '\n'); in fpm_stdio_child_said()
167 …(int) child->pid, is_stdout ? "stdout" : "stderr", buf, is_last_message ? ", pipe is closed" : ""); in fpm_stdio_child_said()
170 int out_buf = 1 + nl - buf; in fpm_stdio_child_said()
171 memmove(buf, buf + out_buf, in_buf - out_buf); in fpm_stdio_child_said()
/PHP-5.5/sapi/aolserver/
H A Daolserver.c172 total_read = Ns_ConnRead(NSG(conn), buf, max_read); in php_ns_sapi_read_post()
203 char buf[512]; in php_info_aolserver() local
217 php_info_print_table_row(2, "Server version", buf); in php_info_aolserver()
218 snprintf(buf, 511, "%d day(s), %02d:%02d:%02d", in php_info_aolserver()
223 php_info_print_table_row(2, "Server uptime", buf); in php_info_aolserver()
297 #define ADD_STRINGX(name, buf) \ argument
301 ADD_STRINGX(name, buf)
307 char buf[NS_BUF_SIZE + 1]; in php_ns_sapi_register_variables() local
316 snprintf(buf, NS_BUF_SIZE, "HTTP_%s", key); in php_ns_sapi_register_variables()
318 for(p = buf + 5; (c = *p); p++) { in php_ns_sapi_register_variables()
[all …]
/PHP-5.5/ext/zip/lib/
H A Dzip_error_to_str.c46 zip_error_to_str(char *buf, zip_uint64_t len, int ze, int se) in zip_error_to_str() argument
51 return snprintf(buf, len, "Unknown error %d", ze); in zip_error_to_str()
68 return snprintf(buf, len, "%s%s%s", in zip_error_to_str()
H A Dzip_filerange_crc.c48 Bytef buf[BUFSIZE]; in _zip_filerange_crc() local
60 if ((n=fread(buf, 1, n, fp)) <= 0) { in _zip_filerange_crc()
65 *crcp = crc32(*crcp, buf, n); in _zip_filerange_crc()
H A Dzip_error_strerror.c49 char buf[128], *s; in _zip_error_strerror() local
54 sprintf(buf, "Unknown error %d", err->zip_err); in _zip_error_strerror()
56 ss = buf; in _zip_error_strerror()
H A Dzip_open.c177 comlen = buf + buflen - eocd - EOCDLEN; in _zip_readcdir()
242 cdp = buf + (cd->offset - buf_offset); in _zip_readcdir()
357 char buf[8+1]; in _zip_check_torrentzip() local
367 memcpy(buf, za->cdir->comment+TORRENT_SIG_LEN, 8); in _zip_check_torrentzip()
368 buf[8] = '\0'; in _zip_check_torrentzip()
370 crc_should = strtoul(buf, &end, 16); in _zip_check_torrentzip()
514 unsigned char *buf, *match; in _zip_find_central_dir() local
534 buflen = fread(buf, 1, CDBUFSIZE, fp); in _zip_find_central_dir()
538 free(buf); in _zip_find_central_dir()
544 match = buf; in _zip_find_central_dir()
[all …]
/PHP-5.5/ext/standard/
H A Dphp_smart_str.h125 #define smart_str_print_unsigned4(buf, num, vartype, result) do { \ argument
126 char *__p = (buf); \
137 #define smart_str_print_long4(buf, num, vartype, result) do { \ argument
142 smart_str_print_unsigned4((buf), -(num), vartype, (result)); \
145 smart_str_print_unsigned4((buf), (num), vartype, (result)); \
156 static inline char *smart_str_print_long(char *buf, long num) { in smart_str_print_long() argument
158 smart_str_print_long4(buf, num, unsigned long, r); in smart_str_print_long()
162 static inline char *smart_str_print_unsigned(char *buf, long num) { in smart_str_print_unsigned() argument
164 smart_str_print_unsigned4(buf, num, unsigned long, r); in smart_str_print_unsigned()
/PHP-5.5/ext/mysqlnd/
H A Dmysqlnd_priv.h90 #define SET_NEW_MESSAGE(buf, buf_len, message, len, persistent) \ argument
92 if ((buf)) { \
93 mnd_pefree((buf), (persistent)); \
96 (buf) = mnd_pestrndup((message), (len), (persistent)); \
98 (buf) = NULL; \
103 #define SET_EMPTY_MESSAGE(buf, buf_len, persistent) \ argument
105 if ((buf)) { \
106 mnd_pefree((buf), (persistent)); \
107 (buf) = NULL; \
H A Dmysqlnd_loaddata.c69 int mysqlnd_local_infile_read(void * ptr, zend_uchar * buf, unsigned int buf_len TSRMLS_DC) in mysqlnd_local_infile_read() argument
76 count = (int)php_stream_read(info->fd, (char *) buf, buf_len); in mysqlnd_local_infile_read()
160 zend_uchar *buf = NULL; in mysqlnd_handle_local_infile() local
182 buf = (zend_uchar *) mnd_ecalloc(1, buflen); in mysqlnd_handle_local_infile()
200 …while ((bufsize = infile.local_infile_read (info, buf + MYSQLND_HEADER_SIZE, buflen - MYSQLND_HEAD… in mysqlnd_handle_local_infile()
201 …if ((ret = net->data->m.send_ex(net, buf, bufsize, conn->stats, conn->error_info TSRMLS_CC)) == 0)… in mysqlnd_handle_local_infile()
234 if (buf) { in mysqlnd_handle_local_infile()
235 mnd_efree(buf); in mysqlnd_handle_local_infile()
/PHP-5.5/sapi/tux/
H A Dphp_tux.c101 char buf[1024]; in sapi_tux_send_headers() local
189 php_register_variable(name, buf, track_vars_array TSRMLS_CC)
193 char buf[BUF_SIZE + 1]; in sapi_tux_register_variables() local
197 ctr.line = buf; in sapi_tux_register_variables()
198 ctr.line_len = slprintf(buf, sizeof(buf), "Server: %s", TUXAPI_version); in sapi_tux_register_variables()
213 memcpy(buf, p, strlen(p) + 1); in sapi_tux_register_variables()
218 snprintf(buf, sizeof(buf), "%d", CGI_SERVER_PORT(TG(req))); in sapi_tux_register_variables()
222 snprintf(buf, BUF_SIZE, "/%s", TG(hc)->pathinfo); in sapi_tux_register_variables()
225 snprintf(buf, BUF_SIZE, "/%s", TG(hc)->origfilename); in sapi_tux_register_variables()
244 snprintf(buf, sizeof(buf), "%ld", (long) TG(hc)->contentlength); in sapi_tux_register_variables()
[all …]
/PHP-5.5/ext/dba/libcdb/
H A Dcdb_make.c41 static int cdb_make_write(struct cdb_make *c, char *buf, uint32 sz TSRMLS_DC) { in cdb_make_write() argument
42 return php_stream_write(c->fp, buf, sz) == sz ? 0 : -1; in cdb_make_write()
106 char buf[8]; in cdb_make_addbegin() local
117 uint32_pack(buf, keylen); in cdb_make_addbegin()
118 uint32_pack(buf + 4, datalen); in cdb_make_addbegin()
119 if (cdb_make_write(c, buf, 8 TSRMLS_CC) != 0) in cdb_make_addbegin()
140 char buf[8]; in cdb_make_finish() local
212 uint32_pack(buf, c->hash[u].h); in cdb_make_finish()
213 uint32_pack(buf + 4, c->hash[u].p); in cdb_make_finish()
214 if (cdb_make_write(c, buf, 8 TSRMLS_CC) != 0) in cdb_make_finish()
/PHP-5.5/win32/
H A Dglob.c631 char buf[MAXPATHLEN]; local
649 if (g_Ctoc(pathbuf, buf, sizeof(buf)))
843 char buf[MAXPATHLEN]; local
846 strlcpy(buf, ".", sizeof buf);
848 if (g_Ctoc(str, buf, sizeof(buf)))
855 return(opendir(buf));
864 char buf[MAXPATHLEN]; local
866 if (g_Ctoc(fn, buf, sizeof(buf)))
881 if (g_Ctoc(fn, buf, sizeof(buf)))
901 g_Ctoc(str, buf, len) in g_Ctoc() argument
[all …]
/PHP-5.5/ext/fileinfo/libmagic/
H A Dis_tar.c63 file_is_tar(struct magic_set *ms, const unsigned char *buf, size_t nbytes) in file_is_tar() argument
75 tar = is_tar(buf, nbytes); in file_is_tar()
93 is_tar(const unsigned char *buf, size_t nbytes) in is_tar() argument
95 const union record *header = (const union record *)(const void *)buf; in is_tar()
H A Dprint.c78 file_fmttime(uint64_t v, int flags, char *buf) in file_fmttime() argument
91 pp = ctime_r(&t, buf); in file_fmttime()
113 pp = asctime_r(tm, buf); in file_fmttime()
121 return strcpy(buf, "*Invalid time*"); in file_fmttime()
/PHP-5.5/main/streams/
H A Dstreams.c802 char buf; in _php_stream_getc() local
848 if (!buf) { in php_stream_locate_eol()
852 readptr = buf; in php_stream_locate_eol()
990 buf[0] = '\0'; in _php_stream_get_line()
1168 if (buf) { in _php_stream_write_filtered()
1251 char *buf; in _php_stream_printf() local
1258 if (!buf) { in _php_stream_printf()
1263 efree(buf); in _php_stream_printf()
1456 *buf = NULL; in _php_stream_copy_to_mem()
1486 *buf = perealloc_rel_orig(*buf, len + 1, persistent); in _php_stream_copy_to_mem()
[all …]
/PHP-5.5/ext/zlib/tests/
H A Dgzreadgzwriteplain.phpt20 while ($buf = gzread($fp, 8192)) {
21 $data .= $buf;
34 while ($buf = gzread($fp, 8192)) {
35 $data .= $buf;
/PHP-5.5/ext/xmlrpc/libxmlrpc/
H A Dxml_element.c332 if(buf && *buf) { in xml_elem_entity_escape()
337 bufcopy = buf; in xml_elem_entity_escape()
352 bufcopy=buf; in xml_elem_entity_escape()
512 if(buf) { in simplestring_out_fptr()
539 simplestring buf; in xml_elem_serialize_to_string() local
540 simplestring_init(&buf); in xml_elem_serialize_to_string()
545 *buf_len = buf.len; in xml_elem_serialize_to_string()
548 return buf.str; in xml_elem_serialize_to_string()
690 char buf[100] = ""; in xml_elem_parse_buf() local
727 snprintf(buf, in xml_elem_parse_buf()
[all …]
/PHP-5.5/TSRM/
H A Dtsrm_virtual_cwd.c296 buf->st_dev = buf->st_rdev = path[0] - 'A'; in php_sys_stat_ex()
298 buf->st_dev = buf->st_rdev = path[0] - 'a'; in php_sys_stat_ex()
301 buf->st_dev = buf->st_rdev = 0; in php_sys_stat_ex()
312 buf->st_dev = buf->st_rdev = path[0] - 'A'; in php_sys_stat_ex()
314 buf->st_dev = buf->st_rdev = path[0] - 'a'; in php_sys_stat_ex()
317 buf->st_dev = buf->st_rdev = -1; in php_sys_stat_ex()
321 buf->st_dev = buf->st_rdev = -1; in php_sys_stat_ex()
333 buf->st_uid = buf->st_gid = buf->st_ino = 0; in php_sys_stat_ex()
400 struct stat buf; in php_is_dir_ok() local
552 return buf; in virtual_getcwd()
[all …]
H A Dtsrm_virtual_cwd.h133 CWD_API int php_sys_stat_ex(const char *path, struct stat *buf, int lstat);
134 # define php_sys_stat(path, buf) php_sys_stat_ex(path, buf, 0) argument
135 # define php_sys_lstat(path, buf) php_sys_stat_ex(path, buf, 1) argument
155 CWD_API char *virtual_getcwd(char *buf, size_t size TSRMLS_DC);
165 CWD_API int virtual_stat(const char *path, struct stat *buf TSRMLS_DC);
166 CWD_API int virtual_lstat(const char *path, struct stat *buf TSRMLS_DC);
190 CWD_API int virtual_utime(const char *filename, struct utimbuf *buf TSRMLS_DC);
266 #define VCWD_GETWD(buf) argument
304 #define VCWD_GETWD(buf) getwd(buf) argument
/PHP-5.5/main/
H A Dphp_reentrancy.h74 PHPAPI char *php_ctime_r(const time_t *clock, char *buf);
78 char *ctime_r(const time_t *clock, char *buf);
85 PHPAPI char *php_asctime_r(const struct tm *tm, char *buf);
89 char *asctime_r(const struct tm *tm, char *buf);
/PHP-5.5/Zend/
H A Dzend_stream.h31 typedef size_t (*zend_stream_reader_t)(void* handle, char *buf, size_t len TSRMLS_DC);
48 char *buf; member
76 ZEND_API int zend_stream_fixup(zend_file_handle *file_handle, char **buf, size_t *len TSRMLS_DC);
/PHP-5.5/ext/gd/libgd/
H A Dgd_io_file.c77 static int filePutbuf (gdIOCtx * ctx, const void *buf, int size) in filePutbuf() argument
82 return fwrite(buf, 1, size, fctx->f); in filePutbuf()
86 static int fileGetbuf (gdIOCtx * ctx, void *buf, int size) in fileGetbuf() argument
91 return fread(buf, 1, size, fctx->f); in fileGetbuf()
/PHP-5.5/ext/intl/
H A Dintl_error.c250 char *buf; in intl_parse_error_to_string() local
280 intl_convert_utf16_to_utf8( &buf, &u8len, pe->preContext, -1, &status ); in intl_parse_error_to_string()
286 smart_str_appendl( &ret, buf, u8len ); in intl_parse_error_to_string()
287 efree( buf ); in intl_parse_error_to_string()
299 intl_convert_utf16_to_utf8( &buf, &u8len, pe->postContext, -1, &status ); in intl_parse_error_to_string()
306 smart_str_appendl( &ret, buf, u8len ); in intl_parse_error_to_string()
307 efree( buf ); in intl_parse_error_to_string()

Completed in 73 milliseconds

12345678910>>...14