Home
last modified time | relevance | path

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

123

/php-src/ext/fileinfo/libmagic/
H A Dmagic.c123 if (ms == NULL) in magic_close()
134 if (ms == NULL) in magic_load()
142 if (ms == NULL) in magic_compile()
150 if (ms == NULL) in magic_check()
158 if (ms == NULL) in magic_list()
171 if (ms == NULL) in magic_descriptor()
182 if (ms == NULL) in magic_file()
190 if (ms == NULL) in magic_stream()
274 if (ms == NULL) in magic_buffer()
294 return (ms->event_flags & EVENT_HAD_ERR) ? ms->o.buf : NULL; in magic_error()
[all …]
H A Dfuncs.c69 efree(ms->o.buf); in file_clearbuf()
70 ms->o.buf = NULL; in file_clearbuf()
71 ms->o.blen = 0; in file_clearbuf()
164 ms->o.buf = buf; in file_vprintf()
165 ms->o.blen = len; in file_vprintf()
197 if (ms->o.buf && *ms->o.buf) in file_error_core()
225 file_error_core(ms, 0, f, va, ms->line); in file_magerror()
535 ms->error = -1; in file_reset()
614 for (np = ms->o.pbuf, op = ms->o.buf; *op;) { in file_getbuffer()
631 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, "file_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.c695 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
704 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
713 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
721 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
729 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
781 file_oomem(ms, ms->search.rm_len); in mprint()
786 rval = file_printf(ms, F(ms, desc, "%s"), file_printable(ms, in mprint()
806 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
819 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
826 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
[all …]
H A Dreadcdf.c44 #define NOTMIME(ms) (((ms)->flags & MAGIC_MIME) == 0) argument
158 if (NOTMIME(ms) && file_printf(ms, ", %s: %hd", buf, in cdf_file_property_info()
163 if (NOTMIME(ms) && file_printf(ms, ", %s: %d", buf, in cdf_file_property_info()
168 if (NOTMIME(ms) && file_printf(ms, ", %s: %u", buf, in cdf_file_property_info()
173 if (NOTMIME(ms) && file_printf(ms, ", %s: %g", buf, in cdf_file_property_info()
178 if (NOTMIME(ms) && file_printf(ms, ", %s: %g", buf, in cdf_file_property_info()
222 if (NOTMIME(ms) && file_printf(ms, in cdf_file_property_info()
233 if (NOTMIME(ms) && file_printf(ms, in cdf_file_property_info()
263 if (NOTMIME(ms)) { in cdf_file_catalog()
297 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 len = file_printedlen(ms); in file_ascmagic_with_encoding()
237 if (file_printf(ms, ", ") == -1) in file_ascmagic_with_encoding()
280 if (file_printf(ms, ", with") == -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 Dapprentice.c217 magic_close(ms); in main()
505 file_oomem(ms, sizeof(*ms->mlist[0])); in apprentice_1()
545 efree(ms); in file_ms_free()
563 ms->o.buf = ms->o.pbuf = NULL; in file_ms_alloc()
565 len = (ms->c.len = 10) * sizeof(*ms->c.li); in file_ms_alloc()
575 ms->line = 0; in file_ms_alloc()
589 return ms; in file_ms_alloc()
591 efree(ms); in file_ms_alloc()
685 file_oomem(ms, sizeof(*ms->mlist[i])); in file_apprentice()
700 file_oomem(ms, sizeof(*ms->mlist[0])); 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()
292 ms->c.li[i].off); in der_offs()
299 ms->c.li[m->cont_level - 1].off)); in der_offs()
305 der_cmp(struct magic_set *ms, struct magic *m) in der_cmp() argument
309 size_t offs = 0, len = ms->search.s_len; in der_cmp()
331 if ((ms->flags & MAGIC_DEBUG) != 0) in der_cmp()
361 if ((ms->flags & MAGIC_DEBUG) != 0) in der_cmp()
374 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
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, "text/csv") == -1) in file_is_csv()
158 if (file_printf(ms, "CSV %s%stext", code ? code : "", in file_is_csv()
H A Dis_simh.c149 file_is_simh(struct magic_set *ms, const struct buffer *b) in file_is_simh() argument
153 int mime = ms->flags & MAGIC_MIME; in file_is_simh()
155 if ((ms->flags & (MAGIC_APPLE|MAGIC_EXTENSION)) != 0) in file_is_simh()
165 if (file_printf(ms, "application/SIMH-tape-data") == -1) in file_is_simh()
170 if (file_printf(ms, "SIMH tape data") == -1) in file_is_simh()
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 Dcompress.c258 int mime = ms->flags & MAGIC_MIME; in format_decompression_error()
279 int mime = ms->flags & MAGIC_MIME; in file_zmagic()
286 if ((ms->flags & MAGIC_COMPRESS) == 0) in file_zmagic()
321 ms->flags &= ~MAGIC_COMPRESS; in file_zmagic()
334 if ((file_printf(ms, in file_zmagic()
337 if ((pb = file_push_buffer(ms)) == NULL) in file_zmagic()
345 if (file_pop_buffer(ms, pb) != NULL) in file_zmagic()
356 if (!mime && file_printf(ms, ")") == -1) in file_zmagic()
377 ms->flags |= MAGIC_COMPRESS; in file_zmagic()
518 file_error(ms, errno, in file_pipe2file()
[all …]
H A Dis_json.c422 file_is_json(struct magic_set *ms, const struct buffer *b) in file_is_json() argument
427 int mime = ms->flags & MAGIC_MIME; in file_is_json()
431 if ((ms->flags & (MAGIC_APPLE|MAGIC_EXTENSION)) != 0) in file_is_json()
442 if (file_printf(ms, "application/%s", in file_is_json()
447 if (file_printf(ms, "%sJSON text data", in file_is_json()
452 if (file_printf(ms, " (%" SIZE_T_FORMAT "u object%s, %" SIZE_T_FORMAT in file_is_json()
/php-src/main/streams/
H A Dmemory.c58 ms->data = zend_string_realloc(ms->data, ms->fpos + count, 0); in php_stream_memory_write()
64 ms->data = zend_string_separate(ms->data, 0); in php_stream_memory_write()
69 ZSTR_VAL(ms->data)[ZSTR_LEN(ms->data)] = '\0'; in php_stream_memory_write() local
83 if (ms->fpos >= ZSTR_LEN(ms->data)) { in php_stream_memory_read()
87 if (ms->fpos + count > ZSTR_LEN(ms->data)) { in php_stream_memory_read()
88 count = ZSTR_LEN(ms->data) - ms->fpos; in php_stream_memory_read()
107 efree(ms); in php_stream_memory_close()
136 ms->fpos = ms->fpos + offset; in php_stream_memory_seek()
143 ms->fpos = ms->fpos + offset; in php_stream_memory_seek()
160 ms->fpos = ZSTR_LEN(ms->data) + offset; in php_stream_memory_seek()
[all …]
/php-src/ext/fileinfo/
H A Dlibmagic.patch77 - free(ms);
78 + efree(ms);
93 len = (ms->c.len = 10) * sizeof(*ms->c.li);
102 return ms;
104 - free(ms);
209 - file_oomem(ms, sizeof(*ms->mlist[0]));
221 - file_oomem(ms, sizeof(*ms->mlist[0]));
256 + file_oomem(ms, sizeof(*ms->mlist[i]));
2772 - if (ms && ms->file)
3082 file_oomem(ms, ms->search.rm_len);
[all …]
/php-src/sapi/fpm/fpm/
H A Dfpm_events.c383 struct timeval ms; in fpm_event_loop() local
395 timerclear(&ms); in fpm_event_loop()
400 if (!timerisset(&ms)) { in fpm_event_loop()
401 ms = q->ev->timeout; in fpm_event_loop()
403 if (timercmp(&q->ev->timeout, &ms, <)) { in fpm_event_loop()
404 ms = q->ev->timeout; in fpm_event_loop()
411 if (!timerisset(&ms) || timercmp(&ms, &now, <) || timercmp(&ms, &now, ==)) { in fpm_event_loop()
414 timersub(&ms, &now, &tmp); in fpm_event_loop()
/php-src/ext/standard/tests/
H A Dbug64370_var1.phpt10 echo "created in $d ms\n";
18 created in %f ms
/php-src/ext/fileinfo/tests/
H A Dbug79756.phpt14 application/vnd.ms-excel; charset=binary
H A Dbug74170.phpt22 string(29) "application/vnd.ms-powerpoint"
/php-src/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-src/ext/pdo_firebird/tests/
H A Dpayload_server.inc16 usleep(50000); // 50ms per try
45 usleep(50000); // 50ms per try
/php-src/ext/standard/tests/streams/
H A Dgh16889.phpt16 // select STDOUT pipe of process for 1ms

Completed in 111 milliseconds

123