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

12

/PHP_5_3/ext/sqlite/libsqlite/src/
H A Ddate.c179 double ms = 0.0; local
194 ms = ms*10.0 + *zDate - '0';
198 ms /= rScale;
207 p->s = s + ms;
801 int ms = (x.s - s)*1000.0; local
802 sprintf(&z[j],"%02d.%03d",s,ms);
H A Dmain.c944 void sqlite_busy_timeout(sqlite *db, int ms){ argument
945 if( ms>0 ){
946 sqlite_busy_handler(db, sqliteDefaultBusyCallback, (void*)(long)ms);
H A Dos.c1677 int sqliteOsSleep(int ms){ argument
1680 usleep(ms*1000);
1681 return ms;
1683 sleep((ms+999)/1000);
1684 return 1000*((ms+999)/1000);
1688 Sleep(ms);
1689 return ms;
1693 UInt32 ticks = (((UInt32)ms+16)*3)/50; /* 1/60 sec per tick */
H A Dos.h183 int sqliteOsSleep(int ms);
H A Dsqlite.h.in289 ** at least "ms" milleseconds of sleeping have been done. After
290 ** "ms" milleseconds of sleeping, the handler returns 0 which
296 void sqlite_busy_timeout(sqlite*, int ms);
H A Dsqlite.w32.h259 ** at least "ms" milleseconds of sleeping have been done. After
260 ** "ms" milleseconds of sleeping, the handler returns 0 which
266 void sqlite_busy_timeout(sqlite*, int ms);
/PHP_5_3/ext/sqlite3/libsqlite/
H A Dsqlite3ext.h49 int (*busy_timeout)(sqlite3*,int ms);
/PHP_5_3/sapi/fpm/fpm/
H A Dfpm_events.c368 struct timeval ms; local
380 timerclear(&ms);
385 if (!timerisset(&ms)) {
386 ms = q->ev->timeout;
388 if (timercmp(&q->ev->timeout, &ms, <)) {
389 ms = q->ev->timeout;
396 if (!timerisset(&ms) || timercmp(&ms, &now, <) || timercmp(&ms, &now, ==)) {
399 timersub(&ms,
[all...]
/PHP_5_3/ext/fileinfo/libmagic/
H A Dapprentice.c100 private int getvalue(struct magic_set *ms, struct magic *, const char **, int);
243 apprentice_1(struct magic_set *ms, const char *fn, int action, argument
253 file_error(ms, 0, "magic element size %lu != %lu",
260 rv = apprentice_load(ms, &magic, &nmagic, fn, action);
263 rv = apprentice_compile(ms, &magic, &nmagic, fn);
268 if ((rv = apprentice_map(ms, &magic, &nmagic, fn)) == -1) {
270 if (ms->flags & MAGIC_CHECK)
271 file_magwarn(ms, "using regular magic file `%s'", fn);
272 rv = apprentice_load(ms, &magic, &nmagic, fn, action);
332 file_apprentice(struct magic_set *ms, cons argument
655 load_1(struct magic_set *ms, int action, const char *fn, int *errs, struct magic_entry **marray, uint32_t *marraycount) argument
750 apprentice_load(struct magic_set *ms, struct magic **magicp, uint32_t *nmagicp, const char *fn, int action) argument
913 file_signextend(struct magic_set *ms, struct magic *m, uint64_t v) argument
981 string_modifier_check(struct magic_set *ms, struct magic *m) argument
1091 check_cond(struct magic_set *ms, int cond, uint32_t cont_level) argument
1138 parse(struct magic_set *ms, struct magic_entry **mentryp, uint32_t *nmentryp, const char *line, size_t lineno, int action) argument
1561 parse_strength(struct magic_set *ms, struct magic_entry *me, const char *line) argument
1615 parse_apple(struct magic_set *ms, struct magic_entry *me, const char *line) argument
1650 parse_mime(struct magic_set *ms, struct magic_entry *me, const char *line) argument
1810 check_format(struct magic_set *ms, struct magic *m) argument
1865 getvalue(struct magic_set *ms, struct magic *m, const char **p, int action) argument
1923 getstr(struct magic_set *ms, struct magic *m, const char *s, int warn) argument
2187 apprentice_map(struct magic_set *ms, struct magic **magicp, uint32_t *nmagicp, const char *fn) argument
2328 apprentice_compile(struct magic_set *ms, struct magic **magicp, uint32_t *nmagicp, const char *fn) argument
2382 mkdbname(struct magic_set *ms, const char *fn, int strip) argument
[all...]
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 ((ms->flags & MAGIC_NO_CHECK_SOFT) == 0) {
147 if ((rv = file_softmagic(ms, utf8_buf,
194 if (!file_printedlen(ms)
[all...]
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
384 uncompressbuf(struct magic_set *ms, int fd, size_t method, const unsigned char *old, unsigned char **newch, size_t n) argument
[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 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 Dfile.h395 protected int file_fsmagic(struct magic_set *ms, const char *fn, struct stat *sb, php_stream *stream);
437 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
95 int mime = ms->flags & MAGIC_MIME;
98 if (ms->flags & MAGIC_APPLE)
108 if (ms->flags & MAGIC_ERROR) {
109 file_error(ms, errno, "cannot stat `%s'", fn);
117 if (ms
[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
410 file_check_mem(struct magic_set *ms, unsigned int level) argument
427 file_printedlen(const struct magic_set *ms) argument
434 file_replace(struct magic_set *ms, const char *pat, const char *rep) argument
[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.c224 struct magic_set *ms; local
226 ms = ecalloc((size_t)1, sizeof(struct magic_set));
228 if (magic_setflags(ms, flags) == -1) {
233 ms->o.buf = ms->o.pbuf = NULL;
235 ms->c.li = emalloc((ms->c.len = 10) * sizeof(*ms->c.li));
237 ms->event_flags = 0;
238 ms
267 unreadable_info(struct magic_set *ms, mode_t md, const char *file) argument
285 magic_close(struct magic_set *ms) argument
306 magic_load(struct magic_set *ms, const char *magicfile) argument
318 magic_compile(struct magic_set *ms, const char *magicfile) argument
327 magic_list(struct magic_set *ms, const char *magicfile) argument
335 close_and_restore(const struct magic_set *ms, const char *name, int fd, const struct stat *sb) argument
369 magic_descriptor(struct magic_set *ms, int fd) argument
378 magic_file(struct magic_set *ms, const char *inname) argument
384 magic_stream(struct magic_set *ms, php_stream *stream) argument
390 file_or_stream(struct magic_set *ms, const char *inname, php_stream *stream) argument
470 magic_buffer(struct magic_set *ms, const void *buf, size_t nb) argument
485 magic_error(struct magic_set *ms) argument
491 magic_errno(struct magic_set *ms) argument
497 magic_setflags(struct magic_set *ms, int flags) argument
[all...]
H A Dprint.c53 file_magwarn(struct magic_set *ms, const char *f, ...) argument
H A Dreadelf.c293 dophn_core(struct magic_set *ms, int clazz, int swap, int fd, off_t off, argument
303 if (file_printf(ms, ", corrupted program header size") == -1)
313 file_badseek(ms);
317 file_badread(ms);
335 file_badseek(ms);
341 file_badread(ms);
348 offset = donote(ms, nbuf, offset, (size_t)bufsize,
360 donote(struct magic_set *ms, unsigned char *nbuf, size_t offset, size_t size, argument
384 (void)file_printf(ms, ", bad note name size 0x%lx",
390 (void)file_printf(ms, ", ba
843 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) argument
1031 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
1126 file_tryelf(struct magic_set *ms, int fd, const unsigned char *buf, size_t nbytes) 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.c74 file_softmagic(struct magic_set *ms, const unsigned char *buf, size_t nbytes, argument
79 for (ml = ms->mlist->next; ml != ms->mlist; ml = ml->next)
80 if ((rv = match(ms, ml->magic, ml->nmagic, buf, nbytes, mode,
115 match(struct magic_set *ms, struct magic *magic, uint32_t nmagic, argument
124 int print = (ms->flags & (MAGIC_MIME|MAGIC_APPLE)) == 0;
126 if (file_check_mem(ms, cont_level) == -1)
144 ms->offset = m->offset;
145 ms->line = m->lineno;
148 switch (mget(ms,
323 check_fmt(struct magic_set *ms, struct magic *m) argument
342 mprint(struct magic_set *ms, struct magic *m) argument
565 moffset(struct magic_set *ms, struct magic *m) argument
751 mconvert(struct magic_set *ms, struct magic *m) argument
897 mcopy(struct magic_set *ms, union VALUETYPE *p, int type, int indir, const unsigned char *s, uint32_t offset, size_t nbytes, size_t linecnt) argument
1007 mget(struct magic_set *ms, const unsigned char *s, struct magic *m, size_t nbytes, unsigned int cont_level, int text) argument
1690 magiccheck(struct magic_set *ms, struct magic *m) argument
2100 handle_annotation(struct magic_set *ms, struct magic *m) argument
2116 print_sep(struct magic_set *ms, int firstline) argument
[all...]
/PHP_5_3/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);
1818 ZEND_ARG_INFO(0, ms)
/PHP_5_3/main/streams/
H A Dmemory.c52 php_stream_memory_data *ms = (php_stream_memory_data*)stream->abstract; local
53 assert(ms != NULL);
55 if (ms->mode & TEMP_STREAM_READONLY) {
58 if (ms->fpos + count > ms->fsize) {
61 if (!ms->data) {
62 tmp = emalloc(ms->fpos + count);
64 tmp = erealloc(ms->data, ms->fpos + count);
67 count = ms
88 php_stream_memory_data *ms = (php_stream_memory_data*)stream->abstract; local
109 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
317 php_stream_memory_data *ms; local
341 php_stream_memory_data *ms = (php_stream_memory_data*)stream->abstract; local
[all...]

Completed in 45 milliseconds

12