Searched refs:magic (Results 1 - 25 of 49) sorted by relevance

12

/ast/src/lib/libdss/
H A Ddssmagic.c22 * dss generic magic number support
35 Magicid_t magic; local
38 memset(&magic, 0, sizeof(magic));
39 magic.magic = MAGICID;
42 strncopy(magic.name, name, sizeof(magic.name));
43 strncopy(magic.type, type, sizeof(magic
[all...]
/ast/src/cmd/dsslib/opaque/
H A Dopaque.c31 "[n:name?The magic header generic data/application name.]:[name]"
33 "[t:type?The magic header specific data type.]:[type]"
34 "[v:version?The magic header version stamp, either \aYYYYMMDD\a or"
46 Magicid_t magic; member in struct:Opaque_s
59 register Magicid_t* magic = (Magicid_t*)buf; local
61 if (size < opaque->magic.size)
63 if (opaque->magic.magic)
65 if (magic->magic !
[all...]
/ast/src/lib/libast/misc/
H A Dmimetype.c25 * mime/mailcap to magic support
31 * close magic handle
32 * done this way so that magic is only pulled in
39 if (mp->magic)
41 magicclose(mp->magic);
42 mp->magic = 0;
55 if (!mp->magic)
60 if (!(mp->magic = magicopen(&mp->magicd)))
66 magicload(mp->magic, NiL, 0);
68 return magictype(mp->magic, f
[all...]
H A Dmimelib.h33 #include <magic.h>
43 Magicdisc_t magicd; /* magic discipline */ \
46 Magic_t* magic; /* mimetype() magic handle */ \
47 Free_f freef; /* avoid magic lib if possible */ \
/ast/src/cmd/mailx/port/
H A Dmimetype.c71 * mime/mailcap to magic support
77 * close magic handle
78 * done this way so that magic is only pulled in
85 if (mp->magic)
87 magicclose(mp->magic);
88 mp->magic = 0;
101 if (!mp->magic)
106 if (!(mp->magic = magicopen(&mp->magicd)))
112 magicload(mp->magic, NiL, 0);
114 return magictype(mp->magic, f
[all...]
H A Dmimelib.h79 #include <magic.h>
88 Magicdisc_t magicd; /* magic discipline */ \
92 Magic_t* magic; /* mimetype() magic handle */ \
93 Free_f freef; /* avoid magic lib if possible */ \
/ast/src/cmd/pax/
H A Dpax-rpm.c35 uint32_t magic; member in struct:__anon182
76 Rpm_magic_t magic; local
87 if (size < sizeof(magic))
89 memcpy(&magic, buf, sizeof(magic));
90 verify.magic = RPM_MAGIC;
91 if ((swap = swapop(&verify.magic, &magic.magic, sizeof(magic
[all...]
H A Dpax-cpio.c54 short magic; member in struct:Binary_header_s
242 int magic; local
244 if (size >= CPIO_HEADER && buf[0] == '0' && sfsscanf((char*)buf, "%6o", &magic) == 1 && magic == CPIO_MAGIC)
361 &f->magic,
371 sizeof(lst.size), &lst.size) == 11 && f->magic == CPIO_MAGIC)
515 unsigned int magic; local
517 if (size >= ASC_HEADER && buf[0] == '0' && sfsscanf((char*)buf, "%6o", &magic) == 1 && magic == ASC_MAGIC)
531 &f->magic,
597 unsigned int magic; local
706 short magic = CPIO_MAGIC; local
[all...]
H A Dpax-mime.c33 size_t length; /* separator magic length */
34 char magic[1]; /* separator magic */ member in struct:Mime_s
62 memcpy(mime->magic, s, mime->length);
63 message((-1, "mime magic `%s'", mime->magic));
91 if (paxread(pax, ap, s = state.tmp.buffer, mime->length + 2, mime->length + 2, 1) <= 0 || memcmp(s, mime->magic, mime->length))
172 if (!memcmp(s, mime->magic, mime->length))
H A Dpax-tnef.c42 uint32_t magic; local
46 magic = TNEF_MAGIC;
47 if ((ap->swap = swapop(&magic, buf, 4)) < 0 || paxread(pax, ap, NiL, (off_t)6, (off_t)6, 0) != 6)
/ast/src/cmd/dsslib/netflow/
H A Dflow-fixed.c39 Magicid_t magic; member in union:Fixedheader_u
56 Magicid_data_t magic; local
59 magic = MAGICID;
61 (swap = swapop(&magic, &mp->magic, sizeof(magic))) >= 0 &&
100 hdr.magic.magic = MAGICID;
101 strcpy(hdr.magic.name, MAGIC_NAME);
102 strcpy(hdr.magic
[all...]
/ast/src/lib/libast/include/
H A Dmagicid.h25 * generic binary magic id definitions
39 Magicid_data_t magic; /* magic number */ member in struct:Magicid_s
H A Dtar.h103 char magic[TMAGLEN]; member in struct:header
/ast/src/cmd/dsslib/bgp/
H A Dbgp-fixed.c38 Magicid_t magic; member in union:Fixedheader_u
55 Magicid_data_t magic; local
58 magic = MAGICID;
60 (swap = swapop(&magic, &mp->magic, sizeof(magic))) >= 0 &&
99 hdr.magic.magic = MAGICID;
100 strcpy(hdr.magic.name, MAGIC_NAME);
101 strcpy(hdr.magic
[all...]
H A Dbgp-ciscov6.c51 static const char* magic[] = { "IPv6 Routing Table - ", "Codes: " }; local
78 if (strneq(f, magic[m], strlen(magic[m])) && ++m >= elementsof(magic))
/ast/src/lib/libast/vmalloc/
H A Dvmmopen.c60 /* magic word signaling region is being initialized */
63 /* magic word signaling file/segment is ready */
89 { unsigned int magic; /* magic bytes */ member in struct:_mmvm_s
124 sprintf(mesg, "Magic: %10d\n", mmdc->mmvm->magic); write(fd, mesg, strlen(mesg));
208 if(asocasint(&mmvm->magic, 0, MM_LETMEDOIT) == 0 ) /* lucky winner: us! */
227 if(mmvm->magic != MM_LETMEDOIT && mmvm->magic != MM_MAGIC)
231 { if(asocasint(&mmvm->magic, MM_MAGIC, MM_MAGIC) == MM_MAGIC )
354 /**/ASSERT(mmdc->mmvm->magic
[all...]
/ast/src/cmd/tw/
H A Dtw.h34 #include <magic.h>
186 Magic_t* magic; /* magic tests */ member in struct:__anon239
187 Magicdisc_t magicdisc; /* magic discipline */
H A Dfind.c35 * -magic pattern
36 * matches pattern agains the file(1) magic description
100 #include <magic.h>
232 Magic_t* magic; member in struct:State_s
348 "magic", MAGIC, Str, 0, "pattern", 0,
349 "File magic number matches the \bfile\b(1) and \bmagic\b(3)"
1135 if (!state->magic)
1140 if (!(state->magic = magicopen(&state->magicdisc)) || magicload(state->magic, NiL, 0))
1142 error(2, "%s: cannot load magic fil
[all...]
/ast/src/cmd/cs/vcs_src/
H A Dvcs_rscs.h62 char magic[4]; member in struct:attr_t
134 #define ISRSCS(ap) (strncmp(ap->magic, MAGIC_STRING, MAGIC_LEN) == 0)
H A Dvcs_checkout.c35 char *sbuf, *tbuf, *dbuf, magic[4]; local
103 if (sfread(fdel, magic,4)!=4 || sfgetc(fdel)<0 || (nsrc = sfgetu(fdel))<0 || (ntar = sfgetu(fdel))<0)
/ast/src/lib/libtk/generic/
H A DtkColor.c42 unsigned int magic; /* Used for quick integrity check on this member in struct:TkColor
234 tkColPtr->magic = COLOR_MAGIC;
319 tkColPtr->magic = COLOR_MAGIC;
361 if ((tkColPtr->magic == COLOR_MAGIC)
411 if (tkColPtr->magic != COLOR_MAGIC) {
458 if (tkColPtr->magic != COLOR_MAGIC) {
493 tkColPtr->magic = 0;
/ast/src/cmd/dsslib/flat/
H A Dflat.c183 struct Magic_s /* magic info */
185 const char* string; /* magic string */
186 unsigned long number; /* magic number */
187 size_t size; /* magic header size */
188 size_t length; /* magic number/string length */
218 Magic_t* magic; member in struct:Flat_s
694 Magicid_data_t magic; local
697 if (!flat->magic)
699 if (flat->magic->version)
704 magic
[all...]
/ast/src/lib/libdll/
H A Ddlfcn.c325 unsigned long magic; member in struct:Dll_s
414 dll->magic = DL_MAGIC;
423 if (!dll || dll == DL_NEXT || dll->magic != DL_MAGIC)
471 if (!dll || dll != DL_NEXT && (dll->magic != DL_MAGIC || !dll->image && !dll->module))
/ast/src/lib/libvdelta/
H A Dvdupdate.c272 uchar magic[8]; local
285 /* check magic header */
286 /* VD_MAGIC is the preferred binary magic */
287 /* VD_MAGIC_OLD is the deprecated ascii magic */
290 if((*_Vdread)(&tab.io,magic,n) != n)
293 if(data[r] != magic[r])
296 if(data[r] != magic[r])
/ast/src/cmd/paxlib/zip/
H A Dzip.c39 #define ZIP_CEN_MAGIC 0x504b0102L /* central header magic */
58 #define ZIP_LOC_MAGIC 0x504b0304L /* local header magic */
71 #define ZIP_END_MAGIC 0x504b0506L /* end header magic */
81 #define ZIP_EXT_MAGIC 0x504b0708L /* ext header magic */
124 unsigned long magic; local
133 if (size < ZIP_LOC_HEADER || (magic = (unsigned long)swapget(0, buf, 4)) != ZIP_LOC_MAGIC && magic != ZIP_CEN_MAGIC)

Completed in 61 milliseconds

12