cryptbreaker/cryptbreaker.patch

changeset 61
0bdf5a6a5ccc
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/cryptbreaker/cryptbreaker.patch	Fri Jan 09 18:39:17 2009 +0100
     1.3 @@ -0,0 +1,151 @@
     1.4 +Index: terminal.c
     1.5 +--- terminal.c.orig	1988-11-26 01:40:43.000000000 +0100
     1.6 ++++ terminal.c	2009-01-09 18:15:47.583499911 +0100
     1.7 +@@ -6,11 +6,11 @@
     1.8 + /* 
     1.9 +  * Routines in terminal abstraction:
    1.10 +  *
    1.11 +- *	set_term()
    1.12 ++ *	set_cb_term()
    1.13 +  *		Initialize terminal, clear the screen.
    1.14 +  *
    1.15 +- *	unset_term()
    1.16 +- *		Return terminal to state before set_term().
    1.17 ++ *	unset_cb_term()
    1.18 ++ *		Return terminal to state before set_cb_term().
    1.19 +  *
    1.20 +  *	char2sym(char)
    1.21 +  *		Return the symbol used to display the given char in the
    1.22 +@@ -97,6 +97,14 @@
    1.23 +  */
    1.24 + 
    1.25 + 
    1.26 ++#include	<stdio.h>
    1.27 ++#include	<stdlib.h>
    1.28 ++#include	<termios.h>
    1.29 ++#if (defined(sun) && defined(__svr4__))
    1.30 ++#include	<sys/ttold.h>
    1.31 ++#else
    1.32 ++#include	<sys/ioctl.h>
    1.33 ++#endif
    1.34 + #include	<curses.h>
    1.35 + #include	<sgtty.h>
    1.36 + #include	<strings.h>
    1.37 +@@ -216,7 +224,7 @@
    1.38 +  * and termcap subroutine packages, although the old code is used
    1.39 +  * for screen refresh.
    1.40 +  */
    1.41 +-set_term()
    1.42 ++set_cb_term()
    1.43 + {
    1.44 + 	printf("\n\nInitializing terminal ...");
    1.45 + 	fflush(stdout);
    1.46 +@@ -609,7 +617,7 @@
    1.47 + 
    1.48 + /* Restore the terminal to its original mode.
    1.49 +  */
    1.50 +-unset_term()
    1.51 ++unset_cb_term()
    1.52 + {
    1.53 + 	enter_mode(SMNORMAL);
    1.54 + 	Puts(end_kp);		/* Can't tell if this is original. */
    1.55 +Index: tritab.c
    1.56 +--- tritab.c.orig	1988-11-26 01:39:37.000000000 +0100
    1.57 ++++ tritab.c	2009-01-09 17:44:48.411457903 +0100
    1.58 +@@ -4,6 +4,7 @@
    1.59 + 
    1.60 + #include	<math.h>
    1.61 + #include	<stdio.h>
    1.62 ++#include	<stdlib.h>
    1.63 + #include	"window.h"
    1.64 + #include	"specs.h"
    1.65 + #include	"cipher.h"
    1.66 +Index: cipher.c
    1.67 +--- cipher.c.orig	1988-11-26 01:40:22.000000000 +0100
    1.68 ++++ cipher.c	2009-01-09 17:54:12.811182642 +0100
    1.69 +@@ -6,6 +6,7 @@
    1.70 + 
    1.71 + 
    1.72 + #include	<stdio.h>
    1.73 ++#include	<stdlib.h>
    1.74 + #include	<math.h>
    1.75 + #include	"window.h"
    1.76 + #include	"specs.h"
    1.77 +Index: start.c
    1.78 +--- start.c.orig	1988-11-26 01:39:45.000000000 +0100
    1.79 ++++ start.c	2009-01-09 18:05:43.601774154 +0100
    1.80 +@@ -11,6 +11,7 @@
    1.81 + 
    1.82 + 
    1.83 + #include	<stdio.h>
    1.84 ++#include	<stdlib.h>
    1.85 + #include	<signal.h>
    1.86 + #include	<setjmp.h>
    1.87 + #include	"window.h"
    1.88 +@@ -109,13 +110,13 @@
    1.89 + {
    1.90 + 	setcursor(MAXHEIGHT, 1);
    1.91 + 	fflush(stdout);
    1.92 +-	unset_term();
    1.93 ++	unset_cb_term();
    1.94 + 	
    1.95 + 	kill(getpid(), SIGSTOP);
    1.96 + 
    1.97 + 	/* Return here when/if program restarted. */
    1.98 + 	/* Note that the signal mask is restored by longjmp. */
    1.99 +-	set_term();
   1.100 ++	set_cb_term();
   1.101 + 	longjmp(saved_stack, 0);
   1.102 + }
   1.103 + 
   1.104 +@@ -128,7 +129,7 @@
   1.105 + 	setcursor(MAXHEIGHT, 1);
   1.106 + 	printf("\n");
   1.107 + 	fflush(stdout);
   1.108 +-	unset_term();
   1.109 ++	unset_cb_term();
   1.110 + 	
   1.111 + 	kill(getpid(), SIGKILL);
   1.112 + }
   1.113 +@@ -192,7 +193,7 @@
   1.114 + done(status)
   1.115 + int	status;
   1.116 + {
   1.117 +-	unset_term();
   1.118 ++	unset_cb_term();
   1.119 + 	printf("\n");
   1.120 + 	exit(status);
   1.121 + }
   1.122 +Index: stats.c
   1.123 +--- stats.c.orig	1988-11-26 01:40:42.000000000 +0100
   1.124 ++++ stats.c	2009-01-09 17:54:22.235822458 +0100
   1.125 +@@ -7,6 +7,7 @@
   1.126 + 
   1.127 + 
   1.128 + #include	<stdio.h>
   1.129 ++#include	<stdlib.h>
   1.130 + #include	<math.h>
   1.131 + #include	"window.h"
   1.132 + #include	"specs.h"
   1.133 +Index: cdblocks.c
   1.134 +--- cblocks.c.orig	1988-11-26 01:39:27.000000000 +0100
   1.135 ++++ cblocks.c	2009-01-09 17:58:13.630695396 +0100
   1.136 +@@ -10,6 +10,7 @@
   1.137 + 
   1.138 + 
   1.139 + #include	<stdio.h>
   1.140 ++#include	<stdlib.h>
   1.141 + #include	"window.h"
   1.142 + #include	"layout.h"
   1.143 + #include	"specs.h"
   1.144 +Index: perm.c
   1.145 +--- perm.c.orig	1988-11-26 01:39:44.000000000 +0100
   1.146 ++++ perm.c	2009-01-09 17:58:19.870669485 +0100
   1.147 +@@ -7,6 +7,7 @@
   1.148 + 
   1.149 + 
   1.150 + #include	<stdio.h>
   1.151 ++#include	<stdlib.h>
   1.152 + #include	"window.h"
   1.153 + #include	"specs.h"
   1.154 + 

mercurial