Searched refs:ms (Results 1 - 21 of 21) sorted by relevance

/PHP_5_6/ext/fileinfo/libmagic/
H A Dapptype.c45 file_os2_apptype(struct magic_set *ms, const char *fn, const void *buf, argument
57 file_error(ms, errno, "cannot create tempnam");
69 file_error(ms, errno, "cannot open tmp file `%s'", path);
73 file_error(ms, errno, "cannot write tmp file `%s'",
109 if (file_printf(ms, "32-bit ") == -1)
112 if (file_printf(ms, "physical device driver") == -1)
115 if (file_printf(ms, "virtual device driver") == -1)
119 if (file_printf(ms, "protected ") == -1)
121 if (file_printf(ms, "DLL") == -1)
124 if (file_printf(ms, "Window
[all...]
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 Dis_tar.c63 file_is_tar(struct magic_set *ms, const unsigned char *buf, size_t nbytes) argument
70 int mime = ms->flags & MAGIC_MIME;
72 if ((ms->flags & MAGIC_APPLE) != 0)
79 if (file_printf(ms, "%s", mime ? "application/x-tar" :
H A Dprint.c59 file_magwarn(struct magic_set *ms, const char *f, ...) argument
H A Dascmagic.c71 file_ascmagic(struct magic_set *ms, const unsigned char *buf, size_t nbytes, argument
82 if (ms->flags & MAGIC_APPLE)
88 if (file_encoding(ms, buf, nbytes, &ubuf, &ulen, &code, &code_mime,
92 rv = file_ascmagic_with_encoding(ms, buf, nbytes, ubuf, ulen, code,
101 file_ascmagic_with_encoding(struct magic_set *ms, const unsigned char *buf, argument
108 int mime = ms->flags & MAGIC_MIME;
126 if (ms->flags & MAGIC_APPLE)
137 if (ulen > 0 && (ms->flags & MAGIC_NO_CHECK_SOFT) == 0) {
143 file_oomem(ms, mlen);
149 if ((rv = file_softmagic(ms, utf8_bu
[all...]
H A Dcompress.c103 file_zmagic(struct magic_set *ms, int fd, const char *name, argument
109 int mime = ms->flags & MAGIC_MIME;
112 if ((ms->flags & MAGIC_COMPRESS) == 0)
121 (nsz = uncompressbuf(ms, fd, i, buf, &newbuf,
123 ms->flags &= ~MAGIC_COMPRESS;
125 if (file_buffer(ms, -1, name, newbuf, nsz) == -1)
129 if (file_printf(ms, mime ?
132 if (file_buffer(ms, -1, NULL, buf, nbytes) == -1)
134 if (!mime && file_printf(ms, ")") == -1)
145 ms
243 file_pipe2file(struct magic_set *ms, int fd, const void *startbuf, size_t nbytes) argument
319 uncompressgzipped(struct magic_set *ms, const unsigned char *old, unsigned char **newch, size_t n) argument
385 uncompressbuf(struct magic_set *ms, int fd, size_t method, const unsigned char *old, unsigned char **newch, size_t n) argument
[all...]
H A Dencoding.c68 file_encoding(struct magic_set *ms, const unsigned char *buf, size_t nbytes, unichar **ubuf, size_t *ulen, const char **code, const char **code_mime, const char **type) argument
81 file_oomem(ms, mlen);
86 file_oomem(ms, mlen);
H A Dfile.h461 protected size_t file_printedlen(const struct magic_set *ms);
H A Dfsmagic.c78 handle_mime(struct magic_set *ms, int mime, const char *str) argument
81 if (file_printf(ms, "inode/%s", str) == -1)
83 if ((mime & MAGIC_MIME_ENCODING) && file_printf(ms,
87 if ((mime & MAGIC_MIME_ENCODING) && file_printf(ms, "binary") == -1)
93 file_fsmagic(struct magic_set *ms, const char *fn, struct stat *sb, php_stream *stream) argument
96 int mime = ms->flags & MAGIC_MIME;
99 if (ms->flags & MAGIC_APPLE)
111 if (ms->flags & MAGIC_ERROR) {
112 file_error(ms, errno, "cannot stat `%s'", fn);
120 if (ms
[all...]
H A Dmagic.c234 unreadable_info(struct magic_set *ms, mode_t md, const char *file) argument
238 if (file_printf(ms, "writable, ") == -1)
241 if (file_printf(ms, "executable, ") == -1)
244 if (file_printf(ms, "regular file, ") == -1)
246 if (file_printf(ms, "no read permission") == -1)
252 magic_close(struct magic_set *ms) argument
254 if (ms == NULL)
256 file_ms_free(ms);
263 magic_load(struct magic_set *ms, const char *magicfile) argument
265 if (ms
271 magic_compile(struct magic_set *ms, const char *magicfile) argument
280 magic_list(struct magic_set *ms, const char *magicfile) argument
288 close_and_restore(const struct magic_set *ms, const char *name, int fd, const struct stat *sb) argument
322 magic_descriptor(struct magic_set *ms, int fd) argument
333 magic_file(struct magic_set *ms, const char *inname) argument
341 magic_stream(struct magic_set *ms, php_stream *stream) argument
349 file_or_stream(struct magic_set *ms, const char *inname, php_stream *stream) argument
425 magic_buffer(struct magic_set *ms, const void *buf, size_t nb) argument
442 magic_error(struct magic_set *ms) argument
450 magic_errno(struct magic_set *ms) argument
458 magic_setflags(struct magic_set *ms, int flags) argument
[all...]
H A Dsoftmagic.c87 file_softmagic(struct magic_set *ms, const unsigned char *buf, size_t nbytes, argument
92 for (ml = ms->mlist[0]->next; ml != ms->mlist[0]; ml = ml->next)
93 if ((rv = match(ms, ml->magic, ml->nmagic, buf, nbytes, 0, mode,
129 match(struct magic_set *ms, struct magic *magic, uint32_t nmagic, argument
138 int print = (ms->flags & (MAGIC_MIME|MAGIC_APPLE)) == 0;
143 if (file_check_mem(ms, cont_level) == -1)
164 ms->offset = m->offset;
165 ms->line = m->lineno;
168 switch (mget(ms,
357 check_fmt(struct magic_set *ms, struct magic *m) argument
378 mprint(struct magic_set *ms, struct magic *m) argument
653 moffset(struct magic_set *ms, struct magic *m) argument
888 mconvert(struct magic_set *ms, struct magic *m, int flip) argument
1040 mcopy(struct magic_set *ms, union VALUETYPE *p, int type, int indir, const unsigned char *s, uint32_t offset, size_t nbytes, struct magic *m) argument
1156 mget(struct magic_set *ms, const unsigned char *s, struct magic *m, size_t nbytes, size_t o, unsigned int cont_level, int mode, int text, int flip, int recursion_level, int *printed_something, int *need_separator, int *returnval) argument
1918 magiccheck(struct magic_set *ms, struct magic *m) argument
2326 handle_annotation(struct magic_set *ms, struct magic *m) argument
2342 print_sep(struct magic_set *ms, int firstline) argument
[all...]
H A Dfuncs.c62 file_printf(struct magic_set *ms, const char *fmt, ...) argument
72 if (ms->o.buf != NULL) {
73 len = spprintf(&newstr, 0, "%s%s", ms->o.buf, (buf ? buf : ""));
77 efree(ms->o.buf);
78 ms->o.buf = newstr;
80 ms->o.buf = buf;
90 file_error_core(struct magic_set *ms, int error, const char *f, va_list va, argument
96 if (ms->event_flags & EVENT_HAD_ERR)
99 efree(ms->o.buf);
100 ms
123 file_error(struct magic_set *ms, int error, const char *f, ...) argument
136 file_magerror(struct magic_set *ms, const char *f, ...) argument
145 file_oomem(struct magic_set *ms, size_t len) argument
152 file_badseek(struct magic_set *ms) argument
158 file_badread(struct magic_set *ms) argument
164 file_buffer(struct magic_set *ms, php_stream *stream, const char *inname, const void *buf, size_t nb) argument
308 file_reset(struct magic_set *ms) argument
336 file_getbuffer(struct magic_set *ms) argument
412 file_check_mem(struct magic_set *ms, unsigned int level) argument
435 file_printedlen(const struct magic_set *ms) argument
440 file_replace(struct magic_set *ms, const char *pat, const char *rep) argument
[all...]
H A Dapprentice.c115 private int getvalue(struct magic_set *ms, struct magic *, const char **, int);
392 apprentice_1(struct magic_set *ms, const char *fn, int action) argument
399 file_error(ms, 0, "magic element size %lu != %lu",
406 map = apprentice_load(ms, fn, action);
409 return apprentice_compile(ms, map, fn);
412 map = apprentice_map(ms, fn);
415 if (ms->flags & MAGIC_CHECK)
416 file_magwarn(ms, "using regular magic file `%s'", fn);
417 map = apprentice_load(ms, fn, action);
424 if (add_mlist(ms
444 file_ms_free(struct magic_set *ms) argument
466 struct magic_set *ms; local
547 file_apprentice(struct magic_set *ms, const char *fn, int action) argument
925 addentry(struct magic_set *ms, struct magic_entry *me, struct magic_entry_set *mset) argument
952 load_1(struct magic_set *ms, int action, const char *fn, int *errs, struct magic_entry_set *mset) argument
1051 set_text_binary(struct magic_set *ms, struct magic_entry *me, uint32_t nme, uint32_t starttest) argument
1084 set_last_default(struct magic_set *ms, struct magic_entry *me, uint32_t nme) argument
1105 coalesce_entries(struct magic_set *ms, struct magic_entry *me, uint32_t nme, struct magic **ma, uint32_t *nma) argument
1142 apprentice_load(struct magic_set *ms, const char *fn, int action) argument
1265 file_signextend(struct magic_set *ms, struct magic *m, uint64_t v) argument
1339 string_modifier_check(struct magic_set *ms, struct magic *m) argument
1449 check_cond(struct magic_set *ms, int cond, uint32_t cont_level) argument
1496 parse(struct magic_set *ms, struct magic_entry *me, const char *line, size_t lineno, int action) argument
1965 parse_strength(struct magic_set *ms, struct magic_entry *me, const char *line) argument
2024 parse_apple(struct magic_set *ms, struct magic_entry *me, const char *line) argument
2059 parse_mime(struct magic_set *ms, struct magic_entry *me, const char *line) argument
2222 check_format(struct magic_set *ms, struct magic *m) argument
2277 getvalue(struct magic_set *ms, struct magic *m, const char **p, int action) argument
2337 getstr(struct magic_set *ms, struct magic *m, const char *s, int warn) argument
2599 apprentice_map(struct magic_set *ms, const char *fn) argument
2753 apprentice_compile(struct magic_set *ms, struct magic_map *map, const char *fn) argument
2819 mkdbname(struct magic_set *ms, const char *fn, int strip) argument
3005 file_magicfind(struct magic_set *ms, const char *name, struct mlist *v) argument
[all...]
H A Dreadcdf.c48 #define NOTMIME(ms) (((ms)->flags & MAGIC_MIME) == 0)
55 { "Excel", "vnd.ms-excel", },
56 { "Powerpoint", "vnd.ms-powerpoint", },
58 { "Advanced Installer", "vnd.ms-msi", },
59 { "InstallShield", "vnd.ms-msi", },
60 { "Microsoft Patch Compiler", "vnd.ms-msi", },
61 { "NAnt", "vnd.ms-msi", },
62 { "Windows Installer", "vnd.ms-msi", },
66 { "PowerPoint", "vnd.ms
137 cdf_file_property_info(struct magic_set *ms, const cdf_property_info_t *info, size_t count, const cdf_directory_t *root_storage) argument
262 cdf_file_summary_info(struct magic_set *ms, const cdf_header_t *h, const cdf_stream_t *sst, const cdf_directory_t *root_storage) argument
318 file_trycdf(struct magic_set *ms, int fd, const unsigned char *buf, size_t nbytes) argument
[all...]
H A Dreadelf.c296 dophn_core(struct magic_set *ms, int clazz, int swap, int fd, off_t off, argument
306 if (file_printf(ms, ", corrupted program header size") == -1)
316 file_badseek(ms);
320 file_badread(ms);
338 file_badseek(ms);
344 file_badread(ms);
351 offset = donote(ms, nbuf, offset, (size_t)bufsize,
363 do_note_netbsd_version(struct magic_set *ms, int swap, void *v) argument
369 if (file_printf(ms, ", for NetBSD") == -1)
389 if (file_printf(ms, "
408 do_note_freebsd_version(struct magic_set *ms, int swap, void *v) argument
483 donote(struct magic_set *ms, void *vbuf, size_t offset, size_t size, int clazz, int swap, size_t align, int *flags) argument
920 doshn(struct magic_set *ms, int clazz, int swap, int fd, off_t off, int num, size_t size, off_t fsize, int *flags, int mach, int strtab) argument
1109 dophn_exec(struct magic_set *ms, int clazz, int swap, int fd, off_t off, int num, size_t size, off_t fsize, int *flags, int sh_num) argument
1204 file_tryelf(struct magic_set *ms, int fd, const unsigned char *buf, size_t nbytes) argument
[all...]
/PHP_5_6/sapi/fpm/fpm/
H A Dfpm_events.c376 struct timeval ms; local
388 timerclear(&ms);
393 if (!timerisset(&ms)) {
394 ms = q->ev->timeout;
396 if (timercmp(&q->ev->timeout, &ms, <)) {
397 ms = q->ev->timeout;
404 if (!timerisset(&ms) || timercmp(&ms, &now, <) || timercmp(&ms, &now, ==)) {
407 timersub(&ms,
[all...]
/PHP_5_6/ext/sqlite3/
H A Dsqlite3.c318 long ms; local
324 if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &ms)) {
328 return_code = sqlite3_busy_timeout(db_obj->db, ms);
1852 ZEND_ARG_INFO(0, ms)
/PHP_5_6/ext/sqlite3/libsqlite/
H A Dsqlite3.c2218 ** will sleep multiple times until at least "ms" milliseconds of sleeping
2219 ** have accumulated. ^After at least "ms" milliseconds of sleeping,
2233 SQLITE_API int sqlite3_busy_timeout(sqlite3*, int ms);
14932 double ms = 0.0; local
14947 ms = ms*10.0 + *zDate - '0';
14951 ms /= rScale;
14960 p->s = s + ms;
126300 sqlite3_busy_timeout(sqlite3 *db, int ms) argument
127988 sqlite3_sleep(int ms) argument
[all...]
H A Dsqlite3.h2094 ** will sleep multiple times until at least "ms" milliseconds of sleeping
2095 ** have accumulated. ^After at least "ms" milliseconds of sleeping,
2109 SQLITE_API int sqlite3_busy_timeout(sqlite3*, int ms);
H A Dsqlite3ext.h49 int (*busy_timeout)(sqlite3*,int ms);
/PHP_5_6/main/streams/
H A Dmemory.c51 php_stream_memory_data *ms = (php_stream_memory_data*)stream->abstract; local
52 assert(ms != NULL);
54 if (ms->mode & TEMP_STREAM_READONLY) {
57 if (ms->fpos + count > ms->fsize) {
60 if (!ms->data) {
61 tmp = emalloc(ms->fpos + count);
63 tmp = erealloc(ms->data, ms->fpos + count);
66 count = ms
87 php_stream_memory_data *ms = (php_stream_memory_data*)stream->abstract; local
112 php_stream_memory_data *ms = (php_stream_memory_data*)stream->abstract; local
136 php_stream_memory_data *ms = (php_stream_memory_data*)stream->abstract; local
207 php_stream_memory_data *ms = (php_stream_memory_data*)stream->abstract; local
249 php_stream_memory_data *ms = (php_stream_memory_data*)stream->abstract; local
316 php_stream_memory_data *ms; local
340 php_stream_memory_data *ms = (php_stream_memory_data*)stream->abstract; local
[all...]

Completed in 244 milliseconds