Home
last modified time | relevance | path

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

12345678910>>...14

/PHP-7.1/ext/xmlrpc/libxmlrpc/
H A Dxml_to_xmlrpc.c141 struct buffer_st buf; in xml_element_to_XMLRPC_REQUEST_worker() local
142 base64_decode_xmlrpc(&buf, el->text.str, el->text.len); in xml_element_to_XMLRPC_REQUEST_worker()
143 XMLRPC_SetValueBase64(current_val, buf.data, buf.offset); in xml_element_to_XMLRPC_REQUEST_worker()
144 buffer_delete(&buf); in xml_element_to_XMLRPC_REQUEST_worker()
194 char buf[BUF_SIZE]; in XMLRPC_to_xml_element_worker() local
222 simplestring_add(&elem_val->text, buf); in XMLRPC_to_xml_element_worker()
227 simplestring_add(&elem_val->text, buf); in XMLRPC_to_xml_element_worker()
233 simplestring_add(&elem_val->text, buf); in XMLRPC_to_xml_element_worker()
242 struct buffer_st buf; in XMLRPC_to_xml_element_worker() local
245 simplestring_addn(&elem_val->text, buf.data, buf.offset ); in XMLRPC_to_xml_element_worker()
[all …]
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
730 snprintf(buf, in xml_elem_parse_buf()
[all …]
/PHP-7.1/ext/phar/
H A Dtar.c31 while (i < len && buf[i] >= '0' && buf[i] <= '7') { in phar_tar_number()
67 char *p = buf; in phar_tar_octal()
92 while (buf != end) { in phar_tar_checksum()
94 ++buf; in phar_tar_checksum()
223 read = php_stream_read(fp, buf, sizeof(buf)); in phar_parse_tarfile()
260 if (sum1 == 0 && phar_tar_checksum(buf, sizeof(buf)) == 0) { in phar_parse_tarfile()
328 read = php_stream_read(fp, buf, sizeof(buf)); in phar_parse_tarfile()
342 if (sum1 == 0 && phar_tar_checksum(buf, sizeof(buf)) == 0) { in phar_parse_tarfile()
396 read = php_stream_read(fp, buf, sizeof(buf)); in phar_parse_tarfile()
583 read = php_stream_read(fp, buf, sizeof(buf)); in phar_parse_tarfile()
[all …]
/PHP-7.1/ext/fileinfo/libmagic/
H A Dcdf_time.c170 cdf_ctime(const time_t *sec, char *buf) in cdf_ctime() argument
172 char *ptr = ctime_r(sec, buf); in cdf_ctime()
174 return buf; in cdf_ctime()
175 (void)snprintf(buf, 26, "*Bad* 0x%16.16" INT64_T_FORMAT "x\n", in cdf_ctime()
177 return buf; in cdf_ctime()
186 char buf[25]; in main() local
192 p = cdf_ctime(&ts.tv_sec, buf); in main()
H A Dreadcdf.c139 char buf[64]; in cdf_file_property_info() local
151 cdf_print_property_name(buf, sizeof(buf), info[i].pi_id); in cdf_file_property_info()
202 buf, vbuf) == -1) in cdf_file_property_info()
233 ", %s: %s", buf, c) == -1) in cdf_file_property_info()
259 char buf[256]; in cdf_file_catalog() local
271 cdf_u16tos8(buf, ce[i].ce_namlen, ce[i].ce_name), in cdf_file_catalog()
344 format_clsid(char *buf, size_t len, const uint64_t uuid[2]) { in format_clsid() argument
345 snprintf(buf, len, "%.8" PRIx64 "-%.4" PRIx64 "-%.4" PRIx64 "-%.4" in format_clsid()
352 return buf; in format_clsid()
441 file_trycdf(struct magic_set *ms, int fd, const unsigned char *buf, in file_trycdf() argument
[all …]
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()
/PHP-7.1/ext/zip/lib/
H A Dzip_error_to_str.c44 zip_error_to_str(char *buf, zip_uint64_t len, int ze, int se) in zip_error_to_str() argument
49 return snprintf(buf, len, "Unknown error %d", ze); in zip_error_to_str()
66 return snprintf(buf, len, "%s%s%s", in zip_error_to_str()
H A Dzip_filerange_crc.c44 Bytef buf[BUFSIZE]; in _zip_filerange_crc() local
61 if ((n = zip_source_read(src, buf, (zip_uint64_t)n)) < 0) { in _zip_filerange_crc()
70 *crcp = crc32(*crcp, buf, (uInt)n); in _zip_filerange_crc()
H A Dzip_error_strerror.c46 char buf[128], *s; in zip_error_strerror() local
51 sprintf(buf, "Unknown error %d", err->zip_err); in zip_error_strerror()
53 ss = buf; in zip_error_strerror()
/PHP-7.1/ext/dba/libcdb/
H A Dcdb_make.c41 static int cdb_make_write(struct cdb_make *c, char *buf, uint32 sz) { 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) != 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) != 0) in cdb_make_finish()
/PHP-7.1/sapi/phpdbg/
H A Dphpdbg_out.c831 od.nextb = buf; in strx_printv()
861 *buf = NULL; in phpdbg_xml_vasprintf()
866 efree(*buf); in phpdbg_xml_vasprintf()
867 *buf = NULL; in phpdbg_xml_vasprintf()
918 int len = tmp - *buf; in phpdbg_encode_xml()
919 *buf = erealloc(*buf, len + 1); in phpdbg_encode_xml()
932 if ((*buf)[i] < 0x20) { in phpdbg_encode_ctrl_chars()
941 *tmpptr++ = (*buf)[i]; in phpdbg_encode_ctrl_chars()
947 efree(*buf); in phpdbg_encode_ctrl_chars()
1039 efree(buf); in phpdbg_process_print()
[all …]
H A Dphpdbg_rinit_hook.c60 char buf[(1 << 8) + 1]; in PHP_RINIT_FUNCTION() local
76 while ((buflen = recv(s, buf, sizeof(buf) - 1, 0)) > 0) { in PHP_RINIT_FUNCTION()
77 php_write(buf, buflen); in PHP_RINIT_FUNCTION()
H A Dphpdbg_out.h63 #define phpdbg_xml_asprintf(buf, ...) _phpdbg_xml_asprintf(buf, ##__VA_ARGS__) argument
64 PHPDBG_API int _phpdbg_xml_asprintf(char **buf, const char *format, zend_bool escape_xml, ...);
66 #define phpdbg_asprintf(buf, ...) _phpdbg_asprintf(buf, ##__VA_ARGS__) argument
67 PHPDBG_API int _phpdbg_asprintf(char **buf, const char *format, ...);
/PHP-7.1/ext/openssl/tests/
H A Dbug72333.phpt42 function blocking_fwrite($fp, $buf) {
46 $result = fwrite($fp, $buf);
51 if ($total >= strlen($buf)) {
54 $buf = substr($buf, $total);
/PHP-7.1/win32/
H A Dglob.c625 char buf[MAXPATHLEN]; local
643 if (g_Ctoc(pathbuf, buf, sizeof(buf)))
837 char buf[MAXPATHLEN]; local
840 strlcpy(buf, ".", sizeof buf);
842 if (g_Ctoc(str, buf, sizeof(buf)))
849 return(opendir(buf));
858 char buf[MAXPATHLEN]; local
860 if (g_Ctoc(fn, buf, sizeof(buf)))
875 if (g_Ctoc(fn, buf, sizeof(buf)))
895 g_Ctoc(str, buf, len) in g_Ctoc() argument
[all …]
H A Dwinutil.c29 char *buf = NULL; in php_win32_error_to_msg() local
33 NULL, error, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPTSTR)&buf, 0, NULL in php_win32_error_to_msg()
36 return (buf ? (char *) buf : ""); in php_win32_error_to_msg()
82 PHP_WINUTIL_API int php_win32_get_random_bytes(unsigned char *buf, size_t size) { /* {{{ */ in php_win32_get_random_bytes() argument
118 ret = CryptGenRandom(hCryptProv, (DWORD)size, buf); in php_win32_get_random_bytes()
H A Dioutil.c425 PW32IO wchar_t *php_win32_ioutil_getcwd_w(const wchar_t *buf, int len) in php_win32_ioutil_getcwd_w() argument
431 if (!buf) { in php_win32_ioutil_getcwd_w()
449 buf = tmp_buf; in php_win32_ioutil_getcwd_w()
452 if (!GetCurrentDirectoryW(len, buf)) { in php_win32_ioutil_getcwd_w()
459 return (wchar_t *)buf; in php_win32_ioutil_getcwd_w()
545 wchar_t *pos, *idx = *buf, canonicalw[MAXPATHLEN]; in php_win32_ioutil_normalize_path_w()
554 while (NULL != (pos = wcschr(idx, PHP_WIN32_IOUTIL_FW_SLASHW)) && idx - *buf <= len) { in php_win32_ioutil_normalize_path_w()
559 if (S_OK != canonicalize_path_w(canonicalw, MAXPATHLEN, *buf, PATHCCH_ALLOW_LONG_PATHS)) { in php_win32_ioutil_normalize_path_w()
567 wchar_t *tmp = realloc(*buf, (ret_len + 1) * sizeof(wchar_t)); in php_win32_ioutil_normalize_path_w()
574 *buf = tmp; in php_win32_ioutil_normalize_path_w()
[all …]
/PHP-7.1/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-7.1/sapi/fpm/fpm/
H A Dfpm_stdio.c113 char buf[max_buf_size]; local
135 res = read(fd, buf + in_buf, max_buf_size - 1 - in_buf);
168 buf[in_buf] = '\0';
182 nl = strchr(buf, '\n');
190 …(int) child->pid, is_stdout ? "stdout" : "stderr", buf, is_last_message ? ", pipe is closed" : "");
193 int out_buf = 1 + nl - buf;
194 memmove(buf, buf + out_buf, in_buf - out_buf);
/PHP-7.1/ext/mysqlnd/
H A Dmysqlnd_loaddata.c67 int mysqlnd_local_infile_read(void * ptr, zend_uchar * buf, unsigned int buf_len) in mysqlnd_local_infile_read() argument
74 count = (int) php_stream_read(info->fd, (char *) buf, buf_len); in mysqlnd_local_infile_read()
144 zend_uchar *buf = NULL; in mysqlnd_handle_local_infile() local
167 buf = (zend_uchar *) mnd_ecalloc(1, buflen); in mysqlnd_handle_local_infile()
185 …while ((bufsize = infile.local_infile_read (info, buf + MYSQLND_HEADER_SIZE, buflen - MYSQLND_HEAD… in mysqlnd_handle_local_infile()
186 if ((ret = net->data->m.send(net, vio, buf, bufsize, conn->stats, conn->error_info)) == 0) { in mysqlnd_handle_local_infile()
225 if (buf) { in mysqlnd_handle_local_infile()
226 mnd_efree(buf); in mysqlnd_handle_local_infile()
/PHP-7.1/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-7.1/ext/json/
H A Djson.c187 PHP_JSON_API int php_json_encode(smart_str *buf, zval *val, int options) /* {{{ */ in php_json_encode() argument
196 return_code = php_json_encode_zval(buf, val, options, &encoder); in php_json_encode()
225 smart_str buf = {0}; in PHP_FUNCTION() local
236 php_json_encode_zval(&buf, parameter, (int)options, &encoder); in PHP_FUNCTION()
240 smart_str_free(&buf); in PHP_FUNCTION()
244 smart_str_0(&buf); /* copy? */ in PHP_FUNCTION()
245 if (buf.s) { in PHP_FUNCTION()
246 RETURN_NEW_STR(buf.s); in PHP_FUNCTION()
/PHP-7.1/Zend/tests/
H A Dbug70805.phpt15 unset($GLOBALS["a"]); // this will be called in gc_colloct_roots and put $a into gc roots buf
40 unset($a); // This one can not be putted into roots buf because it's full, thus gc_colloct_roots wi…
41 // but C::__destructor which is called in gc_colloct_roots will put $a into buf
42 // which will make $a be putted into gc roots buf twice
/PHP-7.1/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-7.1/Zend/
H A Dzend_virtual_cwd.h134 CWD_API int php_sys_stat_ex(const char *path, zend_stat_t *buf, int lstat);
135 # define php_sys_stat(path, buf) php_sys_stat_ex(path, buf, 0) argument
136 # define php_sys_lstat(path, buf) php_sys_stat_ex(path, buf, 1) argument
158 CWD_API char *virtual_getcwd(char *buf, size_t size);
168 CWD_API int virtual_stat(const char *path, zend_stat_t *buf);
169 CWD_API int virtual_lstat(const char *path, zend_stat_t *buf);
193 CWD_API int virtual_utime(const char *filename, struct utimbuf *buf);
273 #define VCWD_GETWD(buf) argument
327 #define VCWD_GETWD(buf) getwd(buf) argument

Completed in 92 milliseconds

12345678910>>...14