Searched refs:MAGIC (Results 1 - 12 of 12) sorted by relevance

/ast/src/lib/libardir/
H A Dar-pdp11.c30 #define MAGIC 0177545 macro
78 if (swapget(0, buf, MAGIC_SIZE) == MAGIC)
80 else if (swapget(1, buf, MAGIC_SIZE) == MAGIC)
H A Dar-s5r0.c30 #define MAGIC "<ar>" macro
35 char ar_magic[MAGIC_SIZE]; /* MAGIC */
112 if (memcmp(hdr->ar_magic, MAGIC, MAGIC_SIZE))
H A Dar-aix.c29 #define MAGIC "<aiaff>\n" macro
102 if (memcmp(hdr->fl_magic, MAGIC, MAGIC_SIZE))
H A Dar-aixbig.c29 #define MAGIC "<bigaf>\n" macro
103 if (memcmp(hdr->fl_magic, MAGIC, MAGIC_SIZE))
H A Dar-port.c30 #define MAGIC "!<arch>\n" macro
121 if (memcmp(buf, MAGIC, MAGIC_SIZE))
/ast/src/cmd/paxlib/arj/
H A Darj.c31 #define MAGIC 0xea60 macro
73 if (size < 4 || swapget(3, buf, 2) != MAGIC || size < ((n = swapget(3, buf+2, 2)) + 8) || n > 2600)
123 if (n < 32 || n > 2600 || swapget(3, buf, 2) != MAGIC || !(buf = (unsigned char*)paxget(pax, ap, n + 4, NiL)))
/ast/src/cmd/paxlib/zoo/
H A Dzoo.c34 #define MAGIC 0xfdc4a7dc macro
69 if (size < 34 || swapget(3, buf + 20, 4) != MAGIC)
115 swapget(3, buf, 4) != MAGIC)
/ast/src/cmd/tw/
H A Dfind.c132 NOGROUP, NOUSER, FAST, ICASE, MAGIC, MIME, XARGS, enumerator in enum:Command
348 "magic", MAGIC, Str, 0, "pattern", 0,
1133 case MAGIC:
1567 case MAGIC:
/ast/src/lib/libtksh/tcl/
H A Dregexp.c193 #define MAGIC 0234 macro
257 regc(MAGIC, rcstate);
274 regc(MAGIC, rcstate);
782 if (UCHARAT(prog->program) != MAGIC) {
/ast/src/cmd/ksh93/tests/
H A Dtypes.sh364 MAGIC='stdinstall (at&t research) 2009-08-25'
370 typeset magic=$MAGIC
/ast/src/cmd/paxlib/calib/
H A Dcalib.c47 #define MAGIC "\301\304\331\100\323\311\302\331\306" macro
298 if (memcmp(hdr, MAGIC, sizeof(MAGIC) - 1))
/ast/src/cmd/nmake/
H A Dobject.c129 #define MAGIC "\015\001\013\005" macro
130 #define MAGICSIZE (sizeof(MAGIC)-1)
978 sfwrite(sp, MAGIC, MAGICSIZE);
991 sfwrite(sp, MAGIC, MAGICSIZE);
1254 if (n >= MAGICSIZE && !memcmp(s, MAGIC, MAGICSIZE) || n >= sizeof(old) && ((old = OLD_MAGIC, swapop(s, &old, sizeof(old)) >= 0) || (old = OLD_OLD_MAGIC, swapop(s, &old, sizeof(old)) >= 0)))
1532 if (memcmp(s, MAGIC, MAGICSIZE) || !(s = getstring(sp)) || streq(s, OLD_VERSION))
1597 if (!(s = sfreserve(sp, MAGICSIZE, 0)) || memcmp(s, MAGIC, MAGICSIZE))

Completed in 58 milliseconds