Home
last modified time | relevance | path

Searched refs:ms (Results 1 – 25 of 50) sorted by relevance

12

/PHP-8.2/ext/fileinfo/libmagic/
H A Dmagic.c114 if (ms == NULL) in magic_close()
125 if (ms == NULL) in magic_load()
133 if (ms == NULL) in magic_compile()
141 if (ms == NULL) in magic_check()
149 if (ms == NULL) in magic_list()
162 if (ms == NULL) in magic_descriptor()
173 if (ms == NULL) in magic_file()
181 if (ms == NULL) in magic_stream()
265 if (ms == NULL) in magic_buffer()
285 return (ms->event_flags & EVENT_HAD_ERR) ? ms->o.buf : NULL; in magic_error()
[all …]
H A Dfuncs.c73 efree(ms->o.buf); in file_clearbuf()
74 ms->o.buf = NULL; in file_clearbuf()
75 ms->o.blen = 0; in file_clearbuf()
167 ms->o.buf = buf; in file_vprintf()
168 ms->o.blen = len; in file_vprintf()
199 if (ms->o.buf && *ms->o.buf) in file_error_core()
227 file_error_core(ms, 0, f, va, ms->line); in file_magerror()
526 ms->error = -1; in file_reset()
605 for (np = ms->o.pbuf, op = ms->o.buf; *op;) { in file_getbuffer()
622 len = (ms->c.len = 20 + level) * sizeof(*ms->c.li); in file_check_mem()
[all …]
H A Dfsmagic.c78 if (file_printf(ms, "inode/%s", str) == -1) in handle_mime()
93 int mime = ms->flags & MAGIC_MIME; in file_fsmagic()
103 if (ms->flags & MAGIC_ERROR) { in file_fsmagic()
107 if (file_printf(ms, "cannot open `%s' (%s)", in file_fsmagic()
141 if ((ms->flags & MAGIC_DEVICES) != 0) { in file_fsmagic()
172 if((ms->flags & MAGIC_DEVICES) != 0) in file_fsmagic()
175 if (handle_mime(ms, mime, "fifo") == -1) in file_fsmagic()
185 if (handle_mime(ms, mime, "door") == -1) in file_fsmagic()
195 if (ms->flags & MAGIC_ERROR) { in file_fsmagic()
206 if (handle_mime(ms, mime, "socket") == -1) in file_fsmagic()
[all …]
H A Dapptype.c57 file_error(ms, errno, "cannot create tempnam"); in file_os2_apptype()
109 if (file_printf(ms, "32-bit ") == -1) in file_os2_apptype()
119 if (file_printf(ms, "protected ") == -1) in file_os2_apptype()
121 if (file_printf(ms, "DLL") == -1) in file_os2_apptype()
124 if (file_printf(ms, "Windows executable") == -1) in file_os2_apptype()
134 if (file_printf(ms, "DOS executable") == -1) in file_os2_apptype()
138 if (file_printf(ms, ", magic(4)-> ") == -1) in file_os2_apptype()
143 if (file_printf(ms, "bound executable") == -1) in file_os2_apptype()
146 if (file_printf(ms, "PM executable") == -1) in file_os2_apptype()
159 if (file_printf(ms, " [WINDOWCOMPAT]") == -1) in file_os2_apptype()
[all …]
H A Dsoftmagic.c655 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
673 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
691 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
701 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
710 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
719 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
728 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
783 file_oomem(ms, ms->search.rm_len); in mprint()
788 rval = file_printf(ms, F(ms, desc, "%s"), in mprint()
815 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
[all …]
H A Dreadcdf.c46 #define NOTMIME(ms) (((ms)->flags & MAGIC_MIME) == 0) argument
160 if (NOTMIME(ms) && file_printf(ms, ", %s: %hd", buf, in cdf_file_property_info()
165 if (NOTMIME(ms) && file_printf(ms, ", %s: %d", buf, in cdf_file_property_info()
170 if (NOTMIME(ms) && file_printf(ms, ", %s: %u", buf, in cdf_file_property_info()
175 if (NOTMIME(ms) && file_printf(ms, ", %s: %g", buf, in cdf_file_property_info()
180 if (NOTMIME(ms) && file_printf(ms, ", %s: %g", buf, in cdf_file_property_info()
224 if (NOTMIME(ms) && file_printf(ms, in cdf_file_property_info()
235 if (NOTMIME(ms) && file_printf(ms, in cdf_file_property_info()
265 if (NOTMIME(ms)) { in cdf_file_catalog()
299 if (NOTMIME(ms)) { in cdf_file_summary_info()
[all …]
H A Dascmagic.c115 int mime = ms->flags & MAGIC_MIME; in file_ascmagic_with_encoding()
147 file_oomem(ms, mlen); in file_ascmagic_with_encoding()
212 if (seen_cr && nbytes < ms->bytes_max) in file_ascmagic_with_encoding()
219 len = file_printedlen(ms); in file_ascmagic_with_encoding()
245 if (file_printf(ms, ", ") == -1) in file_ascmagic_with_encoding()
293 if (file_printf(ms, " no") == -1) in file_ascmagic_with_encoding()
300 if (file_printf(ms, ",") == -1) in file_ascmagic_with_encoding()
304 if (file_printf(ms, " CR") == -1) in file_ascmagic_with_encoding()
307 if (file_printf(ms, ",") == -1) in file_ascmagic_with_encoding()
311 if (file_printf(ms, " LF") == -1) in file_ascmagic_with_encoding()
[all …]
H A Delfclass.h35 notecount = ms->elf_notes_max;
40 if (phnum > ms->elf_phnum_max)
43 if (dophn_core(ms, clazz, swap, fd,
53 if (phnum > ms->elf_phnum_max)
54 return toomany(ms, "program", phnum);
56 if (shnum > ms->elf_shnum_max)
57 return toomany(ms, "section", shnum);
58 if (dophn_exec(ms, clazz, swap, fd,
66 if (shnum > ms->elf_shnum_max)
68 if (doshn(ms, clazz, swap, fd,
[all …]
H A Dapprentice.c487 if (ms == NULL) in file_ms_free()
497 if (ms->c.li) { in file_ms_free()
500 efree(ms); in file_ms_free()
518 ms->o.buf = ms->o.pbuf = NULL; in file_ms_alloc()
520 len = (ms->c.len = 10) * sizeof(*ms->c.li); in file_ms_alloc()
530 ms->line = 0; in file_ms_alloc()
539 return ms; in file_ms_alloc()
541 efree(ms); in file_ms_alloc()
635 file_oomem(ms, sizeof(*ms->mlist[i])); in file_apprentice()
650 file_oomem(ms, sizeof(*ms->mlist[i])); in file_apprentice()
[all …]
H A Dder.c267 const uint8_t *b = RCAST(const uint8_t *, ms->search.s); in der_offs()
268 size_t offs = 0, len = ms->search.s_len ? ms->search.s_len : nbytes; in der_offs()
285 offs += ms->offset + m->offset; in der_offs()
290 ms->c.li[i].off); in der_offs()
297 ms->c.li[m->cont_level - 1].off)); in der_offs()
303 der_cmp(struct magic_set *ms, struct magic *m) in der_cmp() argument
307 size_t offs = 0, len = ms->search.s_len; in der_cmp()
329 if ((ms->flags & MAGIC_DEBUG) != 0) in der_cmp()
354 if ((ms->flags & MAGIC_DEBUG) != 0) in der_cmp()
365 if ((ms->flags & MAGIC_DEBUG) != 0) in der_cmp()
[all …]
H A Dis_csv.c133 file_is_csv(struct magic_set *ms, const struct buffer *b, int looks_text) in file_is_csv() argument
137 int mime = ms->flags & MAGIC_MIME; in file_is_csv()
142 if ((ms->flags & (MAGIC_APPLE|MAGIC_EXTENSION)) != 0) in file_is_csv()
152 if (file_printf(ms, "text/csv") == -1) in file_is_csv()
157 if (file_printf(ms, "CSV text") == -1) in file_is_csv()
H A Dcompress.c234 int mime = ms->flags & MAGIC_MIME; in format_decompression_error()
255 int mime = ms->flags & MAGIC_MIME; in file_zmagic()
262 if ((ms->flags & MAGIC_COMPRESS) == 0) in file_zmagic()
295 ms->flags &= ~MAGIC_COMPRESS; in file_zmagic()
307 if ((file_printf(ms, in file_zmagic()
310 if ((pb = file_push_buffer(ms)) == NULL) in file_zmagic()
317 if (file_pop_buffer(ms, pb) != NULL) in file_zmagic()
328 if (!mime && file_printf(ms, ")") == -1) in file_zmagic()
349 ms->flags |= MAGIC_COMPRESS; in file_zmagic()
476 file_error(ms, errno, in file_pipe2file()
[all …]
H A Dis_tar.c63 file_is_tar(struct magic_set *ms, const struct buffer *b) in file_is_tar() argument
72 int mime = ms->flags & MAGIC_MIME; in file_is_tar()
74 if ((ms->flags & (MAGIC_APPLE|MAGIC_EXTENSION)) != 0) in file_is_tar()
84 if (file_printf(ms, "%s", mime ? "application/x-tar" : in file_is_tar()
H A Dis_json.c394 file_is_json(struct magic_set *ms, const struct buffer *b) in file_is_json() argument
399 int mime = ms->flags & MAGIC_MIME; in file_is_json()
402 if ((ms->flags & (MAGIC_APPLE|MAGIC_EXTENSION)) != 0) in file_is_json()
413 if (file_printf(ms, "application/json") == -1) in file_is_json()
417 if (file_printf(ms, "JSON data") == -1) in file_is_json()
421 if (file_printf(ms, " (%" SIZE_T_FORMAT "u object%s, %" SIZE_T_FORMAT in file_is_json()
/PHP-8.2/main/streams/
H A Dmemory.c53 ms->fpos = ZSTR_LEN(ms->data); in php_stream_memory_write()
55 if (ms->fpos + count > ZSTR_LEN(ms->data)) { in php_stream_memory_write()
56 ms->data = zend_string_realloc(ms->data, ms->fpos + count, 0); in php_stream_memory_write()
77 if (ms->fpos == ZSTR_LEN(ms->data)) { in php_stream_memory_read()
82 count = ZSTR_LEN(ms->data) - ms->fpos; in php_stream_memory_read()
130 ms->fpos = ms->fpos + offset; in php_stream_memory_seek()
137 ms->fpos = ZSTR_LEN(ms->data); in php_stream_memory_seek()
141 ms->fpos = ms->fpos + offset; in php_stream_memory_seek()
149 ms->fpos = ZSTR_LEN(ms->data); in php_stream_memory_seek()
160 ms->fpos = ZSTR_LEN(ms->data); in php_stream_memory_seek()
[all …]
/PHP-8.2/ext/fileinfo/
H A Dlibmagic.patch129 - free(ms->c.li);
130 - free(ms);
140 + efree(ms);
155 len = (ms->c.len = 10) * sizeof(*ms->c.li);
164 return ms;
166 - free(ms);
167 + efree(ms);
257 - file_oomem(ms, sizeof(*ms->mlist[i]));
304 + file_oomem(ms, sizeof(*ms->mlist[i]));
2253 len = (ms->c.len = 20 + level) * sizeof(*ms->c.li);
[all …]
/PHP-8.2/sapi/fpm/fpm/
H A Dfpm_events.c392 struct timeval ms; in fpm_event_loop() local
404 timerclear(&ms); in fpm_event_loop()
409 if (!timerisset(&ms)) { in fpm_event_loop()
410 ms = q->ev->timeout; in fpm_event_loop()
412 if (timercmp(&q->ev->timeout, &ms, <)) { in fpm_event_loop()
413 ms = q->ev->timeout; in fpm_event_loop()
420 if (!timerisset(&ms) || timercmp(&ms, &now, <) || timercmp(&ms, &now, ==)) { in fpm_event_loop()
423 timersub(&ms, &now, &tmp); in fpm_event_loop()
/PHP-8.2/ext/standard/tests/
H A Dbug64370_var1.phpt10 echo "created in $d ms\n";
18 created in %f ms
/PHP-8.2/ext/fileinfo/tests/
H A Dfinfo_file_002.phpt27 string(14) "image/x-ms-bmp"
41 string(29) "application/vnd.ms-powerpoint"
H A Dbug79756.phpt14 application/vnd.ms-excel; charset=binary
H A Dbug74170.phpt22 string(29) "application/vnd.ms-powerpoint"
/PHP-8.2/ext/date/tests/
H A Dbug64887.phpt8 '+1 ms',
H A Dbug-gh11368.phpt13 $datetime->modify('-100 ms');
H A Ddate_time_fractions.phpt8 $ms = date_create()->format('u');
9 echo ($ms = 0) ? "microseconds = false\n" : "microseconds = true\n";
/PHP-8.2/ext/pdo_firebird/tests/
H A Dpayload_server.inc16 usleep(50000); // 50ms per try
45 usleep(50000); // 50ms per try

Completed in 81 milliseconds

12