Home
last modified time | relevance | path

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

12

/PHP-5.5/ext/fileinfo/libmagic/
H A Dfuncs.c74 efree(ms->o.buf); in file_printf()
77 ms->o.buf = buf; in file_printf()
96 efree(ms->o.buf); in file_error_core()
97 ms->o.buf = NULL; in file_error_core()
137 file_error_core(ms, 0, f, va, ms->line); in file_magerror()
314 if (ms->o.buf) { in file_reset()
323 ms->error = -1; in file_reset()
400 for (np = ms->o.pbuf, op = ms->o.buf; *op;) { in file_getbuffer()
417 len = (ms->c.len = 20 + level) * sizeof(*ms->c.li); in file_check_mem()
418 ms->c.li = CAST(struct level_info *, (ms->c.li == NULL) ? in file_check_mem()
[all …]
H A Dfsmagic.c81 if (file_printf(ms, "inode/%s", str) == -1) in handle_mime()
96 int mime = ms->flags & MAGIC_MIME; in file_fsmagic()
99 if (ms->flags & MAGIC_APPLE) in file_fsmagic()
111 if (ms->flags & MAGIC_ERROR) { in file_fsmagic()
120 if (ms->flags & MAGIC_ERROR) { in file_fsmagic()
156 if ((ms->flags & MAGIC_DEVICES) != 0) { in file_fsmagic()
187 if((ms->flags & MAGIC_DEVICES) != 0) in file_fsmagic()
190 if (handle_mime(ms, mime, "fifo") == -1) in file_fsmagic()
199 if (handle_mime(ms, mime, "door") == -1) in file_fsmagic()
208 if (ms->flags & MAGIC_ERROR) { in file_fsmagic()
[all …]
H A Dmagic.c254 if (ms == NULL) in magic_close()
265 if (ms == NULL) in magic_load()
273 if (ms == NULL) in magic_compile()
282 if (ms == NULL) in magic_list()
324 if (ms == NULL) in magic_descriptor()
335 if (ms == NULL) in magic_file()
343 if (ms == NULL) in magic_stream()
431 if (ms == NULL) in magic_buffer()
448 if (ms == NULL) in magic_error()
450 return (ms->event_flags & EVENT_HAD_ERR) ? ms->o.buf : NULL; in magic_error()
[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 Dreadcdf.c45 #define NOTMIME(ms) (((ms)->flags & MAGIC_MIME) == 0) argument
67 if (NOTMIME(ms) && file_printf(ms, ", %s: %hd", buf,
72 if (NOTMIME(ms) && file_printf(ms, ", %s: %d", buf,
77 if (NOTMIME(ms) && file_printf(ms, ", %s: %u", buf,
82 if (NOTMIME(ms) && file_printf(ms, ", %s: %g", buf,
87 if (NOTMIME(ms) && file_printf(ms, ", %s: %g", buf,
142 if (NOTMIME(ms) && file_printf(ms,
156 if (NOTMIME(ms) && file_printf(ms,
189 if (NOTMIME(ms)) {
327 if (NOTMIME(ms)) {
[all …]
H A Dascmagic.c82 if (ms->flags & MAGIC_APPLE) in file_ascmagic()
108 int mime = ms->flags & MAGIC_MIME; in file_ascmagic_with_encoding()
126 if (ms->flags & MAGIC_APPLE) in file_ascmagic_with_encoding()
143 file_oomem(ms, mlen); in file_ascmagic_with_encoding()
206 if (file_printedlen(ms)) { in file_ascmagic_with_encoding()
212 if (file_printf(ms, ", ") == -1) in file_ascmagic_with_encoding()
258 if (file_printf(ms, " no") == -1) in file_ascmagic_with_encoding()
265 if (file_printf(ms, ",") == -1) in file_ascmagic_with_encoding()
269 if (file_printf(ms, " CR") == -1) in file_ascmagic_with_encoding()
272 if (file_printf(ms, ",") == -1) in file_ascmagic_with_encoding()
[all …]
H A Dsoftmagic.c83 for (ml = ms->mlist[0]->next; ml != ms->mlist[0]; ml = ml->next) in file_softmagic()
213 ms->c.li[cont_level].off = moffset(ms, m); in match()
235 ms->offset += in match()
315 ms->c.li[cont_level].off = moffset(ms, m); in match()
571 cp = estrndup((const char *)ms->search.s, ms->search.rm_len); in mprint()
573 file_oomem(ms, ms->search.rm_len); in mprint()
585 t = ms->search.offset + ms->search.rm_len; in mprint()
601 t = ms->offset; in mprint()
607 t = ms->offset; in mprint()
1713 ms->offset = 0; in mget()
[all …]
H A Dapprentice.c441 if (ms == NULL) in file_ms_free()
451 if (ms->c.li) { in file_ms_free()
454 efree(ms); in file_ms_free()
472 ms->o.buf = ms->o.pbuf = NULL; in file_ms_alloc()
473 len = (ms->c.len = 10) * sizeof(*ms->c.li); in file_ms_alloc()
483 ms->line = 0; in file_ms_alloc()
484 return ms; in file_ms_alloc()
486 efree(ms); in file_ms_alloc()
560 file_oomem(ms, sizeof(*ms->mlist[i])); in file_apprentice()
575 file_oomem(ms, sizeof(*ms->mlist[i])); in file_apprentice()
[all …]
H A Dcompress.c108 int mime = ms->flags & MAGIC_MIME; in file_zmagic()
111 if ((ms->flags & MAGIC_COMPRESS) == 0) in file_zmagic()
122 ms->flags &= ~MAGIC_COMPRESS; in file_zmagic()
128 if (file_printf(ms, mime ? in file_zmagic()
137 if (!mime && file_printf(ms, ")") == -1) in file_zmagic()
146 ms->flags |= MAGIC_COMPRESS; in file_zmagic()
270 file_error(ms, errno, in file_pipe2file()
305 file_badseek(ms); in file_pipe2file()
365 file_error(ms, 0, "zlib: %s", z.msg); in uncompressgzipped()
371 file_error(ms, 0, "zlib: %s", z.msg); in uncompressgzipped()
[all …]
H A Dis_tar.c63 file_is_tar(struct magic_set *ms, const unsigned char *buf, size_t nbytes) in file_is_tar() argument
70 int mime = ms->flags & MAGIC_MIME; in file_is_tar()
72 if ((ms->flags & MAGIC_APPLE) != 0) in file_is_tar()
79 if (file_printf(ms, "%s", mime ? "application/x-tar" : in file_is_tar()
H A Delfclass.h39 if (dophn_core(ms, clazz, swap, fd,
49 if (dophn_exec(ms, clazz, swap, fd,
58 if (doshn(ms, clazz, swap, fd,
H A Dprint.c59 file_magwarn(struct magic_set *ms, const char *f, ...) in file_magwarn() argument
H A Dencoding.c68 file_encoding(struct magic_set *ms, const unsigned char *buf, size_t nbytes, unichar **ubuf, size_t… in file_encoding() argument
77 file_oomem(ms, mlen); in file_encoding()
82 file_oomem(ms, mlen); in file_encoding()
H A Dfile.h459 protected size_t file_printedlen(const struct magic_set *ms);
/PHP-5.5/main/streams/
H A Dmemory.c57 if (ms->fpos + count > ms->fsize) { in php_stream_memory_write()
66 count = ms->fsize - ms->fpos + 1; in php_stream_memory_write()
69 ms->fsize = ms->fpos + count; in php_stream_memory_write()
90 if (ms->fpos == ms->fsize) { in php_stream_memory_read()
95 count = ms->fsize - ms->fpos; in php_stream_memory_read()
147 ms->fpos = ms->fpos + offset; in php_stream_memory_seek()
154 ms->fpos = ms->fsize; in php_stream_memory_seek()
158 ms->fpos = ms->fpos + offset; in php_stream_memory_seek()
166 ms->fpos = ms->fsize; in php_stream_memory_seek()
177 ms->fpos = ms->fsize; in php_stream_memory_seek()
[all …]
/PHP-5.5/ext/fileinfo/
H A Dlibmagic.patch142 - free(ms);
152 + efree(ms);
166 ms->o.buf = ms->o.pbuf = NULL;
167 len = (ms->c.len = 10) * sizeof(*ms->c.li);
176 return ms;
178 - free(ms);
179 + efree(ms);
253 + file_oomem(ms, sizeof(*ms->mlist[i]));
2131 len = (ms->c.len += 20) * sizeof(*ms->c.li);
2141 return ms->o.buf == NULL ? 0 : strlen(ms->o.buf);
[all …]
/PHP-5.5/sapi/fpm/fpm/
H A Dfpm_events.c376 struct timeval ms; in fpm_event_loop() local
388 timerclear(&ms); in fpm_event_loop()
393 if (!timerisset(&ms)) { in fpm_event_loop()
394 ms = q->ev->timeout; in fpm_event_loop()
396 if (timercmp(&q->ev->timeout, &ms, <)) { in fpm_event_loop()
397 ms = q->ev->timeout; in fpm_event_loop()
404 if (!timerisset(&ms) || timercmp(&ms, &now, <) || timercmp(&ms, &now, ==)) { in fpm_event_loop()
407 timersub(&ms, &now, &tmp); in fpm_event_loop()
/PHP-5.5/ext/standard/tests/image/
H A Dimage_type_to_mime_type.phpt30 string(14) "image/x-ms-bmp"
32 string(14) "image/x-ms-bmp"
34 string(14) "image/x-ms-bmp"
H A Dgetimagesize.phpt40 string(14) "image/x-ms-bmp"
55 string(14) "image/x-ms-bmp"
70 string(14) "image/x-ms-bmp"
H A Dimage_type_to_mime_type_basic.phpt51 string(14) "image/x-ms-bmp"
H A Dimage_type_to_mime_type_variation3.phpt42 string\(14\) "image\/x-ms-bmp"
H A Dgetimagesize_basic.phpt141 string(14) "image/x-ms-bmp"
/PHP-5.5/ext/standard/tests/
H A Dbug64370_var1.phpt10 echo "created in $d ms\n";
19 created in %f ms
/PHP-5.5/ext/fileinfo/tests/
H A Dfinfo_file_002.phpt27 string(14) "image/x-ms-bmp"
39 string(29) "application/vnd.ms-powerpoint"
/PHP-5.5/ext/snmp/tests/
H A Dsnmp_include.inc6 Default timeout is 1000ms and there will be one request performed.

Completed in 107 milliseconds

12