Home
last modified time | relevance | path

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

12

/PHP-8.0/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.c70 efree(ms->o.buf); in file_clearbuf()
71 ms->o.buf = NULL; in file_clearbuf()
72 ms->o.blen = 0; in file_clearbuf()
147 ms->o.buf = buf; in file_printf()
207 file_error_core(ms, 0, f, va, ms->line); in file_magerror()
485 ms->error = -1; in file_reset()
564 for (np = ms->o.pbuf, op = ms->o.buf; *op;) { in file_getbuffer()
581 len = (ms->c.len = 20 + level) * sizeof(*ms->c.li); in file_check_mem()
582 ms->c.li = CAST(struct level_info *, (ms->c.li == NULL) ? in file_check_mem()
601 return ms->o.buf == NULL ? 0 : strlen(ms->o.buf); in file_printedlen()
[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.c585 if (file_printf(ms, F(ms, desc, "%d"), in mprint()
607 if (file_printf(ms, F(ms, desc, "%u"), in mprint()
630 if (file_printf(ms, F(ms, desc, "%u"), in mprint()
666 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
712 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
722 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
731 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
740 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
749 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
830 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.c114 int mime = ms->flags & MAGIC_MIME; in file_ascmagic_with_encoding()
146 file_oomem(ms, mlen); in file_ascmagic_with_encoding()
206 if (seen_cr && nbytes < ms->bytes_max) in file_ascmagic_with_encoding()
213 len = file_printedlen(ms); in file_ascmagic_with_encoding()
239 if (file_printf(ms, ", ") == -1) in file_ascmagic_with_encoding()
285 if (file_printf(ms, " no") == -1) in file_ascmagic_with_encoding()
292 if (file_printf(ms, ",") == -1) in file_ascmagic_with_encoding()
296 if (file_printf(ms, " CR") == -1) in file_ascmagic_with_encoding()
299 if (file_printf(ms, ",") == -1) in file_ascmagic_with_encoding()
303 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.c488 if (ms == NULL) in file_ms_free()
498 if (ms->c.li) { in file_ms_free()
501 efree(ms); in file_ms_free()
519 ms->o.buf = ms->o.pbuf = NULL; in file_ms_alloc()
521 len = (ms->c.len = 10) * sizeof(*ms->c.li); in file_ms_alloc()
531 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.c268 const uint8_t *b = RCAST(const uint8_t *, ms->search.s); in der_offs()
269 size_t offs = 0, len = ms->search.s_len ? ms->search.s_len : nbytes; in der_offs()
286 offs += ms->offset + m->offset; in der_offs()
291 ms->c.li[i].off); in der_offs()
298 ms->c.li[m->cont_level - 1].off)); in der_offs()
304 der_cmp(struct magic_set *ms, struct magic *m) in der_cmp() argument
308 size_t offs = 0, len = ms->search.s_len; in der_cmp()
330 if ((ms->flags & MAGIC_DEBUG) != 0) in der_cmp()
355 if ((ms->flags & MAGIC_DEBUG) != 0) in der_cmp()
366 if ((ms->flags & MAGIC_DEBUG) != 0) in der_cmp()
[all …]
H A Dis_csv.c134 file_is_csv(struct magic_set *ms, const struct buffer *b, int looks_text) in file_is_csv() argument
138 int mime = ms->flags & MAGIC_MIME; in file_is_csv()
143 if ((ms->flags & (MAGIC_APPLE|MAGIC_EXTENSION)) != 0) in file_is_csv()
153 if (file_printf(ms, "application/csv") == -1) in file_is_csv()
158 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.0/main/streams/
H A Dmemory.c53 ms->fpos = ms->fsize; in php_stream_memory_write()
55 if (ms->fpos + count > ms->fsize) { in php_stream_memory_write()
63 ms->fsize = ms->fpos + count; in php_stream_memory_write()
83 if (ms->fpos == ms->fsize) { in php_stream_memory_read()
88 count = ms->fsize - ms->fpos; in php_stream_memory_read()
140 ms->fpos = ms->fpos + offset; in php_stream_memory_seek()
147 ms->fpos = ms->fsize; in php_stream_memory_seek()
151 ms->fpos = ms->fpos + offset; in php_stream_memory_seek()
159 ms->fpos = ms->fsize; in php_stream_memory_seek()
170 ms->fpos = ms->fsize; in php_stream_memory_seek()
[all …]
/PHP-8.0/ext/fileinfo/
H A Dlibmagic.patch132 - free(ms);
142 + efree(ms);
157 len = (ms->c.len = 10) * sizeof(*ms->c.li);
166 return ms;
168 - free(ms);
169 + efree(ms);
259 - file_oomem(ms, sizeof(*ms->mlist[i]));
306 + file_oomem(ms, sizeof(*ms->mlist[i]));
2423 - if (ms->o.buf && *ms->o.buf)
3455 - file_oomem(ms, ms->search.rm_len);
[all …]
H A Dmagicdata.patch54 +!:mime image/x-ms-bmp
63 +!:mime image/x-ms-bmp
72 +!:mime image/x-ms-bmp
81 +!:mime image/x-ms-bmp
90 +!:mime image/x-ms-bmp
/PHP-8.0/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.0/ext/standard/tests/
H A Dbug64370_var1.phpt10 echo "created in $d ms\n";
18 created in %f ms
/PHP-8.0/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.phpt16 application/vnd.ms-excel; charset=binary
H A Dbug74170.phpt22 string(29) "application/vnd.ms-powerpoint"
/PHP-8.0/ext/date/tests/
H A Dbug64887.phpt8 '+1 ms',
/PHP-8.0/ext/pdo_firebird/tests/
H A Dpayload_server.inc16 usleep(50000); // 50ms per try
45 usleep(50000); // 50ms per try
/PHP-8.0/ext/curl/tests/
H A Dserver.inc23 usleep(50000); // 50ms per try
52 usleep(50000); // 50ms per try

Completed in 68 milliseconds

12