Home
last modified time | relevance | path

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

12

/PHP-7.3/ext/fileinfo/libmagic/
H A Dmagic.c120 if (ms == NULL) in magic_close()
131 if (ms == NULL) in magic_load()
139 if (ms == NULL) in magic_compile()
147 if (ms == NULL) in magic_check()
155 if (ms == NULL) in magic_list()
200 if (ms == NULL) in magic_descriptor()
211 if (ms == NULL) in magic_file()
219 if (ms == NULL) in magic_stream()
302 if (ms == NULL) in magic_buffer()
321 return (ms->event_flags & EVENT_HAD_ERR) ? ms->o.buf : NULL; in magic_error()
[all …]
H A Dfuncs.c75 efree(ms->o.buf); in file_printf()
78 ms->o.buf = buf; in file_printf()
97 efree(ms->o.buf); in file_error_core()
138 file_error_core(ms, 0, f, va, ms->line); in file_magerror()
342 if (ms->o.buf) { in file_reset()
351 ms->error = -1; in file_reset()
430 for (np = ms->o.pbuf, op = ms->o.buf; *op;) { in file_getbuffer()
447 len = (ms->c.len = 20 + level) * sizeof(*ms->c.li); in file_check_mem()
448 ms->c.li = CAST(struct level_info *, (ms->c.li == NULL) ? in file_check_mem()
467 return ms->o.buf == NULL ? 0 : strlen(ms->o.buf); in file_printedlen()
[all …]
H A Dfsmagic.c75 if (file_printf(ms, "inode/%s", str) == -1) in handle_mime()
90 int mime = ms->flags & MAGIC_MIME; in file_fsmagic()
105 if (ms->flags & MAGIC_ERROR) { in file_fsmagic()
114 if (ms->flags & MAGIC_ERROR) { in file_fsmagic()
150 if ((ms->flags & MAGIC_DEVICES) != 0) { in file_fsmagic()
181 if((ms->flags & MAGIC_DEVICES) != 0) in file_fsmagic()
184 if (handle_mime(ms, mime, "fifo") == -1) in file_fsmagic()
193 if (handle_mime(ms, mime, "door") == -1) in file_fsmagic()
202 if (ms->flags & MAGIC_ERROR) { in file_fsmagic()
213 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.c531 if (file_printf(ms, F(ms, desc, "%d"), in mprint()
553 if (file_printf(ms, F(ms, desc, "%u"), in mprint()
609 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
637 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
650 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
660 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
669 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
678 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
687 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
766 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
[all …]
H A Dascmagic.c109 int mime = ms->flags & MAGIC_MIME; in file_ascmagic_with_encoding()
141 file_oomem(ms, mlen); in file_ascmagic_with_encoding()
196 if (seen_cr && nbytes < ms->bytes_max) in file_ascmagic_with_encoding()
214 if (file_printedlen(ms)) { in file_ascmagic_with_encoding()
220 if (file_printf(ms, ", ") == -1) in file_ascmagic_with_encoding()
266 if (file_printf(ms, " no") == -1) in file_ascmagic_with_encoding()
273 if (file_printf(ms, ",") == -1) in file_ascmagic_with_encoding()
277 if (file_printf(ms, " CR") == -1) in file_ascmagic_with_encoding()
280 if (file_printf(ms, ",") == -1) in file_ascmagic_with_encoding()
284 if (file_printf(ms, " LF") == -1) in file_ascmagic_with_encoding()
[all …]
H A Dreadcdf.c50 #define NOTMIME(ms) (((ms)->flags & MAGIC_MIME) == 0) argument
164 if (NOTMIME(ms) && file_printf(ms, ", %s: %hd", buf, in cdf_file_property_info()
169 if (NOTMIME(ms) && file_printf(ms, ", %s: %d", buf, in cdf_file_property_info()
174 if (NOTMIME(ms) && file_printf(ms, ", %s: %u", buf, in cdf_file_property_info()
179 if (NOTMIME(ms) && file_printf(ms, ", %s: %g", buf, in cdf_file_property_info()
184 if (NOTMIME(ms) && file_printf(ms, ", %s: %g", buf, in cdf_file_property_info()
228 if (NOTMIME(ms) && file_printf(ms, in cdf_file_property_info()
239 if (NOTMIME(ms) && file_printf(ms, in cdf_file_property_info()
409 if (NOTMIME(ms)) { in cdf_check_summary_info()
523 if (NOTMIME(ms)) { in cdf_file_dir_info()
[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.c464 if (ms == NULL) in file_ms_free()
474 if (ms->c.li) { in file_ms_free()
477 efree(ms); in file_ms_free()
495 ms->o.buf = ms->o.pbuf = NULL; in file_ms_alloc()
496 len = (ms->c.len = 10) * sizeof(*ms->c.li); in file_ms_alloc()
506 ms->line = 0; in file_ms_alloc()
514 return ms; in file_ms_alloc()
516 efree(ms); in file_ms_alloc()
594 file_oomem(ms, sizeof(*ms->mlist[i])); in file_apprentice()
609 file_oomem(ms, sizeof(*ms->mlist[i])); in file_apprentice()
[all …]
H A Dder.c246 const uint8_t *b = RCAST(const uint8_t *, ms->search.s); in der_offs()
247 size_t offs = 0, len = ms->search.s_len ? ms->search.s_len : nbytes; in der_offs()
258 offs += ms->offset + m->offset; in der_offs()
262 printf("cont_level[%zu] = %u\n", i, ms->c.li[i].off); in der_offs()
269 ms->c.li[m->cont_level - 1].off)); in der_offs()
275 der_cmp(struct magic_set *ms, struct magic *m) in der_cmp() argument
279 size_t offs = 0, len = ms->search.s_len; in der_cmp()
292 if ((ms->flags & MAGIC_DEBUG) != 0) in der_cmp()
317 if ((ms->flags & MAGIC_DEBUG) != 0) in der_cmp()
327 if ((ms->flags & MAGIC_DEBUG) != 0) in der_cmp()
[all …]
H A Dcompress.c153 int mime = ms->flags & MAGIC_MIME; in file_zmagic()
158 if ((ms->flags & MAGIC_COMPRESS) == 0) in file_zmagic()
186 ms->flags &= ~MAGIC_COMPRESS; in file_zmagic()
188 prv = file_printf(ms, "%s ERROR: %s", in file_zmagic()
199 if ((file_printf(ms, in file_zmagic()
202 if ((pb = file_push_buffer(ms)) == NULL) in file_zmagic()
211 if (file_printf(ms, "%s", rbuf) == -1) { in file_zmagic()
217 if (!mime && file_printf(ms, ")") == -1) in file_zmagic()
238 ms->flags |= MAGIC_COMPRESS; in file_zmagic()
363 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()
81 if (file_printf(ms, "%s", mime ? "application/x-tar" : in file_is_tar()
/PHP-7.3/main/streams/
H A Dmemory.c55 ms->fpos = ms->fsize; in php_stream_memory_write()
57 if (ms->fpos + count > ms->fsize) { in php_stream_memory_write()
65 ms->fsize = ms->fpos + count; in php_stream_memory_write()
85 if (ms->fpos == ms->fsize) { in php_stream_memory_read()
90 count = ms->fsize - ms->fpos; in php_stream_memory_read()
142 ms->fpos = ms->fpos + offset; in php_stream_memory_seek()
149 ms->fpos = ms->fsize; in php_stream_memory_seek()
153 ms->fpos = ms->fpos + offset; in php_stream_memory_seek()
161 ms->fpos = ms->fsize; in php_stream_memory_seek()
172 ms->fpos = ms->fsize; in php_stream_memory_seek()
[all …]
/PHP-7.3/ext/standard/tests/streams/
H A Dproc_open_bug69900.phpt37 echo "fgets() took ", (($t1 - $t0)*1000 > $max_ms ? 'more' : 'less'), " than $max_ms ms\n";
54 fgets() took more than %d ms
56 fgets() took less than %d ms
58 fgets() took less than %d ms
60 fgets() took less than %d ms
62 fgets() took less than %d ms
64 fgets() took less than %d ms
66 fgets() took less than %d ms
68 fgets() took less than %d ms
70 fgets() took less than %d ms
[all …]
/PHP-7.3/ext/fileinfo/
H A Dlibmagic.patch196 - free(ms);
206 + efree(ms);
220 ms->o.buf = ms->o.pbuf = NULL;
221 len = (ms->c.len = 10) * sizeof(*ms->c.li);
230 return ms;
232 - free(ms);
321 - file_oomem(ms, sizeof(*ms->mlist[i]));
375 + file_oomem(ms, sizeof(*ms->mlist[i]));
2914 - if (ms->o.buf && *ms->o.buf)
4017 - file_oomem(ms, ms->search.rm_len);
[all …]
/PHP-7.3/sapi/fpm/fpm/
H A Dfpm_events.c387 struct timeval ms; in fpm_event_loop() local
399 timerclear(&ms); in fpm_event_loop()
404 if (!timerisset(&ms)) { in fpm_event_loop()
405 ms = q->ev->timeout; in fpm_event_loop()
407 if (timercmp(&q->ev->timeout, &ms, <)) { in fpm_event_loop()
408 ms = q->ev->timeout; in fpm_event_loop()
415 if (!timerisset(&ms) || timercmp(&ms, &now, <) || timercmp(&ms, &now, ==)) { in fpm_event_loop()
418 timersub(&ms, &now, &tmp); in fpm_event_loop()
/PHP-7.3/ext/standard/tests/
H A Dbug64370_var1.phpt10 echo "created in $d ms\n";
19 created in %f ms
/PHP-7.3/ext/fileinfo/tests/
H A Dfinfo_file_002.phpt27 string(14) "image/x-ms-bmp"
39 string(29) "application/vnd.ms-powerpoint"
H A Dbug79756.phpt16 application/vnd.ms-excel; charset=binary
H A Dbug74170.phpt21 string(29) "application/vnd.ms-powerpoint"
/PHP-7.3/ext/date/tests/
H A Dbug64887.phpt8 '+1 ms',
H A Ddate_time_fractions.phpt8 $ms = date_create()->format('u');
9 echo ($ms = 0) ? "microseconds = false\n" : "microseconds = true\n";
/PHP-7.3/ext/snmp/tests/
H A Dsnmp_include.inc6 Default timeout is 1000ms and there will be one request performed.
/PHP-7.3/ext/standard/tests/misc/
H A Dtime_sleep_until_basic.phpt26 // In practice, on slower machines even that can fail, so giving yet 50ms or more.
/PHP-7.3/ext/opcache/tests/
H A Dphp_cli_server.inc34 usleep(50000); // 50ms per try

Completed in 140 milliseconds

12