mirror of
https://github.com/vbatts/bvi.git
synced 2024-11-21 16:15:43 +00:00
bvi-1.3.1.src.tar.gz
This commit is contained in:
parent
0220b756fa
commit
16baacb54f
46 changed files with 5276 additions and 1914 deletions
16
CHANGES
16
CHANGES
|
@ -1,3 +1,19 @@
|
|||
New in release 1.3.1
|
||||
====================
|
||||
|
||||
* autoconf 2.52
|
||||
* do_back() fix
|
||||
* replace sys_errlist[errno] with strerror(errno) (Debian #106762)
|
||||
* deleting bytes in empty file fixed (Debian #121934)
|
||||
* no ":set mm" for x at eof (Debian #122240)
|
||||
* cast for alloc_buf() in set.c
|
||||
* r-bug fix in edit.c and bvi.c
|
||||
* renamed CTRL to BVICTRL (AIX problem)
|
||||
* bmore: nicer last line
|
||||
* bmore: bmbeep() instead of beep()
|
||||
* bmore: subshell support fixes
|
||||
|
||||
|
||||
New in release 1.3.0
|
||||
====================
|
||||
|
||||
|
|
4
CREDITS
4
CREDITS
|
@ -6,6 +6,10 @@ Peter J. Holzer <hjp@wsr.ac.at> setlocale
|
|||
Albert Chin-A-Young <china@thewrittenword.com> Makefile.in
|
||||
Ralf <rks@ffm.tc.iot.dtag.de> AIX fixes
|
||||
Claudio Nieder <claudio@chili.symmetrix.ch> Makefile
|
||||
Nico Schmidt <Nico.Schmidt@ipk.fhg.de> r-bug fix
|
||||
Steve Waltner <swaltner@lsil.com> Mac OS X support
|
||||
Andre Wobst <Andre.Wobst@Physik.Uni-Augsburg.de> AIX fixes
|
||||
SimoN <simontdd@netzero.net> bmore: subshell support fixes
|
||||
|
||||
Packages:
|
||||
Christian "naddy" Weisgerber <naddy@mips.rhein-neckar.de> Source RPM
|
||||
|
|
19
README
19
README
|
@ -1,6 +1,6 @@
|
|||
BVI - Binary visual editor
|
||||
==========================
|
||||
http://bvi.linuxave.net/
|
||||
http://bvi.sourceforge.net/
|
||||
|
||||
This editor for binary files was written by Gerhard Buergmann
|
||||
and is distributed under the GPL (GNU Public License).
|
||||
|
@ -9,17 +9,26 @@ and is distributed under the GPL (GNU Public License).
|
|||
How to compile
|
||||
==============
|
||||
|
||||
gunzip -c bvi-1.3.0.tar.gz | tar xvf -
|
||||
cd bvi-1.3.0
|
||||
gunzip -c bvi-1.3.1.tar.gz | tar xvf -
|
||||
cd bvi-1.3.1
|
||||
./configure
|
||||
make
|
||||
make install
|
||||
|
||||
|
||||
MAC OS X
|
||||
========
|
||||
Looks like the curses implementation in Darwin is really limited.
|
||||
You should install and use ncurses instead. You can download it from
|
||||
ftp.gnu.org; install it and then use
|
||||
./configure --with-ncurses=/usr/local/ncurses-5.2
|
||||
|
||||
|
||||
HTML documentation in subdirectory html/
|
||||
|
||||
Subscribe to the bvi mailing for support, updates and other news:
|
||||
|
||||
Send a blank email to bvi-subscribe@eGroups.com. You will receive a
|
||||
Send a blank email to bvi-subscribe@yahoogroups.com. You will receive a
|
||||
subscription confirmation message. Simply reply this message and your
|
||||
subscription will be complete.
|
||||
|
||||
|
@ -30,6 +39,6 @@ comments, questions, etc. (even flames) to:
|
|||
|
||||
Gerhard Buergmann
|
||||
Vienna, Austria
|
||||
E-mail: Gerhard.Buergmann@altavista.net
|
||||
E-mail: Gerhard.Buergmann@utanet.at
|
||||
|
||||
|
||||
|
|
8
bm_dos.c
8
bm_dos.c
|
@ -2,6 +2,7 @@
|
|||
*
|
||||
* 2000-05-10 V 1.3.0 alpha
|
||||
* 2000-07-07 V 1.3.0 final
|
||||
* 2001-12-07 V 1.3.1
|
||||
*
|
||||
* NOTE: Edit this file with tabstop=4 !
|
||||
*
|
||||
|
@ -117,10 +118,3 @@ cleareol()
|
|||
}
|
||||
|
||||
|
||||
void
|
||||
beep(void)
|
||||
{
|
||||
putchar(7);
|
||||
}
|
||||
|
||||
|
||||
|
|
59
bm_unix.c
59
bm_unix.c
|
@ -2,10 +2,11 @@
|
|||
*
|
||||
* 2000-05-31 V 1.3.0 beta
|
||||
* 2000-10-12 V 1.3.0 final
|
||||
* 2002-02-10 V 1.3.1
|
||||
*
|
||||
* NOTE: Edit this file with tabstop=4 !
|
||||
*
|
||||
* Copyright 1996-2000 by Gerhard Buergmann
|
||||
* Copyright 1996-2002 by Gerhard Buergmann
|
||||
* Gerhard.Buergmann@altavista.net
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
|
@ -32,10 +33,10 @@
|
|||
struct termios ostate, nstate;
|
||||
|
||||
|
||||
char *rev_start, *rev_end;/* enter and exit standout mode */
|
||||
char *Home; /* go to home */
|
||||
char *clear_sc; /* clear screen */
|
||||
char *erase_ln; /* erase line */
|
||||
char *rev_start, *rev_end; /* enter and exit standout mode */
|
||||
char *Home; /* go to home */
|
||||
char *clear_sc; /* clear screen */
|
||||
char *erase_ln; /* erase line */
|
||||
|
||||
extern off_t bytepos, screen_home;
|
||||
extern FILE *curr_file;
|
||||
|
@ -44,7 +45,9 @@ int got_int;
|
|||
int fnum, no_intty, no_tty, slow_tty;
|
||||
int dum_opt, dlines;
|
||||
|
||||
|
||||
#ifdef HAVE_NCURSES_H
|
||||
# undef NEED_PUTC_CHAR
|
||||
#endif
|
||||
/*
|
||||
* A real function, for the tputs routine
|
||||
*/
|
||||
|
@ -75,11 +78,13 @@ initterm()
|
|||
struct termios nstate;
|
||||
|
||||
no_tty = tcgetattr(fileno(stdout), &ostate);
|
||||
nstate = ostate;
|
||||
nstate.c_lflag &= ~(ICANON|ECHO|ECHOE|ECHOK|ECHONL);
|
||||
nstate.c_cc[VMIN] = 1;
|
||||
nstate.c_cc[VTIME] = 0;
|
||||
tcsetattr(fileno(stdin), TCSADRAIN, &nstate);
|
||||
if (!no_tty) {
|
||||
nstate = ostate;
|
||||
nstate.c_lflag &= ~(ICANON|ECHO|ECHOE|ECHONL);
|
||||
nstate.c_cc[VMIN] = 1;
|
||||
nstate.c_cc[VTIME] = 0;
|
||||
tcsetattr(fileno(stdin), TCSADRAIN, &nstate);
|
||||
}
|
||||
|
||||
if ((term = getenv("TERM")) == 0 || tgetent(buf, term) <= 0) {
|
||||
printf("Dumb terminal\n");
|
||||
|
@ -98,17 +103,19 @@ initterm()
|
|||
no_intty = tcgetattr(fileno(stdin), &ostate);
|
||||
tcgetattr(fileno(stderr), &ostate);
|
||||
|
||||
nstate = ostate;
|
||||
if (!no_tty)
|
||||
ostate.c_lflag &= ~(ICANON|ECHO);
|
||||
nstate = ostate;
|
||||
if (!no_tty) {
|
||||
ostate.c_lflag &= ~(ICANON|ECHO);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
set_tty()
|
||||
{
|
||||
ostate.c_lflag &= ~(ICANON|ECHO);
|
||||
stty(fileno(stderr), &ostate);
|
||||
if (no_tty) return;
|
||||
ostate.c_lflag &= ~(ICANON|ECHO);
|
||||
stty(fileno(stderr), &ostate);
|
||||
}
|
||||
|
||||
|
||||
|
@ -139,23 +146,23 @@ doshell(cmd)
|
|||
char *cmd;
|
||||
{
|
||||
char *getenv();
|
||||
char *shell;
|
||||
char cline[128];
|
||||
|
||||
/*
|
||||
outstr("\r\n");
|
||||
flushbuf();
|
||||
*/
|
||||
printf("\n");
|
||||
|
||||
if (cmd == NULL) {
|
||||
if ((cmd = getenv("SHELL")) == NULL)
|
||||
cmd = "/bin/sh";
|
||||
sprintf(cline, "%s -i", cmd);
|
||||
if ((shell = getenv("SHELL")) == NULL) shell = "sh";
|
||||
else if(strrchr(shell,'/')) shell=(char *)(strrchr(shell,'/')+1);
|
||||
|
||||
if (cmd[0] == '\0') {
|
||||
sprintf(cline, "%s -i", shell);
|
||||
cmd = cline;
|
||||
} else {
|
||||
sprintf(cline, "%s -c \"%s\"", shell, cmd);
|
||||
cmd = cline;
|
||||
}
|
||||
|
||||
printf(cmd);
|
||||
reset_tty();
|
||||
|
||||
system(cmd);
|
||||
set_tty();
|
||||
printf("\r");
|
||||
|
|
2
bmore.1
2
bmore.1
|
@ -1,4 +1,4 @@
|
|||
.TH BMORE 1 "13 June 2000"
|
||||
.TH BMORE 1 "3 Jan 2002"
|
||||
.SH NAME
|
||||
bmore \- browse through a binary file
|
||||
.SH SYNOPSIS
|
||||
|
|
95
bmore.c
95
bmore.c
|
@ -4,10 +4,11 @@
|
|||
* 1990-09-04 V 1.1.0
|
||||
* 2000-05-31 V 1.3.0 beta
|
||||
* 2000-10-18 V 1.3.0 final
|
||||
* 2002-01-16 V 1.3.1
|
||||
*
|
||||
* NOTE: Edit this file with tabstop=4 !
|
||||
*
|
||||
* Copyright 1990-2000 by Gerhard Buergmann
|
||||
* Copyright 1990-2002 by Gerhard Buergmann
|
||||
* Gerhard.Buergmann@altavista.net
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
|
@ -35,17 +36,18 @@
|
|||
#else
|
||||
# define PRINTF printf
|
||||
#ifndef HELPFILE
|
||||
# define HELPFILE "/usr/local/lib/bmore.help"
|
||||
# define HELPFILE "/usr/local/share/bmore.help"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include "bmore.h"
|
||||
|
||||
char *copyright = "Copyright (C) 1990-2000 by Gerhard Buergmann";
|
||||
char *copyright = "Copyright (C) 1990-2002 by Gerhard Buergmann";
|
||||
|
||||
int maxx, maxy;
|
||||
char *name = NULL;
|
||||
char sstring[MAXCMD] = "";
|
||||
char sstring[MAXCMD] = ""; /* string for search */
|
||||
char estring[MAXCMD] = ""; /* string for shell escape */
|
||||
char string[MAXCMD];
|
||||
FILE *curr_file = NULL, *help_file;
|
||||
int AnzAdd;
|
||||
|
@ -186,7 +188,7 @@ main(argc, argv)
|
|||
strcpy(addr_form, "%08lX ");
|
||||
|
||||
if (ascii_flag)
|
||||
out_len = ((maxx - AnzAdd - 1) / 4) * 4;
|
||||
out_len = ((maxx - AnzAdd - 1) / 4) * 4;
|
||||
else
|
||||
out_len = ((maxx - AnzAdd - 1) / 16) * 4;
|
||||
|
||||
|
@ -195,6 +197,7 @@ main(argc, argv)
|
|||
|
||||
if (no_tty) {
|
||||
while(!printout(1));
|
||||
fclose(curr_file);
|
||||
reset_tty();
|
||||
exit(0);
|
||||
}
|
||||
|
@ -260,6 +263,7 @@ main(argc, argv)
|
|||
case 'q':
|
||||
case 'Q':
|
||||
clreol();
|
||||
fclose(curr_file);
|
||||
reset_tty();
|
||||
exit(0);
|
||||
case ':' :
|
||||
|
@ -292,29 +296,38 @@ main(argc, argv)
|
|||
break;
|
||||
case 'q':
|
||||
clreol();
|
||||
fclose(curr_file);
|
||||
reset_tty();
|
||||
exit(0);
|
||||
break;
|
||||
case '!':
|
||||
if (!no_intty) {
|
||||
clreol();
|
||||
if (rdline(ch)) break;
|
||||
doshell(sstring);
|
||||
if (rdline(colon, estring)) break;
|
||||
doshell(estring);
|
||||
PRINTF("------------------------\r\n");
|
||||
break;
|
||||
}
|
||||
default:
|
||||
beep();
|
||||
bmbeep();
|
||||
}
|
||||
break;
|
||||
case '!':
|
||||
if (!no_intty) {
|
||||
clreol();
|
||||
if (rdline(ch, estring)) break;
|
||||
doshell(estring);
|
||||
PRINTF("------------------------\r\n");
|
||||
break;
|
||||
}
|
||||
case 'd': /* Scroll k lines [current scroll size, initially 11]* */
|
||||
case CTRL('D'):
|
||||
case BVICTRL('D'):
|
||||
if (precount > 0) d_line = precount;
|
||||
to_print = d_line;
|
||||
break;
|
||||
case CTRL('L'): /*** REDRAW SCREEN ***/
|
||||
case BVICTRL('L'): /*** REDRAW SCREEN ***/
|
||||
if (no_intty) {
|
||||
beep();
|
||||
bmbeep();
|
||||
} else {
|
||||
clrscr();
|
||||
to_print = maxy + 1;
|
||||
|
@ -323,9 +336,9 @@ main(argc, argv)
|
|||
}
|
||||
break;
|
||||
case 'b': /* Skip backwards k screenfuls of text [1] */
|
||||
case CTRL('B'):
|
||||
case BVICTRL('B'):
|
||||
if (no_intty) {
|
||||
beep();
|
||||
bmbeep();
|
||||
} else {
|
||||
if (precount < 1) precount = 1;
|
||||
PRINTF("...back %ld page", precount);
|
||||
|
@ -364,12 +377,13 @@ main(argc, argv)
|
|||
break;
|
||||
case '\\':
|
||||
if (ascii_flag) {
|
||||
beep();
|
||||
bmbeep();
|
||||
break;
|
||||
}
|
||||
case '/': /**** Search String ****/
|
||||
if (!repeat) {
|
||||
if (rdline(ch)) break;
|
||||
clreol();
|
||||
if (rdline(ch, sstring)) break;
|
||||
}
|
||||
case 'n': /**** Search Next ****/
|
||||
case 'N':
|
||||
|
@ -380,7 +394,7 @@ main(argc, argv)
|
|||
break;
|
||||
case '\'':
|
||||
if (no_intty) {
|
||||
beep();
|
||||
bmbeep();
|
||||
} else {
|
||||
bytepos = last_search;
|
||||
fseek(curr_file, bytepos, SEEK_SET);
|
||||
|
@ -431,7 +445,7 @@ main(argc, argv)
|
|||
if (d_flag) {
|
||||
emsg("[Press 'h' for instructions.]");
|
||||
} else {
|
||||
beep();
|
||||
bmbeep();
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
@ -445,13 +459,18 @@ main(argc, argv)
|
|||
|
||||
|
||||
int
|
||||
rdline(ch)
|
||||
int ch;
|
||||
rdline(ch, sstring)
|
||||
int ch;
|
||||
char *sstring;
|
||||
{
|
||||
int i = 0;
|
||||
int ch1 = 0;
|
||||
|
||||
clreol();
|
||||
int i = 0;
|
||||
int ch1 = 0;
|
||||
char bstring[MAXCMD];
|
||||
|
||||
if (ch == '!') {
|
||||
strcpy(bstring, sstring);
|
||||
sstring[0] = '\0';
|
||||
}
|
||||
putchar(ch);
|
||||
fflush(stdout);
|
||||
|
||||
|
@ -468,6 +487,15 @@ rdline(ch)
|
|||
ch1 = ESC;
|
||||
break;
|
||||
}
|
||||
} else if (ch1 == '!' && i == 0) {
|
||||
if (bstring[0] == '\0') {
|
||||
emsg("No previous command");
|
||||
return 1;
|
||||
}
|
||||
putchar(ch1);
|
||||
PRINTF("\r%c%s", ch, bstring);
|
||||
strcat(sstring, bstring);
|
||||
i = strlen(sstring);
|
||||
} else {
|
||||
putchar(ch1);
|
||||
sstring[i++] = ch1;
|
||||
|
@ -490,6 +518,7 @@ do_next(n)
|
|||
{
|
||||
if (numfiles) {
|
||||
if (n == 1 && file_nr == numfiles) {
|
||||
fclose(curr_file);
|
||||
reset_tty();
|
||||
exit(0);
|
||||
}
|
||||
|
@ -503,6 +532,7 @@ do_next(n)
|
|||
free(name);
|
||||
name = strdup(*(files + file_nr - 1));
|
||||
} else {
|
||||
fclose(curr_file);
|
||||
reset_tty();
|
||||
exit(0);
|
||||
}
|
||||
|
@ -526,7 +556,7 @@ open_file(name)
|
|||
}
|
||||
if (curr_file != NULL) fclose(curr_file);
|
||||
if ((curr_file = fopen(name, "rb")) == NULL) {
|
||||
reset_tty();
|
||||
/* reset_tty(); */
|
||||
perror(name);
|
||||
exit(1);
|
||||
}
|
||||
|
@ -554,6 +584,13 @@ putline(buf, num)
|
|||
else
|
||||
*(string + print_pos) = '.';
|
||||
}
|
||||
for (; print_pos < out_len; print_pos++) {
|
||||
if (!ascii_flag) {
|
||||
PRINTF(" ");
|
||||
}
|
||||
++bytepos;
|
||||
*(string + print_pos) = ' ';
|
||||
}
|
||||
*(string + num) = '\0';
|
||||
PRINTF("%s\r\n", string);
|
||||
}
|
||||
|
@ -792,11 +829,11 @@ bmsearch(ch)
|
|||
PRINTF("\r\nPattern not found\r\n");
|
||||
do_next(1);
|
||||
} else {
|
||||
/*
|
||||
sprintf(string, "Pattern not found %d - %ul", i, (unsigned long)bytepos);
|
||||
emsg(string);
|
||||
/*
|
||||
emsg("Pattern not found");
|
||||
*/
|
||||
emsg("Pattern not found");
|
||||
bytepos = oldpos;
|
||||
fseek(curr_file, bytepos, SEEK_SET);
|
||||
break;
|
||||
|
@ -825,3 +862,9 @@ emsg(s)
|
|||
fflush(stdout);
|
||||
prompt = 0;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
bmbeep() {
|
||||
putchar(7);
|
||||
}
|
||||
|
|
24
bmore.h
24
bmore.h
|
@ -7,10 +7,11 @@
|
|||
* 1999-08-21 V 1.2.0 final
|
||||
* 2000-05-31 V 1.3.0 beta
|
||||
* 2000-10-04 V 1.3.0 final
|
||||
* 2002-01-16 V 1.3.1
|
||||
*
|
||||
* NOTE: Edit this file with tabstop=4 !
|
||||
*
|
||||
* Copyright 1996-2000 by Gerhard Buergmann
|
||||
* Copyright 1996-2002 by Gerhard Buergmann
|
||||
* Gerhard.Buergmann@altavista.net
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
|
@ -47,10 +48,11 @@
|
|||
# include <unistd.h>
|
||||
#if HAVE_NCURSES_H
|
||||
# include <ncurses.h>
|
||||
# include <ncurses/term.h>
|
||||
#else
|
||||
# include <curses.h>
|
||||
# include <term.h>
|
||||
#endif
|
||||
#include <term.h>
|
||||
#endif
|
||||
|
||||
/* defines for filemode */
|
||||
|
@ -76,9 +78,7 @@
|
|||
#define ESC 27
|
||||
#define SEARCH 0
|
||||
#define REPLACE 1
|
||||
#ifndef CTRL
|
||||
# define CTRL(n) (n&0x1f)
|
||||
#endif
|
||||
#define BVICTRL(n) (n&0x1f)
|
||||
|
||||
#ifndef NULL
|
||||
# define NULL ((void *)0)
|
||||
|
@ -109,13 +109,11 @@
|
|||
extern FILE *debug_fp;
|
||||
#endif
|
||||
|
||||
extern char *version;
|
||||
|
||||
#ifdef NO_SYSERRL
|
||||
extern char *sys_errlist[];
|
||||
#ifndef HAVE_STRERROR
|
||||
extern char *sys_errlist[];
|
||||
#endif
|
||||
|
||||
|
||||
extern char *version;
|
||||
extern int maxx, maxy;
|
||||
extern int ignore_case, magic;
|
||||
extern int no_tty, no_intty;
|
||||
|
@ -126,13 +124,13 @@ extern int no_tty, no_intty;
|
|||
#ifdef ANSI
|
||||
void initterm(void), set_tty(void), reset_tty(void);
|
||||
void clreol(void), clrscr(void), highvideo(void), normvideo(void);
|
||||
void /* beep(void), */ home(void);
|
||||
void bmbeep(void), home(void), sig(void);
|
||||
void doshell(char *), emsg(char *);
|
||||
void do_next(int);
|
||||
void open_file(char *);
|
||||
void bmsearch(int);
|
||||
void pushback(int, char *);
|
||||
int printout(int), rdline(int);
|
||||
int printout(int), rdline(int, char *);
|
||||
int nextchar(void), vgetc(void);
|
||||
int sbracket(int, char *, int);
|
||||
int bmregexec(char *);
|
||||
|
@ -141,7 +139,7 @@ extern int no_tty, no_intty;
|
|||
#else
|
||||
void initterm(), set_tty(), reset_tty();
|
||||
void clreol(), clrscr(), highvideo(), normvideo();
|
||||
void /* beep(), */ home();
|
||||
void bmbeep(), home(), sig();
|
||||
void doshell(), emsg();
|
||||
void do_next();
|
||||
void open_file();
|
||||
|
|
|
@ -193,6 +193,6 @@ SSEEEE AALLSSOO
|
|||
|
||||
|
||||
|
||||
13 June 2000 3
|
||||
3 Jan 2002 3
|
||||
|
||||
|
||||
|
|
6
bvi.1
6
bvi.1
|
@ -93,7 +93,7 @@
|
|||
.nr % 0
|
||||
.rr F
|
||||
.\}
|
||||
.TH BVI 1 "BVI Version 1.3.0" "18/Oct/2000" "User Commands"
|
||||
.TH BVI 1 "BVI Version 1.3.1" "3/Jan/2002" "User Commands"
|
||||
.IX Title "BVI 1"
|
||||
.UC
|
||||
.IX Name "bvi, bview - visual display editor for binary files"
|
||||
|
@ -194,7 +194,7 @@
|
|||
bvi, bview \- visual editor for binary files
|
||||
.SH "VERSION"
|
||||
.IX Header "VERSION"
|
||||
bvi-1.3.0
|
||||
bvi-1.3.1
|
||||
.SH "SYNOPSIS"
|
||||
.IX Header "SYNOPSIS"
|
||||
\fBbvi\fR\ \ \ [\fB\-R\fR]\ [\fB\-c\fR\ \fIcmd\fR]\ [\fB\-f\fR\ \fIscript\fR]\ [\fB\-b\fR\ \fIbegin\fR]\ [\fB\-e\fR\ \fIend\fR]\ [\fB\-s\fR\ \fIsize\fR]\ \fIfile\fR...
|
||||
|
@ -597,7 +597,7 @@ bvi was developed by Gerhard Buergmann, Vienna, Austria
|
|||
\fIGerhard.Buergmann@altavista.net\fR
|
||||
.SH "WWW"
|
||||
.IX Header "WWW"
|
||||
Bvi\ Homepage:\ \ http://bvi.linuxave.net/
|
||||
Bvi\ Homepage:\ \ http://bvi.sourceforge.net/
|
||||
Vi\ Pages:\ \ \ \ \ \ http://www.math.fu-berlin.de/~guckes/vi/
|
||||
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (all\ about\ Vi\ and\ its\ clones)
|
||||
.SH "FILES"
|
||||
|
|
47
bvi.c
47
bvi.c
|
@ -7,10 +7,11 @@
|
|||
* 1999-10-22 V 1.2.0 final
|
||||
* 2000-05-10 V 1.3.0 alpha
|
||||
* 2000-10-24 V 1.3.0 final
|
||||
* 2002-01-03 V 1.3.1
|
||||
*
|
||||
* NOTE: Edit this file with tabstop=4 !
|
||||
*
|
||||
* Copyright 1996-2000 by Gerhard Buergmann
|
||||
* Copyright 1996-2002 by Gerhard Buergmann
|
||||
* Gerhard.Buergmann@altavista.net
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
|
@ -36,7 +37,7 @@
|
|||
#endif
|
||||
|
||||
|
||||
char *copyright = "Copyright (C) 1996-2000 by Gerhard Buergmann";
|
||||
char *copyright = "Copyright (C) 1996-2002 by Gerhard Buergmann";
|
||||
|
||||
jmp_buf env; /* context for `longjmp' function */
|
||||
|
||||
|
@ -329,7 +330,7 @@ main(argc, argv)
|
|||
if (loc == HEX) x = AnzAdd;
|
||||
else x = AnzAdd + Anzahl3;
|
||||
break;
|
||||
case CTRL('H'):
|
||||
case BVICTRL('H'):
|
||||
case KEY_BACKSPACE:
|
||||
case KEY_LEFT:
|
||||
case 'h': do {
|
||||
|
@ -344,7 +345,10 @@ main(argc, argv)
|
|||
case ' ':
|
||||
case KEY_RIGHT:
|
||||
case 'l': do {
|
||||
/*
|
||||
if (x < (Anzahl3 + 6)) x += 3;
|
||||
*/
|
||||
if (x < (Anzahl3 + AnzAdd - 2)) x += 3;
|
||||
else if (x > (Anzahl3 + 3)
|
||||
&& x < (Anzahl3 + AnzAdd - 1 + Anzahl))
|
||||
x++;
|
||||
|
@ -363,8 +367,8 @@ main(argc, argv)
|
|||
case CR: if (loc == HEX) x = AnzAdd;
|
||||
else x = AnzAdd + Anzahl3;
|
||||
case 'j':
|
||||
case CTRL('J'):
|
||||
case CTRL('N'):
|
||||
case BVICTRL('J'):
|
||||
case BVICTRL('N'):
|
||||
case KEY_DOWN:
|
||||
do {
|
||||
if ((PTR)((pagepos + (y + 1) * Anzahl)) > maxpos) break;
|
||||
|
@ -386,25 +390,25 @@ main(argc, argv)
|
|||
if (strlen(cmdstr))
|
||||
docmdline(cmdstr);
|
||||
break;
|
||||
case CTRL('B'):
|
||||
case BVICTRL('B'):
|
||||
case KEY_PPAGE: /**** Previous Page ****/
|
||||
if (mem <= (PTR)(pagepos - screen)) pagepos -= screen;
|
||||
else pagepos = mem;
|
||||
repaint();
|
||||
break;
|
||||
case CTRL('D'):
|
||||
case BVICTRL('D'):
|
||||
if (precount > 1) scrolly = precount;
|
||||
scrolldown(scrolly);
|
||||
break;
|
||||
case CTRL('U'):
|
||||
case BVICTRL('U'):
|
||||
if (precount > 1) scrolly = precount;
|
||||
scrollup(scrolly);
|
||||
break;
|
||||
case CTRL('E'):
|
||||
case BVICTRL('E'):
|
||||
if (y > 0) y--;
|
||||
scrolldown(1);
|
||||
break;
|
||||
case CTRL('F'):
|
||||
case BVICTRL('F'):
|
||||
case KEY_NPAGE: /**** Next Page *****/
|
||||
if (maxpos >= (PTR)(pagepos + screen)) {
|
||||
pagepos += screen;
|
||||
|
@ -416,14 +420,14 @@ main(argc, argv)
|
|||
repaint();
|
||||
}
|
||||
break;
|
||||
case CTRL('G'):
|
||||
case BVICTRL('G'):
|
||||
fileinfo(name);
|
||||
wrstat = 0;
|
||||
break;
|
||||
case CTRL('L'): /*** REDRAW SCREEN ***/
|
||||
case BVICTRL('L'): /*** REDRAW SCREEN ***/
|
||||
new_screen();
|
||||
break;
|
||||
case CTRL('Y'):
|
||||
case BVICTRL('Y'):
|
||||
if (y < maxy) y++;
|
||||
scrollup(1);
|
||||
break;
|
||||
|
@ -540,6 +544,7 @@ main(argc, argv)
|
|||
break;
|
||||
case 'r':
|
||||
case 'R': if (filesize == 0L) break;
|
||||
if (precount < 1) precount = 1;
|
||||
sprintf(rep_buf, "%ld%c", precount, ch);
|
||||
undo_count = edit(ch);
|
||||
lflag++;
|
||||
|
@ -619,7 +624,7 @@ main(argc, argv)
|
|||
if (count > 0)
|
||||
do_delete((off_t)count, current);
|
||||
else if (count < 0)
|
||||
do_back(-count, current);
|
||||
do_back(-(off_t)count, current);
|
||||
if (ch == 'c') {
|
||||
precount = 1;
|
||||
undo_count = edit('i');
|
||||
|
@ -637,7 +642,7 @@ main(argc, argv)
|
|||
break;
|
||||
case 'X':
|
||||
sprintf(rep_buf, "%ldX", precount);
|
||||
do_back(precount, current);
|
||||
do_back((off_t)precount, current);
|
||||
break;
|
||||
default:
|
||||
flushinp();
|
||||
|
@ -645,11 +650,21 @@ main(argc, argv)
|
|||
}
|
||||
} else {
|
||||
switch (ch) {
|
||||
case 'x':
|
||||
if (precount < 1) precount = 1;
|
||||
if ((off_t)precount + current == maxpos) {
|
||||
sprintf(rep_buf, "%ldx", precount);
|
||||
do_delete((off_t)precount, current);
|
||||
} else {
|
||||
movebyte();
|
||||
flushinp();
|
||||
beep();
|
||||
}
|
||||
break;
|
||||
case 'd':
|
||||
case 'i':
|
||||
case 'I':
|
||||
case 'p':
|
||||
case 'x':
|
||||
case 'X':
|
||||
movebyte();
|
||||
default:
|
||||
|
|
15
bvi.h
15
bvi.h
|
@ -7,10 +7,11 @@
|
|||
* 1999-08-21 V 1.2.0 final
|
||||
* 2000-05-10 V 1.3.0 alpha
|
||||
* 2000-10-24 V 1.3.0 final
|
||||
* 2001-10-29 V 1.3.1
|
||||
*
|
||||
* NOTE: Edit this file with tabstop=4 !
|
||||
*
|
||||
* Copyright 1996-2000 by Gerhard Buergmann
|
||||
* Copyright 1996-2001 by Gerhard Buergmann
|
||||
* Gerhard.Buergmann@altavista.net
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
|
@ -95,10 +96,7 @@
|
|||
#define BS 8
|
||||
#define ESC 27
|
||||
#define SEARCH 0
|
||||
#define REPLACE 1
|
||||
#ifndef CTRL
|
||||
# define CTRL(n) (n&0x1f)
|
||||
#endif
|
||||
#define BVICTRL(n) (n&0x1f)
|
||||
|
||||
#define CMDLNG(a,b) (len <= a && len >= b)
|
||||
|
||||
|
@ -134,12 +132,11 @@
|
|||
extern FILE *debug_fp;
|
||||
#endif
|
||||
|
||||
extern char *version;
|
||||
|
||||
#ifdef NO_SYSERRL
|
||||
extern char *sys_errlist[];
|
||||
#ifndef HAVE_STRERROR
|
||||
extern char *sys_errlist[];
|
||||
#endif
|
||||
|
||||
extern char *version;
|
||||
extern char addr_form[];
|
||||
extern char pattern[];
|
||||
extern char rep_buf[];
|
||||
|
|
6
bvi.man
6
bvi.man
|
@ -5,7 +5,7 @@ NAME
|
|||
bvi, bview - visual display editor for binary files
|
||||
|
||||
VERSION
|
||||
bvi-1.2.0
|
||||
bvi-1.3.1
|
||||
|
||||
SYNOPSIS
|
||||
bvi [-R] [-c cmd] [-f script] file...
|
||||
|
@ -385,7 +385,7 @@ AUTHOR
|
|||
Gerhard.Buergmann@altavista.net
|
||||
|
||||
WWW
|
||||
Bvi Homepage: http://bvi.linuxave.net/
|
||||
Bvi Homepage: http://bvi.sourceforge.net/
|
||||
Vi Pages: http://www.math.fu-berlin.de/~guckes/vi/
|
||||
(all about Vi and its clones)
|
||||
|
||||
|
@ -401,4 +401,4 @@ SEE ALSO
|
|||
vi(1), strings(1), ascii(5)
|
||||
|
||||
|
||||
31/Oct/99 BVI Version 1.2.0 8
|
||||
3/Jan/2002 BVI Version 1.3.1 8
|
||||
|
|
10
comm.c
10
comm.c
|
@ -8,10 +8,11 @@
|
|||
* 1999-09-10 V 1.2.0 final
|
||||
* 2000-03-03 V 1.3.0 beta
|
||||
* 2000-07-15 V 1.3.0 final
|
||||
* 2001-10-10 V 1.3.1
|
||||
*
|
||||
* NOTE: Edit this file with tabstop=4 !
|
||||
*
|
||||
* Copyright 1996-2000 by Gerhard Buergmann
|
||||
* Copyright 1996-2001 by Gerhard Buergmann
|
||||
* Gerhard.Buergmann@altavista.net
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
|
@ -220,7 +221,7 @@ docmdline(cmdline)
|
|||
if (repl_count == -1) {
|
||||
emsg("No previous substitute re|No previous substitute regular expression");
|
||||
return; /* No prev subst */
|
||||
}
|
||||
}
|
||||
repaint();
|
||||
if (!repl_count) {
|
||||
emsg("Fail|Substitute pattern matching failed");
|
||||
|
@ -726,7 +727,12 @@ sysemsg(s)
|
|||
{
|
||||
char string[256];
|
||||
|
||||
#ifdef HAVE_STRERROR
|
||||
sprintf(string, "%s: %s", s, strerror(errno));
|
||||
#else
|
||||
sprintf(string, "%s: %s", s, sys_errlist[errno]);
|
||||
#endif
|
||||
|
||||
emsg(string);
|
||||
}
|
||||
|
||||
|
|
879
config.guess
vendored
Executable file → Normal file
879
config.guess
vendored
Executable file → Normal file
File diff suppressed because it is too large
Load diff
|
@ -15,8 +15,6 @@
|
|||
/* Define if you have the ANSI C header files. */
|
||||
#undef STDC_HEADERS
|
||||
|
||||
#undef NO_SYSERRL
|
||||
|
||||
/* Define if you have the memmove function. */
|
||||
#undef HAVE_MEMMOVE
|
||||
|
||||
|
@ -26,6 +24,9 @@
|
|||
/* Define if you have the strtol function. */
|
||||
#undef HAVE_STRTOL
|
||||
|
||||
/* Define if you have the strerror function. */
|
||||
#undef HAVE_STRERROR
|
||||
|
||||
/* Define if you have the <curses.h> header file. */
|
||||
#undef HAVE_CURSES_H
|
||||
|
||||
|
@ -43,3 +44,4 @@
|
|||
|
||||
/* Define if your tputs need putc(char) */
|
||||
#undef NEED_PUTC_CHAR
|
||||
|
||||
|
|
565
config.sub
vendored
Executable file → Normal file
565
config.sub
vendored
Executable file → Normal file
|
@ -1,6 +1,10 @@
|
|||
#! /bin/sh
|
||||
# Configuration validation subroutine script, version 1.1.
|
||||
# Copyright (C) 1991, 92, 93, 94, 95, 96, 1997 Free Software Foundation, Inc.
|
||||
# Configuration validation subroutine script.
|
||||
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
|
||||
# Free Software Foundation, Inc.
|
||||
|
||||
timestamp='2001-06-08'
|
||||
|
||||
# This file is (in principle) common to ALL GNU software.
|
||||
# The presence of a machine in this file suggests that SOME GNU software
|
||||
# can handle that machine. It does not imply ALL GNU software can.
|
||||
|
@ -25,6 +29,8 @@
|
|||
# configuration script generated by Autoconf, you may include it under
|
||||
# the same distribution terms that you use for the rest of that program.
|
||||
|
||||
# Please send patches to <config-patches@gnu.org>.
|
||||
#
|
||||
# Configuration subroutine to validate and canonicalize a configuration type.
|
||||
# Supply the specified configuration type as an argument.
|
||||
# If it is invalid, we print an error message on stderr and exit with code 1.
|
||||
|
@ -45,30 +51,73 @@
|
|||
# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
|
||||
# It is wrong to echo any other type of specification.
|
||||
|
||||
if [ x$1 = x ]
|
||||
then
|
||||
echo Configuration name missing. 1>&2
|
||||
echo "Usage: $0 CPU-MFR-OPSYS" 1>&2
|
||||
echo "or $0 ALIAS" 1>&2
|
||||
echo where ALIAS is a recognized configuration type. 1>&2
|
||||
exit 1
|
||||
fi
|
||||
me=`echo "$0" | sed -e 's,.*/,,'`
|
||||
|
||||
# First pass through any local machine types.
|
||||
case $1 in
|
||||
*local*)
|
||||
echo $1
|
||||
exit 0
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
usage="\
|
||||
Usage: $0 [OPTION] CPU-MFR-OPSYS
|
||||
$0 [OPTION] ALIAS
|
||||
|
||||
Canonicalize a configuration name.
|
||||
|
||||
Operation modes:
|
||||
-h, --help print this help, then exit
|
||||
-t, --time-stamp print date of last modification, then exit
|
||||
-v, --version print version number, then exit
|
||||
|
||||
Report bugs and patches to <config-patches@gnu.org>."
|
||||
|
||||
version="\
|
||||
GNU config.sub ($timestamp)
|
||||
|
||||
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This is free software; see the source for copying conditions. There is NO
|
||||
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
|
||||
|
||||
help="
|
||||
Try \`$me --help' for more information."
|
||||
|
||||
# Parse command line
|
||||
while test $# -gt 0 ; do
|
||||
case $1 in
|
||||
--time-stamp | --time* | -t )
|
||||
echo "$timestamp" ; exit 0 ;;
|
||||
--version | -v )
|
||||
echo "$version" ; exit 0 ;;
|
||||
--help | --h* | -h )
|
||||
echo "$usage"; exit 0 ;;
|
||||
-- ) # Stop option processing
|
||||
shift; break ;;
|
||||
- ) # Use stdin as input.
|
||||
break ;;
|
||||
-* )
|
||||
echo "$me: invalid option $1$help"
|
||||
exit 1 ;;
|
||||
|
||||
*local*)
|
||||
# First pass through any local machine types.
|
||||
echo $1
|
||||
exit 0;;
|
||||
|
||||
* )
|
||||
break ;;
|
||||
esac
|
||||
done
|
||||
|
||||
case $# in
|
||||
0) echo "$me: missing argument$help" >&2
|
||||
exit 1;;
|
||||
1) ;;
|
||||
*) echo "$me: too many arguments$help" >&2
|
||||
exit 1;;
|
||||
esac
|
||||
|
||||
# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
|
||||
# Here we must recognize all the valid KERNEL-OS combinations.
|
||||
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
|
||||
case $maybe_os in
|
||||
linux-gnu*)
|
||||
nto-qnx* | linux-gnu* | storm-chaos* | os2-emx* | windows32-*)
|
||||
os=-$maybe_os
|
||||
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
|
||||
;;
|
||||
|
@ -94,15 +143,33 @@ case $os in
|
|||
-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
|
||||
-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
|
||||
-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
|
||||
-apple)
|
||||
-apple | -axis)
|
||||
os=
|
||||
basic_machine=$1
|
||||
;;
|
||||
-sim | -cisco | -oki | -wec | -winbond)
|
||||
os=
|
||||
basic_machine=$1
|
||||
;;
|
||||
-scout)
|
||||
;;
|
||||
-wrs)
|
||||
os=-vxworks
|
||||
basic_machine=$1
|
||||
;;
|
||||
-chorusos*)
|
||||
os=-chorusos
|
||||
basic_machine=$1
|
||||
;;
|
||||
-chorusrdb)
|
||||
os=-chorusrdb
|
||||
basic_machine=$1
|
||||
;;
|
||||
-hiux*)
|
||||
os=-hiuxwe2
|
||||
;;
|
||||
-sco5)
|
||||
os=sco3.2v5
|
||||
os=-sco3.2v5
|
||||
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
|
||||
;;
|
||||
-sco4)
|
||||
|
@ -121,6 +188,9 @@ case $os in
|
|||
os=-sco3.2v2
|
||||
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
|
||||
;;
|
||||
-udk*)
|
||||
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
|
||||
;;
|
||||
-isc)
|
||||
os=-isc2.2
|
||||
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
|
||||
|
@ -143,26 +213,50 @@ case $os in
|
|||
-psos*)
|
||||
os=-psos
|
||||
;;
|
||||
-mint | -mint[0-9]*)
|
||||
basic_machine=m68k-atari
|
||||
os=-mint
|
||||
;;
|
||||
esac
|
||||
|
||||
# Decode aliases for certain CPU-COMPANY combinations.
|
||||
case $basic_machine in
|
||||
# Recognize the basic CPU types without company name.
|
||||
# Some are omitted here because they have special meanings below.
|
||||
tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \
|
||||
| arme[lb] | pyramid | mn10200 | mn10300 \
|
||||
| tron | a29k | 580 | i960 | h8300 | hppa | hppa1.0 | hppa1.1 \
|
||||
| alpha | alphaev5 | alphaev56 | we32k | ns16k | clipper \
|
||||
| i370 | sh | powerpc | powerpcle | 1750a | dsp16xx | pdp11 \
|
||||
| mips64 | mipsel | mips64el | mips64orion | mips64orionel \
|
||||
| mipstx39 | mipstx39el \
|
||||
| sparc | sparclet | sparclite | sparc64 | v850)
|
||||
tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc \
|
||||
| arm | arme[lb] | arm[bl]e | armv[2345] | armv[345][lb] | strongarm | xscale \
|
||||
| pyramid | mn10200 | mn10300 | tron | a29k \
|
||||
| 580 | i960 | h8300 \
|
||||
| x86 | ppcbe | mipsbe | mipsle | shbe | shle \
|
||||
| hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \
|
||||
| hppa64 \
|
||||
| alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \
|
||||
| alphaev6[78] \
|
||||
| we32k | ns16k | clipper | i370 | sh | sh[34] \
|
||||
| powerpc | powerpcle \
|
||||
| 1750a | dsp16xx | pdp10 | pdp11 \
|
||||
| mips16 | mips64 | mipsel | mips64el \
|
||||
| mips64orion | mips64orionel | mipstx39 | mipstx39el \
|
||||
| mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \
|
||||
| mips64vr5000 | mips64vr5000el | mcore | s390 | s390x \
|
||||
| sparc | sparclet | sparclite | sparc64 | sparcv9 | sparcv9b \
|
||||
| v850 | c4x \
|
||||
| thumb | d10v | d30v | fr30 | avr | openrisc | tic80 \
|
||||
| pj | pjl | h8500 | z8k)
|
||||
basic_machine=$basic_machine-unknown
|
||||
;;
|
||||
m6811 | m68hc11 | m6812 | m68hc12)
|
||||
# Motorola 68HC11/12.
|
||||
basic_machine=$basic_machine-unknown
|
||||
os=-none
|
||||
;;
|
||||
m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
|
||||
;;
|
||||
|
||||
# We use `pc' rather than `unknown'
|
||||
# because (1) that's what they normally are, and
|
||||
# (2) the word "unknown" tends to confuse beginning users.
|
||||
i[3456]86)
|
||||
i*86 | x86_64)
|
||||
basic_machine=$basic_machine-pc
|
||||
;;
|
||||
# Object if more than one company name word.
|
||||
|
@ -171,27 +265,52 @@ case $basic_machine in
|
|||
exit 1
|
||||
;;
|
||||
# Recognize the basic CPU types with company name.
|
||||
vax-* | tahoe-* | i[3456]86-* | i860-* | m32r-* | m68k-* | m68000-* \
|
||||
| m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \
|
||||
# FIXME: clean up the formatting here.
|
||||
vax-* | tahoe-* | i*86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \
|
||||
| m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | c[123]* \
|
||||
| arm-* | armbe-* | armle-* | armv*-* | strongarm-* | xscale-* \
|
||||
| mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
|
||||
| power-* | none-* | 580-* | cray2-* | h8300-* | i960-* \
|
||||
| xmp-* | ymp-* | hppa-* | hppa1.0-* | hppa1.1-* \
|
||||
| alpha-* | alphaev5-* | alphaev56-* | we32k-* | cydra-* \
|
||||
| ns16k-* | pn-* | np1-* | xps100-* | clipper-* | orion-* \
|
||||
| sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
|
||||
| sparc64-* | mips64-* | mipsel-* \
|
||||
| mips64el-* | mips64orion-* | mips64orionel-* \
|
||||
| mipstx39-* | mipstx39el-* \
|
||||
| f301-*)
|
||||
| power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \
|
||||
| xmp-* | ymp-* \
|
||||
| x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* \
|
||||
| hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \
|
||||
| hppa2.0n-* | hppa64-* \
|
||||
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \
|
||||
| alphaev6[78]-* \
|
||||
| we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \
|
||||
| clipper-* | orion-* \
|
||||
| sparclite-* | pdp10-* | pdp11-* | sh-* | sh[34]-* | sh[34]eb-* \
|
||||
| powerpc-* | powerpcle-* | sparc64-* | sparcv9-* | sparcv9b-* | sparc86x-* \
|
||||
| mips16-* | mips64-* | mipsel-* \
|
||||
| mips64el-* | mips64orion-* | mips64orionel-* \
|
||||
| mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \
|
||||
| mipstx39-* | mipstx39el-* | mcore-* \
|
||||
| f30[01]-* | f700-* | s390-* | s390x-* | sv1-* | t3e-* \
|
||||
| [cjt]90-* \
|
||||
| m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
|
||||
| thumb-* | v850-* | d30v-* | tic30-* | tic80-* | c30-* | fr30-* \
|
||||
| bs2000-* | tic54x-* | c54x-* | x86_64-* | pj-* | pjl-*)
|
||||
;;
|
||||
# Recognize the various machine names and aliases which stand
|
||||
# for a CPU type and a company and sometimes even an OS.
|
||||
386bsd)
|
||||
basic_machine=i386-unknown
|
||||
os=-bsd
|
||||
;;
|
||||
3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
|
||||
basic_machine=m68000-att
|
||||
;;
|
||||
3b*)
|
||||
basic_machine=we32k-att
|
||||
;;
|
||||
a29khif)
|
||||
basic_machine=a29k-amd
|
||||
os=-udi
|
||||
;;
|
||||
adobe68k)
|
||||
basic_machine=m68010-adobe
|
||||
os=-scout
|
||||
;;
|
||||
alliant | fx80)
|
||||
basic_machine=fx80-alliant
|
||||
;;
|
||||
|
@ -207,20 +326,24 @@ case $basic_machine in
|
|||
os=-sysv
|
||||
;;
|
||||
amiga | amiga-*)
|
||||
basic_machine=m68k-cbm
|
||||
basic_machine=m68k-unknown
|
||||
;;
|
||||
amigaos | amigados)
|
||||
basic_machine=m68k-cbm
|
||||
basic_machine=m68k-unknown
|
||||
os=-amigaos
|
||||
;;
|
||||
amigaunix | amix)
|
||||
basic_machine=m68k-cbm
|
||||
basic_machine=m68k-unknown
|
||||
os=-sysv4
|
||||
;;
|
||||
apollo68)
|
||||
basic_machine=m68k-apollo
|
||||
os=-sysv
|
||||
;;
|
||||
apollo68bsd)
|
||||
basic_machine=m68k-apollo
|
||||
os=-bsd
|
||||
;;
|
||||
aux)
|
||||
basic_machine=m68k-apple
|
||||
os=-aux
|
||||
|
@ -257,13 +380,16 @@ case $basic_machine in
|
|||
basic_machine=cray2-cray
|
||||
os=-unicos
|
||||
;;
|
||||
[ctj]90-cray)
|
||||
basic_machine=c90-cray
|
||||
[cjt]90)
|
||||
basic_machine=${basic_machine}-cray
|
||||
os=-unicos
|
||||
;;
|
||||
crds | unos)
|
||||
basic_machine=m68k-crds
|
||||
;;
|
||||
cris | cris-* | etrax*)
|
||||
basic_machine=cris-axis
|
||||
;;
|
||||
da30 | da30-*)
|
||||
basic_machine=m68k-da30
|
||||
;;
|
||||
|
@ -297,6 +423,10 @@ case $basic_machine in
|
|||
encore | umax | mmax)
|
||||
basic_machine=ns32k-encore
|
||||
;;
|
||||
es1800 | OSE68k | ose68k | ose | OSE)
|
||||
basic_machine=m68k-ericsson
|
||||
os=-ose
|
||||
;;
|
||||
fx2800)
|
||||
basic_machine=i860-alliant
|
||||
;;
|
||||
|
@ -307,6 +437,10 @@ case $basic_machine in
|
|||
basic_machine=tron-gmicro
|
||||
os=-sysv
|
||||
;;
|
||||
go32)
|
||||
basic_machine=i386-pc
|
||||
os=-go32
|
||||
;;
|
||||
h3050r* | hiux*)
|
||||
basic_machine=hppa1.1-hitachi
|
||||
os=-hiuxwe2
|
||||
|
@ -315,6 +449,14 @@ case $basic_machine in
|
|||
basic_machine=h8300-hitachi
|
||||
os=-hms
|
||||
;;
|
||||
h8300xray)
|
||||
basic_machine=h8300-hitachi
|
||||
os=-xray
|
||||
;;
|
||||
h8500hms)
|
||||
basic_machine=h8500-hitachi
|
||||
os=-hms
|
||||
;;
|
||||
harris)
|
||||
basic_machine=m88k-harris
|
||||
os=-sysv3
|
||||
|
@ -330,13 +472,30 @@ case $basic_machine in
|
|||
basic_machine=m68k-hp
|
||||
os=-hpux
|
||||
;;
|
||||
hp3k9[0-9][0-9] | hp9[0-9][0-9])
|
||||
basic_machine=hppa1.0-hp
|
||||
;;
|
||||
hp9k2[0-9][0-9] | hp9k31[0-9])
|
||||
basic_machine=m68000-hp
|
||||
;;
|
||||
hp9k3[2-9][0-9])
|
||||
basic_machine=m68k-hp
|
||||
;;
|
||||
hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7)
|
||||
hp9k6[0-9][0-9] | hp6[0-9][0-9])
|
||||
basic_machine=hppa1.0-hp
|
||||
;;
|
||||
hp9k7[0-79][0-9] | hp7[0-79][0-9])
|
||||
basic_machine=hppa1.1-hp
|
||||
;;
|
||||
hp9k78[0-9] | hp78[0-9])
|
||||
# FIXME: really hppa2.0-hp
|
||||
basic_machine=hppa1.1-hp
|
||||
;;
|
||||
hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
|
||||
# FIXME: really hppa2.0-hp
|
||||
basic_machine=hppa1.1-hp
|
||||
;;
|
||||
hp9k8[0-9][13679] | hp8[0-9][13679])
|
||||
basic_machine=hppa1.1-hp
|
||||
;;
|
||||
hp9k8[0-9][0-9] | hp8[0-9][0-9])
|
||||
|
@ -345,27 +504,42 @@ case $basic_machine in
|
|||
hppa-next)
|
||||
os=-nextstep3
|
||||
;;
|
||||
hppaosf)
|
||||
basic_machine=hppa1.1-hp
|
||||
os=-osf
|
||||
;;
|
||||
hppro)
|
||||
basic_machine=hppa1.1-hp
|
||||
os=-proelf
|
||||
;;
|
||||
i370-ibm* | ibm*)
|
||||
basic_machine=i370-ibm
|
||||
os=-mvs
|
||||
;;
|
||||
# I'm not sure what "Sysv32" means. Should this be sysv3.2?
|
||||
i[3456]86v32)
|
||||
i*86v32)
|
||||
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
|
||||
os=-sysv32
|
||||
;;
|
||||
i[3456]86v4*)
|
||||
i*86v4*)
|
||||
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
|
||||
os=-sysv4
|
||||
;;
|
||||
i[3456]86v)
|
||||
i*86v)
|
||||
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
|
||||
os=-sysv
|
||||
;;
|
||||
i[3456]86sol2)
|
||||
i*86sol2)
|
||||
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
|
||||
os=-solaris2
|
||||
;;
|
||||
i386mach)
|
||||
basic_machine=i386-mach
|
||||
os=-mach
|
||||
;;
|
||||
i386-vsta | vsta)
|
||||
basic_machine=i386-unknown
|
||||
os=-vsta
|
||||
;;
|
||||
iris | iris4d)
|
||||
basic_machine=mips-sgi
|
||||
case $os in
|
||||
|
@ -391,9 +565,17 @@ case $basic_machine in
|
|||
basic_machine=ns32k-utek
|
||||
os=-sysv
|
||||
;;
|
||||
mingw32)
|
||||
basic_machine=i386-pc
|
||||
os=-mingw32
|
||||
;;
|
||||
miniframe)
|
||||
basic_machine=m68000-convergent
|
||||
;;
|
||||
*mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
|
||||
basic_machine=m68k-atari
|
||||
os=-mint
|
||||
;;
|
||||
mipsel*-linux*)
|
||||
basic_machine=mipsel-unknown
|
||||
os=-linux-gnu
|
||||
|
@ -408,10 +590,34 @@ case $basic_machine in
|
|||
mips3*)
|
||||
basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
|
||||
;;
|
||||
mmix*)
|
||||
basic_machine=mmix-knuth
|
||||
os=-mmixware
|
||||
;;
|
||||
monitor)
|
||||
basic_machine=m68k-rom68k
|
||||
os=-coff
|
||||
;;
|
||||
msdos)
|
||||
basic_machine=i386-pc
|
||||
os=-msdos
|
||||
;;
|
||||
mvs)
|
||||
basic_machine=i370-ibm
|
||||
os=-mvs
|
||||
;;
|
||||
ncr3000)
|
||||
basic_machine=i486-ncr
|
||||
os=-sysv4
|
||||
;;
|
||||
netbsd386)
|
||||
basic_machine=i386-unknown
|
||||
os=-netbsd
|
||||
;;
|
||||
netwinder)
|
||||
basic_machine=armv4l-rebel
|
||||
os=-linux
|
||||
;;
|
||||
news | news700 | news800 | news900)
|
||||
basic_machine=m68k-sony
|
||||
os=-newsos
|
||||
|
@ -424,6 +630,10 @@ case $basic_machine in
|
|||
basic_machine=mips-sony
|
||||
os=-newsos
|
||||
;;
|
||||
necv70)
|
||||
basic_machine=v70-nec
|
||||
os=-sysv
|
||||
;;
|
||||
next | m*-next )
|
||||
basic_machine=m68k-next
|
||||
case $os in
|
||||
|
@ -449,9 +659,32 @@ case $basic_machine in
|
|||
basic_machine=i960-intel
|
||||
os=-nindy
|
||||
;;
|
||||
mon960)
|
||||
basic_machine=i960-intel
|
||||
os=-mon960
|
||||
;;
|
||||
nonstopux)
|
||||
basic_machine=mips-compaq
|
||||
os=-nonstopux
|
||||
;;
|
||||
np1)
|
||||
basic_machine=np1-gould
|
||||
;;
|
||||
nsr-tandem)
|
||||
basic_machine=nsr-tandem
|
||||
;;
|
||||
op50n-* | op60c-*)
|
||||
basic_machine=hppa1.1-oki
|
||||
os=-proelf
|
||||
;;
|
||||
OSE68000 | ose68000)
|
||||
basic_machine=m68000-ericsson
|
||||
os=-ose
|
||||
;;
|
||||
os68k)
|
||||
basic_machine=m68k-none
|
||||
os=-os68k
|
||||
;;
|
||||
pa-hitachi)
|
||||
basic_machine=hppa1.1-hitachi
|
||||
os=-hiuxwe2
|
||||
|
@ -469,30 +702,28 @@ case $basic_machine in
|
|||
pc532 | pc532-*)
|
||||
basic_machine=ns32k-pc532
|
||||
;;
|
||||
pentium | p5)
|
||||
basic_machine=i586-intel
|
||||
pentium | p5 | k5 | k6 | nexgen)
|
||||
basic_machine=i586-pc
|
||||
;;
|
||||
pentiumpro | p6)
|
||||
basic_machine=i686-intel
|
||||
pentiumpro | p6 | 6x86 | athlon)
|
||||
basic_machine=i686-pc
|
||||
;;
|
||||
pentium-* | p5-*)
|
||||
pentiumii | pentium2)
|
||||
basic_machine=i686-pc
|
||||
;;
|
||||
pentium-* | p5-* | k5-* | k6-* | nexgen-*)
|
||||
basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
|
||||
;;
|
||||
pentiumpro-* | p6-*)
|
||||
pentiumpro-* | p6-* | 6x86-* | athlon-*)
|
||||
basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
|
||||
;;
|
||||
k5)
|
||||
# We don't have specific support for AMD's K5 yet, so just call it a Pentium
|
||||
basic_machine=i586-amd
|
||||
;;
|
||||
nexen)
|
||||
# We don't have specific support for Nexgen yet, so just call it a Pentium
|
||||
basic_machine=i586-nexgen
|
||||
pentiumii-* | pentium2-*)
|
||||
basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
|
||||
;;
|
||||
pn)
|
||||
basic_machine=pn-gould
|
||||
;;
|
||||
power) basic_machine=rs6000-ibm
|
||||
power) basic_machine=power-ibm
|
||||
;;
|
||||
ppc) basic_machine=powerpc-unknown
|
||||
;;
|
||||
|
@ -507,12 +738,24 @@ case $basic_machine in
|
|||
ps2)
|
||||
basic_machine=i386-ibm
|
||||
;;
|
||||
pw32)
|
||||
basic_machine=i586-unknown
|
||||
os=-pw32
|
||||
;;
|
||||
rom68k)
|
||||
basic_machine=m68k-rom68k
|
||||
os=-coff
|
||||
;;
|
||||
rm[46]00)
|
||||
basic_machine=mips-siemens
|
||||
;;
|
||||
rtpc | rtpc-*)
|
||||
basic_machine=romp-ibm
|
||||
;;
|
||||
sa29200)
|
||||
basic_machine=a29k-amd
|
||||
os=-udi
|
||||
;;
|
||||
sequent)
|
||||
basic_machine=i386-sequent
|
||||
;;
|
||||
|
@ -520,6 +763,10 @@ case $basic_machine in
|
|||
basic_machine=sh-hitachi
|
||||
os=-hms
|
||||
;;
|
||||
sparclite-wrs)
|
||||
basic_machine=sparclite-wrs
|
||||
os=-vxworks
|
||||
;;
|
||||
sps7)
|
||||
basic_machine=m68k-bull
|
||||
os=-sysv2
|
||||
|
@ -527,6 +774,13 @@ case $basic_machine in
|
|||
spur)
|
||||
basic_machine=spur-unknown
|
||||
;;
|
||||
st2000)
|
||||
basic_machine=m68k-tandem
|
||||
;;
|
||||
stratus)
|
||||
basic_machine=i860-stratus
|
||||
os=-sysv4
|
||||
;;
|
||||
sun2)
|
||||
basic_machine=m68000-sun
|
||||
;;
|
||||
|
@ -567,10 +821,22 @@ case $basic_machine in
|
|||
sun386 | sun386i | roadrunner)
|
||||
basic_machine=i386-sun
|
||||
;;
|
||||
sv1)
|
||||
basic_machine=sv1-cray
|
||||
os=-unicos
|
||||
;;
|
||||
symmetry)
|
||||
basic_machine=i386-sequent
|
||||
os=-dynix
|
||||
;;
|
||||
t3e)
|
||||
basic_machine=t3e-cray
|
||||
os=-unicos
|
||||
;;
|
||||
tic54x | c54x*)
|
||||
basic_machine=tic54x-unknown
|
||||
os=-coff
|
||||
;;
|
||||
tx39)
|
||||
basic_machine=mipstx39-unknown
|
||||
;;
|
||||
|
@ -588,6 +854,10 @@ case $basic_machine in
|
|||
basic_machine=a29k-nyu
|
||||
os=-sym1
|
||||
;;
|
||||
v810 | necv810)
|
||||
basic_machine=v810-nec
|
||||
os=-none
|
||||
;;
|
||||
vaxv)
|
||||
basic_machine=vax-dec
|
||||
os=-sysv
|
||||
|
@ -611,6 +881,18 @@ case $basic_machine in
|
|||
basic_machine=a29k-wrs
|
||||
os=-vxworks
|
||||
;;
|
||||
w65*)
|
||||
basic_machine=w65-wdc
|
||||
os=-none
|
||||
;;
|
||||
w89k-*)
|
||||
basic_machine=hppa1.1-winbond
|
||||
os=-proelf
|
||||
;;
|
||||
windows32)
|
||||
basic_machine=i386-pc
|
||||
os=-windows32-msvcrt
|
||||
;;
|
||||
xmp)
|
||||
basic_machine=xmp-cray
|
||||
os=-unicos
|
||||
|
@ -618,6 +900,10 @@ case $basic_machine in
|
|||
xps | xps100)
|
||||
basic_machine=xps100-honeywell
|
||||
;;
|
||||
z8k-*-coff)
|
||||
basic_machine=z8k-unknown
|
||||
os=-sim
|
||||
;;
|
||||
none)
|
||||
basic_machine=none-none
|
||||
os=-none
|
||||
|
@ -625,6 +911,15 @@ case $basic_machine in
|
|||
|
||||
# Here we handle the default manufacturer of certain CPU types. It is in
|
||||
# some cases the only manufacturer, in others, it is the most popular.
|
||||
w89k)
|
||||
basic_machine=hppa1.1-winbond
|
||||
;;
|
||||
op50n)
|
||||
basic_machine=hppa1.1-oki
|
||||
;;
|
||||
op60c)
|
||||
basic_machine=hppa1.1-oki
|
||||
;;
|
||||
mips)
|
||||
if [ x$os = x-linux-gnu ]; then
|
||||
basic_machine=mips-unknown
|
||||
|
@ -641,13 +936,20 @@ case $basic_machine in
|
|||
vax)
|
||||
basic_machine=vax-dec
|
||||
;;
|
||||
pdp10)
|
||||
# there are many clones, so DEC is not a safe bet
|
||||
basic_machine=pdp10-unknown
|
||||
;;
|
||||
pdp11)
|
||||
basic_machine=pdp11-dec
|
||||
;;
|
||||
we32k)
|
||||
basic_machine=we32k-att
|
||||
;;
|
||||
sparc)
|
||||
sh3 | sh4)
|
||||
basic_machine=sh-unknown
|
||||
;;
|
||||
sparc | sparcv9 | sparcv9b)
|
||||
basic_machine=sparc-sun
|
||||
;;
|
||||
cydra)
|
||||
|
@ -659,6 +961,19 @@ case $basic_machine in
|
|||
orion105)
|
||||
basic_machine=clipper-highlevel
|
||||
;;
|
||||
mac | mpw | mac-mpw)
|
||||
basic_machine=m68k-apple
|
||||
;;
|
||||
pmac | pmac-mpw)
|
||||
basic_machine=powerpc-apple
|
||||
;;
|
||||
c4x*)
|
||||
basic_machine=c4x-none
|
||||
os=-coff
|
||||
;;
|
||||
*-unknown)
|
||||
# Make sure to match an already-canonicalized machine name.
|
||||
;;
|
||||
*)
|
||||
echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
|
||||
exit 1
|
||||
|
@ -712,13 +1027,36 @@ case $os in
|
|||
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
|
||||
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
|
||||
| -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
|
||||
| -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \
|
||||
| -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
|
||||
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
|
||||
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
|
||||
| -cygwin32* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
|
||||
| -mingw32* | -linux-gnu* | -uxpv*)
|
||||
| -chorusos* | -chorusrdb* \
|
||||
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
|
||||
| -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
|
||||
| -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
|
||||
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
|
||||
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -os2*)
|
||||
# Remember, each alternative MUST END IN *, to match a version number.
|
||||
;;
|
||||
-qnx*)
|
||||
case $basic_machine in
|
||||
x86-* | i*86-*)
|
||||
;;
|
||||
*)
|
||||
os=-nto$os
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
-nto*)
|
||||
os=-nto-qnx
|
||||
;;
|
||||
-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
|
||||
| -windows* | -osx | -abug | -netware* | -os9* | -beos* \
|
||||
| -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
|
||||
;;
|
||||
-mac*)
|
||||
os=`echo $os | sed -e 's|mac|macos|'`
|
||||
;;
|
||||
-linux*)
|
||||
os=`echo $os | sed -e 's|linux|linux-gnu|'`
|
||||
;;
|
||||
|
@ -728,6 +1066,12 @@ case $os in
|
|||
-sunos6*)
|
||||
os=`echo $os | sed -e 's|sunos6|solaris3|'`
|
||||
;;
|
||||
-opened*)
|
||||
os=-openedition
|
||||
;;
|
||||
-wince*)
|
||||
os=-wince
|
||||
;;
|
||||
-osfrose*)
|
||||
os=-osfrose
|
||||
;;
|
||||
|
@ -743,12 +1087,18 @@ case $os in
|
|||
-acis*)
|
||||
os=-aos
|
||||
;;
|
||||
-386bsd)
|
||||
os=-bsd
|
||||
;;
|
||||
-ctix* | -uts*)
|
||||
os=-sysv
|
||||
;;
|
||||
-ns2 )
|
||||
os=-nextstep2
|
||||
;;
|
||||
-nsk*)
|
||||
os=-nsk
|
||||
;;
|
||||
# Preserve the version number of sinix5.
|
||||
-sinix5.*)
|
||||
os=`echo $os | sed -e 's|sinix|sysv|'`
|
||||
|
@ -774,9 +1124,18 @@ case $os in
|
|||
# This must come after -sysvr4.
|
||||
-sysv*)
|
||||
;;
|
||||
-ose*)
|
||||
os=-ose
|
||||
;;
|
||||
-es1800*)
|
||||
os=-ose
|
||||
;;
|
||||
-xenix)
|
||||
os=-xenix
|
||||
;;
|
||||
-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
|
||||
os=-mint
|
||||
;;
|
||||
-none)
|
||||
;;
|
||||
*)
|
||||
|
@ -802,9 +1161,15 @@ case $basic_machine in
|
|||
*-acorn)
|
||||
os=-riscix1.2
|
||||
;;
|
||||
arm*-rebel)
|
||||
os=-linux
|
||||
;;
|
||||
arm*-semi)
|
||||
os=-aout
|
||||
;;
|
||||
pdp10-*)
|
||||
os=-tops20
|
||||
;;
|
||||
pdp11-*)
|
||||
os=-none
|
||||
;;
|
||||
|
@ -823,15 +1188,36 @@ case $basic_machine in
|
|||
# default.
|
||||
# os=-sunos4
|
||||
;;
|
||||
m68*-cisco)
|
||||
os=-aout
|
||||
;;
|
||||
mips*-cisco)
|
||||
os=-elf
|
||||
;;
|
||||
mips*-*)
|
||||
os=-elf
|
||||
;;
|
||||
*-tti) # must be before sparc entry or we get the wrong os.
|
||||
os=-sysv3
|
||||
;;
|
||||
sparc-* | *-sun)
|
||||
os=-sunos4.1.1
|
||||
;;
|
||||
*-be)
|
||||
os=-beos
|
||||
;;
|
||||
*-ibm)
|
||||
os=-aix
|
||||
;;
|
||||
*-wec)
|
||||
os=-proelf
|
||||
;;
|
||||
*-winbond)
|
||||
os=-proelf
|
||||
;;
|
||||
*-oki)
|
||||
os=-proelf
|
||||
;;
|
||||
*-hp)
|
||||
os=-hpux
|
||||
;;
|
||||
|
@ -892,9 +1278,21 @@ case $basic_machine in
|
|||
*-masscomp)
|
||||
os=-rtu
|
||||
;;
|
||||
f301-fujitsu)
|
||||
f30[01]-fujitsu | f700-fujitsu)
|
||||
os=-uxpv
|
||||
;;
|
||||
*-rom68k)
|
||||
os=-coff
|
||||
;;
|
||||
*-*bug)
|
||||
os=-coff
|
||||
;;
|
||||
*-apple)
|
||||
os=-macos
|
||||
;;
|
||||
*-atari*)
|
||||
os=-mint
|
||||
;;
|
||||
*)
|
||||
os=-none
|
||||
;;
|
||||
|
@ -916,9 +1314,15 @@ case $basic_machine in
|
|||
-aix*)
|
||||
vendor=ibm
|
||||
;;
|
||||
-beos*)
|
||||
vendor=be
|
||||
;;
|
||||
-hpux*)
|
||||
vendor=hp
|
||||
;;
|
||||
-mpeix*)
|
||||
vendor=hp
|
||||
;;
|
||||
-hiux*)
|
||||
vendor=hitachi
|
||||
;;
|
||||
|
@ -934,7 +1338,7 @@ case $basic_machine in
|
|||
-genix*)
|
||||
vendor=ns
|
||||
;;
|
||||
-mvs*)
|
||||
-mvs* | -opened*)
|
||||
vendor=ibm
|
||||
;;
|
||||
-ptx*)
|
||||
|
@ -946,9 +1350,26 @@ case $basic_machine in
|
|||
-aux*)
|
||||
vendor=apple
|
||||
;;
|
||||
-hms*)
|
||||
vendor=hitachi
|
||||
;;
|
||||
-mpw* | -macos*)
|
||||
vendor=apple
|
||||
;;
|
||||
-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
|
||||
vendor=atari
|
||||
;;
|
||||
esac
|
||||
basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
|
||||
;;
|
||||
esac
|
||||
|
||||
echo $basic_machine$os
|
||||
exit 0
|
||||
|
||||
# Local variables:
|
||||
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||
# time-stamp-start: "timestamp='"
|
||||
# time-stamp-format: "%:y-%02m-%02d"
|
||||
# time-stamp-end: "'"
|
||||
# End:
|
||||
|
|
17
configure.in
17
configure.in
|
@ -1,5 +1,6 @@
|
|||
dnl Process this file with autoconf to produce a configure script.
|
||||
AC_INIT(bvi.c)
|
||||
AC_INIT
|
||||
AC_CONFIG_SRCDIR([bvi.c])
|
||||
AC_CONFIG_HEADER(config.h)
|
||||
|
||||
AC_CANONICAL_HOST
|
||||
|
@ -10,6 +11,7 @@ case "$host_os" in
|
|||
sunos4*)
|
||||
AC_MSG_RESULT("using /usr/5bin/cc")
|
||||
CC="/usr/5bin/cc"
|
||||
ac_objext="o"
|
||||
;;
|
||||
*)
|
||||
AC_PROG_CC
|
||||
|
@ -39,7 +41,6 @@ AC_CHECK_SIZEOF(void *)
|
|||
|
||||
AC_CHECK_TYPE(size_t, unsigned int)
|
||||
AC_CHECK_TYPE(off_t, int)
|
||||
AC_CHECK_TYPE(mode_t, u_short)
|
||||
|
||||
dnl Checks for header files.
|
||||
AC_HEADER_STDC
|
||||
|
@ -74,15 +75,9 @@ dnl AC_TYPE_SIZE_T
|
|||
|
||||
dnl Checks for library functions.
|
||||
dnl AC_TYPE_SIGNAL
|
||||
AC_CHECK_FUNCS(strdup strtol memmove)
|
||||
|
||||
AC_EGREP_HEADER(sys_errlist, stdio.h, errl=ok, errl=no)
|
||||
AC_EGREP_HEADER(sys_errlist, errno.h, errl=ok,)
|
||||
AC_EGREP_HEADER(sys_errlist, sys/types.h, errl=ok,)
|
||||
if test $errl = no; then
|
||||
AC_DEFINE(NO_SYSERRL)
|
||||
fi
|
||||
AC_CHECK_FUNCS(strdup strtol strerror memmove)
|
||||
|
||||
AC_PROG_INSTALL
|
||||
|
||||
AC_OUTPUT(Makefile)
|
||||
AC_CONFIG_FILES([Makefile])
|
||||
AC_OUTPUT
|
||||
|
|
11
edit.c
11
edit.c
|
@ -7,8 +7,9 @@
|
|||
* 1999-10-30 V 1.2.0 final
|
||||
* 2000-05-14 V 1.3.0 alpha
|
||||
* 2000-07-15 V 1.3.0 final
|
||||
* 2001-12-07 V 1.3.1
|
||||
*
|
||||
* Copyright 1996-2000 by Gerhard Buergmann
|
||||
* Copyright 1996-2001 by Gerhard Buergmann
|
||||
* Gerhard.Buergmann@altavista.net
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
|
@ -111,7 +112,7 @@ edit(mode)
|
|||
setcur();
|
||||
continue;
|
||||
}
|
||||
if (ch == KEY_BACKSPACE || ch == CTRL('H')) {
|
||||
if (ch == KEY_BACKSPACE || ch == BVICTRL('H')) {
|
||||
if (count > 0) {
|
||||
len--;
|
||||
count--;
|
||||
|
@ -142,7 +143,7 @@ edit(mode)
|
|||
ch1 = -1;
|
||||
}
|
||||
} while (ch1 == -1);
|
||||
rep_buf[len++] = ch;
|
||||
rep_buf[len++] = ch1;
|
||||
mvaddch(y, x + 1, ch1);
|
||||
sprintf(tmpbuf, "%c%c", ch, ch1);
|
||||
sscanf(tmpbuf, "%2x", &ch);
|
||||
|
@ -747,7 +748,7 @@ do_delete(n, start)
|
|||
memmove(start, start + undo_count, maxpos - (start + undo_count));
|
||||
filesize -= undo_count;
|
||||
maxpos -= undo_count;
|
||||
if (start == maxpos) {
|
||||
if (start == maxpos && start > mem) {
|
||||
start--;
|
||||
cur_back();
|
||||
}
|
||||
|
@ -893,5 +894,5 @@ do_mark(mark, addr)
|
|||
void
|
||||
movebyte()
|
||||
{
|
||||
emsg("Command disabled@- use ':set memmove' to enable");
|
||||
emsg("Command disabled@- use ':set memmove' to enable ");
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C/DTD HTML 3.2 Final//EN">
|
||||
<!DOCTYPE html PUBLIC "-//W3C/DTD HTML 3.2 Final//EN">
|
||||
<html><head>
|
||||
<title>BVI: bmore</title>
|
||||
<link rel=stylesheet type="text/css" href="bvi.css">
|
||||
|
@ -7,7 +7,7 @@
|
|||
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr><td width="1%" valign="top" align="center">
|
||||
<img src="gif/dot.gif" width="130" height="1">
|
||||
<img src="gif/dot.gif" width="130" height="1" alt="">
|
||||
|
||||
<hr noshade width="60%">
|
||||
<p>
|
||||
|
@ -37,7 +37,7 @@
|
|||
<hr noshade width="60%">
|
||||
|
||||
</td>
|
||||
<td width="1%"><img src="gif/dot.gif" width="40" height="1"></td>
|
||||
<td width="1%"><img src="gif/dot.gif" width="40" height="1" alt=""></td>
|
||||
<td width="99%">
|
||||
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
|
@ -54,14 +54,14 @@ height="62" border="0"></a>
|
|||
</td></tr></table>
|
||||
|
||||
<p>
|
||||
<STRONG>bmore</STRONG> is a filter that displays the contents of a binary
|
||||
<strong>bmore</strong> is a filter that displays the contents of a binary
|
||||
file on the terminal, one screenful at a time. It normally pauses after each
|
||||
screenful, and prints <B>--More--</B> at the bottom of the screen.
|
||||
<STRONG>bmore</STRONG> provides a two-line over lap between screens for
|
||||
screenful, and prints <b>--More--</b> at the bottom of the screen.
|
||||
<strong>bmore</strong> provides a two-line over lap between screens for
|
||||
continuity. If bmore is reading from a file rather than a pipe,
|
||||
the percentage of characters displayed so far is also shown.
|
||||
<P>
|
||||
<STRONG>bmore</STRONG> scrolls up to display one more screen line in
|
||||
<p>
|
||||
<strong>bmore</strong> scrolls up to display one more screen line in
|
||||
response to a RETURN character; it displays another
|
||||
screenful in response to a SPACE character. Other commands are listed below.
|
||||
<P>
|
||||
|
@ -74,8 +74,8 @@ screen line. Note that (as one would expect) the first
|
|||
byte has the offset 0 (zero).
|
||||
<P>
|
||||
<center>
|
||||
<TABLE WIDTH="10" CELLSPACING="0" CELLPADDING="0" BORDER="0">
|
||||
<TR><TD BGCOLOR=#ffccff><PRE CLASS="examp">
|
||||
<table width="10" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr><td bgcolor="#ffccff"><pre class="examp">
|
||||
000000
|
||||
00000C
|
||||
000018
|
||||
|
@ -90,7 +90,7 @@ byte has the offset 0 (zero).
|
|||
000178
|
||||
000184
|
||||
000190
|
||||
00009C</PRE></TD><TD BGCOLOR=#ccffcc><PRE CLASS="examp">
|
||||
00009C</pre></td><td bgcolor="#ccffcc"><pre class="examp">
|
||||
7F 45 4C 46 01 01
|
||||
00 00 00 00 01 00
|
||||
00 00 00 00 00 00
|
||||
|
@ -105,7 +105,7 @@ byte has the offset 0 (zero).
|
|||
45 08 50 E8 FC FF
|
||||
0C 85 D2 75 17 6A
|
||||
E9 43 02 00 00 8D
|
||||
0C 85 D2 75 0D C7</PRE></TD><TD BGCOLOR=#ccffcc><PRE CLASS="examp">
|
||||
0C 85 D2 75 0D C7</pre></td><td bgcolor="#ccffcc"><pre class="examp">
|
||||
01 00 00 00 00 00
|
||||
03 00 01 00 00 00
|
||||
00 00 0C 07 00 00
|
||||
|
@ -120,7 +120,7 @@ byte has the offset 0 (zero).
|
|||
FF FF 89 C2 83 C4
|
||||
01 E8 60 02 00 00
|
||||
74 26 00 8D BC 27
|
||||
45 A0 00 00 00 00</PRE></TD><TD BGCOLOR=#FFCCCC><PRE CLASS="examp">
|
||||
45 A0 00 00 00 00</pre></td><td bgcolor="#ffcccc"><pre class="examp">
|
||||
.ELF........
|
||||
............
|
||||
............
|
||||
|
@ -135,12 +135,12 @@ byte has the offset 0 (zero).
|
|||
E.P.........
|
||||
...u.j..`...
|
||||
.C....t&...'
|
||||
...u..E.....</PRE></TD></TR>
|
||||
<TR BGCOLOR=#FFFFCC><TD COLSPAN=4 CLASS="examp">
|
||||
...u..E.....</pre></td></tr>
|
||||
<tr bgcolor="#ffffcc"><td colspan="4" class="examp">
|
||||
<font class="inv">--More--(5%) </font>
|
||||
</TD></TR>
|
||||
</TABLE>
|
||||
</CENTER>
|
||||
</td></tr>
|
||||
</table>
|
||||
</center>
|
||||
<p>
|
||||
Equal lines will only displayed once, a star (*) is the placeholder
|
||||
for one or more lines equal to the line above.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C/DTD HTML 3.2 Final//EN">
|
||||
<!DOCTYPE html PUBLIC "-//W3C/DTD HTML 3.2 Final//EN">
|
||||
<html><head>
|
||||
<title>BVI: Commands</title>
|
||||
<link rel=stylesheet type="text/css" href="bvi.css">
|
||||
|
@ -7,7 +7,7 @@
|
|||
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr><td width="1%" valign="top" align="center">
|
||||
<img src="gif/dot.gif" width="130" height="1">
|
||||
<img src="gif/dot.gif" width="130" height="1" alt="">
|
||||
|
||||
<hr noshade width="60%">
|
||||
<p>
|
||||
|
@ -37,7 +37,7 @@
|
|||
<hr noshade width="60%">
|
||||
|
||||
</td>
|
||||
<td width="1%"><img src="gif/dot.gif" width="40" height="1"></td>
|
||||
<td width="1%"><img src="gif/dot.gif" width="40" height="1" alt=""></td>
|
||||
<td width="99%">
|
||||
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C/DTD HTML 3.2 Final//EN">
|
||||
<!DOCTYPE html PUBLIC "-//W3C/DTD HTML 3.2 Final//EN">
|
||||
<html><head>
|
||||
<title>BVI: Command Line Options</title>
|
||||
<link rel=stylesheet type="text/css" href="bvi.css">
|
||||
|
@ -7,7 +7,7 @@
|
|||
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr><td width="1%" valign="top" align="center">
|
||||
<img src="gif/dot.gif" width="130" height="1">
|
||||
<img src="gif/dot.gif" width="130" height="1" alt="">
|
||||
|
||||
<hr noshade width="60%">
|
||||
<p>
|
||||
|
@ -37,7 +37,7 @@
|
|||
<hr noshade width="60%">
|
||||
|
||||
</td>
|
||||
<td width="1%"><img src="gif/dot.gif" width="40" height="1"></td>
|
||||
<td width="1%"><img src="gif/dot.gif" width="40" height="1" alt=""></td>
|
||||
<td width="99%">
|
||||
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C/DTD HTML 3.2 Final//EN">
|
||||
<!DOCTYPE html PUBLIC "-//W3C/DTD HTML 3.2 Final//EN">
|
||||
<html><head>
|
||||
<title>BVI: Download Page</title>
|
||||
<link rel=stylesheet type="text/css" href="bvi.css">
|
||||
|
@ -7,7 +7,7 @@
|
|||
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr><td width="1%" valign="top" align="center">
|
||||
<img src="gif/dot.gif" width="130" height="1">
|
||||
<img src="gif/dot.gif" width="130" height="1" alt="">
|
||||
|
||||
<hr noshade width="60%">
|
||||
<p>
|
||||
|
@ -18,6 +18,7 @@
|
|||
</p>
|
||||
<p>
|
||||
<font color="#ffffff" class="thl">Download<br></font>
|
||||
<a class="ths" href="new131.html">New in 1.3.1</a><br>
|
||||
<a class="ths" href="new130.html">New in 1.3.0</a><br>
|
||||
<a class="ths" href="new120.html">New in 1.2.0</a><br>
|
||||
</p>
|
||||
|
@ -36,7 +37,7 @@
|
|||
<hr noshade width="60%">
|
||||
|
||||
</td>
|
||||
<td width="1%"><img src="gif/dot.gif" width="40" height="1"></td>
|
||||
<td width="1%"><img src="gif/dot.gif" width="40" height="1" alt=""></td>
|
||||
<td width="99%">
|
||||
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
|
@ -54,45 +55,33 @@ height="62" border="0"></a>
|
|||
|
||||
<p>
|
||||
NOTE: All packages are compressed with the GNU gzip program. You
|
||||
can download it from <A HREF="ftp://ftp.gnu.org/gnu/gzip/">ftp://ftp.gnu.org/gnu/gzip/</A>.
|
||||
<P>
|
||||
Current stable release of bvi is <B>1.3.0</B>
|
||||
(Check out what's <A HREF="new130.html">new</A>):
|
||||
<P>
|
||||
<H3>Sources</H3>
|
||||
<UL>
|
||||
<LI><A HREF="http://bvi.linuxave.net/download/bvi-1.3.0.src.tar.gz">bvi-1.3.0.src.tar.gz</A>
|
||||
(147284 bytes)
|
||||
<LI><A HREF="http://bvi.linuxave.net/download/bvi-1.3.0.lsm">bvi-1.3.0.lsm</A>
|
||||
(645 bytes)<P>
|
||||
<LI><A HREF="http://bvi.linuxave.net/download/bvi-1.1.1.src.tar.gz">bvi-1.1.1.src.tar.gz</A>
|
||||
(46168 bytes)
|
||||
</UL>
|
||||
<H3>Executables</H3>
|
||||
<UL>
|
||||
<LI>Linux: <A HREF="http://bvi.linuxave.net/download/bvi-1.3.0-linux_static_elf.gz">bvi-1.3.0-linux_static_elf.gz</A>
|
||||
(109917 bytes)
|
||||
<LI>SunOS 4.1.3_U1: <A HREF="http://bvi.linuxave.net/download/bvi-1.3.0-sun4.gz">bvi-1.3.0-sun4.gz</A>
|
||||
(59357 bytes)
|
||||
<LI>Solaris 2.6: <A HREF="http://bvi.linuxave.net/download/bvi-1.3.0-solaris.gz">bvi-1.3.0-solaris.gz</A>
|
||||
(61368 bytes)
|
||||
<LI>AIX 4.1: <A HREF="download/bvi-1.2.0-aix.gz">bvi-1.2.0-aix.gz</A>
|
||||
(29095 bytes)
|
||||
<LI>IRIX 6.5.5: <A HREF="http://bvi.linuxave.net/download/bvi-1.2.0-irix.gz">bvi-1.2.0-irix.gz</A>
|
||||
(33888 bytes)
|
||||
<LI>HP-UX B.10.20: <A HREF="http://bvi.linuxave.net/download/bvi-1.2.0-hpux.gz">bvi-1.2.0-hpux.gz</A>
|
||||
(36175 bytes)
|
||||
<LI>MSDOS: <A HREF="http://bvi.linuxave.net/download/bvi120.zip">bvi120.zip</A>
|
||||
(43233 bytes)<P>
|
||||
<LI>MSDOS: <A HREF="http://bvi.linuxave.net/download/bvi110.zip">bvi110.zip</A>
|
||||
(44690 bytes)<P>
|
||||
</UL>
|
||||
can download it from <a href="ftp://ftp.gnu.org/gnu/gzip/">ftp://ftp.gnu.org/gnu/gzip/</a>.
|
||||
<p>
|
||||
Current stable release of bvi is <b>1.3.1</b>
|
||||
(Check out what's <a href="new131.html">new</a>):
|
||||
<p>
|
||||
<h3>Sources</h3>
|
||||
<ul>
|
||||
<li><a href="http://download.sourceforge.net/bvi/bvi-1.3.1.src.tar.gz">bvi-1.3.1.src.tar.gz</a>
|
||||
(168k)</li>
|
||||
<li><a href="http://download.sourceforge.net/bvi/bvi-1.3.0.src.tar.gz">bvi-1.3.0.src.tar.gz</a>
|
||||
(144k)</li>
|
||||
|
||||
</ul>
|
||||
<h3>Executables</h3>
|
||||
<ul>
|
||||
<li>Linux: <a href="http://download.sourceforge.net/bvi/bvi-1.3.1-linux_static_elf.tar.gz">bvi-1.3.1-linux_static_elf.tar.gz</a>
|
||||
(338k)</li>
|
||||
<li>Linux: <a href="http://download.sourceforge.net/bvi/bvi-1.3.0-linux_static_elf.tar.gz">bvi-1.3.0-linux_static_elf.tar.gz</a>
|
||||
(338k)</li>
|
||||
</ul>
|
||||
|
||||
<p><font size="-1">
|
||||
<a class="btop" href="#top">
|
||||
<img border="0" width="16" height="7" src="gif/up.gif"
|
||||
alt="Back to the top">Back to the top</a>
|
||||
</font>
|
||||
<hr noshade>
|
||||
<i>Last update: October 23<sup>rd</sup> 22:36:45 CEST 2000 by Gerhard Bürgmann</i>
|
||||
<i>Last update: February 12<sup>th</sup> 2002 by Gerhard Bürgmann</i>
|
||||
</td></tr></table>
|
||||
</body></html>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C/DTD HTML 3.2 Final//EN">
|
||||
<!DOCTYPE html PUBLIC "-//W3C/DTD HTML 3.2 Final//EN">
|
||||
<html><head>
|
||||
<title>BVI: Deutsche Beschreibung</title>
|
||||
<link rel=stylesheet type="text/css" href="bvi.css">
|
||||
|
@ -7,7 +7,7 @@
|
|||
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr><td width="1%" valign="top" align="center">
|
||||
<img src="gif/dot.gif" width="130" height="1">
|
||||
<img src="gif/dot.gif" width="130" height="1" alt="">
|
||||
|
||||
<hr noshade width="60%">
|
||||
<p>
|
||||
|
@ -34,7 +34,7 @@
|
|||
<hr noshade width="60%">
|
||||
|
||||
</td>
|
||||
<td width="1%"><img src="gif/dot.gif" width="40" height="1"></td>
|
||||
<td width="1%"><img src="gif/dot.gif" width="40" height="1" alt=""></td>
|
||||
<td width="99%">
|
||||
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
|
|
5
html/gif/.xvpics/bg2.gif
Normal file
5
html/gif/.xvpics/bg2.gif
Normal file
|
@ -0,0 +1,5 @@
|
|||
P7 332
|
||||
#IMGINFO:1600x1 Indexed (91 bytes)
|
||||
#END_OF_COMMENTS
|
||||
80 1 255
|
||||
I$IIÛ¶¶¶IH%IÛ¶¶Ú%HI%Û¶Ú¶%HII·Ú¶¶%HIIÛ¶¶¶I$IIÛ¶¶Û$I$IÛ¶Ú·$IH%Û¶Ú·$IHI·Ú¶·H%HIÛ¶¶·
|
BIN
html/gif/bg2.gif
BIN
html/gif/bg2.gif
Binary file not shown.
Before Width: | Height: | Size: 86 B After Width: | Height: | Size: 91 B |
|
@ -1,23 +1,23 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C/DTD HTML 3.2 Final//EN">
|
||||
<!DOCTYPE html PUBLIC "-//W3C/DTD HTML 3.2 Final//EN">
|
||||
<html><head>
|
||||
<title>BVI Home Page</title>
|
||||
<title>BVI - Binary VIsual editor</title>
|
||||
<script language="JavaScript">
|
||||
<!--
|
||||
if(top.frames.length!=0){top.location=location;}// -->
|
||||
</script>
|
||||
<link rel=stylesheet type="text/css" href="bvi.css">
|
||||
<meta name="description" content="Bvi stands for Binary VIsual editor.
|
||||
Bvi is a display oriented editor for binary files.
|
||||
Its command set is based on those of the vi texteditor.">
|
||||
<meta name="keywords" content="bvi, editor, binary, bmore, decimal, dos, hex,
|
||||
hexadecimal, linux, msdos, octal, patch, more, unix, visual, vi">
|
||||
Bvi is a display oriented editor for binary files.
|
||||
Its command set is based on those of the vi texteditor.">
|
||||
<meta name="keywords" content="bvi, editor, binary, bmore, decimal, hex,
|
||||
hexadecimal, linux, octal, patch, more, unix, solaris, sunos, visual, vi">
|
||||
<meta name="robots" content="INDEX,FOLLOW">
|
||||
<meta name="author" content="Gerhard Buergmann">
|
||||
<meta name="publisher" content="Gerhard Buergmann">
|
||||
</head><body bgcolor="#ffffff" background="gif/bg2.gif">
|
||||
<a name="top"></a>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr><th width="1%" valign="top"><img src="gif/dot.gif" width="130" height="1">
|
||||
<tr><th width="1%" valign="top"><img src="gif/dot.gif" width="130" height="1" alt="">
|
||||
|
||||
<hr noshade width="60%">
|
||||
|
||||
|
@ -62,13 +62,16 @@ Hex-Editors
|
|||
<hr noshade width="60%">
|
||||
|
||||
<p>
|
||||
<a href="http://sourceforge.net">
|
||||
<img src="http://sourceforge.net/sflogo.php?group_id=16427&type=1" width="88" height="31" border="0" alt="SourceForge Logo"></a>
|
||||
</p>
|
||||
|
||||
</TH>
|
||||
<td width=1%><img src="gif/dot.gif" width="40" height="1"></td>
|
||||
<td width=1%><img src="gif/dot.gif" width="40" height="1" alt=""></td>
|
||||
<td width=99%>
|
||||
<center>
|
||||
<h1>Welcome to the<br>
|
||||
<img src="gif/bvi_m.gif" ALT="bvi" width="232" height="125"><br>
|
||||
<img src="gif/bvi_m.gif" alt="bvi" width="232" height="125"><br>
|
||||
Homepage</h1>
|
||||
<b>Here you can find all the informations about <strong>bvi</strong> you need.</B>
|
||||
</center>
|
||||
|
@ -81,31 +84,31 @@ If you never heard about <strong>vi</strong>, maybe <strong>bvi</strong> is not
|
|||
choice for you.
|
||||
|
||||
<p>
|
||||
<h3>Original site: <a href="http://bvi.linuxave.net/">http://bvi.linuxave.net</a></h3>
|
||||
</p>
|
||||
<h3>Original site: <a href="http://bvi.sourceforge.net/">http://bvi.sourceforge.net</a></h3>
|
||||
You can download source and compiled versions from the
|
||||
<a href="download.html">download page</a>.<br>
|
||||
Check out whats <a href="new130.html">new in 1.3.0</a>!
|
||||
</p>
|
||||
Check out whats <a href="new131.html">new in 1.3.1</a>!
|
||||
|
||||
<p>
|
||||
<b>Newsgroup:</b> <a href="news:comp.editors">comp.editors</a>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Mailing List:</b>
|
||||
<blockquote>
|
||||
To join this list, simply send a blank email to
|
||||
<a href="mailto:bvi-subscribe@egroups.com">bvi-subscribe@eGroups.com</a>.
|
||||
<a href="mailto:bvi-subscribe@yahoogroups.com">bvi-subscribe@yahoogroups.com</a>.
|
||||
You will receive a subscription confirmation message.
|
||||
Simply reply this message and your subscription will be complete.
|
||||
</blockquote>
|
||||
|
||||
<strong>Bvi</strong> was developed by Gerhard Bürgmann and is published
|
||||
under the GNU Public License. Current stable version is 1.3.0.
|
||||
under the GNU Public License. Current stable version is 1.3.1.
|
||||
<strong>Bvi</strong> is running on most UNIX - like operating systems and
|
||||
on MSDOS.
|
||||
<p>
|
||||
If you want to contact me:<br>
|
||||
Gerhard Bürgmann, Vienna / Austria / Europe<br>
|
||||
Email: <a href="mailto:gerhard.buergmann@altavista.net">
|
||||
Gerhard Bürgmann, Vienna ( <a href="http://www.purkersdorf-online.at/">Purkersdorf</a> ) / Austria / Europe<br>
|
||||
E-mail: <a href="mailto:gerhard.buergmann@altavista.net">
|
||||
Gerhard.Buergmann@altavista.net</a>
|
||||
|
||||
<p>
|
||||
|
@ -115,7 +118,7 @@ Gerhard.Buergmann@altavista.net</a>
|
|||
alt="Back to the top">Back to the top</a>
|
||||
</font>
|
||||
<hr noshade>
|
||||
<i>Last update: October 23<sup>rd</sup> 2000 by Gerhard Bürgmann</i>
|
||||
<i>Last update: February 12<sup>th</sup> 2002 by Gerhard Bürgmann</i>
|
||||
</p>
|
||||
</td></tr></table>
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C/DTD HTML 3.2 Final//EN">
|
||||
<!DOCTYPE html PUBLIC "-//W3C/DTD HTML 3.2 Final//EN">
|
||||
<html><head>
|
||||
<title>BVI: Installation</title>
|
||||
<link rel=stylesheet type="text/css" href="bvi.css">
|
||||
|
@ -7,7 +7,7 @@
|
|||
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr><td width="1%" valign="top" align="center">
|
||||
<img src="gif/dot.gif" width="130" height="1">
|
||||
<img src="gif/dot.gif" width="130" height="1" alt="">
|
||||
|
||||
<hr noshade width="60%">
|
||||
<p>
|
||||
|
@ -52,20 +52,20 @@ height="62" border="0"></a>
|
|||
|
||||
<p>
|
||||
The following steps are necessary to get bvi running:
|
||||
<H2>UNIX</H2>
|
||||
<h2>UNIX</h2>
|
||||
The Unix version of bvi needs the curses (ncurses) library
|
||||
for cursor movement.
|
||||
<OL>
|
||||
<LI>Download the source package from the Download Page
|
||||
<LI>Unzip the package with the command:
|
||||
<PRE CLASS="examp">
|
||||
# gunzip -c bvi-1.3.0.src.tar.gz | tar xvf
|
||||
</PRE>
|
||||
<LI>Change to the directory <TT CLASS="examp">bvi-1.3.0</TT> and type
|
||||
<PRE CLASS="examp">
|
||||
<ol>
|
||||
<li>Download the source package from the Download Page</li>
|
||||
<li>Unzip the package with the command:</li>
|
||||
<pre class="examp">
|
||||
# gunzip -c bvi-1.3.1.src.tar.gz | tar xvf
|
||||
</pre>
|
||||
<li>Change to the directory <tt class="examp">bvi-1.3.1</tt> and type
|
||||
<pre class="examp">
|
||||
# ./configure
|
||||
# make
|
||||
</PRE>
|
||||
</pre></li>
|
||||
|
||||
<li>Type `<tt class="examp">make install</tt>' for copying the executable files
|
||||
and manual pages to the final directories.
|
||||
|
@ -86,45 +86,47 @@ You will find now four new commands:
|
|||
bview The readonly version of bvi
|
||||
bedit The beginners version of bvi
|
||||
bmore The binary more program
|
||||
</pre>
|
||||
</pre></li>
|
||||
<li>Use `<tt class="examp">make uninstall</tt>' to remove the installed
|
||||
files from your file system.<br>
|
||||
You can remove the program binaries and object files from the
|
||||
source code directory by typing `<tt class="examp">make clean</tt>'.
|
||||
To also remove the files that `<TT CLASS="examp">configure</tt>' created
|
||||
(so you can compile the package for
|
||||
a different kind of computer), type `<tt class="examp">make distclean</tt>'.
|
||||
a different kind of computer), type `<tt class="examp">make distclean</tt>'. </li>
|
||||
</ol>
|
||||
|
||||
<H2>MSDOS</H2>
|
||||
<h2>MSDOS</h2>
|
||||
You have to convert the sourcefiles from the UNIX textformat to
|
||||
the MSDOS textformat first. This can be done e.g. by loading and
|
||||
saving them with the MSDOS standard editor `edit'.
|
||||
<P>
|
||||
<p>
|
||||
The MSDOS version is using the conio routines of the
|
||||
Borland - C compilers for cursor movement. The <TT>doscur.h</TT>
|
||||
header file substitutes the curses commands.<BR>
|
||||
Borland - C compilers for cursor movement. The <tt>doscur.h</tt>
|
||||
header file substitutes the curses commands.<br>
|
||||
<strong>Bvi</strong> is using the "HUGE" memory model, <strong>bmore</strong>
|
||||
needs the "TINY" model to
|
||||
be able to convert it to a .COM file.
|
||||
|
||||
<OL>
|
||||
<LI>Download the source package from the Download Page
|
||||
<LI>Unzip the package with the command:
|
||||
<PRE CLASS="examp">
|
||||
gunzip -c bvi-1.3.0.src.tar.gz | tar xvf
|
||||
</PRE>
|
||||
<LI> Load the tcconfig file (located in the <TT>bc</TT> subdirectory
|
||||
for Borland - C).
|
||||
<ol>
|
||||
<li>Download the source package from the Download Page</li>
|
||||
<li>Unzip the package with the command:
|
||||
<pre class="examp">
|
||||
gunzip -c bvi-1.3.1.src.tar.gz | tar xvf
|
||||
</pre></li>
|
||||
<li> Load the tcconfig file (located in the <TT>bc</TT> subdirectory
|
||||
for Borland - C).</li>
|
||||
|
||||
<LI> Press F9-Make
|
||||
</OL>
|
||||
<li> Press F9-Make</li>
|
||||
</ol>
|
||||
The MSDOS version exists for historical reasons and is not really
|
||||
supported anymore.
|
||||
<p><font size="-1">
|
||||
<a class="btop" href="#top">
|
||||
<img border="0" width="16" height="7" src="gif/up.gif"
|
||||
alt="Back to the top">Back to the top</a>
|
||||
</font>
|
||||
<hr noshade>
|
||||
<i>Last update: Thu Oct 19 21:31:04 CEST 2000 by Gerhard Bürgmann</i>
|
||||
<i>Last update: February 12<sup>th</sup> 2002 by Gerhard Bürgmann</i>
|
||||
</td></tr></table>
|
||||
</body></html>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C/DTD HTML 3.2 Final//EN">
|
||||
<!DOCTYPE html PUBLIC "-//W3C/DTD HTML 3.2 Final//EN">
|
||||
<html><head>
|
||||
<title>BVI: CHANGES in bvi 1.2.0</title>
|
||||
<link rel=stylesheet type="text/css" href="bvi.css">
|
||||
|
@ -7,7 +7,7 @@
|
|||
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr><td width="1%" valign="top" align="center">
|
||||
<img src="gif/dot.gif" width="130" height="1">
|
||||
<img src="gif/dot.gif" width="130" height="1" alt="">
|
||||
|
||||
<hr noshade width="60%">
|
||||
<p>
|
||||
|
@ -18,6 +18,7 @@
|
|||
</p>
|
||||
<p>
|
||||
<a class="thl" href="download.html">Download</a><br>
|
||||
<a class="ths" href="new131.html">New in 1.3.1</a><br>
|
||||
<a class="ths" href="new130.html">New in 1.3.0</a><br>
|
||||
<font color="#ffffff" class="ths">New in 1.2.0<br></font>
|
||||
</p>
|
||||
|
@ -36,7 +37,7 @@
|
|||
<hr noshade width="60%">
|
||||
|
||||
</td>
|
||||
<td width="1%"><img src="gif/dot.gif" width="40" height="1"></td>
|
||||
<td width="1%"><img src="gif/dot.gif" width="40" height="1" alt=""></td>
|
||||
<td width="99%">
|
||||
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
|
@ -53,11 +54,11 @@ height="62" border="0"></a>
|
|||
</td></tr></table>
|
||||
|
||||
<p>
|
||||
<UL>
|
||||
<LI>Configuration with GNU autoconfig
|
||||
<LI>New <B>:set</B> options:
|
||||
<UL>
|
||||
<LI><B>:set columns=n</B><BR>
|
||||
<ul>
|
||||
<li>Configuration with GNU autoconfig
|
||||
<li>New <b>:set</b> options:
|
||||
<ul>
|
||||
<li><b>:set columns=n</b><br>
|
||||
You can set the number of columns on the screen to an
|
||||
arbitrary value. This might be useful if you edit a file
|
||||
with a fixed record length.<BR>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C/DTD HTML 3.2 Final//EN">
|
||||
<!DOCTYPE html PUBLIC "-//W3C/DTD HTML 3.2 Final//EN">
|
||||
<html><head>
|
||||
<title>BVI: CHANGES in bvi 1.3.0</title>
|
||||
<link rel=stylesheet type="text/css" href="bvi.css">
|
||||
|
@ -7,7 +7,7 @@
|
|||
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr><td width="1%" valign="top" align="center">
|
||||
<img src="gif/dot.gif" width="130" height="1">
|
||||
<img src="gif/dot.gif" width="130" height="1" alt="">
|
||||
|
||||
<hr noshade width="60%">
|
||||
<p>
|
||||
|
@ -18,6 +18,7 @@
|
|||
</p>
|
||||
<p>
|
||||
<a class="thl" href="download.html">Download</a><br>
|
||||
<a class="ths" href="new131.html">New in 1.3.1</a><br>
|
||||
<font color="#ffffff" class="ths">New in 1.3.0<br></font>
|
||||
<a class="ths" href="new120.html">New in 1.2.0</a><br>
|
||||
</p>
|
||||
|
@ -36,7 +37,7 @@
|
|||
<hr noshade width="60%">
|
||||
|
||||
</td>
|
||||
<td width="1%"><img src="gif/dot.gif" width="40" height="1"></td>
|
||||
<td width="1%"><img src="gif/dot.gif" width="40" height="1" alt=""></td>
|
||||
<td width="99%">
|
||||
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
|
|
96
html/new131.html
Normal file
96
html/new131.html
Normal file
|
@ -0,0 +1,96 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C/DTD HTML 3.2 Final//EN">
|
||||
<html><head>
|
||||
<title>BVI: CHANGES in bvi 1.3.1</title>
|
||||
<link rel=stylesheet type="text/css" href="bvi.css">
|
||||
</head><body bgcolor="#ffffff" background="gif/bg2.gif">
|
||||
<a name="top"></a>
|
||||
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr><td width="1%" valign="top" align="center">
|
||||
<img src="gif/dot.gif" width="130" height="1" alt="">
|
||||
|
||||
<hr noshade width="60%">
|
||||
<p>
|
||||
<a class="thl" href="index.html">Home</a><br>
|
||||
</p>
|
||||
<p>
|
||||
<a class="thl" href="quick.html">Quick Tutorial</a><br>
|
||||
</p>
|
||||
<p>
|
||||
<a class="thl" href="download.html">Download</a><br>
|
||||
<font color="#ffffff" class="ths">New in 1.3.1<br></font>
|
||||
<a class="ths" href="new130.html">New in 1.3.0</a><br>
|
||||
<a class="ths" href="new120.html">New in 1.2.0</a><br>
|
||||
</p>
|
||||
<p>
|
||||
<a class="thl" href="install.html">Installation</a><br>
|
||||
</p>
|
||||
<p>
|
||||
<a class="thl" href="overview.html">Command Overview</a><br>
|
||||
</p>
|
||||
<p>
|
||||
<a class="thl" href="bmore.html">bmore</a><br>
|
||||
</p>
|
||||
<p>
|
||||
<a class="thl" href="german.html">Deutsche Beschreibung</a><br>
|
||||
</p>
|
||||
<hr noshade width="60%">
|
||||
|
||||
</td>
|
||||
<td width="1%"><img src="gif/dot.gif" width="40" height="1" alt=""></td>
|
||||
<td width="99%">
|
||||
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr><td width="99%">
|
||||
<font class="head">CHANGES in bvi 1.3.1</font>
|
||||
</td>
|
||||
<td align="right" valign="bottom" width="116" rowspan="2">
|
||||
<a href="index.html">
|
||||
<img src="gif/bvi_s.gif" alt="BVI" width="116"
|
||||
height="62" border="0"></a>
|
||||
</td></tr>
|
||||
<tr><td valign="bottom">
|
||||
<hr noshade>
|
||||
</td></tr></table>
|
||||
|
||||
<p>
|
||||
This is a bugfix release.
|
||||
<p>
|
||||
<b><font color="red">BVI:</font></b>
|
||||
<ul>
|
||||
<li> autoconf 2.52 used
|
||||
<p>
|
||||
<li> do_back() fixed (cast)</li>
|
||||
<p>
|
||||
<li> replace sys_errlist[errno] with strerror(errno) (Debian #106762)</li>
|
||||
<p>
|
||||
<li> fix: one can continue deleting bytes even when file is empty (Debian #121934)</li>
|
||||
<p>
|
||||
<li> wish: no ":set mm" to delete bytes from end of file (Debian #122240)</li>
|
||||
<p>
|
||||
<li> cast for alloc_buf() in set.c</li>
|
||||
<p>
|
||||
<li> r-bug fix in edit.c and bvi.c</li>
|
||||
<p>
|
||||
<li> renamed CTRL to BVICTRL (AIX problem)</li>
|
||||
<p>
|
||||
</ul>
|
||||
|
||||
<b><font color="red">BMORE:</font></b></li>
|
||||
<ul>
|
||||
<li>nicer last line</li>
|
||||
<p>
|
||||
<li>bmbeep() instead of beep() (SOLARIS problem)</li>
|
||||
<p>
|
||||
<li>subshell support fixes</li>
|
||||
</ul>
|
||||
|
||||
<p><font size="-1">
|
||||
<a class="btop" href="#top">
|
||||
<img border="0" width="16" height="7" src="gif/up.gif"
|
||||
alt="Back to the top">Back to the top</a>
|
||||
</font>
|
||||
<hr noshade>
|
||||
<i>Last update: February 12<sup>th</sup> 2002 by Gerhard Bürgmann</i>
|
||||
</td></tr></table>
|
||||
</body></html>
|
|
@ -1,4 +1,4 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C/DTD HTML 3.2 Final//EN">
|
||||
<!DOCTYPE html PUBLIC "-//W3C/DTD HTML 3.2 Final//EN">
|
||||
<html><head>
|
||||
<title>BVI: Command Overview</title>
|
||||
<link rel=stylesheet type="text/css" href="bvi.css">
|
||||
|
@ -7,7 +7,7 @@
|
|||
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr><td width="1%" valign="top" align="center">
|
||||
<img src="gif/dot.gif" width="130" height="1">
|
||||
<img src="gif/dot.gif" width="130" height="1" alt="">
|
||||
|
||||
<hr noshade width="60%">
|
||||
<p>
|
||||
|
@ -40,7 +40,7 @@
|
|||
<hr noshade width="60%">
|
||||
|
||||
</td>
|
||||
<td width="1%"><img src="gif/dot.gif" width="40" height="1"></td>
|
||||
<td width="1%"><img src="gif/dot.gif" width="40" height="1" alt=""></td>
|
||||
<td width="99%">
|
||||
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C/DTD HTML 3.2 Final//EN">
|
||||
<!DOCTYPE html PUBLIC "-//W3C/DTD HTML 3.2 Final//EN">
|
||||
<html><head>
|
||||
<title>BVI: Bit-wise Operations</title>
|
||||
<link rel=stylesheet type="text/css" href="bvi.css">
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C/DTD HTML 3.2 Final//EN">
|
||||
<!DOCTYPE html PUBLIC "-//W3C/DTD HTML 3.2 Final//EN">
|
||||
<html><head>
|
||||
<title>BVI: Editing Files</title>
|
||||
<link rel=stylesheet type="text/css" href="bvi.css">
|
||||
|
@ -7,7 +7,7 @@
|
|||
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr><td width="1%" valign="top" align="center">
|
||||
<img src="gif/dot.gif" width="130" height="1">
|
||||
<img src="gif/dot.gif" width="130" height="1" alt="">
|
||||
|
||||
<hr noshade width="60%">
|
||||
<p>
|
||||
|
@ -41,7 +41,7 @@
|
|||
<hr noshade width="60%">
|
||||
|
||||
</td>
|
||||
<td width="1%"><img src="gif/dot.gif" width="40" height="1"></td>
|
||||
<td width="1%"><img src="gif/dot.gif" width="40" height="1" alt=""></td>
|
||||
<td width="99%">
|
||||
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C/DTD HTML 3.2 Final//EN">
|
||||
<!DOCTYPE html PUBLIC "-//W3C/DTD HTML 3.2 Final//EN">
|
||||
<html><head>
|
||||
<title>BVI: Find and Replace</title>
|
||||
<link rel=stylesheet type="text/css" href="bvi.css">
|
||||
|
@ -7,7 +7,7 @@
|
|||
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr><td width="1%" valign="top" align="center">
|
||||
<img src="gif/dot.gif" width="130" height="1">
|
||||
<img src="gif/dot.gif" width="130" height="1" alt="">
|
||||
|
||||
<hr noshade width="60%">
|
||||
<p>
|
||||
|
@ -41,7 +41,7 @@
|
|||
<hr noshade width="60%">
|
||||
|
||||
</td>
|
||||
<td width="1%"><img src="gif/dot.gif" width="40" height="1"></td>
|
||||
<td width="1%"><img src="gif/dot.gif" width="40" height="1" alt=""></td>
|
||||
<td width="99%">
|
||||
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C/DTD HTML 3.2 Final//EN">
|
||||
<!DOCTYPE html PUBLIC "-//W3C/DTD HTML 3.2 Final//EN">
|
||||
<html><head>
|
||||
<title>BVI: Partial File Read</title>
|
||||
<link rel=stylesheet type="text/css" href="bvi.css">
|
||||
|
@ -7,7 +7,7 @@
|
|||
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr><td width="1%" valign="top" align="center">
|
||||
<img src="gif/dot.gif" width="130" height="1">
|
||||
<img src="gif/dot.gif" width="130" height="1" alt="">
|
||||
|
||||
<hr noshade width="60%">
|
||||
<p>
|
||||
|
@ -41,7 +41,7 @@
|
|||
<hr noshade width="60%">
|
||||
|
||||
</td>
|
||||
<td width="1%"><img src="gif/dot.gif" width="40" height="1"></td>
|
||||
<td width="1%"><img src="gif/dot.gif" width="40" height="1" alt=""></td>
|
||||
<td width="99%">
|
||||
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C/DTD HTML 3.2 Final//EN">
|
||||
<!DOCTYPE html PUBLIC "-//W3C/DTD HTML 3.2 Final//EN">
|
||||
<html><head>
|
||||
<title>BVI: Search Commands</title>
|
||||
<link rel=stylesheet type="text/css" href="bvi.css">
|
||||
|
@ -7,7 +7,7 @@
|
|||
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr><td width="1%" valign="top" align="center">
|
||||
<img src="gif/dot.gif" width="130" height="1">
|
||||
<img src="gif/dot.gif" width="130" height="1" alt="">
|
||||
|
||||
<hr noshade width="60%">
|
||||
<p>
|
||||
|
@ -41,7 +41,7 @@
|
|||
<hr noshade width="60%">
|
||||
|
||||
</td>
|
||||
<td width="1%"><img src="gif/dot.gif" width="40" height="1"></td>
|
||||
<td width="1%"><img src="gif/dot.gif" width="40" height="1" alt=""></td>
|
||||
<td width="99%">
|
||||
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C/DTD HTML 3.2 Final//EN">
|
||||
<!DOCTYPE html PUBLIC "-//W3C/DTD HTML 3.2 Final//EN">
|
||||
<html><head>
|
||||
<title>BVI: Settings</title>
|
||||
<link rel=stylesheet type="text/css" href="bvi.css">
|
||||
|
@ -7,7 +7,7 @@
|
|||
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr><td width="1%" valign="top" align="center">
|
||||
<img src="gif/dot.gif" width="130" height="1">
|
||||
<img src="gif/dot.gif" width="130" height="1" alt="">
|
||||
|
||||
<hr noshade width="60%">
|
||||
<p>
|
||||
|
@ -41,7 +41,7 @@
|
|||
<hr noshade width="60%">
|
||||
|
||||
</td>
|
||||
<td width="1%"><img src="gif/dot.gif" width="40" height="1"></td>
|
||||
<td width="1%"><img src="gif/dot.gif" width="40" height="1" alt=""></td>
|
||||
<td width="99%">
|
||||
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C/DTD HTML 3.2 Final//EN">
|
||||
<!DOCTYPE html PUBLIC "-//W3C/DTD HTML 3.2 Final//EN">
|
||||
<html><head>
|
||||
<title>BVI: Yank and Put</title>
|
||||
<link rel=stylesheet type="text/css" href="bvi.css">
|
||||
|
@ -7,7 +7,7 @@
|
|||
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr><td width="1%" valign="top" align="center">
|
||||
<img src="gif/dot.gif" width="130" height="1">
|
||||
<img src="gif/dot.gif" width="130" height="1" alt="">
|
||||
|
||||
<hr noshade width="60%">
|
||||
<p>
|
||||
|
@ -41,7 +41,7 @@
|
|||
<hr noshade width="60%">
|
||||
|
||||
</td>
|
||||
<td width="1%"><img src="gif/dot.gif" width="40" height="1"></td>
|
||||
<td width="1%"><img src="gif/dot.gif" width="40" height="1" alt=""></td>
|
||||
<td width="99%">
|
||||
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C/DTD HTML 3.2 Final//EN">
|
||||
<!DOCTYPE html PUBLIC "-//W3C/DTD HTML 3.2 Final//EN">
|
||||
<html><head>
|
||||
<title>BVI: Quick Tutorial</title>
|
||||
<link rel=stylesheet type="text/css" href="bvi.css">
|
||||
|
@ -7,7 +7,7 @@
|
|||
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr><td width="1%" valign="top" align="center">
|
||||
<img src="gif/dot.gif" width="130" height="1">
|
||||
<img src="gif/dot.gif" width="130" height="1" alt="">
|
||||
|
||||
<hr noshade width="60%">
|
||||
<p>
|
||||
|
@ -41,7 +41,7 @@
|
|||
<hr noshade width="60%">
|
||||
|
||||
</td>
|
||||
<td width="1%"><img src="gif/dot.gif" width="40" height="1"></td>
|
||||
<td width="1%"><img src="gif/dot.gif" width="40" height="1" alt=""></td>
|
||||
<td width="99%">
|
||||
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C/DTD HTML 3.2 Final//EN">
|
||||
<!DOCTYPE html PUBLIC "-//W3C/DTD HTML 3.2 Final//EN">
|
||||
<html><head>
|
||||
<title>BVI: Sitemap</title>
|
||||
<link rel=stylesheet type="text/css" href="bvi.css">
|
||||
|
@ -7,7 +7,7 @@
|
|||
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr><td width="1%" valign="top" align="center">
|
||||
<img src="gif/dot.gif" width="130" height="1">
|
||||
<img src="gif/dot.gif" width="130" height="1" alt="">
|
||||
|
||||
<hr noshade width="60%">
|
||||
<p>
|
||||
|
@ -34,7 +34,7 @@
|
|||
<hr noshade width="60%">
|
||||
|
||||
</td>
|
||||
<td width="1%"><img src="gif/dot.gif" width="40" height="1"></td>
|
||||
<td width="1%"><img src="gif/dot.gif" width="40" height="1" alt=""></td>
|
||||
<td width="99%">
|
||||
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
|
@ -88,6 +88,9 @@ height="62" border="0"></a>
|
|||
</li>
|
||||
<ul>
|
||||
<li>
|
||||
<a class="thl" href="new131.html">New in 1.3.1</a><br>
|
||||
</li>
|
||||
<li>
|
||||
<a class="thl" href="new130.html">New in 1.3.0</a><br>
|
||||
</li>
|
||||
<li>
|
||||
|
@ -148,6 +151,6 @@ height="62" border="0"></a>
|
|||
alt="Back to the top">Back to the top</a>
|
||||
</font>
|
||||
<hr noshade>
|
||||
<i>Last update: Thu Oct 12 20:42:01 CEST 2000 by Gerhard Bürgmann</i>
|
||||
<i>Last update: February 12<sup>th</sup> 2002 by Gerhard Bürgmann</i>
|
||||
</td></tr></table>
|
||||
</body></html>
|
||||
|
|
57
install-sh
57
install-sh
|
@ -1,15 +1,27 @@
|
|||
#! /bin/sh
|
||||
#!/bin/sh
|
||||
#
|
||||
# install - install a program, script, or datafile
|
||||
# This comes from X11R5.
|
||||
# This comes from X11R5 (mit/util/scripts/install.sh).
|
||||
#
|
||||
# Copyright 1991 by the Massachusetts Institute of Technology
|
||||
#
|
||||
# Permission to use, copy, modify, distribute, and sell this software and its
|
||||
# documentation for any purpose is hereby granted without fee, provided that
|
||||
# the above copyright notice appear in all copies and that both that
|
||||
# copyright notice and this permission notice appear in supporting
|
||||
# documentation, and that the name of M.I.T. not be used in advertising or
|
||||
# publicity pertaining to distribution of the software without specific,
|
||||
# written prior permission. M.I.T. makes no representations about the
|
||||
# suitability of this software for any purpose. It is provided "as is"
|
||||
# without express or implied warranty.
|
||||
#
|
||||
# Calling this script install-sh is preferred over install.sh, to prevent
|
||||
# `make' implicit rules from creating a file called install from it
|
||||
# when there is no Makefile.
|
||||
#
|
||||
# This script is compatible with the BSD install script, but was written
|
||||
# from scratch.
|
||||
#
|
||||
# from scratch. It can only install one file at a time, a restriction
|
||||
# shared with many OS's install programs.
|
||||
|
||||
|
||||
# set DOITPROG to echo to test this script
|
||||
|
@ -29,7 +41,7 @@ stripprog="${STRIPPROG-strip}"
|
|||
rmprog="${RMPROG-rm}"
|
||||
mkdirprog="${MKDIRPROG-mkdir}"
|
||||
|
||||
tranformbasename=""
|
||||
transformbasename=""
|
||||
transform_arg=""
|
||||
instcmd="$mvprog"
|
||||
chmodcmd="$chmodprog 0755"
|
||||
|
@ -97,7 +109,7 @@ then
|
|||
echo "install: no input file specified"
|
||||
exit 1
|
||||
else
|
||||
true
|
||||
:
|
||||
fi
|
||||
|
||||
if [ x"$dir_arg" != x ]; then
|
||||
|
@ -106,8 +118,9 @@ if [ x"$dir_arg" != x ]; then
|
|||
|
||||
if [ -d $dst ]; then
|
||||
instcmd=:
|
||||
chmodcmd=""
|
||||
else
|
||||
instcmd=mkdir
|
||||
instcmd=$mkdirprog
|
||||
fi
|
||||
else
|
||||
|
||||
|
@ -117,7 +130,7 @@ else
|
|||
|
||||
if [ -f $src -o -d $src ]
|
||||
then
|
||||
true
|
||||
:
|
||||
else
|
||||
echo "install: $src does not exist"
|
||||
exit 1
|
||||
|
@ -128,7 +141,7 @@ else
|
|||
echo "install: no destination specified"
|
||||
exit 1
|
||||
else
|
||||
true
|
||||
:
|
||||
fi
|
||||
|
||||
# If destination is a directory, append the input filename; if your system
|
||||
|
@ -138,7 +151,7 @@ else
|
|||
then
|
||||
dst="$dst"/`basename $src`
|
||||
else
|
||||
true
|
||||
:
|
||||
fi
|
||||
fi
|
||||
|
||||
|
@ -150,8 +163,8 @@ dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
|
|||
|
||||
# Skip lots of stat calls in the usual case.
|
||||
if [ ! -d "$dstdir" ]; then
|
||||
defaultIFS='
|
||||
'
|
||||
defaultIFS='
|
||||
'
|
||||
IFS="${IFS-${defaultIFS}}"
|
||||
|
||||
oIFS="${IFS}"
|
||||
|
@ -170,7 +183,7 @@ while [ $# -ne 0 ] ; do
|
|||
then
|
||||
$mkdirprog "${pathcomp}"
|
||||
else
|
||||
true
|
||||
:
|
||||
fi
|
||||
|
||||
pathcomp="${pathcomp}/"
|
||||
|
@ -181,10 +194,10 @@ if [ x"$dir_arg" != x ]
|
|||
then
|
||||
$doit $instcmd $dst &&
|
||||
|
||||
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
|
||||
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
|
||||
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
|
||||
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
|
||||
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else : ; fi &&
|
||||
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else : ; fi &&
|
||||
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else : ; fi &&
|
||||
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else : ; fi
|
||||
else
|
||||
|
||||
# If we're going to rename the final executable, determine the name now.
|
||||
|
@ -203,7 +216,7 @@ else
|
|||
then
|
||||
dstfile=`basename $dst`
|
||||
else
|
||||
true
|
||||
:
|
||||
fi
|
||||
|
||||
# Make a temp file name in the proper directory.
|
||||
|
@ -222,10 +235,10 @@ else
|
|||
# ignore errors from any of these, just make sure not to ignore
|
||||
# errors from the above "$doit $instcmd $src $dsttmp" command.
|
||||
|
||||
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
|
||||
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
|
||||
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
|
||||
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
|
||||
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else :;fi &&
|
||||
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else :;fi &&
|
||||
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else :;fi &&
|
||||
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else :;fi &&
|
||||
|
||||
# Now rename the file to the real destination.
|
||||
|
||||
|
|
|
@ -4,9 +4,29 @@
|
|||
# Created: 1993-05-16
|
||||
# Public domain
|
||||
|
||||
# $Id: mkinstalldirs,v 1.12.2.1 1998/12/26 17:32:14 bje Exp $
|
||||
# $Id: mkinstalldirs,v 1.1 2001/05/22 14:43:50 akim Exp $
|
||||
|
||||
errstatus=0
|
||||
dirmode=""
|
||||
|
||||
usage="\
|
||||
Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..."
|
||||
|
||||
# process command line arguments
|
||||
while test $# -gt 0 ; do
|
||||
case "${1}" in
|
||||
-h | --help | --h* ) # -h for help
|
||||
echo "${usage}" 1>&2; exit 0 ;;
|
||||
-m ) # -m PERM arg
|
||||
shift
|
||||
test $# -eq 0 && { echo "${usage}" 1>&2; exit 1; }
|
||||
dirmode="${1}"
|
||||
shift ;;
|
||||
-- ) shift; break ;; # stop option processing
|
||||
-* ) echo "${usage}" 1>&2; exit 1 ;; # unknown option
|
||||
* ) break ;; # first non-opt arg
|
||||
esac
|
||||
done
|
||||
|
||||
for file
|
||||
do
|
||||
|
@ -28,6 +48,17 @@ do
|
|||
|
||||
if test ! -d "$pathcomp"; then
|
||||
errstatus=$lasterr
|
||||
else
|
||||
if test ! -z "$dirmode"; then
|
||||
echo "chmod $dirmode $pathcomp"
|
||||
|
||||
lasterr=""
|
||||
chmod $dirmode "$pathcomp" || lasterr=$?
|
||||
|
||||
if test ! -z "$lasterr"; then
|
||||
errstatus=$lasterr
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
@ -36,3 +67,8 @@ do
|
|||
done
|
||||
|
||||
exit $errstatus
|
||||
|
||||
# Local Variables:
|
||||
# mode:shell-script
|
||||
# sh-indentation:3
|
||||
# End:
|
||||
|
|
|
@ -1 +1 @@
|
|||
#define VERSION "1.3.0"
|
||||
#define VERSION "1.3.1"
|
||||
|
|
7
set.c
7
set.c
|
@ -9,8 +9,9 @@
|
|||
* 1999-07-02 V 1.2.0 beta
|
||||
* 1999-08-14 V 1.2.0 final
|
||||
* 2000-07-15 V 1.3.0 final
|
||||
* 2001-10-10 V 1.3.1 cast for alloc_buf
|
||||
*
|
||||
* Copyright 1996-2000 by Gerhard Buergmann
|
||||
* Copyright 1996-2001 by Gerhard Buergmann
|
||||
* Gerhard.Buergmann@altavista.net
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
|
@ -258,7 +259,7 @@ do_logic(mode, str)
|
|||
return 1;
|
||||
}
|
||||
}
|
||||
if ((undo_count = alloc_buf(end_addr - start_addr + 1, &undo_buf))) {
|
||||
if ((undo_count = alloc_buf((off_t)(end_addr - start_addr + 1), &undo_buf))) {
|
||||
memcpy(undo_buf, start_addr, undo_count);
|
||||
}
|
||||
undo_start = start_addr;
|
||||
|
@ -326,7 +327,7 @@ getcmdstr(p, x)
|
|||
move(maxy, x);
|
||||
do {
|
||||
switch (c = vgetc()) {
|
||||
case CTRL('H'):
|
||||
case BVICTRL('H'):
|
||||
case KEY_BACKSPACE:
|
||||
case KEY_LEFT:
|
||||
if (p > buff) {
|
||||
|
|
Loading…
Reference in a new issue