Lines Matching refs:size_t

95 #define ALLOC_CHUNK	(size_t)10
96 #define ALLOC_INCR (size_t)200
116 size_t len;
123 const size_t file_nformats = FILE_NAMES_SIZE;
125 const size_t file_nnames = FILE_NAMES_SIZE;
132 size_t, int);
135 private size_t apprentice_magic_strength(const struct magic *);
149 size_t);
164 private size_t magicsize = sizeof(struct magic);
170 size_t len;
186 const size_t len;
389 add_mlist(struct mlist *mlp, struct magic_map *map, size_t idx) in add_mlist()
416 size_t i; in apprentice_1()
467 size_t i; in file_ms_free()
488 size_t i, len; in file_ms_alloc()
490 if ((ms = CAST(struct magic_set *, ecalloc((size_t)1, in file_ms_alloc()
579 size_t i; in file_apprentice()
681 private size_t
685 size_t rv = 0; in nonmagic()
723 private size_t
727 size_t v, val = 2 * MULT; /* baseline strength */ in apprentice_magic_strength()
881 size_t sa = apprentice_magic_strength(ma->mp); in apprentice_sort()
882 size_t sb = apprentice_magic_strength(mb->mp); in apprentice_sort()
992 if (file_looks_utf8(m->value.us, (size_t)m->vallen, NULL, in set_test_type()
1013 size_t i = me->mp->type == FILE_NAME ? 1 : 0; in addentry()
1042 size_t len; in load_1()
1043 size_t lineno = 0; in load_1()
1075 size_t i; in load_1()
1078 if ((size_t)(len - 2) > bang[i].len && in load_1()
1141 static const size_t len = sizeof(text); in set_text_binary()
1194 size_t slen; in coalesce_entries()
1231 size_t files = 0, maxfiles = 0; in apprentice_load()
1279 size_t mlen; in apprentice_load()
1510 size_t len; in get_cond()
1719 size_t lineno, int action) in parse()
1724 size_t i; in parse()
1764 size_t cnt = me->max_count + ALLOC_CHUNK; in parse()
1777 static const size_t len = sizeof(*m) * ALLOC_CHUNK; in parse()
2169 zend_off_t off, size_t len, const char *name, const char *extra, int nt) in parse_extra()
2171 size_t i; in parse_extra()
2259 size_t len, cnt; in check_format_type()
2594 size_t plen = sizeof(m->value.s); in getstr()
2767 file_showstr(FILE *fp, const char *s, size_t len) in file_showstr()
2853 apprentice_buf(struct magic_set *ms, struct magic *buf, size_t len) in apprentice_buf()
2883 size_t i; in apprentice_map()
2929 map->len = (size_t)st.sb.st_size; in apprentice_map()
2934 if (php_stream_read(stream, map->p, (size_t)st.sb.st_size) != (size_t)st.sb.st_size) { in apprentice_map()
3081 static const size_t nm = sizeof(*map->nmagic) * MAGIC_SETS; in apprentice_compile()
3082 static const size_t m = sizeof(**map->magic); in apprentice_compile()
3083 size_t len; in apprentice_compile()
3273 protected size_t
3290 protected size_t
3293 size_t len = 0;