Home
last modified time | relevance | path

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

12345678910>>...14

/PHP-7.0/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.0/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.0/ext/mysqlnd/
H A Dmysqlnd_priv.h67 #define SET_NEW_MESSAGE(buf, buf_len, message, len, persistent) \ argument
69 if ((buf)) { \
70 mnd_pefree((buf), (persistent)); \
73 (buf) = mnd_pestrndup((message), (len), (persistent)); \
75 (buf) = NULL; \
80 #define SET_EMPTY_MESSAGE(buf, buf_len, persistent) \ argument
82 if ((buf)) { \
83 mnd_pefree((buf), (persistent)); \
84 (buf) = NULL; \
H A Dmysqlnd_loaddata.c69 int mysqlnd_local_infile_read(void * ptr, zend_uchar * buf, unsigned int buf_len) in mysqlnd_local_infile_read() argument
76 count = (int) php_stream_read(info->fd, (char *) buf, buf_len); in mysqlnd_local_infile_read()
146 zend_uchar *buf = NULL; in mysqlnd_handle_local_infile() local
168 buf = (zend_uchar *) mnd_ecalloc(1, buflen); in mysqlnd_handle_local_infile()
186 …while ((bufsize = infile.local_infile_read (info, buf + MYSQLND_HEADER_SIZE, buflen - MYSQLND_HEAD… in mysqlnd_handle_local_infile()
187 if ((ret = net->data->m.send_ex(net, buf, bufsize, conn->stats, conn->error_info)) == 0) { in mysqlnd_handle_local_infile()
220 if (buf) { in mysqlnd_handle_local_infile()
221 mnd_efree(buf); in mysqlnd_handle_local_infile()
/PHP-7.0/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.0/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.0/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.0/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.0/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 …]
/PHP-7.0/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.0/sapi/fpm/fpm/
H A Dfpm_stdio.c120 char buf[max_buf_size]; local
142 res = read(fd, buf + in_buf, max_buf_size - 1 - in_buf);
175 buf[in_buf] = '\0';
189 nl = strchr(buf, '\n');
197 …(int) child->pid, is_stdout ? "stdout" : "stderr", buf, is_last_message ? ", pipe is closed" : "");
200 int out_buf = 1 + nl - buf;
201 memmove(buf, buf + out_buf, in_buf - out_buf);
/PHP-7.0/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-7.0/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.0/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.0/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.0/Zend/
H A Dzend_virtual_cwd.c318 buf->st_dev = buf->st_rdev = path[0] - 'A'; in php_sys_stat_ex()
320 buf->st_dev = buf->st_rdev = path[0] - 'a'; in php_sys_stat_ex()
323 buf->st_dev = buf->st_rdev = 0; in php_sys_stat_ex()
334 buf->st_dev = buf->st_rdev = path[0] - 'A'; in php_sys_stat_ex()
336 buf->st_dev = buf->st_rdev = path[0] - 'a'; in php_sys_stat_ex()
339 buf->st_dev = buf->st_rdev = -1; in php_sys_stat_ex()
343 buf->st_dev = buf->st_rdev = -1; in php_sys_stat_ex()
355 buf->st_uid = buf->st_gid = buf->st_ino = 0; in php_sys_stat_ex()
422 zend_stat_t buf; in php_is_dir_ok() local
433 zend_stat_t buf; in php_is_file_ok() local
[all …]
H A Dzend_virtual_cwd.h133 CWD_API int php_sys_stat_ex(const char *path, zend_stat_t *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
157 CWD_API char *virtual_getcwd(char *buf, size_t size);
167 CWD_API int virtual_stat(const char *path, zend_stat_t *buf);
168 CWD_API int virtual_lstat(const char *path, zend_stat_t *buf);
192 CWD_API int virtual_utime(const char *filename, struct utimbuf *buf);
268 #define VCWD_GETWD(buf) argument
306 #define VCWD_GETWD(buf) getwd(buf) argument
H A Dzend_gc.c117 if (gc_globals->buf) { in root_buffer_dtor()
118 free(gc_globals->buf); in root_buffer_dtor()
190 if (GC_G(buf)) { in gc_reset()
665 if (buf) { in gc_add_garbage()
669 GC_INFO(ref) = buf - GC_G(buf); in gc_add_garbage()
671 GC_REF_SET_ADDRESS(ref, buf - GC_G(buf)); in gc_add_garbage()
678 GC_INFO(ref) = buf - GC_G(buf); in gc_add_garbage()
680 GC_REF_SET_ADDRESS(ref, buf - GC_G(buf)); in gc_add_garbage()
693 buf = GC_G(additional_buffer)->buf + GC_G(additional_buffer)->used; in gc_add_garbage()
702 if (buf) { in gc_add_garbage()
[all …]
/PHP-7.0/ext/json/
H A Djson.c194 PHP_JSON_API void php_json_encode(smart_str *buf, zval *val, int options) /* {{{ */ in php_json_encode() argument
196 php_json_encode_zval(buf, val, options); in php_json_encode()
218 smart_str buf = {0}; in PHP_FUNCTION() local
230 php_json_encode(&buf, parameter, (int)options); in PHP_FUNCTION()
233 smart_str_free(&buf); in PHP_FUNCTION()
236 smart_str_0(&buf); /* copy? */ in PHP_FUNCTION()
237 ZVAL_NEW_STR(return_value, buf.s); in PHP_FUNCTION()

Completed in 122 milliseconds

12345678910>>...14