Home
last modified time | relevance | path

Searched defs:buf (Results 1 – 25 of 272) sorted by relevance

1234567891011

/php-src/ext/opcache/
H A Dzend_file_cache.c306 void *buf,
349 void *buf)
385 void *buf)
653 void *buf)
732 void *buf)
956 void *buf)
1097 void *mem, *buf; local
1189 void *buf,
1234 void *buf)
1807 void *buf)
[all …]
H A Dzend_accelerator_util_funcs.c458 #define ADLER32_SCALAR_DO1(buf) {s1 += *(buf); s2 += s1;} argument
459 #define ADLER32_SCALAR_DO2(buf, i) ADLER32_SCALAR_DO1(buf + i); ADLER32_SCALAR_DO1(buf + i + 1); argument
460 #define ADLER32_SCALAR_DO4(buf, i) ADLER32_SCALAR_DO2(buf, i); ADLER32_SCALAR_DO2(buf, i + 2); argument
461 #define ADLER32_SCALAR_DO8(buf, i) ADLER32_SCALAR_DO4(buf, i); ADLER32_SCALAR_DO4(buf, i + 4); argument
462 #define ADLER32_SCALAR_DO16(buf) ADLER32_SCALAR_DO8(buf, 0); ADLER32_SCALAR_DO8(buf, 8); argument
464 static zend_always_inline void adler32_do16_loop(unsigned char *buf, unsigned char *end, unsigned i… in adler32_do16_loop()
515 unsigned int zend_adler32(unsigned int checksum, unsigned char *buf, uint32_t len) in zend_adler32()
/php-src/ext/filter/
H A Dsanitizing_filters.c103 zend_string *buf; in php_filter_strip() local
118 ZSTR_VAL(buf)[c] = str[i]; in php_filter_strip() local
123 ZSTR_VAL(buf)[c] = '\0'; in php_filter_strip() local
150 zend_string *buf; in filter_map_apply() local
157 ZSTR_VAL(buf)[c] = str[i]; in filter_map_apply() local
162 ZSTR_VAL(buf)[c] = '\0'; in filter_map_apply() local
247 zend_string *buf; in php_filter_full_special_chars() local
363 zend_string *buf = php_addslashes(Z_STR_P(value)); in php_filter_add_slashes() local
/php-src/ext/json/
H A Djson_encoder.c58 static inline void php_json_pretty_print_char(smart_str *buf, int options, char c) /* {{{ */ in php_json_pretty_print_char()
66 static inline void php_json_pretty_print_indent(smart_str *buf, int options, php_json_encoder *enco… in php_json_pretty_print_indent()
93 static inline void php_json_encode_double(smart_str *buf, double d, int options) /* {{{ */ in php_json_encode_double()
123 static zend_result php_json_encode_array(smart_str *buf, zval *val, int options, php_json_encoder *… in php_json_encode_array()
370 smart_str *buf, const char *s, size_t len, in php_json_escape_string()
582 static zend_result php_json_encode_serializable_object(smart_str *buf, zval *val, int options, php_… in php_json_encode_serializable_object()
647 static zend_result php_json_encode_serializable_enum(smart_str *buf, zval *val, int options, php_js… in php_json_encode_serializable_enum()
660 zend_result php_json_encode_zval(smart_str *buf, zval *val, int options, php_json_encoder *encoder)… in php_json_encode_zval()
/php-src/ext/fileinfo/libmagic/
H A Dprint.c264 file_fmtvarint(char *buf, size_t blen, const unsigned char *us, int t) in file_fmtvarint()
272 file_fmtdatetime(char *buf, size_t bsize, uint64_t v, int flags) in file_fmtdatetime()
314 file_fmtdate(char *buf, size_t bsize, uint16_t v) in file_fmtdate()
333 file_fmttime(char *buf, size_t bsize, uint16_t v) in file_fmttime()
353 file_fmtnum(char *buf, size_t blen, const char *us, int base) in file_fmtnum()
H A Dencoding.c79 const unsigned char *buf = CAST(const unsigned char *, b->fbuf); in file_encoding() local
350 file_looks_utf8(const unsigned char *buf, size_t nbytes, file_unichar_t *ubuf, in file_looks_utf8()
431 looks_utf8_with_BOM(const unsigned char *buf, size_t nbytes, in looks_utf8_with_BOM()
441 looks_utf7(const unsigned char *buf, size_t nbytes, file_unichar_t *ubuf, in looks_utf7()
651 from_ebcdic(const unsigned char *buf, size_t nbytes, unsigned char *out) in from_ebcdic()
/php-src/ext/dba/libflatfile/
H A Dflatfile.c84 char buf[16]; in flatfile_fetch() local
105 char *buf = emalloc(buf_size); in flatfile_delete() local
154 char *buf = emalloc(buf_size); in flatfile_findkey() local
198 char *buf = emalloc(buf_size); in flatfile_firstkey() local
240 char *buf = emalloc(buf_size); in flatfile_nextkey() local
/php-src/ext/session/
H A Dmod_files.c107 static char *ps_files_path_create(char *buf, size_t buflen, ps_files *data, const zend_string *key) in ps_files_path_create()
154 char buf[MAXPATHLEN]; in ps_files_open() local
251 char *buf = ZSTR_VAL(val); in ps_files_write() local
285 char buf[MAXPATHLEN]; in ps_files_cleanup_dir() local
337 char buf[MAXPATHLEN]; in ps_files_key_exists() local
498 char *buf = ZSTR_VAL(*val); in PS_READ_FUNC() local
564 char buf[MAXPATHLEN]; in PS_UPDATE_TIMESTAMP_FUNC() local
595 char buf[MAXPATHLEN]; in PS_DESTROY_FUNC() local
/php-src/main/
H A Dreentrancy.c55 PHPAPI char *php_ctime_r(const time_t *clock, char *buf) in php_ctime_r()
62 PHPAPI char *php_asctime_r(const struct tm *tm, char *buf) in php_asctime_r()
85 PHPAPI char *php_ctime_r(const time_t *clock, char *buf) in php_ctime_r()
92 PHPAPI char *php_asctime_r(const struct tm *tm, char *buf) in php_asctime_r()
131 PHPAPI char *php_ctime_r(const time_t *clock, char *buf) in php_ctime_r()
152 PHPAPI char *php_asctime_r(const struct tm *tm, char *buf) in php_asctime_r()
H A Dsnprintf.c272 bool add_dp, int precision, char dec_point, bool * is_negative, char *buf, size_t *len) in php_conv_fp()
1073 static size_t strx_printv(char *buf, size_t len, const char *format, va_list ap) /* {{{ */ in strx_printv()
1102 PHPAPI int ap_php_slprintf(char *buf, size_t len, const char *format,...) /* {{{ */ in ap_php_slprintf()
1118 PHPAPI int ap_php_vslprintf(char *buf, size_t len, const char *format, va_list ap) /* {{{ */ in ap_php_vslprintf()
1129 PHPAPI int ap_php_snprintf(char *buf, size_t len, const char *format,...) /* {{{ */ in ap_php_snprintf()
1141 PHPAPI int ap_php_vsnprintf(char *buf, size_t len, const char *format, va_list ap) /* {{{ */ in ap_php_vsnprintf()
1148 PHPAPI int ap_php_vasprintf(char **buf, const char *format, va_list ap) /* {{{ */ in ap_php_vasprintf()
1172 PHPAPI int ap_php_asprintf(char **buf, const char *format, ...) /* {{{ */ in ap_php_asprintf()
/php-src/Zend/
H A Dzend_stream.c28 static ssize_t zend_stream_stdio_reader(void *handle, char *buf, size_t len) /* {{{ */ in zend_stream_stdio_reader()
42 zend_stat_t buf = {0}; in zend_stream_stdio_fsizer() local
101 char buf; in zend_stream_getc() local
109 static ssize_t zend_stream_read(zend_file_handle *file_handle, char *buf, size_t len) /* {{{ */ in zend_stream_read()
127 ZEND_API zend_result zend_stream_fixup(zend_file_handle *file_handle, char **buf, size_t *len) /* {… in zend_stream_fixup()
/php-src/ext/dba/libcdb/
H A Dcdb.c46 char buf[32]; in cdb_match() local
66 uint32 cdb_hash(char *buf, unsigned int len) in cdb_hash()
102 int cdb_read(struct cdb *c, char *buf, unsigned int len, uint32 pos) in cdb_read()
129 char buf[8]; in cdb_findnext() local
H A Dcdb_make.c39 static int cdb_make_write(struct cdb_make *c, char *buf, uint32 sz) { in cdb_make_write()
104 char buf[8]; in cdb_make_addbegin() local
138 char buf[8]; in cdb_make_finish() local
/php-src/ext/mbstring/libmbfl/filters/
H A Dmbfilter_utf8.c446 static size_t mb_utf8_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t bufsize, u… in mb_utf8_to_wchar()
538 static void mb_wchar_to_utf8(uint32_t *in, size_t len, mb_convert_buf *buf, bool end) in mb_wchar_to_utf8()
831 static size_t mb_utf8_docomo_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t buf… in mb_utf8_docomo_to_wchar()
836 static void mb_wchar_to_utf8_docomo(uint32_t *in, size_t len, mb_convert_buf *buf, bool end) in mb_wchar_to_utf8_docomo()
908 static size_t mb_utf8_kddi_a_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t buf… in mb_utf8_kddi_a_to_wchar()
913 static void mb_wchar_to_utf8_kddi(uint32_t *in, size_t len, mb_convert_buf *buf, bool end, const un… in mb_wchar_to_utf8_kddi()
1005 static void mb_wchar_to_utf8_kddi_a(uint32_t *in, size_t len, mb_convert_buf *buf, bool end) in mb_wchar_to_utf8_kddi_a()
1010 static size_t mb_utf8_kddi_b_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t buf… in mb_utf8_kddi_b_to_wchar()
1015 static void mb_wchar_to_utf8_kddi_b(uint32_t *in, size_t len, mb_convert_buf *buf, bool end) in mb_wchar_to_utf8_kddi_b()
1020 static size_t mb_utf8_sb_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t bufsize… in mb_utf8_sb_to_wchar()
[all …]
H A Dmbfilter_utf16.c125 static size_t mb_utf16be_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t bufsize… in mb_utf16be_to_wchar()
130 static void mb_wchar_to_utf16be(uint32_t *in, size_t len, mb_convert_buf *buf, bool end) in mb_wchar_to_utf16be()
135 static size_t mb_utf16le_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t bufsize… in mb_utf16le_to_wchar()
140 static void mb_wchar_to_utf16le(uint32_t *in, size_t len, mb_convert_buf *buf, bool end) in mb_wchar_to_utf16le()
488 static size_t mb_utf16_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t bufsize, … in mb_utf16_to_wchar()
570 static void mb_wchar_to_utf16be_default(uint32_t *in, size_t len, mb_convert_buf *buf, bool end) in mb_wchar_to_utf16be_default()
648 static void mb_wchar_to_utf16le_default(uint32_t *in, size_t len, mb_convert_buf *buf, bool end) in mb_wchar_to_utf16le_default()
676 size_t mb_utf16be_to_wchar_avx2(unsigned char **in, size_t *in_len, uint32_t *buf, size_t bufsize, … in mb_utf16be_to_wchar_avx2()
800 void mb_wchar_to_utf16be_avx2(uint32_t *in, size_t len, mb_convert_buf *buf, bool end) in mb_wchar_to_utf16be_avx2()
873 size_t mb_utf16le_to_wchar_avx2(unsigned char **in, size_t *in_len, uint32_t *buf, size_t bufsize, … in mb_utf16le_to_wchar_avx2()
[all …]
H A Dmbfilter_ucs2.c241 static size_t mb_ucs2_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t bufsize, u… in mb_ucs2_to_wchar()
270 static size_t mb_ucs2be_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t bufsize,… in mb_ucs2be_to_wchar()
293 static void mb_wchar_to_ucs2be(uint32_t *in, size_t len, mb_convert_buf *buf, bool end) in mb_wchar_to_ucs2be()
312 static size_t mb_ucs2le_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t bufsize,… in mb_ucs2le_to_wchar()
335 static void mb_wchar_to_ucs2le(uint32_t *in, size_t len, mb_convert_buf *buf, bool end) in mb_wchar_to_ucs2le()
H A Dmbfilter_ucs4.c322 static size_t mb_ucs4_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t bufsize, u… in mb_ucs4_to_wchar()
353 static size_t mb_ucs4be_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t bufsize,… in mb_ucs4be_to_wchar()
378 static void mb_wchar_to_ucs4be(uint32_t *in, size_t len, mb_convert_buf *buf, bool end) in mb_wchar_to_ucs4be()
397 static size_t mb_ucs4le_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t bufsize,… in mb_ucs4le_to_wchar()
422 static void mb_wchar_to_ucs4le(uint32_t *in, size_t len, mb_convert_buf *buf, bool end) in mb_wchar_to_ucs4le()
H A Dmbfilter_utf32.c254 static size_t mb_utf32_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t bufsize, … in mb_utf32_to_wchar()
285 static size_t mb_utf32be_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t bufsize… in mb_utf32be_to_wchar()
315 static void mb_wchar_to_utf32be(uint32_t *in, size_t len, mb_convert_buf *buf, bool end) in mb_wchar_to_utf32be()
334 static size_t mb_utf32le_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t bufsize… in mb_utf32le_to_wchar()
364 static void mb_wchar_to_utf32le(uint32_t *in, size_t len, mb_convert_buf *buf, bool end) in mb_wchar_to_utf32le()
H A Dmbfilter_singlebyte.c159 static size_t mb_ascii_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t bufsize, … in mb_ascii_to_wchar()
174 static void mb_wchar_to_ascii(uint32_t *in, size_t len, mb_convert_buf *buf, bool end) in mb_wchar_to_ascii()
213 static size_t mb_8859_1_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t bufsize,… in mb_8859_1_to_wchar()
227 static void mb_wchar_to_8859_1(uint32_t *in, size_t len, mb_convert_buf *buf, bool end) in mb_wchar_to_8859_1()
529 static size_t mb_cp1252_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t bufsize,… in mb_cp1252_to_wchar()
549 static void mb_wchar_to_cp1252(uint32_t *in, size_t len, mb_convert_buf *buf, bool end) in mb_wchar_to_cp1252()
730 static size_t mb_armscii8_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t bufsiz… in mb_armscii8_to_wchar()
745 static void mb_wchar_to_armscii8(uint32_t *in, size_t len, mb_convert_buf *buf, bool end) in mb_wchar_to_armscii8()
/php-src/ext/standard/
H A Dvar.c444 #define buffer_append_spaces(buf, num_spaces) \ argument
510 PHPAPI zend_result php_var_export_ex(zval *struc, int level, smart_str *buf) /* {{{ */ in php_var_export_ex()
684 smart_str buf = {0}; in php_var_export() local
699 smart_str buf = {0}; in PHP_FUNCTION() local
778 static inline void php_var_serialize_long(smart_str *buf, zend_long val) /* {{{ */ in php_var_serialize_long()
790 static inline void php_var_serialize_string(smart_str *buf, char *str, size_t len) /* {{{ */ in php_var_serialize_string()
804 static inline bool php_var_serialize_class_name(smart_str *buf, zval *struc) /* {{{ */ in php_var_serialize_class_name()
1023 static void php_var_serialize_class(smart_str *buf, zval *struc, HashTable *ht, php_serialize_data_… in php_var_serialize_class()
1319 PHPAPI void php_var_serialize(smart_str *buf, zval *struc, php_serialize_data_t *data) /* {{{ */ in php_var_serialize()
1360 smart_str buf = {0}; in PHP_FUNCTION() local
[all …]
/php-src/ext/dba/
H A Ddba_cdb.c136 # define php_cdb_read(cdb, buf, len, pos) cdb_read(cdb, buf, len, pos) argument
140 # define php_cdb_read(cdb, buf, len, pos) cdb_read(cdb, buf, len, pos) argument
209 # define cdb_file_read(fildes, buf, size) php_stream_read(fildes, buf, size) argument
211 # define cdb_file_read(fildes, buf, size) read(fildes, buf, size) argument
243 char buf[8]; in DBA_FIRSTKEY_FUNC() local
283 char buf[8]; in DBA_NEXTKEY_FUNC() local
/php-src/ext/mbstring/libmbfl/mbfl/
H A Dmbfl_encoding.h155 static inline void mb_convert_buf_init(mb_convert_buf *buf, size_t initsize, uint32_t repl_char, un… in mb_convert_buf_init()
165 #define MB_CONVERT_BUF_ENSURE(buf, out, limit, needed) \ argument
176 #define MB_CONVERT_BUF_STORE(buf, _out, _limit) (buf)->out = _out; (buf)->limit = _limit argument
178 #define MB_CONVERT_BUF_LOAD(buf, _out, _limit) _out = (buf)->out; _limit = (buf)->limit argument
180 #define MB_CONVERT_ERROR(buf, out, limit, bad_cp, conv_fn) \ argument
231 static inline zend_string* mb_convert_buf_result_raw(mb_convert_buf *buf) in mb_convert_buf_result_raw()
261 static inline zend_string* mb_convert_buf_result(mb_convert_buf *buf, const mbfl_encoding *enc) in mb_convert_buf_result()
272 static inline void mb_convert_buf_free(mb_convert_buf *buf) in mb_convert_buf_free()
277 static inline size_t mb_convert_buf_len(mb_convert_buf *buf) in mb_convert_buf_len()
282 static inline void mb_convert_buf_reset(mb_convert_buf *buf, size_t len) in mb_convert_buf_reset()
/php-src/ext/gd/libgd/
H A Dgd_io_ss.c79 static int sourceGetbuf (gdIOCtx * ctx, void *buf, int size) in sourceGetbuf()
105 unsigned char buf; in sourceGetchar() local
116 static int sinkPutbuf (gdIOCtx * ctx, const void *buf, int size) in sinkPutbuf()
/php-src/ext/com_dotnet/
H A Dcom_dotnet.c246 char buf[1024]; in PHP_METHOD() local
259 char buf[1024]; in PHP_METHOD() local
271 char buf[1024]; in PHP_METHOD() local
345 char buf[1024]; in PHP_METHOD() local
/php-src/sapi/fpm/fpm/
H A Dzlog.c132 static inline size_t zlog_truncate_buf(char *buf, size_t buf_size, size_t space_left) /* {{{ */ in zlog_truncate_buf()
140 int flags, char *buf, size_t buf_size, const char *fmt, va_list args) /* {{{ */ in zlog_external()
159 char *buf, size_t buf_size, int use_syslog) /* {{{ */ in zlog_buf_prefix()
200 char buf[MAX_BUF_LENGTH]; in vzlog() local
292 char *buf; in zlog_stream_buf_alloc_ex() local
319 struct zlog_stream *stream, const char *buf, size_t len, in zlog_stream_direct_write_ex()
341 struct zlog_stream *stream, const char *buf, size_t len) /* {{{ */ in zlog_stream_direct_write()
348 struct zlog_stream *stream, const char *buf, size_t len) /* {{{ */ in zlog_stream_unbuffered_write()
588 char buf[MAX_WRAPPING_PREFIX_LENGTH]; in zlog_stream_set_msg_prefix() local

Completed in 58 milliseconds

1234567891011