/ast/src/lib/libdss/ |
H A D | dssmagic.c | 22 * 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 D | opaque.c | 31 "[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 D | mimetype.c | 25 * 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 D | mimelib.h | 33 #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 D | mimetype.c | 71 * 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 D | mimelib.h | 79 #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 D | pax-rpm.c | 35 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 D | pax-cpio.c | 54 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 D | pax-mime.c | 33 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 D | pax-tnef.c | 42 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 D | flow-fixed.c | 39 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 D | magicid.h | 25 * generic binary magic id definitions 39 Magicid_data_t magic; /* magic number */ member in struct:Magicid_s
|
H A D | tar.h | 103 char magic[TMAGLEN]; member in struct:header
|
/ast/src/cmd/dsslib/bgp/ |
H A D | bgp-fixed.c | 38 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 D | bgp-ciscov6.c | 51 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 D | vmmopen.c | 60 /* 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 D | tw.h | 34 #include <magic.h> 186 Magic_t* magic; /* magic tests */ member in struct:__anon239 187 Magicdisc_t magicdisc; /* magic discipline */
|
H A D | find.c | 35 * -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 D | vcs_rscs.h | 62 char magic[4]; member in struct:attr_t 134 #define ISRSCS(ap) (strncmp(ap->magic, MAGIC_STRING, MAGIC_LEN) == 0)
|
H A D | vcs_checkout.c | 35 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 D | tkColor.c | 42 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 D | flat.c | 183 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 D | dlfcn.c | 325 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 D | vdupdate.c | 272 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 D | zip.c | 39 #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)
|