From: iglesias@draco.acs.uci.edu (Mike Iglesias)
Subject: Re: Crack 4.1 for DEC OSF 3.0?
Date: 24 Sep 1994 05:51:23 GMT [thread overview]
Message-ID: <360eor$q1v@news.service.uci.edu> (raw)
In-Reply-To: 35ufe2$ka7@uk-usenet.uk.sun.com
In article <35ufe2$ka7@uk-usenet.uk.sun.com>,
Alec Muffett <alecm@coyote.uk.sun.com> wrote:
>I would, but I don't have an Alpha to play with 8-(
The patches at the end of this message make Crack work, including fixing
bytesex. I fixed it so it would work; there may be better ways to fix
it but it works on the systems I tried it on (Suns, Ultrix, OSF/1).
--
Mike Iglesias Internet: iglesias@draco.acs.uci.edu
University of California, Irvine phone: (714) 856-6926
Office of Academic Computing FAX: (714) 725-2069
Central Computing Support
*** ufc-crypt/ufc-crypt.h.dist Thu Mar 19 21:24:09 1992
--- ufc-crypt/ufc-crypt.h Wed Nov 25 08:52:18 1992
***************
*** 53,58 ****
--- 53,64 ----
#define _UFC_64_
#endif
+ #ifdef __alpha
+ typedef unsigned long ufc_long;
+ typedef unsigned long long64;
+ #define _UFC_64_
+ #endif
+
/*
* For debugging 64 bit code etc with 'gcc'
*/
*** Sources/bytesex.c.dist Thu Mar 19 21:13:46 1992
--- Sources/bytesex.c Tue Feb 23 17:26:25 1993
***************
*** 4,9 ****
--- 4,10 ----
{
char *p;
long int l;
+ int endian = 0; /* 1 = big, -1 = little */
l = 'a' << 24 | 'b' << 16 | 'c' << 8 | 'd';
p = (char *) &l;
***************
*** 23,32 ****
}
if (!strncmp (p, "abcd", 4))
{
! puts ("-DBIG_ENDIAN");
} else if (!strncmp (p, "dcba", 4))
{
! puts ("-DLITTLE_ENDIAN");
}
exit (0);
}
--- 24,56 ----
}
if (!strncmp (p, "abcd", 4))
{
! endian = 1;
} else if (!strncmp (p, "dcba", 4))
{
! endian = -1;
}
+ if (endian == 0) { /* try again after shifting l back 32 */
+ l >>= 32;
+ if (!strncmp (p, "abcd", 4))
+ {
+ endian = 1;
+ } else if (!strncmp (p, "dcba", 4))
+ {
+ endian = -1;
+ }
+ }
+ switch (endian)
+ {
+ case 0:
+ fprintf (stderr, "bytesex: Can't figure out endian of this system!\n");
+ exit(1);
+ case 1:
+ puts ("-DBIG_ENDIAN");
+ break;
+ case -1:
+ puts ("-DLITTLE_ENDIAN");
+ }
+
+
exit (0);
}
*** Sources/crack-supp.c.dist Thu Mar 19 21:13:47 1992
--- Sources/crack-supp.c Fri Nov 27 17:46:18 1992
***************
*** 44,53 ****
char *fmt;
long int a, b, c, d, e, f, g, h, i, j;
{
! long t;
time (&t);
! printf ("pwc: %-15.15s ", ctime (&t) + 4);
printf (fmt, a, b, c, d, e, f, g, h, i, j);
fflush (stdout);
}
--- 44,53 ----
char *fmt;
long int a, b, c, d, e, f, g, h, i, j;
{
! time_t t;
time (&t);
! printf ("pwc: %-15.15s ", (char *) ctime (&t) + 4);
printf (fmt, a, b, c, d, e, f, g, h, i, j);
fflush (stdout);
}
next prev parent reply other threads:[~1994-09-24 5:51 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-09-16 16:31 Crack 4.1 for DEC OSF 3.0? Grant Taylor
1994-09-19 15:01 ` Michel Kern
1994-09-19 17:18 ` Castor Fu
[not found] ` <35pkod$sr7@osfb.aber.ac.uk>
[not found] ` <35r91n$t92@rosebud.sdsc.edu>
[not found] ` <35rspo$47h@news.delphi.com>
1994-09-22 14:27 ` Doug McPherson
1994-09-22 21:43 ` Charlie Brown
1994-09-25 22:11 ` Szymon Sokol
1994-09-23 10:34 ` Michel Kern
1994-09-23 11:50 ` Alec Muffett
1994-09-23 16:06 ` Xiang Tu
1994-09-24 5:51 ` Mike Iglesias [this message]
1994-09-23 16:33 ` Paul S. Sears
1994-09-24 16:57 ` Xiang Tu
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox