| /PHP_5_5/ext/sqlite3/libsqlite/ |
| H A D | sqlite3.c | 2369 ** will sleep multiple times until at least "ms" milliseconds of sleeping 2370 ** have accumulated. ^After at least "ms" milliseconds of sleeping, 2382 SQLITE_API int sqlite3_busy_timeout(sqlite3*, int ms); 13296 double ms = 0.0; local 13311 ms = ms*10.0 + *zDate - '0'; 13315 ms /= rScale; 13324 p->s = s + ms; 108918 sqlite3_busy_timeout(sqlite3 *db, int ms) argument 110549 sqlite3_sleep(int ms) argument [all...] |
| /PHP_5_5/ext/fileinfo/libmagic/ |
| H A D | apptype.c | 45 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 D | encoding.c | 68 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 D | is_tar.c | 63 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 D | ascmagic.c | 71 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 D | compress.c | 102 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 D | fsmagic.c | 78 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 D | funcs.c | 59 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 D | readcdf.c | 45 #define NOTMIME(ms) (((ms)->flags & MAGIC_MIME) == 0) 48 cdf_file_property_info(struct magic_set *ms, const cdf_property_info_t *info, argument 65 if (NOTMIME(ms) && file_printf(ms, ", %s: %hd", buf, 70 if (NOTMIME(ms) && file_printf(ms, ", %s: %d", buf, 75 if (NOTMIME(ms) && file_printf(ms, ", %s: %u", buf, 80 if (NOTMIME(ms) 174 cdf_file_summary_info(struct magic_set *ms, const cdf_header_t *h, const cdf_stream_t *sst) argument 222 file_trycdf(struct magic_set *ms, int fd, const unsigned char *buf, size_t nbytes) argument [all...] |
| H A D | readelf.c | 296 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 388 (void)file_printf(ms, ", bad note name size 0x%lx", 394 (void)file_printf(ms, ", ba 852 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 1041 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 1136 file_tryelf(struct magic_set *ms, int fd, const unsigned char *buf, size_t nbytes) argument [all...] |
| H A D | apprentice.c | 109 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 539 file_apprentice(struct magic_set *ms, const char *fn, int action) argument 908 addentry(struct magic_set *ms, struct magic_entry *me, struct magic_entry **mentry, uint32_t *mentrycount) argument 935 load_1(struct magic_set *ms, int action, const char *fn, int *errs, struct magic_entry **mentry, uint32_t *mentrycount) argument 1038 set_text_binary(struct magic_set *ms, struct magic_entry *me, uint32_t nme, uint32_t starttest) argument 1071 set_last_default(struct magic_set *ms, struct magic_entry *me, uint32_t nme) argument 1092 coalesce_entries(struct magic_set *ms, struct magic_entry *me, uint32_t nme, struct magic **ma, uint32_t *nma) argument 1129 apprentice_load(struct magic_set *ms, const char *fn, int action) argument 1260 file_signextend(struct magic_set *ms, struct magic *m, uint64_t v) argument 1333 string_modifier_check(struct magic_set *ms, struct magic *m) argument 1443 check_cond(struct magic_set *ms, int cond, uint32_t cont_level) argument 1490 parse(struct magic_set *ms, struct magic_entry *me, const char *line, size_t lineno, int action) argument 1959 parse_strength(struct magic_set *ms, struct magic_entry *me, const char *line) argument 2013 parse_apple(struct magic_set *ms, struct magic_entry *me, const char *line) argument 2048 parse_mime(struct magic_set *ms, struct magic_entry *me, const char *line) argument 2211 check_format(struct magic_set *ms, struct magic *m) argument 2266 getvalue(struct magic_set *ms, struct magic *m, const char **p, int action) argument 2326 getstr(struct magic_set *ms, struct magic *m, const char *s, int warn) argument 2588 apprentice_map(struct magic_set *ms, const char *fn) argument 2746 apprentice_compile(struct magic_set *ms, struct magic_map *map, const char *fn) argument 2816 mkdbname(struct magic_set *ms, const char *fn, int strip) argument 3002 file_magicfind(struct magic_set *ms, const char *name, struct mlist *v) argument [all...] |
| H A D | magic.c | 234 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 D | print.c | 59 file_magwarn(struct magic_set *ms, const char *f, ...) argument
|
| H A D | softmagic.c | 76 file_softmagic(struct magic_set *ms, const unsigned char *buf, size_t nbytes, argument 81 for (ml = ms->mlist[0]->next; ml != ms->mlist[0]; ml = ml->next) 82 if ((rv = match(ms, ml->magic, ml->nmagic, buf, nbytes, 0, mode, 118 match(struct magic_set *ms, struct magic *magic, uint32_t nmagic, argument 127 int print = (ms->flags & (MAGIC_MIME|MAGIC_APPLE)) == 0; 132 if (file_check_mem(ms, cont_level) == -1) 153 ms->offset = m->offset; 154 ms->line = m->lineno; 157 switch (mget(ms, 341 check_fmt(struct magic_set *ms, struct magic *m) argument 360 mprint(struct magic_set *ms, struct magic *m) argument 616 moffset(struct magic_set *ms, struct magic *m) argument 852 mconvert(struct magic_set *ms, struct magic *m, int flip) argument 995 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 1105 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 1854 magiccheck(struct magic_set *ms, struct magic *m) argument 2261 handle_annotation(struct magic_set *ms, struct magic *m) argument 2277 print_sep(struct magic_set *ms, int firstline) argument [all...] |
| /PHP_5_5/main/streams/ |
| H A D | memory.c | 51 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/ |
| H A D | sqlite3.c | 310 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/sapi/fpm/fpm/ |
| H A D | fpm_events.c | 376 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...] |