magic 171 ereg/regex/regcomp.c g->magic = MAGIC2; magic 110 ereg/regex/regex2.h int magic; magic 127 ereg/regex/regexec.c if (preg->re_magic != MAGIC1 || g->magic != MAGIC2) magic 23 ereg/regex/regfree.c if (g == NULL || g->magic != MAGIC2) /* oops again */ magic 26 ereg/regex/regfree.c g->magic = 0; /* mark it invalid */ magic 48 fileinfo/fileinfo.c struct magic_set *magic; magic 86 fileinfo/fileinfo.c magic_close(intern->ptr->magic); magic 180 fileinfo/fileinfo.c if (magic_setflags(magic, options) == -1) { \ magic 182 fileinfo/fileinfo.c options, magic_errno(magic), magic_error(magic)); \ magic 194 fileinfo/fileinfo.c magic_close(finfo->magic); magic 308 fileinfo/fileinfo.c magic_close(finfo_obj->ptr->magic); magic 336 fileinfo/fileinfo.c finfo->magic = magic_open(options); magic 338 fileinfo/fileinfo.c if (finfo->magic == NULL) { magic 345 fileinfo/fileinfo.c if (magic_load(finfo->magic, file) == -1) { magic 347 fileinfo/fileinfo.c magic_close(finfo->magic); magic 400 fileinfo/fileinfo.c FINFO_SET_OPTION(finfo->magic, options) magic 421 fileinfo/fileinfo.c struct magic_set *magic = NULL; magic 447 fileinfo/fileinfo.c magic = magic_open(MAGIC_MIME_TYPE); magic 448 fileinfo/fileinfo.c if (magic_load(magic, NULL) == -1) { magic 457 fileinfo/fileinfo.c magic = finfo->magic; magic 463 fileinfo/fileinfo.c magic = finfo->magic; magic 468 fileinfo/fileinfo.c FINFO_SET_OPTION(magic, options) magic 474 fileinfo/fileinfo.c ret_val = (char *) magic_buffer(magic, buffer, buffer_len); magic 491 fileinfo/fileinfo.c ret_val = (char *) magic_stream(magic, stream); magic 540 fileinfo/fileinfo.c ret_val = (char *)magic_stream(magic, stream); magic 557 fileinfo/fileinfo.c php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed identify data %d:%s", magic_errno(magic), magic_error(magic)); magic 563 fileinfo/fileinfo.c magic_close(magic); magic 568 fileinfo/fileinfo.c FINFO_SET_OPTION(magic, finfo->options) magic 90 fileinfo/libmagic/apprentice.c struct magic *mp; magic 131 fileinfo/libmagic/apprentice.c private size_t magicsize = sizeof(struct magic); magic 246 fileinfo/libmagic/apprentice.c struct magic *magic = NULL; magic 254 fileinfo/libmagic/apprentice.c (unsigned long)sizeof(*magic), magic 260 fileinfo/libmagic/apprentice.c rv = apprentice_load(ms, &magic, &nmagic, fn, action); magic 263 fileinfo/libmagic/apprentice.c rv = apprentice_compile(ms, &magic, &nmagic, fn); magic 264 fileinfo/libmagic/apprentice.c efree(magic); magic 268 fileinfo/libmagic/apprentice.c if ((rv = apprentice_map(ms, &magic, &nmagic, fn)) == -1) { magic 272 fileinfo/libmagic/apprentice.c rv = apprentice_load(ms, &magic, &nmagic, fn, action); magic 281 fileinfo/libmagic/apprentice.c if (magic == NULL) { magic 282 fileinfo/libmagic/apprentice.c file_delmagic(magic, mapped, nmagic); magic 288 fileinfo/libmagic/apprentice.c ml->magic = magic; magic 548 fileinfo/libmagic/apprentice.c struct magic *m = &ml->magic[magindex]; magic 552 fileinfo/libmagic/apprentice.c ml->magic[magindex + 1].cont_level != 0) magic 562 fileinfo/libmagic/apprentice.c ml->magic[magindex + 1].cont_level != 0 && magic 563 fileinfo/libmagic/apprentice.c *ml->magic[magindex].desc == '\0' && magic 564 fileinfo/libmagic/apprentice.c *ml->magic[magindex].mimetype == '\0') magic 569 fileinfo/libmagic/apprentice.c ml->magic[magindex].desc, magic 570 fileinfo/libmagic/apprentice.c ml->magic[magindex].mimetype); magic 1147 fileinfo/libmagic/apprentice.c struct magic *m; magic 1179 fileinfo/libmagic/apprentice.c struct magic *nm; magic 1567 fileinfo/libmagic/apprentice.c struct magic *m = &me->mp[0]; magic 1620 fileinfo/libmagic/apprentice.c struct magic *m = &me->mp[me->cont_count == 0 ? 0 : me->cont_count - 1]; magic 1655 fileinfo/libmagic/apprentice.c struct magic *m = &me->mp[me->cont_count == 0 ? 0 : me->cont_count - 1]; magic 2287 fileinfo/libmagic/apprentice.c *nmagicp = (sizeof(php_magic_database) / sizeof(struct magic)); magic 2289 fileinfo/libmagic/apprentice.c *nmagicp = (uint32_t)(st.sb.st_size / sizeof(struct magic)); magic 2360 fileinfo/libmagic/apprentice.c if (php_stream_seek(stream,(off_t)sizeof(struct magic), SEEK_SET) != sizeof(struct magic)) { magic 2365 fileinfo/libmagic/apprentice.c if (php_stream_write(stream, (char *)*magicp, (sizeof(struct magic) * *nmagicp) != (ssize_t)(sizeof(struct magic) * *nmagicp))) { magic 2436 fileinfo/libmagic/apprentice.c bs1(&magic[i]); magic 68 fileinfo/libmagic/compress.c const char magic[8]; magic 119 fileinfo/libmagic/compress.c if (memcmp(buf, compr[i].magic, compr[i].maglen) == 0 && magic 333 fileinfo/libmagic/file.h struct magic *magic; /* array of magic entries */ magic 118 fileinfo/libmagic/is_tar.c if (strcmp(header->header.magic, GNUTMAGIC) == 0) magic 120 fileinfo/libmagic/is_tar.c if (strcmp(header->header.magic, TMAGIC) == 0) magic 258 fileinfo/libmagic/magic.c struct magic *mg = ml->magic; magic 80 fileinfo/libmagic/softmagic.c if ((rv = match(ms, ml->magic, ml->nmagic, buf, nbytes, mode, magic 131 fileinfo/libmagic/softmagic.c struct magic *m = &magic[magindex]; magic 138 fileinfo/libmagic/softmagic.c while (magindex < nmagic - 1 && magic[magindex + 1].cont_level != 0) { magic 175 fileinfo/libmagic/softmagic.c while (magindex < nmagic - 1 && magic[magindex + 1].cont_level != 0) { magic 204 fileinfo/libmagic/softmagic.c while (magindex < nmagic - 1 && magic[magindex + 1].cont_level != 0) { magic 206 fileinfo/libmagic/softmagic.c m = &magic[magindex]; magic 63 fileinfo/libmagic/tar.h char magic[8]; magic 223 phar/tar.c old = (memcmp(hdr->magic, "ustar", sizeof("ustar")-1) != 0); magic 749 phar/tar.c strncpy(header.magic, "ustar", sizeof("ustar")-1); magic 83 phar/tar.h char magic[6]; /* USTAR indicator */ magic 9428 sqlite3/libsqlite/sqlite3.c u32 magic; /* Magic number for detect library misuse */ magic 12771 sqlite3/libsqlite/sqlite3.c u32 magic; /* Magic number for sanity checking */ magic 21577 sqlite3/libsqlite/sqlite3.c u32 magic; magic 21582 sqlite3/libsqlite/sqlite3.c magic = db->magic; magic 21583 sqlite3/libsqlite/sqlite3.c if( magic!=SQLITE_MAGIC_OPEN ){ magic 21594 sqlite3/libsqlite/sqlite3.c u32 magic; magic 21595 sqlite3/libsqlite/sqlite3.c magic = db->magic; magic 21596 sqlite3/libsqlite/sqlite3.c if( magic!=SQLITE_MAGIC_SICK && magic 21597 sqlite3/libsqlite/sqlite3.c magic!=SQLITE_MAGIC_OPEN && magic 21598 sqlite3/libsqlite/sqlite3.c magic!=SQLITE_MAGIC_BUSY ){ magic 44721 sqlite3/libsqlite/sqlite3.c u32 magic; /* Magic value read from WAL header */ magic 44735 sqlite3/libsqlite/sqlite3.c magic = sqlite3Get4byte(&aBuf[0]); magic 44737 sqlite3/libsqlite/sqlite3.c if( (magic&0xFFFFFFFE)!=WAL_MAGIC magic 44744 sqlite3/libsqlite/sqlite3.c pWal->hdr.bigEndCksum = (u8)(magic&0x00000001); magic 57594 sqlite3/libsqlite/sqlite3.c p->magic = VDBE_MAGIC_INIT; magic 57691 sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_INIT ); magic 57792 sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_INIT ); magic 57812 sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_INIT ); magic 58001 sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_INIT ); magic 58035 sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_INIT ); magic 58263 sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_INIT ); magic 58386 sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_INIT ); magic 58692 sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_RUN ); magic 58957 sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_INIT ); magic 58964 sqlite3/libsqlite/sqlite3.c p->magic = VDBE_MAGIC_RUN; magic 58974 sqlite3/libsqlite/sqlite3.c p->magic = VDBE_MAGIC_RUN; magic 59023 sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_INIT ); magic 59510 sqlite3/libsqlite/sqlite3.c if( p->magic==VDBE_MAGIC_RUN && p->pc>=0 ){ magic 59673 sqlite3/libsqlite/sqlite3.c if( p->magic!=VDBE_MAGIC_RUN ){ magic 59828 sqlite3/libsqlite/sqlite3.c p->magic = VDBE_MAGIC_HALT; magic 59934 sqlite3/libsqlite/sqlite3.c p->magic = VDBE_MAGIC_INIT; magic 59944 sqlite3/libsqlite/sqlite3.c if( p->magic==VDBE_MAGIC_RUN || p->magic==VDBE_MAGIC_HALT ){ magic 60014 sqlite3/libsqlite/sqlite3.c p->magic = VDBE_MAGIC_DEAD; magic 61140 sqlite3/libsqlite/sqlite3.c if( p->magic!=VDBE_MAGIC_RUN ){ magic 61788 sqlite3/libsqlite/sqlite3.c if( p->magic!=VDBE_MAGIC_RUN || p->pc>=0 ){ magic 63327 sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_RUN ); /* sqlite3_step() verifies this */ magic 67381 sqlite3/libsqlite/sqlite3.c if( u.br.pVdbe->magic==VDBE_MAGIC_RUN && u.br.pVdbe->inVtabMethod<2 && u.br.pVdbe->pc>=0 ){ magic 108710 sqlite3/libsqlite/sqlite3.c db->magic = SQLITE_MAGIC_ERROR; magic 108720 sqlite3/libsqlite/sqlite3.c db->magic = SQLITE_MAGIC_CLOSED; magic 110038 sqlite3/libsqlite/sqlite3.c db->magic = SQLITE_MAGIC_BUSY; magic 110119 sqlite3/libsqlite/sqlite3.c db->magic = SQLITE_MAGIC_OPEN; magic 110201 sqlite3/libsqlite/sqlite3.c db->magic = SQLITE_MAGIC_SICK; magic 124672 sqlite3/libsqlite/sqlite3.c u32 magic; /* Always RTREE_GEOMETRY_MAGIC */ magic 125597 sqlite3/libsqlite/sqlite3.c if( p->magic!=RTREE_GEOMETRY_MAGIC magic 127617 sqlite3/libsqlite/sqlite3.c pBlob->magic = RTREE_GEOMETRY_MAGIC; magic 48 sysvshm/php_sysvshm.h char magic[8]; magic 188 sysvshm/sysvshm.c if (strcmp((char*) &(chunk_ptr->magic), "PHP_SM") != 0) { magic 189 sysvshm/sysvshm.c strcpy((char*) &(chunk_ptr->magic), "PHP_SM");