rename patches.

some fixes.
This commit is contained in:
form 2002-03-21 09:59:48 +00:00
parent 028d57e89f
commit fe8aaceaa8
20 changed files with 208 additions and 182 deletions

View File

@ -1,6 +1,7 @@
$OpenBSD: patch-Makefile_in,v 1.1 2002/03/21 09:59:48 form Exp $
--- Makefile.in.orig Tue Jan 4 13:38:18 2000
+++ Makefile.in Tue Feb 8 14:04:43 2000
@@ -18,7 +18,7 @@
+++ Makefile.in Thu Mar 21 15:23:54 2002
@@ -18,7 +18,7 @@ LIBS = @LIBS@
CC = @CC@
CPP = @CPP@
@ -9,7 +10,7 @@
#### End of system configuration section. ####
@@ -44,7 +44,7 @@
@@ -44,7 +44,7 @@ install: deco $(libdir)/deco $(li
cd help; for f in *.general *.edit *.view *.hexview; do\
$(INSTALL_DATA) $$f $(libdir)/deco/help/$$f; done
$(INSTALL_DATA) ref.man $(mandir)/man1/deco.1

View File

@ -1,19 +0,0 @@
*** draw.c.orig Thu Oct 1 18:38:22 1998
--- draw.c Thu Oct 1 18:38:31 1998
***************
*** 81,87 ****
VPutChar ('.');
if (group)
VPutString (group);
! if ((curtime = timestr (time ((long *) 0))))
VMPutString (0, 79 - strlen (curtime), curtime);
VStandEnd ();
VMPutString (LINES-1, 0, cmdreg ?
--- 81,87 ----
VPutChar ('.');
if (group)
VPutString (group);
! if ((curtime = timestr (time ((time_t *) 0))))
VMPutString (0, 79 - strlen (curtime), curtime);
VStandEnd ();
VMPutString (LINES-1, 0, cmdreg ?

View File

@ -1,19 +0,0 @@
*** main.c.orig Thu Oct 1 18:38:59 1998
--- main.c Thu Oct 1 18:39:04 1998
***************
*** 103,109 ****
static void docmdreg (int c);
static void doscrreg (int c);
! void main (int argc, char **argv, char **envp)
{
register c;
--- 103,109 ----
static void docmdreg (int c);
static void doscrreg (int c);
! int main (int argc, char **argv, char **envp)
{
register c;

View File

@ -1,36 +0,0 @@
*** ut.c.orig Thu Oct 1 18:49:05 1998
--- ut.c Thu Oct 1 18:49:22 1998
***************
*** 24,30 ****
static char pattern [] = "00-Mon-1900 00:00:00";
! char *timestr (long tim)
{
struct tm *t = localtime (&tim);
register char *p = pattern;
--- 24,30 ----
static char pattern [] = "00-Mon-1900 00:00:00";
! char *timestr (time_t tim)
{
struct tm *t = localtime (&tim);
register char *p = pattern;
***************
*** 49,55 ****
return (p);
}
! long timeval (long tim)
{
struct tm *t = localtime (&tim);
--- 49,55 ----
return (p);
}
! long timeval (time_t tim)
{
struct tm *t = localtime (&tim);

View File

@ -1,21 +0,0 @@
*** deco.h.orig Thu Oct 1 18:50:51 1998
--- deco.h Thu Oct 1 18:51:02 1998
***************
*** 107,114 ****
int match (unsigned char *name, unsigned char *pat);
int getmenu (void);
void downmenu (struct menu *m);
! char *timestr (long tim);
! long timeval (long tim);
int hexview (char *filename);
void viewpage (int line, int col);
void viewchar (int c);
--- 107,114 ----
int match (unsigned char *name, unsigned char *pat);
int getmenu (void);
void downmenu (struct menu *m);
! char *timestr (time_t tim);
! long timeval (time_t tim);
int hexview (char *filename);
void viewpage (int line, int col);
void viewchar (int c);

View File

@ -1,9 +0,0 @@
*** menu.c.orig Thu Oct 1 18:54:23 1998
--- menu.c Thu Oct 1 18:54:33 1998
***************
*** 1,3 ****
--- 1,4 ----
+ #include <time.h>
#include "deco.h"
#include "scr.h"
#include "menu.h"

View File

@ -1,9 +0,0 @@
*** view.c.orig Thu Oct 1 18:54:51 1998
--- view.c Thu Oct 1 18:54:58 1998
***************
*** 1,3 ****
--- 1,4 ----
+ #include <time.h>
#include "deco.h"
#include "scr.h"
#include "rec.h"

View File

@ -1,62 +0,0 @@
*** configure.orig Thu Oct 1 18:57:01 1998
--- configure Thu Oct 1 18:57:23 1998
***************
*** 2092,2105 ****
echo "$ac_t""no" 1>&6
fi
! echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
! echo "configure:2097: checking for tgetent in -lncurses" >&5
! ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
! LIBS="-lncurses $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2105 "configure"
#include "confdefs.h"
--- 2092,2105 ----
echo "$ac_t""no" 1>&6
fi
! echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
! echo "configure:2097: checking for tgetent in -lcurses" >&5
! ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
! LIBS="-lcurses $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2105 "configure"
#include "confdefs.h"
***************
*** 2127,2139 ****
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
! ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
! LIBS="-lncurses $LIBS"
else
echo "$ac_t""no" 1>&6
--- 2127,2139 ----
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
! ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
! LIBS="-lcurses $LIBS"
else
echo "$ac_t""no" 1>&6

View File

@ -0,0 +1,38 @@
$OpenBSD: patch-configure,v 1.1 2002/03/21 09:59:48 form Exp $
--- configure.orig Fri Jul 18 21:48:13 1997
+++ configure Thu Mar 21 15:23:54 2002
@@ -2092,14 +2092,14 @@ else
echo "$ac_t""no" 1>&6
fi
-echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
-echo "configure:2097: checking for tgetent in -lncurses" >&5
-ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
+echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
+echo "configure:2097: checking for tgetent in -lcurses" >&5
+ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
-LIBS="-lncurses $LIBS"
+LIBS="-lcurses $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2105 "configure"
#include "confdefs.h"
@@ -2127,13 +2127,13 @@ LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
+ ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
- LIBS="-lncurses $LIBS"
+ LIBS="-lcurses $LIBS"
else
echo "$ac_t""no" 1>&6

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-deco_h,v 1.1 2002/03/21 09:59:48 form Exp $
--- deco.h.orig Fri Jul 18 20:07:03 1997
+++ deco.h Thu Mar 21 15:23:54 2002
@@ -107,8 +107,8 @@ int strbcmp (char *s, char *b);
int match (unsigned char *name, unsigned char *pat);
int getmenu (void);
void downmenu (struct menu *m);
-char *timestr (long tim);
-long timeval (long tim);
+char *timestr (time_t tim);
+long timeval (time_t tim);
int hexview (char *filename);
void viewpage (int line, int col);
void viewchar (int c);

View File

@ -0,0 +1,17 @@
$OpenBSD: patch-dir_c,v 1.1 2002/03/21 09:59:48 form Exp $
--- dir.c.orig Thu Mar 21 15:29:13 2002
+++ dir.c Thu Mar 21 15:29:44 2002
@@ -358,8 +358,11 @@ int setdir (struct dir *d, char *dirname
d->topfile = d->curfile = 0;
- compdir = d;
- qsort ((char*)d->cat, (unsigned) d->num, sizeof (d->cat[0]), compfile);
+ if (d->sort != SORTSKIP) {
+ compdir = d;
+ qsort ((char*)d->cat, (unsigned) d->num,
+ sizeof (d->cat[0]), compfile);
+ }
if (! dirname) {
/* retag files, restore curfile */

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-draw_c,v 1.1 2002/03/21 09:59:48 form Exp $
--- draw.c.orig Tue Jan 4 13:33:31 2000
+++ draw.c Thu Mar 21 15:23:53 2002
@@ -81,7 +81,7 @@ void drawbanners ()
VPutChar ('.');
if (group)
VPutString (group);
- if ((curtime = timestr (time ((long *) 0))))
+ if ((curtime = timestr (time ((time_t *) 0))))
VMPutString (0, 79 - strlen (curtime), curtime);
VStandEnd ();
VMPutString (LINES-1, 0, cmdreg ?

View File

@ -1,5 +1,6 @@
--- ex.c Sat Jul 12 18:54:34 1997
+++ /home/andy/tmp/wrk/ex.c Tue Dec 16 12:14:53 1997
$OpenBSD: patch-ex_c,v 1.1 2002/03/21 09:59:48 form Exp $
--- ex.c.orig Sun Jul 13 01:54:34 1997
+++ ex.c Thu Mar 21 15:23:53 2002
@@ -59,11 +59,11 @@
#define UMFILE ".menu"
#define INITFILE ".decoini"

View File

@ -1,5 +1,6 @@
--- help.c Sat Jul 12 18:54:34 1997
+++ /home/andy/tmp/wrk/help.c Tue Dec 16 12:15:00 1997
$OpenBSD: patch-help_c,v 1.1 2002/03/21 09:59:48 form Exp $
--- help.c.orig Sun Jul 13 01:54:34 1997
+++ help.c Thu Mar 21 15:23:53 2002
@@ -10,7 +10,7 @@
#define CS 34

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-main_c,v 1.1 2002/03/21 09:59:48 form Exp $
--- main.c.orig Tue Dec 29 02:16:43 1998
+++ main.c Thu Mar 21 15:23:54 2002
@@ -103,7 +103,7 @@ static void execute (void);
static void docmdreg (int c);
static void doscrreg (int c);
-void main (int argc, char **argv, char **envp)
+int main (int argc, char **argv, char **envp)
{
register c;

View File

@ -0,0 +1,8 @@
$OpenBSD: patch-menu_c,v 1.1 2002/03/21 09:59:48 form Exp $
--- menu.c.orig Sun Jul 13 00:53:25 1997
+++ menu.c Thu Mar 21 15:23:54 2002
@@ -1,3 +1,4 @@
+#include <time.h>
#include "deco.h"
#include "scr.h"
#include "menu.h"

View File

@ -0,0 +1,30 @@
$OpenBSD: patch-rec_c,v 1.1 2002/03/21 09:59:48 form Exp $
--- rec.c.orig Sun Jul 13 01:52:20 1997
+++ rec.c Thu Mar 21 15:47:00 2002
@@ -61,7 +61,7 @@ static int lenbuf;
static char *scanbuf, *pbuf;
static char *tfilename;
static int eoln;
-static int MAXLEN = ((unsigned int) (int) -1 >> 1) / sizeof (struct index);
+static int MAXLEN = 32767;
static int ffcopy (int from, int to)
{
@@ -168,6 +168,9 @@ REC *RecOpen (int fd, int wmode)
if (wmode) {
if (! tfilename)
tfilename = tfilepattern;
+#ifdef HAVE_MKSTEMP
+ r->tfd = mkstemp(tfilename);
+#else
r->tfd = creat (tfilename, 0600);
if (r->tfd < 0) {
error ("Cannot open temporary file");
@@ -175,6 +178,7 @@ REC *RecOpen (int fd, int wmode)
}
close (r->tfd);
r->tfd = open (tfilename, 2);
+#endif
if (r->tfd < 0) {
error ("Cannot reopen temporary file");
return (0);

View File

@ -0,0 +1,38 @@
$OpenBSD: patch-scr_c,v 1.1 2002/03/21 09:59:48 form Exp $
--- scr.c.orig Tue Dec 29 22:57:11 1998
+++ scr.c Thu Mar 21 15:31:17 2002
@@ -167,7 +167,7 @@ static char *KS, *KE;
static char *CL, *CM, *SE, *SO, *TE, *TI, *VE, *VS,
*AL, *DL, *IS, *IF, *FS, *MD, *MH, *ME, *MR,
- *CF, *CB, *AF, *AB, *Sf, *Sb, *MF, *MB;
+ *CF, *CB, *AF, *AB, *Sf, *Sb, *MF, *MB, *OP;
static NF, NB;
static char MS, C2;
@@ -231,6 +231,7 @@ struct CapTab outtab [] = {
{ "Cs", CAPSTR, 0, 0, 0, &Cs, },
{ "Ce", CAPSTR, 0, 0, 0, &Ce, },
{ "Ct", CAPSTR, 0, 0, 0, &Ct, },
+ { "op", CAPSTR, 0, 0, 0, &OP, },
{ { 0, 0, }, 0, 0, 0, 0, 0, },
};
@@ -413,6 +414,8 @@ void VClose ()
tputs (TE);
if (KE)
tputs (KE);
+ if (OP)
+ tputs (OP);
VFlush ();
TtyReset ();
}
@@ -425,6 +428,8 @@ void VRestore ()
tputs (VE);
if (KE)
tputs (KE);
+ if (OP)
+ tputs (OP);
VFlush ();
TtyReset ();
}

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-ut_c,v 1.1 2002/03/21 09:59:48 form Exp $
--- ut.c.orig Tue Jan 4 13:21:31 2000
+++ ut.c Thu Mar 21 15:23:54 2002
@@ -24,7 +24,7 @@
static char pattern [] = "00-Mon-1900 00:00:00";
-char *timestr (long tim)
+char *timestr (time_t tim)
{
struct tm *t = localtime (&tim);
register char *p = pattern;
@@ -49,7 +49,7 @@ char *timestr (long tim)
return (p);
}
-long timeval (long tim)
+long timeval (time_t tim)
{
struct tm *t = localtime (&tim);

View File

@ -0,0 +1,8 @@
$OpenBSD: patch-view_c,v 1.1 2002/03/21 09:59:48 form Exp $
--- view.c.orig Sun Jul 13 00:53:25 1997
+++ view.c Thu Mar 21 15:23:54 2002
@@ -1,3 +1,4 @@
+#include <time.h>
#include "deco.h"
#include "scr.h"
#include "rec.h"