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

/PHP_TRUNK/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_TRUNK/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 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 Delfclass.h35 notecount = ms->elf_notes_max;
40 if (phnum > ms->elf_phnum_max)
41 return toomany(ms, "program headers", phnum);
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
[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 Dfsmagic.c82 handle_mime(struct magic_set *ms, int mime, const char *str) argument
85 if (file_printf(ms, "inode/%s", str) == -1)
87 if ((mime & MAGIC_MIME_ENCODING) && file_printf(ms,
91 if ((mime & MAGIC_MIME_ENCODING) && file_printf(ms, "binary") == -1)
97 file_fsmagic(struct magic_set *ms, const char *fn, zend_stat_t *sb, php_stream *stream) argument
100 int mime = ms->flags & MAGIC_MIME;
102 if (ms->flags & MAGIC_APPLE)
114 if (ms->flags & MAGIC_ERROR) {
115 file_error(ms, errno, "cannot stat `%s'", fn);
123 if (ms
[all...]
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 Dmagic.c234 unreadable_info(struct magic_set *ms, mode_t md, const char *file) argument
239 if (file_printf(ms, "writable, ") == -1)
242 if (file_printf(ms, "executable, ") == -1)
246 if (file_printf(ms, "regular file, ") == -1)
248 if (file_printf(ms, "no read permission") == -1)
254 magic_close(struct magic_set *ms) argument
256 if (ms == NULL)
258 file_ms_free(ms);
265 magic_load(struct magic_set *ms, const char *magicfile) argument
267 if (ms
273 magic_compile(struct magic_set *ms, const char *magicfile) argument
282 magic_list(struct magic_set *ms, const char *magicfile) argument
290 close_and_restore(const struct magic_set *ms, const char *name, int fd, const zend_stat_t *sb) argument
324 magic_descriptor(struct magic_set *ms, int fd) argument
335 magic_file(struct magic_set *ms, const char *inname) argument
343 magic_stream(struct magic_set *ms, php_stream *stream) argument
351 file_or_stream(struct magic_set *ms, const char *inname, php_stream *stream) argument
426 magic_buffer(struct magic_set *ms, const void *buf, size_t nb) argument
443 magic_error(struct magic_set *ms) argument
451 magic_errno(struct magic_set *ms) argument
459 magic_setflags(struct magic_set *ms, int flags) argument
478 magic_setparam(struct magic_set *ms, int param, const void *val) argument
503 magic_getparam(struct magic_set *ms, int param, void *val) argument
[all...]
H A Dprint.c59 file_magwarn(struct magic_set *ms, const char *f, ...) argument
H A Dapprentice.c123 private int getvalue(struct magic_set *ms, struct magic *, const char **, int);
404 apprentice_1(struct magic_set *ms, const char *fn, int action) argument
411 file_error(ms, 0, "magic element size %lu != %lu",
418 map = apprentice_load(ms, fn, action);
421 return apprentice_compile(ms, map, fn);
424 map = apprentice_map(ms, fn);
427 if (ms->flags & MAGIC_CHECK)
428 file_magwarn(ms, "using regular magic file `%s'", fn);
429 map = apprentice_load(ms, fn, action);
436 if (add_mlist(ms
456 file_ms_free(struct magic_set *ms) argument
478 struct magic_set *ms; local
564 file_apprentice(struct magic_set *ms, const char *fn, int action) argument
994 addentry(struct magic_set *ms, struct magic_entry *me, struct magic_entry_set *mset) argument
1021 load_1(struct magic_set *ms, int action, const char *fn, int *errs, struct magic_entry_set *mset) argument
1120 set_text_binary(struct magic_set *ms, struct magic_entry *me, uint32_t nme, uint32_t starttest) argument
1153 set_last_default(struct magic_set *ms, struct magic_entry *me, uint32_t nme) argument
1174 coalesce_entries(struct magic_set *ms, struct magic_entry *me, uint32_t nme, struct magic **ma, uint32_t *nma) argument
1211 apprentice_load(struct magic_set *ms, const char *fn, int action) argument
1328 file_signextend(struct magic_set *ms, struct magic *m, uint64_t v) argument
1402 string_modifier_check(struct magic_set *ms, struct magic *m) argument
1513 check_cond(struct magic_set *ms, int cond, uint32_t cont_level) argument
1557 parse_indirect_modifier(struct magic_set *ms, struct magic *m, const char **lp) argument
1578 parse_op_modifier(struct magic_set *ms, struct magic *m, const char **lp, int op) argument
1595 parse_string_modifier(struct magic_set *ms, struct magic *m, const char **lp) argument
1699 parse(struct magic_set *ms, struct magic_entry *me, const char *line, size_t lineno, int action) argument
2078 parse_strength(struct magic_set *ms, struct magic_entry *me, const char *line) argument
2139 parse_extra(struct magic_set *ms, struct magic_entry *me, const char *line, zend_off_t off, size_t len, const char *name, const char *extra, int nt) argument
2190 parse_apple(struct magic_set *ms, struct magic_entry *me, const char *line) argument
2204 parse_mime(struct magic_set *ms, struct magic_entry *me, const char *line) argument
2388 check_format(struct magic_set *ms, struct magic *m) argument
2443 getvalue(struct magic_set *ms, struct magic *m, const char **p, int action) argument
2517 getstr(struct magic_set *ms, struct magic *m, const char *s, int warn) argument
2778 apprentice_buf(struct magic_set *ms, struct magic *buf, size_t len) argument
2801 apprentice_map(struct magic_set *ms, const char *fn) argument
2945 check_buffer(struct magic_set *ms, struct magic_map *map, const char *dbname) argument
3004 apprentice_compile(struct magic_set *ms, struct magic_map *map, const char *fn) argument
3064 mkdbname(struct magic_set *ms, const char *fn, int strip) argument
3249 file_magicfind(struct magic_set *ms, const char *name, struct mlist *v) argument
[all...]
H A Dcompress.c108 file_zmagic(struct magic_set *ms, int fd, const char *name, argument
114 int mime = ms->flags & MAGIC_MIME;
119 if ((ms->flags & MAGIC_COMPRESS) == 0)
129 (nsz = uncompressbuf(ms, fd, i, buf, &newbuf,
131 ms->flags &= ~MAGIC_COMPRESS;
133 if (file_buffer(ms, -1, name, newbuf, nsz) == -1)
137 if (file_printf(ms, mime ?
140 if (file_buffer(ms, -1, NULL, buf, nbytes) == -1)
142 if (!mime && file_printf(ms, ")") == -1)
156 ms
254 file_pipe2file(struct magic_set *ms, int fd, const void *startbuf, size_t nbytes) argument
330 uncompressgzipped(struct magic_set *ms, const unsigned char *old, unsigned char **newch, size_t n) argument
396 uncompressbuf(struct magic_set *ms, int fd, size_t method, const unsigned char *old, unsigned char **newch, size_t n) argument
[all...]
H A Dreadcdf.c52 #define NOTMIME(ms) (((ms)->flags & MAGIC_MIME) == 0)
59 { "Excel", "vnd.ms-excel", },
60 { "Powerpoint", "vnd.ms-powerpoint", },
62 { "Advanced Installer", "vnd.ms-msi", },
63 { "InstallShield", "vnd.ms-msi", },
64 { "Microsoft Patch Compiler", "vnd.ms-msi", },
65 { "NAnt", "vnd.ms-msi", },
66 { "Windows Installer", "vnd.ms-msi", },
70 { "PowerPoint", "vnd.ms
133 cdf_file_property_info(struct magic_set *ms, const cdf_property_info_t *info, size_t count, const cdf_directory_t *root_storage) argument
254 cdf_file_catalog(struct magic_set *ms, const cdf_header_t *h, const cdf_stream_t *sst) argument
285 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
357 cdf_file_catalog_info(struct magic_set *ms, const cdf_info_t *info, const cdf_header_t *h, const cdf_sat_t *sat, const cdf_sat_t *ssat, const cdf_stream_t *sst, const cdf_dir_t *dir, cdf_stream_t *scn) argument
409 cdf_file_dir_info(struct magic_set *ms, const cdf_dir_t *dir) argument
441 file_trycdf(struct magic_set *ms, int fd, const unsigned char *buf, size_t nbytes) argument
[all...]
H A Dfuncs.c62 file_printf(struct magic_set *ms, const char *fmt, ...) argument
73 if (ms->o.buf != NULL) {
74 len = spprintf(&newstr, 0, "%s%s", ms->o.buf, (buf ? buf : ""));
78 efree(ms->o.buf);
79 ms->o.buf = newstr;
81 ms->o.buf = buf;
91 file_error_core(struct magic_set *ms, int error, const char *f, va_list va, argument
97 if (ms->event_flags & EVENT_HAD_ERR)
100 efree(ms->o.buf);
101 ms
124 file_error(struct magic_set *ms, int error, const char *f, ...) argument
137 file_magerror(struct magic_set *ms, const char *f, ...) argument
146 file_oomem(struct magic_set *ms, size_t len) argument
153 file_badseek(struct magic_set *ms) argument
159 file_badread(struct magic_set *ms) argument
165 file_buffer(struct magic_set *ms, php_stream *stream, const char *inname, const void *buf, size_t nb) argument
295 file_reset(struct magic_set *ms) argument
323 file_getbuffer(struct magic_set *ms) argument
400 file_check_mem(struct magic_set *ms, unsigned int level) argument
423 file_printedlen(const struct magic_set *ms) argument
429 file_replace(struct magic_set *ms, const char *pat, const char *rep) argument
469 file_push_buffer(struct magic_set *ms) argument
489 file_pop_buffer(struct magic_set *ms, file_pushbuf_t *pb) argument
[all...]
H A Dsoftmagic.c81 file_softmagic(struct magic_set *ms, const unsigned char *buf, size_t nbytes, argument
93 for (ml = ms->mlist[0]->next; ml != ms->mlist[0]; ml = ml->next)
94 if ((rv = match(ms, ml->magic, ml->nmagic, buf, nbytes, 0, mode,
107 file_fmtcheck(struct magic_set *ms, const struct magic *m, const char *def, argument
112 file_magerror(ms,
151 match(struct magic_set *ms, struct magic *magic, uint32_t nmagic, argument
160 int print = (ms->flags & (MAGIC_MIME|MAGIC_APPLE)) == 0;
165 if (file_check_mem(ms, cont_level) == -1)
186 ms
380 check_fmt(struct magic_set *ms, struct magic *m) argument
403 mprint(struct magic_set *ms, struct magic *m) argument
680 moffset(struct magic_set *ms, struct magic *m) argument
915 mconvert(struct magic_set *ms, struct magic *m, int flip) argument
1071 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
1199 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, uint16_t indir_level, uint16_t *name_count, int *printed_something, int *need_separator, int *returnval) argument
1843 magiccheck(struct magic_set *ms, struct magic *m) argument
2210 handle_annotation(struct magic_set *ms, struct magic *m) argument
2226 print_sep(struct magic_set *ms, int firstline) argument
[all...]
/PHP_TRUNK/ext/sqlite3/libsqlite/
H A Dsqlite3ext.h49 int (*busy_timeout)(sqlite3*,int ms);
H A Dsqlite3.c2368 ** will sleep multiple times until at least "ms" milliseconds of sleeping
2369 ** have accumulated. ^After at least "ms" milliseconds of sleeping,
2383 SQLITE_API int SQLITE_STDCALL sqlite3_busy_timeout(sqlite3*, int ms);
15497 double ms = 0.0; local
15512 ms = ms*10.0 + *zDate - '0';
15516 ms /= rScale;
15525 p->s = s + ms;
129478 sqlite3_busy_timeout(sqlite3 *db, int ms) argument
131283 sqlite3_sleep(int ms) argument
[all...]
H A Dsqlite3.h2161 ** will sleep multiple times until at least "ms" milliseconds of sleeping
2162 ** have accumulated. ^After at least "ms" milliseconds of sleeping,
2176 SQLITE_API int SQLITE_STDCALL sqlite3_busy_timeout(sqlite3*, int ms);
/PHP_TRUNK/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...]
/PHP_TRUNK/ext/sqlite3/
H A Dsqlite3.c312 zend_long ms; local
318 if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS(), "l", &ms)) {
322 return_code = sqlite3_busy_timeout(db_obj->db, ms);
1822 ZEND_ARG_INFO(0, ms)

Completed in 206 milliseconds