Searched defs:ms (Results 1 - 17 of 17) sorted by relevance

/PHP_5_5/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 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
77 file_oomem(ms, mlen);
82 file_oomem(ms, mlen);
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 Dcompress.c102 file_zmagic(struct magic_set *ms, int fd, const char *name, argument
108 int mime = ms->flags & MAGIC_MIME;
111 if ((ms->flags & MAGIC_COMPRESS) == 0)
120 (nsz = uncompressbuf(ms, fd, i, buf, &newbuf,
122 ms->flags &= ~MAGIC_COMPRESS;
124 if (file_buffer(ms, -1, name, newbuf, nsz) == -1)
128 if (file_printf(ms, mime ?
134 file_buffer(ms, -1, NULL, buf, nbytes) == -1)
137 if (!mime && file_printf(ms, ")") == -1)
146 ms
244 file_pipe2file(struct magic_set *ms, int fd, const void *startbuf, size_t nbytes) argument
320 uncompressgzipped(struct magic_set *ms, const unsigned char *old, unsigned char **newch, size_t n) argument
386 uncompressbuf(struct magic_set *ms, int fd, size_t method, const unsigned char *old, unsigned char **newch, size_t n) argument
[all...]
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
429 magic_buffer(struct magic_set *ms, const void *buf, size_t nb) argument
446 magic_error(struct magic_set *ms) argument
454 magic_errno(struct magic_set *ms) argument
462 magic_setflags(struct magic_set *ms, int flags) argument
[all...]
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 Dfuncs.c59 file_printf(struct magic_set *ms, const char *fmt, ...) argument
69 if (ms->o.buf != NULL) {
70 len = spprintf(&newstr, 0, "%s%s", ms->o.buf, (buf ? buf : ""));
74 efree(ms->o.buf);
75 ms->o.buf = newstr;
77 ms->o.buf = buf;
87 file_error_core(struct magic_set *ms, int error, const char *f, va_list va, argument
93 if (ms->event_flags & EVENT_HAD_ERR)
96 efree(ms->o.buf);
97 ms
120 file_error(struct magic_set *ms, int error, const char *f, ...) argument
133 file_magerror(struct magic_set *ms, const char *f, ...) argument
142 file_oomem(struct magic_set *ms, size_t len) argument
149 file_badseek(struct magic_set *ms) argument
155 file_badread(struct magic_set *ms) argument
161 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
442 file_replace(struct magic_set *ms, const char *pat, const char *rep) argument
[all...]
H A Dreadcdf.c45 #define NOTMIME(ms) (((ms)->flags & MAGIC_MIME) == 0)
48 cdf_file_property_info(struct magic_set *ms, const cdf_property_info_t *info, 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)
178 cdf_file_summary_info(struct magic_set *ms, const cdf_header_t *h, const cdf_stream_t *sst) argument
226 file_trycdf(struct magic_set *ms, int fd, const unsigned char *buf, size_t nbytes) argument
[all...]
H A Dsoftmagic.c78 file_softmagic(struct magic_set *ms, const unsigned char *buf, size_t nbytes, argument
83 for (ml = ms->mlist[0]->next; ml != ms->mlist[0]; ml = ml->next)
84 if ((rv = match(ms, ml->magic, ml->nmagic, buf, nbytes, 0, mode,
120 match(struct magic_set *ms, struct magic *magic, uint32_t nmagic, argument
129 int print = (ms->flags & (MAGIC_MIME|MAGIC_APPLE)) == 0;
134 if (file_check_mem(ms, cont_level) == -1)
155 ms->offset = m->offset;
156 ms->line = m->lineno;
159 switch (mget(ms,
343 check_fmt(struct magic_set *ms, struct magic *m) argument
362 mprint(struct magic_set *ms, struct magic *m) argument
618 moffset(struct magic_set *ms, struct magic *m) argument
854 mconvert(struct magic_set *ms, struct magic *m, int flip) argument
1005 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
1124 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
1883 magiccheck(struct magic_set *ms, struct magic *m) argument
2290 handle_annotation(struct magic_set *ms, struct magic *m) argument
2306 print_sep(struct magic_set *ms, int firstline) argument
[all...]
H A Dapprentice.c109 private int getvalue(struct magic_set *ms, struct magic *, const char **, int);
386 apprentice_1(struct magic_set *ms, const char *fn, int action) argument
393 file_error(ms, 0, "magic element size %lu != %lu",
400 map = apprentice_load(ms, fn, action);
403 return apprentice_compile(ms, map, fn);
406 map = apprentice_map(ms, fn);
409 if (ms->flags & MAGIC_CHECK)
410 file_magwarn(ms, "using regular magic file `%s'", fn);
411 map = apprentice_load(ms, fn, action);
418 if (add_mlist(ms
438 file_ms_free(struct magic_set *ms) argument
460 struct magic_set *ms; local
541 file_apprentice(struct magic_set *ms, const char *fn, int action) argument
910 addentry(struct magic_set *ms, struct magic_entry *me, struct magic_entry **mentry, uint32_t *mentrycount) argument
937 load_1(struct magic_set *ms, int action, const char *fn, int *errs, struct magic_entry **mentry, uint32_t *mentrycount) argument
1040 set_text_binary(struct magic_set *ms, struct magic_entry *me, uint32_t nme, uint32_t starttest) argument
1073 set_last_default(struct magic_set *ms, struct magic_entry *me, uint32_t nme) argument
1094 coalesce_entries(struct magic_set *ms, struct magic_entry *me, uint32_t nme, struct magic **ma, uint32_t *nma) argument
1131 apprentice_load(struct magic_set *ms, const char *fn, int action) argument
1262 file_signextend(struct magic_set *ms, struct magic *m, uint64_t v) argument
1335 string_modifier_check(struct magic_set *ms, struct magic *m) argument
1445 check_cond(struct magic_set *ms, int cond, uint32_t cont_level) argument
1492 parse(struct magic_set *ms, struct magic_entry *me, const char *line, size_t lineno, int action) argument
1961 parse_strength(struct magic_set *ms, struct magic_entry *me, const char *line) argument
2015 parse_apple(struct magic_set *ms, struct magic_entry *me, const char *line) argument
2050 parse_mime(struct magic_set *ms, struct magic_entry *me, const char *line) argument
2213 check_format(struct magic_set *ms, struct magic *m) argument
2268 getvalue(struct magic_set *ms, struct magic *m, const char **p, int action) argument
2328 getstr(struct magic_set *ms, struct magic *m, const char *s, int warn) argument
2590 apprentice_map(struct magic_set *ms, const char *fn) argument
2748 apprentice_compile(struct magic_set *ms, struct magic_map *map, const char *fn) argument
2818 mkdbname(struct magic_set *ms, const char *fn, int strip) argument
3004 file_magicfind(struct magic_set *ms, const char *name, struct mlist *v) 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 donote(struct magic_set *ms, void *vbuf, size_t offset, size_t size, argument
395 (void)file_printf(ms, ", bad note name size 0x%lx",
401 (void)file_printf(ms, ", ba
859 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
1048 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
1143 file_tryelf(struct magic_set *ms, int fd, const unsigned char *buf, size_t nbytes) argument
[all...]
/PHP_5_5/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_5/ext/sqlite3/
H A Dsqlite3.c310 long ms; local
316 if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &ms)) {
320 return_code = sqlite3_busy_timeout(db_obj->db, ms);
1830 ZEND_ARG_INFO(0, ms)
/PHP_5_5/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
108 php_stream_memory_data *ms = (php_stream_memory_data*)stream->abstract; local
132 php_stream_memory_data *ms = (php_stream_memory_data*)stream->abstract; local
203 php_stream_memory_data *ms = (php_stream_memory_data*)stream->abstract; local
245 php_stream_memory_data *ms = (php_stream_memory_data*)stream->abstract; local
312 php_stream_memory_data *ms; local
336 php_stream_memory_data *ms = (php_stream_memory_data*)stream->abstract; local
[all...]
/PHP_5_5/ext/sqlite3/libsqlite/
H A Dsqlite3.c2212 ** will sleep multiple times until at least "ms" milliseconds of sleeping
2213 ** have accumulated. ^After at least "ms" milliseconds of sleeping,
2225 SQLITE_API int sqlite3_busy_timeout(sqlite3*, int ms);
14579 double ms = 0.0; local
14594 ms = ms*10.0 + *zDate - '0';
14598 ms /= rScale;
14607 p->s = s + ms;
121365 sqlite3_busy_timeout(sqlite3 *db, int ms) argument
123046 sqlite3_sleep(int ms) argument
[all...]

Completed in 139 milliseconds