Home
last modified time | relevance | path

Searched refs:buf (Results 201 – 225 of 357) sorted by relevance

12345678910>>...15

/php-src/ext/opcache/jit/ir/
H A Dir_gdb.c587 char buf[1024]; in ir_gdb_present() local
588 ssize_t n = read(fd, buf, sizeof(buf) - 1); in ir_gdb_present()
593 buf[n] = 0; in ir_gdb_present()
594 s = strstr(buf, "TracerPid:"); in ir_gdb_present()
603 snprintf(buf, sizeof(buf), "/proc/%d/exe", (int)pid); in ir_gdb_present()
604 if (readlink(buf, out, sizeof(out) - 1) > 0) { in ir_gdb_present()
/php-src/ext/spl/
H A Dspl_observer.c811 smart_str buf = {0}; in PHP_METHOD() local
820 smart_str_appendl(&buf, "x:", 2); in PHP_METHOD()
822 php_var_serialize(&buf, &flags, &var_hash); in PHP_METHOD()
829 smart_str_free(&buf); in PHP_METHOD()
834 php_var_serialize(&buf, &obj, &var_hash); in PHP_METHOD()
835 smart_str_appendc(&buf, ','); in PHP_METHOD()
837 smart_str_appendc(&buf, ';'); in PHP_METHOD()
842 smart_str_appendl(&buf, "m:", 2); in PHP_METHOD()
851 RETURN_STR(smart_str_extract(&buf)); in PHP_METHOD()
859 char *buf; in PHP_METHOD() local
[all …]
/php-src/ext/bcmath/libbcmath/src/
H A Drecmul.c247 BC_VECTOR *buf = safe_emalloc(n1_arr_size + n2_arr_size + prod_arr_size, sizeof(BC_VECTOR), 0); in bc_standard_mul() local
249 BC_VECTOR *n1_vector = buf; in bc_standard_mul()
250 BC_VECTOR *n2_vector = buf + n1_arr_size; in bc_standard_mul()
311 efree(buf); in bc_standard_mul()
/php-src/Zend/
H A Dzend_strtod.h35 ZEND_API char *zend_gcvt(double value, int ndigit, char dec_point, char exponent, char *buf);
H A Dzend_virtual_cwd.c123 zend_stat_t buf = {0}; in php_is_dir_ok() local
125 if (php_sys_stat(state->cwd, &buf) == 0 && S_ISDIR(buf.st_mode)) in php_is_dir_ok()
134 zend_stat_t buf = {0}; in php_is_file_ok() local
136 if (php_sys_stat(state->cwd, &buf) == 0 && S_ISREG(buf.st_mode)) in php_is_file_ok()
300 if (buf == NULL) { in virtual_getcwd()
311 memcpy(buf, cwd, length+1); in virtual_getcwd()
313 return buf; in virtual_getcwd()
1370 ret = win32_utime(new_state.cwd, buf); in virtual_utime()
1372 ret = utime(new_state.cwd, buf); in virtual_utime()
1545 retval = php_sys_stat(new_state.cwd, buf); in virtual_stat()
[all …]
H A Dzend_operators.c2865 char buf[16]; in zend_update_current_locale()
3426 char *res = zend_print_long_to_buf(buf + sizeof(buf) - 1, num);
3427 zend_string *str = zend_string_init(res, buf + sizeof(buf) - 1 - res, 0);
3440 char *res = zend_print_ulong_to_buf(buf + sizeof(buf) - 1, num);
3452 *buf = '\0';
3463 return buf;
3483 char buf[20 + 1]; local
3484 char *res = zend_print_u64_to_buf(buf + sizeof(buf) - 1, num);
3496 char buf[20 + 1]; local
3497 char *res = zend_print_i64_to_buf(buf + sizeof(buf) - 1, num);
[all …]
H A Dzend.h203 …int (*unserialize)(zval *object, zend_class_entry *ce, const unsigned char *buf, size_t buf_len, z…
252 void (*printf_to_smart_string_function)(smart_string *buf, const char *format, va_list ap);
253 void (*printf_to_smart_str_function)(smart_str *buf, const char *format, va_list ap);
346 extern void (*zend_printf_to_smart_string)(smart_string *buf, const char *format, va_list ap);
347 extern void (*zend_printf_to_smart_str)(smart_str *buf, const char *format, va_list ap);
/php-src/ext/com_dotnet/
H A Dcom_wrapper.c71 char buf[4096]; in trace() local
73 snprintf(buf, sizeof(buf), "T=%08x ", GetCurrentThreadId()); in trace()
74 OutputDebugString(buf); in trace()
77 vsnprintf(buf, sizeof(buf), fmt, ap); in trace()
79 OutputDebugString(buf); in trace()
/php-src/ext/pdo_sqlite/
H A Dpdo_sqlite.c136 static ssize_t php_pdosqlite3_stream_write(php_stream *stream, const char *buf, size_t count) in php_pdosqlite3_stream_write() argument
150 if (sqlite3_blob_write(sqlite3_stream->blob, buf, count, sqlite3_stream->position) != SQLITE_OK) { in php_pdosqlite3_stream_write()
165 static ssize_t php_pdosqlite3_stream_read(php_stream *stream, char *buf, size_t count) in php_pdosqlite3_stream_read() argument
174 if (sqlite3_blob_read(sqlite3_stream->blob, buf, count, sqlite3_stream->position) != SQLITE_OK) { in php_pdosqlite3_stream_read()
/php-src/ext/sockets/
H A Dmulticast.c750 char *buf = NULL, local
763 buf = ecalloc(size, 1);
765 if_conf.ifc_buf = buf;
779 efree(buf);
780 buf = NULL;
821 efree(buf);
835 if (buf != NULL)
836 efree(buf);
/php-src/win32/
H A Dwinutil.h32 PHP_WINUTIL_API int php_win32_get_random_bytes(unsigned char *buf, size_t size);
/php-src/ext/opcache/jit/ir/dynasm/
H A Ddasm_x86.h56 int *buf; /* True buffer pointer. */ member
110 if (D->sections[i].buf) in dasm_free()
111 DASM_M_FREE(Dst, D->sections[i].buf, D->sections[i].bsize); in dasm_free()
146 D->sections[i].rbuf = DASM_PTR_SUB(D->sections[i].buf, D->sections[i].pos); in dasm_setup()
175 DASM_M_GROW(Dst, int, sec->buf, sec->bsize, in dasm_put()
177 sec->rbuf = sec->buf - DASM_POS2BIAS(pos); in dasm_put()
405 int *b = sec->buf; in dasm_encode()
H A Ddasm_arm64.h60 int *buf; /* True buffer pointer. */ member
114 if (D->sections[i].buf) in dasm_free()
115 DASM_M_FREE(Dst, D->sections[i].buf, D->sections[i].bsize); in dasm_free()
150 D->sections[i].rbuf = DASM_PTR_SUB(D->sections[i].buf, D->sections[i].pos); in dasm_setup()
229 DASM_M_GROW(Dst, int, sec->buf, sec->bsize, in dasm_put()
231 sec->rbuf = sec->buf - DASM_POS2BIAS(pos); in dasm_put()
434 int *b = sec->buf; in dasm_encode()
/php-src/ext/zlib/tests/
H A Dinflate_get_read_len.phpt16 $buf = inflate_add($ctx, $compressed);
/php-src/ext/standard/
H A Duser_filters.c362 …gl(Z_OBJCE_P(return_value), Z_OBJ_P(return_value), ZEND_STRL("data"), bucket->buf, bucket->buflen); in PHP_FUNCTION()
405 bucket->buf = perealloc(bucket->buf, Z_STRLEN_P(pzdata), bucket->is_persistent); in php_stream_bucket_attach()
408 memcpy(bucket->buf, Z_STRVAL_P(pzdata), bucket->buflen); in php_stream_bucket_attach()
466 …gl(Z_OBJCE_P(return_value), Z_OBJ_P(return_value), ZEND_STRL("data"), bucket->buf, bucket->buflen); in PHP_FUNCTION()
H A Durl_scanner_ex.h41 smart_str buf; member
/php-src/main/
H A Dmain.c893 return PHPWRITE(buf, size); in php_write()
1178 buf_len = strlen(buf); in php_win32_docref1_from_error()
1180 buf[buf_len - 1] = '\0'; in php_win32_docref1_from_error()
1181 buf[buf_len - 2] = '\0'; in php_win32_docref1_from_error()
1184 php_win32_error_msg_free(buf); in php_win32_docref1_from_error()
1190 php_win32_error_msg_free(buf); in php_win32_docref2_from_error()
1370 zend_string_free(buf); in php_error_cb()
2031 char buf[1024]; in dummy_invalid_parameter_handler() local
2041 … len = _snprintf(buf, sizeof(buf)-1, "Invalid parameter detected in CRT function '%ws'", function); in dummy_invalid_parameter_handler()
2044 len = _snprintf(buf, sizeof(buf)-1, "Invalid CRT parameter detected (function not known)"); in dummy_invalid_parameter_handler()
[all …]
H A Drfc1867.c230 char *buf = self->buffer + self->bytes_in_buffer; in fill_buffer() local
232 actual_read = (int)sapi_module.read_post(buf, bytes_to_read); in fill_buffer()
580 static size_t multipart_buffer_read(multipart_buffer *self, char *buf, size_t bytes, int *end) in multipart_buffer_read() argument
607 memcpy(buf, self->buf_begin, len); in multipart_buffer_read()
608 buf[len] = 0; in multipart_buffer_read()
610 if (bound && len > 0 && buf[len-1] == '\r') { in multipart_buffer_read()
611 buf[--len] = 0; in multipart_buffer_read()
628 char buf[FILLUNIT], *out=NULL; in multipart_buffer_read_body() local
631 while((read_bytes = multipart_buffer_read(self, buf, sizeof(buf), NULL))) { in multipart_buffer_read_body()
633 memcpy(out + total_bytes, buf, read_bytes); in multipart_buffer_read_body()
/php-src/main/streams/
H A Dphp_stream_filter_api.h44 char *buf; member
66 PHPAPI php_stream_bucket *php_stream_bucket_new(php_stream *stream, char *buf, size_t buflen, uint8…
/php-src/build/
H A Dax_func_which_gethostbyname_r.m4104 char buf@<:@1024@:>@;
107 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
124 char buf@<:@1024@:>@;
127 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
/php-src/ext/pdo_dblib/
H A Ddblib_stmt.c240 char buf[16]; in pdo_dblib_stmt_describe() local
243 len = snprintf(buf, sizeof(buf), "computed%d", S->computed_column_name_count); in pdo_dblib_stmt_describe()
244 col->name = zend_string_init(buf, len, 0); in pdo_dblib_stmt_describe()
/php-src/ext/mbstring/
H A Dphp_unicode.c293 mb_convert_buf buf; in php_unicode_convert_case() local
294 mb_convert_buf_init(&buf, in_len + 1, illegal_substchar, illegal_mode); in php_unicode_convert_case()
469 dst_encoding->from_wchar(converted_buf, p - converted_buf, &buf, !in_len); in php_unicode_convert_case()
472 return mb_convert_buf_result(&buf, dst_encoding); in php_unicode_convert_case()
/php-src/sapi/litespeed/
H A Dlscriu.c383 char buf[0x1000]; in LSCRIU_Restored_Error() local
384 vsnprintf(buf, sizeof(buf), format, ap); in LSCRIU_Restored_Error()
398 buf); in LSCRIU_Restored_Error()
/php-src/ext/openssl/
H A Dxp_ssl.c535 char buf[1024]; in php_openssl_matches_common_name() local
541 cert_name_len = X509_NAME_get_text_by_NID(cert_name, NID_commonName, buf, sizeof(buf)); in php_openssl_matches_common_name()
545 } else if ((size_t)cert_name_len != strlen(buf)) { in php_openssl_matches_common_name()
552 cert_name_len, buf, subject_name); in php_openssl_matches_common_name()
665 memcpy(buf, Z_STRVAL_P(val), Z_STRLEN_P(val)+1); in php_openssl_passwd_callback()
2027 return php_openssl_sockop_io( 1, stream, buf, count ); in php_openssl_sockop_read()
2033 return php_openssl_sockop_io( 0, stream, (char*)buf, count ); in php_openssl_sockop_write()
2197 nr_bytes = php_stream_socket_ops.read(stream, buf, count); in php_openssl_sockop_io()
2450 char buf; in php_openssl_sockop_set_option() local
2527 int n = SSL_peek(sslsock->ssl_handle, &buf, sizeof(buf)); in php_openssl_sockop_set_option()
[all …]
/php-src/ext/opcache/
H A Dshared_alloc_win32.c51 char *buf = php_win32_error_to_msg(err); in zend_win_error_message() local
55 ev_msgs[1] = buf; in zend_win_error_message()
69 php_win32_error_msg_free(buf); in zend_win_error_message()

Completed in 97 milliseconds

12345678910>>...15