remove obsolete register declarations
This commit is contained in:
parent
b280ec0268
commit
0b7831a37b
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: i386_vm86.c,v 1.2 1997/07/30 23:13:40 jtc Exp $ */
|
/* $NetBSD: i386_vm86.c,v 1.3 1998/02/03 19:12:13 perry Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1996 The NetBSD Foundation, Inc.
|
* Copyright (c) 1996 The NetBSD Foundation, Inc.
|
||||||
@ -45,7 +45,7 @@
|
|||||||
|
|
||||||
int
|
int
|
||||||
i386_vm86(vmcp)
|
i386_vm86(vmcp)
|
||||||
register struct vm86_struct *vmcp;
|
struct vm86_struct *vmcp;
|
||||||
{
|
{
|
||||||
|
|
||||||
return sysarch(I386_VM86, (char *)vmcp);
|
return sysarch(I386_VM86, (char *)vmcp);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: crypt.c,v 1.9 1997/11/04 03:31:45 cgd Exp $ */
|
/* $NetBSD: crypt.c,v 1.10 1998/02/03 19:12:14 perry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1989, 1993
|
* Copyright (c) 1989, 1993
|
||||||
@ -41,7 +41,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)crypt.c 8.1.1.1 (Berkeley) 8/18/93";
|
static char sccsid[] = "@(#)crypt.c 8.1.1.1 (Berkeley) 8/18/93";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: crypt.c,v 1.9 1997/11/04 03:31:45 cgd Exp $");
|
__RCSID("$NetBSD: crypt.c,v 1.10 1998/02/03 19:12:14 perry Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -623,11 +623,11 @@ des_cipher(in, out, salt, num_iter)
|
|||||||
{
|
{
|
||||||
/* variables that we want in registers, most important first */
|
/* variables that we want in registers, most important first */
|
||||||
#if defined(pdp11)
|
#if defined(pdp11)
|
||||||
register int j;
|
int j;
|
||||||
#endif
|
#endif
|
||||||
register int32_t L0, L1, R0, R1, k;
|
int32_t L0, L1, R0, R1, k;
|
||||||
register C_block *kp;
|
C_block *kp;
|
||||||
register int ks_inc, loop_count;
|
int ks_inc, loop_count;
|
||||||
C_block B;
|
C_block B;
|
||||||
|
|
||||||
L0 = salt;
|
L0 = salt;
|
||||||
@ -682,7 +682,7 @@ des_cipher(in, out, salt, num_iter)
|
|||||||
/* use this if your "long" int indexing is slow */
|
/* use this if your "long" int indexing is slow */
|
||||||
#define DOXOR(x,y,i) j=B.b[i]; x^=SPTAB(SPE[0][i],j); y^=SPTAB(SPE[1][i],j);
|
#define DOXOR(x,y,i) j=B.b[i]; x^=SPTAB(SPE[0][i],j); y^=SPTAB(SPE[1][i],j);
|
||||||
#else
|
#else
|
||||||
/* use this if "k" is allocated to a register ... */
|
/* use this if "k" is allocated to a ... */
|
||||||
#define DOXOR(x,y,i) k=B.b[i]; x^=SPTAB(SPE[0][i],k); y^=SPTAB(SPE[1][i],k);
|
#define DOXOR(x,y,i) k=B.b[i]; x^=SPTAB(SPE[0][i],k); y^=SPTAB(SPE[1][i],k);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: addbytes.c,v 1.11 1997/07/22 07:36:20 mikel Exp $ */
|
/* $NetBSD: addbytes.c,v 1.12 1998/02/03 19:12:16 perry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1987, 1993, 1994
|
* Copyright (c) 1987, 1993, 1994
|
||||||
@ -38,7 +38,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)addbytes.c 8.4 (Berkeley) 5/4/94";
|
static char sccsid[] = "@(#)addbytes.c 8.4 (Berkeley) 5/4/94";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: addbytes.c,v 1.11 1997/07/22 07:36:20 mikel Exp $");
|
__RCSID("$NetBSD: addbytes.c,v 1.12 1998/02/03 19:12:16 perry Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -53,13 +53,13 @@ __RCSID("$NetBSD: addbytes.c,v 1.11 1997/07/22 07:36:20 mikel Exp $");
|
|||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
__waddbytes(win, bytes, count, so)
|
__waddbytes(win, bytes, count, so)
|
||||||
register WINDOW *win;
|
WINDOW *win;
|
||||||
register const char *bytes;
|
const char *bytes;
|
||||||
register int count;
|
int count;
|
||||||
int so;
|
int so;
|
||||||
{
|
{
|
||||||
static char blanks[] = " ";
|
static char blanks[] = " ";
|
||||||
register int c, newx, x, y;
|
int c, newx, x, y;
|
||||||
char stand;
|
char stand;
|
||||||
__LINE *lp;
|
__LINE *lp;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: box.c,v 1.8 1997/07/22 07:36:24 mikel Exp $ */
|
/* $NetBSD: box.c,v 1.9 1998/02/03 19:12:16 perry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1981, 1993, 1994
|
* Copyright (c) 1981, 1993, 1994
|
||||||
@ -38,7 +38,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)box.c 8.2 (Berkeley) 5/4/94";
|
static char sccsid[] = "@(#)box.c 8.2 (Berkeley) 5/4/94";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: box.c,v 1.8 1997/07/22 07:36:24 mikel Exp $");
|
__RCSID("$NetBSD: box.c,v 1.9 1998/02/03 19:12:16 perry Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -51,11 +51,11 @@ __RCSID("$NetBSD: box.c,v 1.8 1997/07/22 07:36:24 mikel Exp $");
|
|||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
box(win, vert, hor)
|
box(win, vert, hor)
|
||||||
register WINDOW *win;
|
WINDOW *win;
|
||||||
int vert, hor;
|
int vert, hor;
|
||||||
{
|
{
|
||||||
register int endy, endx, i;
|
int endy, endx, i;
|
||||||
register __LDATA *fp, *lp;
|
__LDATA *fp, *lp;
|
||||||
|
|
||||||
endx = win->maxx;
|
endx = win->maxx;
|
||||||
endy = win->maxy - 1;
|
endy = win->maxy - 1;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: clear.c,v 1.7 1997/07/22 07:36:26 mikel Exp $ */
|
/* $NetBSD: clear.c,v 1.8 1998/02/03 19:12:17 perry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1981, 1993, 1994
|
* Copyright (c) 1981, 1993, 1994
|
||||||
@ -38,7 +38,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)clear.c 8.2 (Berkeley) 5/4/94";
|
static char sccsid[] = "@(#)clear.c 8.2 (Berkeley) 5/4/94";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: clear.c,v 1.7 1997/07/22 07:36:26 mikel Exp $");
|
__RCSID("$NetBSD: clear.c,v 1.8 1998/02/03 19:12:17 perry Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -50,7 +50,7 @@ __RCSID("$NetBSD: clear.c,v 1.7 1997/07/22 07:36:26 mikel Exp $");
|
|||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
wclear(win)
|
wclear(win)
|
||||||
register WINDOW *win;
|
WINDOW *win;
|
||||||
{
|
{
|
||||||
if (werase(win) == OK) {
|
if (werase(win) == OK) {
|
||||||
win->flags |= __CLEAROK;
|
win->flags |= __CLEAROK;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: clrtobot.c,v 1.8 1997/07/22 07:36:27 mikel Exp $ */
|
/* $NetBSD: clrtobot.c,v 1.9 1998/02/03 19:12:18 perry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1981, 1993, 1994
|
* Copyright (c) 1981, 1993, 1994
|
||||||
@ -38,7 +38,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)clrtobot.c 8.2 (Berkeley) 5/4/94";
|
static char sccsid[] = "@(#)clrtobot.c 8.2 (Berkeley) 5/4/94";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: clrtobot.c,v 1.8 1997/07/22 07:36:27 mikel Exp $");
|
__RCSID("$NetBSD: clrtobot.c,v 1.9 1998/02/03 19:12:18 perry Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -50,10 +50,10 @@ __RCSID("$NetBSD: clrtobot.c,v 1.8 1997/07/22 07:36:27 mikel Exp $");
|
|||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
wclrtobot(win)
|
wclrtobot(win)
|
||||||
register WINDOW *win;
|
WINDOW *win;
|
||||||
{
|
{
|
||||||
register int minx, startx, starty, y;
|
int minx, startx, starty, y;
|
||||||
register __LDATA *sp, *end, *maxx;
|
__LDATA *sp, *end, *maxx;
|
||||||
|
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
maxx = NULL; /* XXX gcc -Wuninitialized */
|
maxx = NULL; /* XXX gcc -Wuninitialized */
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: clrtoeol.c,v 1.8 1997/07/22 07:36:29 mikel Exp $ */
|
/* $NetBSD: clrtoeol.c,v 1.9 1998/02/03 19:12:18 perry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1981, 1993, 1994
|
* Copyright (c) 1981, 1993, 1994
|
||||||
@ -38,7 +38,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)clrtoeol.c 8.2 (Berkeley) 5/4/94";
|
static char sccsid[] = "@(#)clrtoeol.c 8.2 (Berkeley) 5/4/94";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: clrtoeol.c,v 1.8 1997/07/22 07:36:29 mikel Exp $");
|
__RCSID("$NetBSD: clrtoeol.c,v 1.9 1998/02/03 19:12:18 perry Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -50,10 +50,10 @@ __RCSID("$NetBSD: clrtoeol.c,v 1.8 1997/07/22 07:36:29 mikel Exp $");
|
|||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
wclrtoeol(win)
|
wclrtoeol(win)
|
||||||
register WINDOW *win;
|
WINDOW *win;
|
||||||
{
|
{
|
||||||
register int minx, x, y;
|
int minx, x, y;
|
||||||
register __LDATA *end, *maxx, *sp;
|
__LDATA *end, *maxx, *sp;
|
||||||
|
|
||||||
y = win->cury;
|
y = win->cury;
|
||||||
x = win->curx;
|
x = win->curx;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: cr_put.c,v 1.9 1997/07/22 07:36:30 mikel Exp $ */
|
/* $NetBSD: cr_put.c,v 1.10 1998/02/03 19:12:19 perry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1981, 1993, 1994
|
* Copyright (c) 1981, 1993, 1994
|
||||||
@ -38,7 +38,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)cr_put.c 8.3 (Berkeley) 5/4/94";
|
static char sccsid[] = "@(#)cr_put.c 8.3 (Berkeley) 5/4/94";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: cr_put.c,v 1.9 1997/07/22 07:36:30 mikel Exp $");
|
__RCSID("$NetBSD: cr_put.c,v 1.10 1998/02/03 19:12:19 perry Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -94,8 +94,8 @@ static void
|
|||||||
fgoto(in_refresh)
|
fgoto(in_refresh)
|
||||||
int in_refresh;
|
int in_refresh;
|
||||||
{
|
{
|
||||||
register int c, l;
|
int c, l;
|
||||||
register char *cgp;
|
char *cgp;
|
||||||
|
|
||||||
if (destcol >= COLS) {
|
if (destcol >= COLS) {
|
||||||
destline += destcol / COLS;
|
destline += destcol / COLS;
|
||||||
@ -203,7 +203,7 @@ static int
|
|||||||
plod(cnt, in_refresh)
|
plod(cnt, in_refresh)
|
||||||
int cnt, in_refresh;
|
int cnt, in_refresh;
|
||||||
{
|
{
|
||||||
register int i, j, k, soutcol, soutline;
|
int i, j, k, soutcol, soutline;
|
||||||
|
|
||||||
plodcnt = plodflg = cnt;
|
plodcnt = plodflg = cnt;
|
||||||
soutcol = outcol;
|
soutcol = outcol;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: cur_hash.c,v 1.5 1997/07/22 07:36:33 mikel Exp $ */
|
/* $NetBSD: cur_hash.c,v 1.6 1998/02/03 19:12:20 perry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1992, 1993
|
* Copyright (c) 1992, 1993
|
||||||
@ -38,7 +38,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)cur_hash.c 8.1 (Berkeley) 6/4/93";
|
static char sccsid[] = "@(#)cur_hash.c 8.1 (Berkeley) 6/4/93";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: cur_hash.c,v 1.5 1997/07/22 07:36:33 mikel Exp $");
|
__RCSID("$NetBSD: cur_hash.c,v 1.6 1998/02/03 19:12:20 perry Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -54,7 +54,7 @@ __hash(s, len)
|
|||||||
char *s;
|
char *s;
|
||||||
int len;
|
int len;
|
||||||
{
|
{
|
||||||
register u_int h, g, i;
|
u_int h, g, i;
|
||||||
|
|
||||||
h = 0;
|
h = 0;
|
||||||
i = 0;
|
i = 0;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: delch.c,v 1.8 1997/07/22 07:36:35 mikel Exp $ */
|
/* $NetBSD: delch.c,v 1.9 1998/02/03 19:12:21 perry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1981, 1993, 1994
|
* Copyright (c) 1981, 1993, 1994
|
||||||
@ -38,7 +38,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)delch.c 8.2 (Berkeley) 5/4/94";
|
static char sccsid[] = "@(#)delch.c 8.2 (Berkeley) 5/4/94";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: delch.c,v 1.8 1997/07/22 07:36:35 mikel Exp $");
|
__RCSID("$NetBSD: delch.c,v 1.9 1998/02/03 19:12:21 perry Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -52,9 +52,9 @@ __RCSID("$NetBSD: delch.c,v 1.8 1997/07/22 07:36:35 mikel Exp $");
|
|||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
wdelch(win)
|
wdelch(win)
|
||||||
register WINDOW *win;
|
WINDOW *win;
|
||||||
{
|
{
|
||||||
register __LDATA *end, *temp1, *temp2;
|
__LDATA *end, *temp1, *temp2;
|
||||||
|
|
||||||
end = &win->lines[win->cury]->line[win->maxx - 1];
|
end = &win->lines[win->cury]->line[win->maxx - 1];
|
||||||
temp1 = &win->lines[win->cury]->line[win->curx];
|
temp1 = &win->lines[win->cury]->line[win->curx];
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: deleteln.c,v 1.8 1997/07/22 07:36:37 mikel Exp $ */
|
/* $NetBSD: deleteln.c,v 1.9 1998/02/03 19:12:21 perry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1981, 1993, 1994
|
* Copyright (c) 1981, 1993, 1994
|
||||||
@ -38,7 +38,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)deleteln.c 8.2 (Berkeley) 5/4/94";
|
static char sccsid[] = "@(#)deleteln.c 8.2 (Berkeley) 5/4/94";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: deleteln.c,v 1.8 1997/07/22 07:36:37 mikel Exp $");
|
__RCSID("$NetBSD: deleteln.c,v 1.9 1998/02/03 19:12:21 perry Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -52,10 +52,10 @@ __RCSID("$NetBSD: deleteln.c,v 1.8 1997/07/22 07:36:37 mikel Exp $");
|
|||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
wdeleteln(win)
|
wdeleteln(win)
|
||||||
register WINDOW *win;
|
WINDOW *win;
|
||||||
{
|
{
|
||||||
register int y, i;
|
int y, i;
|
||||||
register __LINE *temp;
|
__LINE *temp;
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
__CTRACE("deleteln: (%0.2o)\n", win);
|
__CTRACE("deleteln: (%0.2o)\n", win);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: delwin.c,v 1.7 1997/07/22 07:36:38 mikel Exp $ */
|
/* $NetBSD: delwin.c,v 1.8 1998/02/03 19:12:22 perry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1981, 1993, 1994
|
* Copyright (c) 1981, 1993, 1994
|
||||||
@ -38,7 +38,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)delwin.c 8.2 (Berkeley) 5/4/94";
|
static char sccsid[] = "@(#)delwin.c 8.2 (Berkeley) 5/4/94";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: delwin.c,v 1.7 1997/07/22 07:36:38 mikel Exp $");
|
__RCSID("$NetBSD: delwin.c,v 1.8 1998/02/03 19:12:22 perry Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -52,10 +52,10 @@ __RCSID("$NetBSD: delwin.c,v 1.7 1997/07/22 07:36:38 mikel Exp $");
|
|||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
delwin(win)
|
delwin(win)
|
||||||
register WINDOW *win;
|
WINDOW *win;
|
||||||
{
|
{
|
||||||
|
|
||||||
register WINDOW *wp, *np;
|
WINDOW *wp, *np;
|
||||||
|
|
||||||
if (win->orig == NULL) {
|
if (win->orig == NULL) {
|
||||||
/*
|
/*
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: erase.c,v 1.9 1997/07/22 07:36:39 mikel Exp $ */
|
/* $NetBSD: erase.c,v 1.10 1998/02/03 19:12:22 perry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1981, 1993, 1994
|
* Copyright (c) 1981, 1993, 1994
|
||||||
@ -38,7 +38,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)erase.c 8.2 (Berkeley) 5/4/94";
|
static char sccsid[] = "@(#)erase.c 8.2 (Berkeley) 5/4/94";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: erase.c,v 1.9 1997/07/22 07:36:39 mikel Exp $");
|
__RCSID("$NetBSD: erase.c,v 1.10 1998/02/03 19:12:22 perry Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -50,11 +50,11 @@ __RCSID("$NetBSD: erase.c,v 1.9 1997/07/22 07:36:39 mikel Exp $");
|
|||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
werase(win)
|
werase(win)
|
||||||
register WINDOW *win;
|
WINDOW *win;
|
||||||
{
|
{
|
||||||
|
|
||||||
register int minx, y;
|
int minx, y;
|
||||||
register __LDATA *sp, *end, *start, *maxx;
|
__LDATA *sp, *end, *start, *maxx;
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
__CTRACE("werase: (%0.2o)\n", win);
|
__CTRACE("werase: (%0.2o)\n", win);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: fullname.c,v 1.7 1997/07/22 07:36:41 mikel Exp $ */
|
/* $NetBSD: fullname.c,v 1.8 1998/02/03 19:12:23 perry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1981, 1993
|
* Copyright (c) 1981, 1993
|
||||||
@ -38,7 +38,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)fullname.c 8.1 (Berkeley) 6/4/93";
|
static char sccsid[] = "@(#)fullname.c 8.1 (Berkeley) 6/4/93";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: fullname.c,v 1.7 1997/07/22 07:36:41 mikel Exp $");
|
__RCSID("$NetBSD: fullname.c,v 1.8 1998/02/03 19:12:23 perry Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -51,9 +51,9 @@ __RCSID("$NetBSD: fullname.c,v 1.7 1997/07/22 07:36:41 mikel Exp $");
|
|||||||
*/
|
*/
|
||||||
char *
|
char *
|
||||||
fullname(bp, def)
|
fullname(bp, def)
|
||||||
register char *bp, *def;
|
char *bp, *def;
|
||||||
{
|
{
|
||||||
register char *cp;
|
char *cp;
|
||||||
|
|
||||||
*def = '\0'; /* In case no name. */
|
*def = '\0'; /* In case no name. */
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: getch.c,v 1.8 1997/07/22 07:36:42 mikel Exp $ */
|
/* $NetBSD: getch.c,v 1.9 1998/02/03 19:12:24 perry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1981, 1993, 1994
|
* Copyright (c) 1981, 1993, 1994
|
||||||
@ -38,7 +38,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)getch.c 8.2 (Berkeley) 5/4/94";
|
static char sccsid[] = "@(#)getch.c 8.2 (Berkeley) 5/4/94";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: getch.c,v 1.8 1997/07/22 07:36:42 mikel Exp $");
|
__RCSID("$NetBSD: getch.c,v 1.9 1998/02/03 19:12:24 perry Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -50,9 +50,9 @@ __RCSID("$NetBSD: getch.c,v 1.8 1997/07/22 07:36:42 mikel Exp $");
|
|||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
wgetch(win)
|
wgetch(win)
|
||||||
register WINDOW *win;
|
WINDOW *win;
|
||||||
{
|
{
|
||||||
register int inp, weset;
|
int inp, weset;
|
||||||
|
|
||||||
if (!(win->flags & __SCROLLOK) && (win->flags & __FULLWIN)
|
if (!(win->flags & __SCROLLOK) && (win->flags & __FULLWIN)
|
||||||
&& win->curx == win->maxx - 1 && win->cury == win->maxy - 1)
|
&& win->curx == win->maxx - 1 && win->cury == win->maxy - 1)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: getstr.c,v 1.8 1997/07/22 07:36:43 mikel Exp $ */
|
/* $NetBSD: getstr.c,v 1.9 1998/02/03 19:12:24 perry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1981, 1993, 1994
|
* Copyright (c) 1981, 1993, 1994
|
||||||
@ -38,7 +38,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)getstr.c 8.2 (Berkeley) 5/4/94";
|
static char sccsid[] = "@(#)getstr.c 8.2 (Berkeley) 5/4/94";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: getstr.c,v 1.8 1997/07/22 07:36:43 mikel Exp $");
|
__RCSID("$NetBSD: getstr.c,v 1.9 1998/02/03 19:12:24 perry Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -50,8 +50,8 @@ __RCSID("$NetBSD: getstr.c,v 1.8 1997/07/22 07:36:43 mikel Exp $");
|
|||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
wgetstr(win, str)
|
wgetstr(win, str)
|
||||||
register WINDOW *win;
|
WINDOW *win;
|
||||||
register char *str;
|
char *str;
|
||||||
{
|
{
|
||||||
while ((*str = wgetch(win)) != ERR && *str != '\n')
|
while ((*str = wgetch(win)) != ERR && *str != '\n')
|
||||||
str++;
|
str++;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: id_subwins.c,v 1.7 1997/07/22 07:36:44 mikel Exp $ */
|
/* $NetBSD: id_subwins.c,v 1.8 1998/02/03 19:12:25 perry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1981, 1993, 1994
|
* Copyright (c) 1981, 1993, 1994
|
||||||
@ -38,7 +38,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)id_subwins.c 8.2 (Berkeley) 5/4/94";
|
static char sccsid[] = "@(#)id_subwins.c 8.2 (Berkeley) 5/4/94";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: id_subwins.c,v 1.7 1997/07/22 07:36:44 mikel Exp $");
|
__RCSID("$NetBSD: id_subwins.c,v 1.8 1998/02/03 19:12:25 perry Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -50,10 +50,10 @@ __RCSID("$NetBSD: id_subwins.c,v 1.7 1997/07/22 07:36:44 mikel Exp $");
|
|||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
__id_subwins(orig)
|
__id_subwins(orig)
|
||||||
register WINDOW *orig;
|
WINDOW *orig;
|
||||||
{
|
{
|
||||||
register WINDOW *win;
|
WINDOW *win;
|
||||||
register int oy, realy, y;
|
int oy, realy, y;
|
||||||
|
|
||||||
realy = orig->begy + orig->cury;
|
realy = orig->begy + orig->cury;
|
||||||
for (win = orig->nextp; win != orig; win = win->nextp) {
|
for (win = orig->nextp; win != orig; win = win->nextp) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: initscr.c,v 1.8 1997/09/12 21:08:23 phil Exp $ */
|
/* $NetBSD: initscr.c,v 1.9 1998/02/03 19:12:26 perry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1981, 1993, 1994
|
* Copyright (c) 1981, 1993, 1994
|
||||||
@ -38,7 +38,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)initscr.c 8.2 (Berkeley) 5/4/94";
|
static char sccsid[] = "@(#)initscr.c 8.2 (Berkeley) 5/4/94";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: initscr.c,v 1.8 1997/09/12 21:08:23 phil Exp $");
|
__RCSID("$NetBSD: initscr.c,v 1.9 1998/02/03 19:12:26 perry Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -54,7 +54,7 @@ __RCSID("$NetBSD: initscr.c,v 1.8 1997/09/12 21:08:23 phil Exp $");
|
|||||||
WINDOW *
|
WINDOW *
|
||||||
initscr()
|
initscr()
|
||||||
{
|
{
|
||||||
register char *sp;
|
char *sp;
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
__CTRACE("initscr\n");
|
__CTRACE("initscr\n");
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: insch.c,v 1.8 1997/07/22 07:36:48 mikel Exp $ */
|
/* $NetBSD: insch.c,v 1.9 1998/02/03 19:12:26 perry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1981, 1993, 1994
|
* Copyright (c) 1981, 1993, 1994
|
||||||
@ -38,7 +38,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)insch.c 8.2 (Berkeley) 5/4/94";
|
static char sccsid[] = "@(#)insch.c 8.2 (Berkeley) 5/4/94";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: insch.c,v 1.8 1997/07/22 07:36:48 mikel Exp $");
|
__RCSID("$NetBSD: insch.c,v 1.9 1998/02/03 19:12:26 perry Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -52,11 +52,11 @@ __RCSID("$NetBSD: insch.c,v 1.8 1997/07/22 07:36:48 mikel Exp $");
|
|||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
winsch(win, ch)
|
winsch(win, ch)
|
||||||
register WINDOW *win;
|
WINDOW *win;
|
||||||
int ch;
|
int ch;
|
||||||
{
|
{
|
||||||
|
|
||||||
register __LDATA *end, *temp1, *temp2;
|
__LDATA *end, *temp1, *temp2;
|
||||||
|
|
||||||
end = &win->lines[win->cury]->line[win->curx];
|
end = &win->lines[win->cury]->line[win->curx];
|
||||||
temp1 = &win->lines[win->cury]->line[win->maxx - 1];
|
temp1 = &win->lines[win->cury]->line[win->maxx - 1];
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: insertln.c,v 1.8 1997/07/22 07:36:49 mikel Exp $ */
|
/* $NetBSD: insertln.c,v 1.9 1998/02/03 19:12:27 perry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1981, 1993, 1994
|
* Copyright (c) 1981, 1993, 1994
|
||||||
@ -38,7 +38,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)insertln.c 8.2 (Berkeley) 5/4/94";
|
static char sccsid[] = "@(#)insertln.c 8.2 (Berkeley) 5/4/94";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: insertln.c,v 1.8 1997/07/22 07:36:49 mikel Exp $");
|
__RCSID("$NetBSD: insertln.c,v 1.9 1998/02/03 19:12:27 perry Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -52,11 +52,11 @@ __RCSID("$NetBSD: insertln.c,v 1.8 1997/07/22 07:36:49 mikel Exp $");
|
|||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
winsertln(win)
|
winsertln(win)
|
||||||
register WINDOW *win;
|
WINDOW *win;
|
||||||
{
|
{
|
||||||
|
|
||||||
register int y, i;
|
int y, i;
|
||||||
register __LINE *temp;
|
__LINE *temp;
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
__CTRACE("insertln: (%0.2o)\n", win);
|
__CTRACE("insertln: (%0.2o)\n", win);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: longname.c,v 1.7 1997/07/22 07:36:50 mikel Exp $ */
|
/* $NetBSD: longname.c,v 1.8 1998/02/03 19:12:28 perry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1981, 1993
|
* Copyright (c) 1981, 1993
|
||||||
@ -38,7 +38,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)longname.c 8.1 (Berkeley) 6/4/93";
|
static char sccsid[] = "@(#)longname.c 8.1 (Berkeley) 6/4/93";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: longname.c,v 1.7 1997/07/22 07:36:50 mikel Exp $");
|
__RCSID("$NetBSD: longname.c,v 1.8 1998/02/03 19:12:28 perry Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -50,9 +50,9 @@ __RCSID("$NetBSD: longname.c,v 1.7 1997/07/22 07:36:50 mikel Exp $");
|
|||||||
*/
|
*/
|
||||||
char *
|
char *
|
||||||
longname(bp, def)
|
longname(bp, def)
|
||||||
register char *bp, *def;
|
char *bp, *def;
|
||||||
{
|
{
|
||||||
register char *cp;
|
char *cp;
|
||||||
|
|
||||||
while (*bp && *bp != ':' && *bp != '|')
|
while (*bp && *bp != ':' && *bp != '|')
|
||||||
bp++;
|
bp++;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: move.c,v 1.7 1997/07/22 07:36:51 mikel Exp $ */
|
/* $NetBSD: move.c,v 1.8 1998/02/03 19:12:28 perry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1981, 1993, 1994
|
* Copyright (c) 1981, 1993, 1994
|
||||||
@ -38,7 +38,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)move.c 8.2 (Berkeley) 5/4/94";
|
static char sccsid[] = "@(#)move.c 8.2 (Berkeley) 5/4/94";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: move.c,v 1.7 1997/07/22 07:36:51 mikel Exp $");
|
__RCSID("$NetBSD: move.c,v 1.8 1998/02/03 19:12:28 perry Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -50,8 +50,8 @@ __RCSID("$NetBSD: move.c,v 1.7 1997/07/22 07:36:51 mikel Exp $");
|
|||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
wmove(win, y, x)
|
wmove(win, y, x)
|
||||||
register WINDOW *win;
|
WINDOW *win;
|
||||||
register int y, x;
|
int y, x;
|
||||||
{
|
{
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: mvwin.c,v 1.7 1997/07/22 07:36:52 mikel Exp $ */
|
/* $NetBSD: mvwin.c,v 1.8 1998/02/03 19:12:29 perry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1981, 1993, 1994
|
* Copyright (c) 1981, 1993, 1994
|
||||||
@ -38,7 +38,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)mvwin.c 8.2 (Berkeley) 5/4/94";
|
static char sccsid[] = "@(#)mvwin.c 8.2 (Berkeley) 5/4/94";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: mvwin.c,v 1.7 1997/07/22 07:36:52 mikel Exp $");
|
__RCSID("$NetBSD: mvwin.c,v 1.8 1998/02/03 19:12:29 perry Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -50,11 +50,11 @@ __RCSID("$NetBSD: mvwin.c,v 1.7 1997/07/22 07:36:52 mikel Exp $");
|
|||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
mvwin(win, by, bx)
|
mvwin(win, by, bx)
|
||||||
register WINDOW *win;
|
WINDOW *win;
|
||||||
register int by, bx;
|
int by, bx;
|
||||||
{
|
{
|
||||||
register WINDOW *orig;
|
WINDOW *orig;
|
||||||
register int dy, dx;
|
int dy, dx;
|
||||||
|
|
||||||
if (by + win->maxy > LINES || bx + win->maxx > COLS)
|
if (by + win->maxy > LINES || bx + win->maxx > COLS)
|
||||||
return (ERR);
|
return (ERR);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: newwin.c,v 1.8 1997/07/22 07:36:53 mikel Exp $ */
|
/* $NetBSD: newwin.c,v 1.9 1998/02/03 19:12:30 perry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1981, 1993, 1994
|
* Copyright (c) 1981, 1993, 1994
|
||||||
@ -38,7 +38,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)newwin.c 8.3 (Berkeley) 7/27/94";
|
static char sccsid[] = "@(#)newwin.c 8.3 (Berkeley) 7/27/94";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: newwin.c,v 1.8 1997/07/22 07:36:53 mikel Exp $");
|
__RCSID("$NetBSD: newwin.c,v 1.9 1998/02/03 19:12:30 perry Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -58,12 +58,12 @@ void __set_subwin __P((WINDOW *, WINDOW *));
|
|||||||
*/
|
*/
|
||||||
WINDOW *
|
WINDOW *
|
||||||
newwin(nl, nc, by, bx)
|
newwin(nl, nc, by, bx)
|
||||||
register int nl, nc, by, bx;
|
int nl, nc, by, bx;
|
||||||
{
|
{
|
||||||
register WINDOW *win;
|
WINDOW *win;
|
||||||
register __LINE *lp;
|
__LINE *lp;
|
||||||
register int i, j;
|
int i, j;
|
||||||
register __LDATA *sp;
|
__LDATA *sp;
|
||||||
|
|
||||||
if (nl == 0)
|
if (nl == 0)
|
||||||
nl = LINES - by;
|
nl = LINES - by;
|
||||||
@ -95,12 +95,12 @@ newwin(nl, nc, by, bx)
|
|||||||
|
|
||||||
WINDOW *
|
WINDOW *
|
||||||
subwin(orig, nl, nc, by, bx)
|
subwin(orig, nl, nc, by, bx)
|
||||||
register WINDOW *orig;
|
WINDOW *orig;
|
||||||
register int by, bx, nl, nc;
|
int by, bx, nl, nc;
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
__LINE *lp;
|
__LINE *lp;
|
||||||
register WINDOW *win;
|
WINDOW *win;
|
||||||
|
|
||||||
/* Make sure window fits inside the original one. */
|
/* Make sure window fits inside the original one. */
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
@ -132,7 +132,7 @@ subwin(orig, nl, nc, by, bx)
|
|||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
__set_subwin(orig, win)
|
__set_subwin(orig, win)
|
||||||
register WINDOW *orig, *win;
|
WINDOW *orig, *win;
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
__LINE *lp, *olp;
|
__LINE *lp, *olp;
|
||||||
@ -159,11 +159,11 @@ __set_subwin(orig, win)
|
|||||||
*/
|
*/
|
||||||
static WINDOW *
|
static WINDOW *
|
||||||
__makenew(nl, nc, by, bx, sub)
|
__makenew(nl, nc, by, bx, sub)
|
||||||
register int by, bx, nl, nc;
|
int by, bx, nl, nc;
|
||||||
int sub;
|
int sub;
|
||||||
{
|
{
|
||||||
register WINDOW *win;
|
WINDOW *win;
|
||||||
register __LINE *lp;
|
__LINE *lp;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
|
||||||
@ -238,7 +238,7 @@ __makenew(nl, nc, by, bx, sub)
|
|||||||
|
|
||||||
void
|
void
|
||||||
__swflags(win)
|
__swflags(win)
|
||||||
register WINDOW *win;
|
WINDOW *win;
|
||||||
{
|
{
|
||||||
win->flags &= ~(__ENDLINE | __FULLWIN | __SCROLLWIN | __LEAVEOK);
|
win->flags &= ~(__ENDLINE | __FULLWIN | __SCROLLWIN | __LEAVEOK);
|
||||||
if (win->begx + win->maxx == COLS) {
|
if (win->begx + win->maxx == COLS) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: overlay.c,v 1.8 1997/07/22 07:36:54 mikel Exp $ */
|
/* $NetBSD: overlay.c,v 1.9 1998/02/03 19:12:30 perry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1981, 1993, 1994
|
* Copyright (c) 1981, 1993, 1994
|
||||||
@ -38,7 +38,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)overlay.c 8.2 (Berkeley) 5/4/94";
|
static char sccsid[] = "@(#)overlay.c 8.2 (Berkeley) 5/4/94";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: overlay.c,v 1.8 1997/07/22 07:36:54 mikel Exp $");
|
__RCSID("$NetBSD: overlay.c,v 1.9 1998/02/03 19:12:30 perry Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -52,11 +52,11 @@ __RCSID("$NetBSD: overlay.c,v 1.8 1997/07/22 07:36:54 mikel Exp $");
|
|||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
overlay(win1, win2)
|
overlay(win1, win2)
|
||||||
register WINDOW *win1, *win2;
|
WINDOW *win1, *win2;
|
||||||
{
|
{
|
||||||
|
|
||||||
register int x, y, y1, y2, endy, endx, starty, startx;
|
int x, y, y1, y2, endy, endx, starty, startx;
|
||||||
register __LDATA *sp, *end;
|
__LDATA *sp, *end;
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
__CTRACE("overlay: (%0.2o, %0.2o);\n", win1, win2);
|
__CTRACE("overlay: (%0.2o, %0.2o);\n", win1, win2);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: overwrite.c,v 1.8 1997/07/22 07:36:55 mikel Exp $ */
|
/* $NetBSD: overwrite.c,v 1.9 1998/02/03 19:12:31 perry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1981, 1993, 1994
|
* Copyright (c) 1981, 1993, 1994
|
||||||
@ -38,7 +38,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)overwrite.c 8.2 (Berkeley) 5/4/94";
|
static char sccsid[] = "@(#)overwrite.c 8.2 (Berkeley) 5/4/94";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: overwrite.c,v 1.8 1997/07/22 07:36:55 mikel Exp $");
|
__RCSID("$NetBSD: overwrite.c,v 1.9 1998/02/03 19:12:31 perry Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -53,9 +53,9 @@ __RCSID("$NetBSD: overwrite.c,v 1.8 1997/07/22 07:36:55 mikel Exp $");
|
|||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
overwrite(win1, win2)
|
overwrite(win1, win2)
|
||||||
register WINDOW *win1, *win2;
|
WINDOW *win1, *win2;
|
||||||
{
|
{
|
||||||
register int x, y, endy, endx, starty, startx;
|
int x, y, endy, endx, starty, startx;
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
__CTRACE("overwrite: (%0.2o, %0.2o);\n", win1, win2);
|
__CTRACE("overwrite: (%0.2o, %0.2o);\n", win1, win2);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: printw.c,v 1.9 1997/07/22 07:36:56 mikel Exp $ */
|
/* $NetBSD: printw.c,v 1.10 1998/02/03 19:12:32 perry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1981, 1993, 1994
|
* Copyright (c) 1981, 1993, 1994
|
||||||
@ -38,7 +38,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)printw.c 8.3 (Berkeley) 5/4/94";
|
static char sccsid[] = "@(#)printw.c 8.3 (Berkeley) 5/4/94";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: printw.c,v 1.9 1997/07/22 07:36:56 mikel Exp $");
|
__RCSID("$NetBSD: printw.c,v 1.10 1998/02/03 19:12:32 perry Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -119,10 +119,10 @@ wprintw(win, fmt, va_alist)
|
|||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
#ifdef __STDC__
|
#ifdef __STDC__
|
||||||
mvprintw(register int y, register int x, const char *fmt, ...)
|
mvprintw(int y, int x, const char *fmt, ...)
|
||||||
#else
|
#else
|
||||||
mvprintw(y, x, fmt, va_alist)
|
mvprintw(y, x, fmt, va_alist)
|
||||||
register int y, x;
|
int y, x;
|
||||||
char *fmt;
|
char *fmt;
|
||||||
va_dcl
|
va_dcl
|
||||||
#endif
|
#endif
|
||||||
@ -144,12 +144,12 @@ mvprintw(y, x, fmt, va_alist)
|
|||||||
|
|
||||||
int
|
int
|
||||||
#ifdef __STDC__
|
#ifdef __STDC__
|
||||||
mvwprintw(register WINDOW * win, register int y, register int x,
|
mvwprintw(WINDOW * win, int y, int x,
|
||||||
const char *fmt, ...)
|
const char *fmt, ...)
|
||||||
#else
|
#else
|
||||||
mvwprintw(win, y, x, fmt, va_alist)
|
mvwprintw(win, y, x, fmt, va_alist)
|
||||||
register WINDOW *win;
|
WINDOW *win;
|
||||||
register int y, x;
|
int y, x;
|
||||||
char *fmt;
|
char *fmt;
|
||||||
va_dcl
|
va_dcl
|
||||||
#endif
|
#endif
|
||||||
@ -176,11 +176,11 @@ mvwprintw(win, y, x, fmt, va_alist)
|
|||||||
static int
|
static int
|
||||||
__winwrite(cookie, buf, n)
|
__winwrite(cookie, buf, n)
|
||||||
void *cookie;
|
void *cookie;
|
||||||
register const char *buf;
|
const char *buf;
|
||||||
int n;
|
int n;
|
||||||
{
|
{
|
||||||
register WINDOW *win;
|
WINDOW *win;
|
||||||
register int c;
|
int c;
|
||||||
|
|
||||||
for (c = n, win = cookie; --c >= 0;)
|
for (c = n, win = cookie; --c >= 0;)
|
||||||
if (waddch(win, *buf++) == ERR)
|
if (waddch(win, *buf++) == ERR)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: refresh.c,v 1.9 1997/09/12 21:08:24 phil Exp $ */
|
/* $NetBSD: refresh.c,v 1.10 1998/02/03 19:12:32 perry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1981, 1993, 1994
|
* Copyright (c) 1981, 1993, 1994
|
||||||
@ -38,7 +38,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)refresh.c 8.7 (Berkeley) 8/13/94";
|
static char sccsid[] = "@(#)refresh.c 8.7 (Berkeley) 8/13/94";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: refresh.c,v 1.9 1997/09/12 21:08:24 phil Exp $");
|
__RCSID("$NetBSD: refresh.c,v 1.10 1998/02/03 19:12:32 perry Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -61,11 +61,11 @@ static void scrolln __P((WINDOW *, int, int, int, int, int));
|
|||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
wrefresh(win)
|
wrefresh(win)
|
||||||
register WINDOW *win;
|
WINDOW *win;
|
||||||
{
|
{
|
||||||
register __LINE *wlp;
|
__LINE *wlp;
|
||||||
register int retval;
|
int retval;
|
||||||
register short wy;
|
short wy;
|
||||||
int dnum;
|
int dnum;
|
||||||
|
|
||||||
/* Check if we need to restart ... */
|
/* Check if we need to restart ... */
|
||||||
@ -227,7 +227,7 @@ wrefresh(win)
|
|||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
makech(win, wy)
|
makech(win, wy)
|
||||||
register WINDOW *win;
|
WINDOW *win;
|
||||||
int wy;
|
int wy;
|
||||||
{
|
{
|
||||||
static __LDATA blank = {' ', 0};
|
static __LDATA blank = {' ', 0};
|
||||||
@ -461,8 +461,8 @@ quickch(win)
|
|||||||
{
|
{
|
||||||
#define THRESH (int) win->maxy / 4
|
#define THRESH (int) win->maxy / 4
|
||||||
|
|
||||||
register __LINE *clp, *tmp1, *tmp2;
|
__LINE *clp, *tmp1, *tmp2;
|
||||||
register int bsize, curs, curw, starts, startw, i, j;
|
int bsize, curs, curw, starts, startw, i, j;
|
||||||
int n, target, cur_period, bot, top, sc_region;
|
int n, target, cur_period, bot, top, sc_region;
|
||||||
__LDATA buf[1024];
|
__LDATA buf[1024];
|
||||||
u_int blank_hash;
|
u_int blank_hash;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: scanw.c,v 1.8 1997/07/22 07:37:01 mikel Exp $ */
|
/* $NetBSD: scanw.c,v 1.9 1998/02/03 19:12:33 perry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1981, 1993, 1994
|
* Copyright (c) 1981, 1993, 1994
|
||||||
@ -38,7 +38,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)scanw.c 8.3 (Berkeley) 5/4/94";
|
static char sccsid[] = "@(#)scanw.c 8.3 (Berkeley) 5/4/94";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: scanw.c,v 1.8 1997/07/22 07:37:01 mikel Exp $");
|
__RCSID("$NetBSD: scanw.c,v 1.9 1998/02/03 19:12:33 perry Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -114,10 +114,10 @@ wscanw(win, fmt, va_alist)
|
|||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
#ifdef __STDC__
|
#ifdef __STDC__
|
||||||
mvscanw(register int y, register int x, const char *fmt,...)
|
mvscanw(int y, int x, const char *fmt,...)
|
||||||
#else
|
#else
|
||||||
mvscanw(y, x, fmt, va_alist)
|
mvscanw(y, x, fmt, va_alist)
|
||||||
register int y, x;
|
int y, x;
|
||||||
char *fmt;
|
char *fmt;
|
||||||
va_dcl
|
va_dcl
|
||||||
#endif
|
#endif
|
||||||
@ -139,12 +139,12 @@ mvscanw(y, x, fmt, va_alist)
|
|||||||
|
|
||||||
int
|
int
|
||||||
#ifdef __STDC__
|
#ifdef __STDC__
|
||||||
mvwscanw(register WINDOW * win, register int y, register int x,
|
mvwscanw(WINDOW * win, int y, int x,
|
||||||
const char *fmt, ...)
|
const char *fmt, ...)
|
||||||
#else
|
#else
|
||||||
mvwscanw(win, y, x, fmt, va_alist)
|
mvwscanw(win, y, x, fmt, va_alist)
|
||||||
register WINDOW *win;
|
WINDOW *win;
|
||||||
register int y, x;
|
int y, x;
|
||||||
char *fmt;
|
char *fmt;
|
||||||
va_dcl
|
va_dcl
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: scroll.c,v 1.8 1997/07/22 07:37:02 mikel Exp $ */
|
/* $NetBSD: scroll.c,v 1.9 1998/02/03 19:12:34 perry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1981, 1993, 1994
|
* Copyright (c) 1981, 1993, 1994
|
||||||
@ -38,7 +38,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)scroll.c 8.3 (Berkeley) 5/4/94";
|
static char sccsid[] = "@(#)scroll.c 8.3 (Berkeley) 5/4/94";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: scroll.c,v 1.8 1997/07/22 07:37:02 mikel Exp $");
|
__RCSID("$NetBSD: scroll.c,v 1.9 1998/02/03 19:12:34 perry Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -50,9 +50,9 @@ __RCSID("$NetBSD: scroll.c,v 1.8 1997/07/22 07:37:02 mikel Exp $");
|
|||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
scroll(win)
|
scroll(win)
|
||||||
register WINDOW *win;
|
WINDOW *win;
|
||||||
{
|
{
|
||||||
register int oy, ox;
|
int oy, ox;
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
__CTRACE("scroll: (%0.2o)\n", win);
|
__CTRACE("scroll: (%0.2o)\n", win);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: setterm.c,v 1.9 1998/01/30 04:33:34 perry Exp $ */
|
/* $NetBSD: setterm.c,v 1.10 1998/02/03 19:12:35 perry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1981, 1993, 1994
|
* Copyright (c) 1981, 1993, 1994
|
||||||
@ -38,7 +38,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)setterm.c 8.8 (Berkeley) 10/25/94";
|
static char sccsid[] = "@(#)setterm.c 8.8 (Berkeley) 10/25/94";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: setterm.c,v 1.9 1998/01/30 04:33:34 perry Exp $");
|
__RCSID("$NetBSD: setterm.c,v 1.10 1998/02/03 19:12:35 perry Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -89,11 +89,11 @@ char *ttytype;
|
|||||||
|
|
||||||
int
|
int
|
||||||
setterm(type)
|
setterm(type)
|
||||||
register char *type;
|
char *type;
|
||||||
{
|
{
|
||||||
static char genbuf[1024];
|
static char genbuf[1024];
|
||||||
static char __ttytype[1024];
|
static char __ttytype[1024];
|
||||||
register int unknown;
|
int unknown;
|
||||||
struct winsize win;
|
struct winsize win;
|
||||||
char *p;
|
char *p;
|
||||||
|
|
||||||
@ -178,11 +178,11 @@ setterm(type)
|
|||||||
static void
|
static void
|
||||||
zap()
|
zap()
|
||||||
{
|
{
|
||||||
register char *namp, ***sp;
|
char *namp, ***sp;
|
||||||
register char **fp;
|
char **fp;
|
||||||
char tmp[3];
|
char tmp[3];
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
register char *cp;
|
char *cp;
|
||||||
#endif
|
#endif
|
||||||
tmp[2] = '\0';
|
tmp[2] = '\0';
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: toucholap.c,v 1.7 1997/07/22 07:37:06 mikel Exp $ */
|
/* $NetBSD: toucholap.c,v 1.8 1998/02/03 19:12:35 perry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1981, 1993, 1994
|
* Copyright (c) 1981, 1993, 1994
|
||||||
@ -38,7 +38,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)toucholap.c 8.2 (Berkeley) 5/4/94";
|
static char sccsid[] = "@(#)toucholap.c 8.2 (Berkeley) 5/4/94";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: toucholap.c,v 1.7 1997/07/22 07:37:06 mikel Exp $");
|
__RCSID("$NetBSD: toucholap.c,v 1.8 1998/02/03 19:12:35 perry Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -50,9 +50,9 @@ __RCSID("$NetBSD: toucholap.c,v 1.7 1997/07/22 07:37:06 mikel Exp $");
|
|||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
touchoverlap(win1, win2)
|
touchoverlap(win1, win2)
|
||||||
register WINDOW *win1, *win2;
|
WINDOW *win1, *win2;
|
||||||
{
|
{
|
||||||
register int y, endy, endx, starty, startx;
|
int y, endy, endx, starty, startx;
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
__CTRACE("touchoverlap: (%0.2o, %0.2o);\n", win1, win2);
|
__CTRACE("touchoverlap: (%0.2o, %0.2o);\n", win1, win2);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: touchwin.c,v 1.7 1997/07/22 07:37:07 mikel Exp $ */
|
/* $NetBSD: touchwin.c,v 1.8 1998/02/03 19:12:36 perry Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1981, 1993, 1994
|
* Copyright (c) 1981, 1993, 1994
|
||||||
@ -38,7 +38,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)touchwin.c 8.2 (Berkeley) 5/4/94";
|
static char sccsid[] = "@(#)touchwin.c 8.2 (Berkeley) 5/4/94";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: touchwin.c,v 1.7 1997/07/22 07:37:07 mikel Exp $");
|
__RCSID("$NetBSD: touchwin.c,v 1.8 1998/02/03 19:12:36 perry Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -51,7 +51,7 @@ __RCSID("$NetBSD: touchwin.c,v 1.7 1997/07/22 07:37:07 mikel Exp $");
|
|||||||
int
|
int
|
||||||
touchline(win, y, sx, ex)
|
touchline(win, y, sx, ex)
|
||||||
WINDOW *win;
|
WINDOW *win;
|
||||||
register int y, sx, ex;
|
int y, sx, ex;
|
||||||
{
|
{
|
||||||
return (__touchline(win, y, sx, ex, 1));
|
return (__touchline(win, y, sx, ex, 1));
|
||||||
}
|
}
|
||||||
@ -63,9 +63,9 @@ touchline(win, y, sx, ex)
|
|||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
touchwin(win)
|
touchwin(win)
|
||||||
register WINDOW *win;
|
WINDOW *win;
|
||||||
{
|
{
|
||||||
register int y, maxy;
|
int y, maxy;
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
__CTRACE("touchwin: (%0.2o)\n", win);
|
__CTRACE("touchwin: (%0.2o)\n", win);
|
||||||
@ -79,9 +79,9 @@ touchwin(win)
|
|||||||
|
|
||||||
int
|
int
|
||||||
__touchwin(win)
|
__touchwin(win)
|
||||||
register WINDOW *win;
|
WINDOW *win;
|
||||||
{
|
{
|
||||||
register int y, maxy;
|
int y, maxy;
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
__CTRACE("touchwin: (%0.2o)\n", win);
|
__CTRACE("touchwin: (%0.2o)\n", win);
|
||||||
@ -94,8 +94,8 @@ __touchwin(win)
|
|||||||
|
|
||||||
int
|
int
|
||||||
__touchline(win, y, sx, ex, force)
|
__touchline(win, y, sx, ex, force)
|
||||||
register WINDOW *win;
|
WINDOW *win;
|
||||||
register int y, sx, ex;
|
int y, sx, ex;
|
||||||
int force;
|
int force;
|
||||||
{
|
{
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: chared.c,v 1.3 1997/07/06 18:25:22 christos Exp $ */
|
/* $NetBSD: chared.c,v 1.4 1998/02/03 19:12:37 perry Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1992, 1993
|
* Copyright (c) 1992, 1993
|
||||||
@ -41,7 +41,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)chared.c 8.1 (Berkeley) 6/4/93";
|
static char sccsid[] = "@(#)chared.c 8.1 (Berkeley) 6/4/93";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: chared.c,v 1.3 1997/07/06 18:25:22 christos Exp $");
|
__RCSID("$NetBSD: chared.c,v 1.4 1998/02/03 19:12:37 perry Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint && not SCCSID */
|
#endif /* not lint && not SCCSID */
|
||||||
|
|
||||||
@ -175,8 +175,8 @@ cv__isword(p)
|
|||||||
*/
|
*/
|
||||||
protected char *
|
protected char *
|
||||||
c__prev_word(p, low, n, wtest)
|
c__prev_word(p, low, n, wtest)
|
||||||
register char *p, *low;
|
char *p, *low;
|
||||||
register int n;
|
int n;
|
||||||
int (*wtest) __P((int));
|
int (*wtest) __P((int));
|
||||||
{
|
{
|
||||||
p--;
|
p--;
|
||||||
@ -202,8 +202,8 @@ c__prev_word(p, low, n, wtest)
|
|||||||
*/
|
*/
|
||||||
protected char *
|
protected char *
|
||||||
c__next_word(p, high, n, wtest)
|
c__next_word(p, high, n, wtest)
|
||||||
register char *p, *high;
|
char *p, *high;
|
||||||
register int n;
|
int n;
|
||||||
int (*wtest) __P((int));
|
int (*wtest) __P((int));
|
||||||
{
|
{
|
||||||
while (n--) {
|
while (n--) {
|
||||||
@ -224,8 +224,8 @@ c__next_word(p, high, n, wtest)
|
|||||||
protected char *
|
protected char *
|
||||||
cv_next_word(el, p, high, n, wtest)
|
cv_next_word(el, p, high, n, wtest)
|
||||||
EditLine *el;
|
EditLine *el;
|
||||||
register char *p, *high;
|
char *p, *high;
|
||||||
register int n;
|
int n;
|
||||||
int (*wtest) __P((int));
|
int (*wtest) __P((int));
|
||||||
{
|
{
|
||||||
int test;
|
int test;
|
||||||
@ -257,8 +257,8 @@ cv_next_word(el, p, high, n, wtest)
|
|||||||
protected char *
|
protected char *
|
||||||
cv_prev_word(el, p, low, n, wtest)
|
cv_prev_word(el, p, low, n, wtest)
|
||||||
EditLine *el;
|
EditLine *el;
|
||||||
register char *p, *low;
|
char *p, *low;
|
||||||
register int n;
|
int n;
|
||||||
int (*wtest) __P((int));
|
int (*wtest) __P((int));
|
||||||
{
|
{
|
||||||
int test;
|
int test;
|
||||||
@ -300,8 +300,8 @@ c__number(p, num, dval)
|
|||||||
int *num; /* Return value */
|
int *num; /* Return value */
|
||||||
int dval; /* dval is the number to subtract from like $-3 */
|
int dval; /* dval is the number to subtract from like $-3 */
|
||||||
{
|
{
|
||||||
register int i;
|
int i;
|
||||||
register int sign = 1;
|
int sign = 1;
|
||||||
|
|
||||||
if (*++p == '^') {
|
if (*++p == '^') {
|
||||||
*num = 1;
|
*num = 1;
|
||||||
@ -329,7 +329,7 @@ protected void
|
|||||||
cv_delfini(el)
|
cv_delfini(el)
|
||||||
EditLine *el;
|
EditLine *el;
|
||||||
{
|
{
|
||||||
register int size;
|
int size;
|
||||||
int oaction;
|
int oaction;
|
||||||
|
|
||||||
if (el->el_chared.c_vcmd.action & INSERT)
|
if (el->el_chared.c_vcmd.action & INSERT)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: common.c,v 1.4 1997/07/06 18:25:23 christos Exp $ */
|
/* $NetBSD: common.c,v 1.5 1998/02/03 19:12:38 perry Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1992, 1993
|
* Copyright (c) 1992, 1993
|
||||||
@ -41,7 +41,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)common.c 8.1 (Berkeley) 6/4/93";
|
static char sccsid[] = "@(#)common.c 8.1 (Berkeley) 6/4/93";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: common.c,v 1.4 1997/07/06 18:25:23 christos Exp $");
|
__RCSID("$NetBSD: common.c,v 1.5 1998/02/03 19:12:38 perry Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint && not SCCSID */
|
#endif /* not lint && not SCCSID */
|
||||||
|
|
||||||
@ -456,7 +456,7 @@ ed_digit(el, c)
|
|||||||
protected el_action_t
|
protected el_action_t
|
||||||
ed_argument_digit(el, c)
|
ed_argument_digit(el, c)
|
||||||
EditLine *el;
|
EditLine *el;
|
||||||
register int c;
|
int c;
|
||||||
{
|
{
|
||||||
if (!isdigit(c))
|
if (!isdigit(c))
|
||||||
return CC_ERROR;
|
return CC_ERROR;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: emacs.c,v 1.4 1997/07/06 18:25:25 christos Exp $ */
|
/* $NetBSD: emacs.c,v 1.5 1998/02/03 19:12:39 perry Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1992, 1993
|
* Copyright (c) 1992, 1993
|
||||||
@ -41,7 +41,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)emacs.c 8.1 (Berkeley) 6/4/93";
|
static char sccsid[] = "@(#)emacs.c 8.1 (Berkeley) 6/4/93";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: emacs.c,v 1.4 1997/07/06 18:25:25 christos Exp $");
|
__RCSID("$NetBSD: emacs.c,v 1.5 1998/02/03 19:12:39 perry Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint && not SCCSID */
|
#endif /* not lint && not SCCSID */
|
||||||
|
|
||||||
@ -399,7 +399,7 @@ em_exchange_mark(el, c)
|
|||||||
EditLine *el;
|
EditLine *el;
|
||||||
int c;
|
int c;
|
||||||
{
|
{
|
||||||
register char *cp;
|
char *cp;
|
||||||
|
|
||||||
cp = el->el_line.cursor;
|
cp = el->el_line.cursor;
|
||||||
el->el_line.cursor = el->el_chared.c_kill.mark;
|
el->el_line.cursor = el->el_chared.c_kill.mark;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: map.c,v 1.4 1997/07/06 18:25:29 christos Exp $ */
|
/* $NetBSD: map.c,v 1.5 1998/02/03 19:12:40 perry Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1992, 1993
|
* Copyright (c) 1992, 1993
|
||||||
@ -41,7 +41,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)map.c 8.1 (Berkeley) 6/4/93";
|
static char sccsid[] = "@(#)map.c 8.1 (Berkeley) 6/4/93";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: map.c,v 1.4 1997/07/06 18:25:29 christos Exp $");
|
__RCSID("$NetBSD: map.c,v 1.5 1998/02/03 19:12:40 perry Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint && not SCCSID */
|
#endif /* not lint && not SCCSID */
|
||||||
|
|
||||||
@ -969,7 +969,7 @@ map_init_meta(el)
|
|||||||
EditLine *el;
|
EditLine *el;
|
||||||
{
|
{
|
||||||
char buf[3];
|
char buf[3];
|
||||||
register int i;
|
int i;
|
||||||
el_action_t *map = el->el_map.key;
|
el_action_t *map = el->el_map.key;
|
||||||
el_action_t *alt = el->el_map.alt;
|
el_action_t *alt = el->el_map.alt;
|
||||||
|
|
||||||
@ -1011,7 +1011,7 @@ protected void
|
|||||||
map_init_vi(el)
|
map_init_vi(el)
|
||||||
EditLine *el;
|
EditLine *el;
|
||||||
{
|
{
|
||||||
register int i;
|
int i;
|
||||||
el_action_t *key = el->el_map.key;
|
el_action_t *key = el->el_map.key;
|
||||||
el_action_t *alt = el->el_map.alt;
|
el_action_t *alt = el->el_map.alt;
|
||||||
el_action_t *vii = el->el_map.vii;
|
el_action_t *vii = el->el_map.vii;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: vi.c,v 1.3 1997/07/06 18:25:39 christos Exp $ */
|
/* $NetBSD: vi.c,v 1.4 1998/02/03 19:12:40 perry Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1992, 1993
|
* Copyright (c) 1992, 1993
|
||||||
@ -41,7 +41,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)vi.c 8.1 (Berkeley) 6/4/93";
|
static char sccsid[] = "@(#)vi.c 8.1 (Berkeley) 6/4/93";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: vi.c,v 1.3 1997/07/06 18:25:39 christos Exp $");
|
__RCSID("$NetBSD: vi.c,v 1.4 1998/02/03 19:12:40 perry Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint && not SCCSID */
|
#endif /* not lint && not SCCSID */
|
||||||
|
|
||||||
@ -62,7 +62,7 @@ cv_action(el, c)
|
|||||||
EditLine *el;
|
EditLine *el;
|
||||||
int c;
|
int c;
|
||||||
{
|
{
|
||||||
register char *cp, *kp;
|
char *cp, *kp;
|
||||||
|
|
||||||
if (el->el_chared.c_vcmd.action & DELETE) {
|
if (el->el_chared.c_vcmd.action & DELETE) {
|
||||||
el->el_chared.c_vcmd.action = NOP;
|
el->el_chared.c_vcmd.action = NOP;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: kvm.c,v 1.8 1997/08/15 02:07:39 mikel Exp $ */
|
/* $NetBSD: kvm.c,v 1.9 1998/02/03 19:12:46 perry Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1989, 1992, 1993
|
* Copyright (c) 1989, 1992, 1993
|
||||||
@ -42,7 +42,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)kvm.c 8.2 (Berkeley) 2/13/94";
|
static char sccsid[] = "@(#)kvm.c 8.2 (Berkeley) 2/13/94";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: kvm.c,v 1.8 1997/08/15 02:07:39 mikel Exp $");
|
__RCSID("$NetBSD: kvm.c,v 1.9 1998/02/03 19:12:46 perry Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* LIBC_SCCS and not lint */
|
#endif /* LIBC_SCCS and not lint */
|
||||||
|
|
||||||
@ -135,7 +135,7 @@ _kvm_syserr(kd, program, fmt, va_alist)
|
|||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
va_list ap;
|
va_list ap;
|
||||||
register int n;
|
int n;
|
||||||
|
|
||||||
#if __STDC__
|
#if __STDC__
|
||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
@ -147,7 +147,7 @@ _kvm_syserr(kd, program, fmt, va_alist)
|
|||||||
(void)vfprintf(stderr, fmt, ap);
|
(void)vfprintf(stderr, fmt, ap);
|
||||||
(void)fprintf(stderr, ": %s\n", strerror(errno));
|
(void)fprintf(stderr, ": %s\n", strerror(errno));
|
||||||
} else {
|
} else {
|
||||||
register char *cp = kd->errbuf;
|
char *cp = kd->errbuf;
|
||||||
|
|
||||||
(void)vsnprintf(cp, sizeof(kd->errbuf), (char *)fmt, ap);
|
(void)vsnprintf(cp, sizeof(kd->errbuf), (char *)fmt, ap);
|
||||||
n = strlen(cp);
|
n = strlen(cp);
|
||||||
@ -159,8 +159,8 @@ _kvm_syserr(kd, program, fmt, va_alist)
|
|||||||
|
|
||||||
void *
|
void *
|
||||||
_kvm_malloc(kd, n)
|
_kvm_malloc(kd, n)
|
||||||
register kvm_t *kd;
|
kvm_t *kd;
|
||||||
register size_t n;
|
size_t n;
|
||||||
{
|
{
|
||||||
void *p;
|
void *p;
|
||||||
|
|
||||||
@ -171,7 +171,7 @@ _kvm_malloc(kd, n)
|
|||||||
|
|
||||||
static kvm_t *
|
static kvm_t *
|
||||||
_kvm_open(kd, uf, mf, sf, flag, errout)
|
_kvm_open(kd, uf, mf, sf, flag, errout)
|
||||||
register kvm_t *kd;
|
kvm_t *kd;
|
||||||
const char *uf;
|
const char *uf;
|
||||||
const char *mf;
|
const char *mf;
|
||||||
const char *sf;
|
const char *sf;
|
||||||
@ -292,7 +292,7 @@ kvm_openfiles(uf, mf, sf, flag, errout)
|
|||||||
int flag;
|
int flag;
|
||||||
char *errout;
|
char *errout;
|
||||||
{
|
{
|
||||||
register kvm_t *kd;
|
kvm_t *kd;
|
||||||
|
|
||||||
if ((kd = malloc(sizeof(*kd))) == NULL) {
|
if ((kd = malloc(sizeof(*kd))) == NULL) {
|
||||||
(void)strncpy(errout, strerror(errno), _POSIX2_LINE_MAX - 1);
|
(void)strncpy(errout, strerror(errno), _POSIX2_LINE_MAX - 1);
|
||||||
@ -310,7 +310,7 @@ kvm_open(uf, mf, sf, flag, program)
|
|||||||
int flag;
|
int flag;
|
||||||
const char *program;
|
const char *program;
|
||||||
{
|
{
|
||||||
register kvm_t *kd;
|
kvm_t *kd;
|
||||||
|
|
||||||
if ((kd = malloc(sizeof(*kd))) == NULL && program != NULL) {
|
if ((kd = malloc(sizeof(*kd))) == NULL && program != NULL) {
|
||||||
(void)fprintf(stderr, "%s: %s\n", program, strerror(errno));
|
(void)fprintf(stderr, "%s: %s\n", program, strerror(errno));
|
||||||
@ -324,7 +324,7 @@ int
|
|||||||
kvm_close(kd)
|
kvm_close(kd)
|
||||||
kvm_t *kd;
|
kvm_t *kd;
|
||||||
{
|
{
|
||||||
register int error = 0;
|
int error = 0;
|
||||||
|
|
||||||
if (kd->pmfd >= 0)
|
if (kd->pmfd >= 0)
|
||||||
error |= close(kd->pmfd);
|
error |= close(kd->pmfd);
|
||||||
@ -417,8 +417,8 @@ kvm_nlist(kd, nl)
|
|||||||
kvm_t *kd;
|
kvm_t *kd;
|
||||||
struct nlist *nl;
|
struct nlist *nl;
|
||||||
{
|
{
|
||||||
register struct nlist *p;
|
struct nlist *p;
|
||||||
register int nvalid, rv;
|
int nvalid, rv;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If we can't use the data base, revert to the
|
* If we can't use the data base, revert to the
|
||||||
@ -437,7 +437,7 @@ kvm_nlist(kd, nl)
|
|||||||
*/
|
*/
|
||||||
nvalid = 0;
|
nvalid = 0;
|
||||||
for (p = nl; p->n_name && p->n_name[0]; ++p) {
|
for (p = nl; p->n_name && p->n_name[0]; ++p) {
|
||||||
register int len;
|
int len;
|
||||||
DBT rec;
|
DBT rec;
|
||||||
|
|
||||||
if ((len = strlen(p->n_name)) > 4096) {
|
if ((len = strlen(p->n_name)) > 4096) {
|
||||||
@ -471,12 +471,12 @@ kvm_nlist(kd, nl)
|
|||||||
ssize_t
|
ssize_t
|
||||||
kvm_read(kd, kva, buf, len)
|
kvm_read(kd, kva, buf, len)
|
||||||
kvm_t *kd;
|
kvm_t *kd;
|
||||||
register u_long kva;
|
u_long kva;
|
||||||
register void *buf;
|
void *buf;
|
||||||
register size_t len;
|
size_t len;
|
||||||
{
|
{
|
||||||
register int cc;
|
int cc;
|
||||||
register void *cp;
|
void *cp;
|
||||||
|
|
||||||
if (ISALIVE(kd)) {
|
if (ISALIVE(kd)) {
|
||||||
/*
|
/*
|
||||||
@ -535,11 +535,11 @@ kvm_read(kd, kva, buf, len)
|
|||||||
ssize_t
|
ssize_t
|
||||||
kvm_write(kd, kva, buf, len)
|
kvm_write(kd, kva, buf, len)
|
||||||
kvm_t *kd;
|
kvm_t *kd;
|
||||||
register u_long kva;
|
u_long kva;
|
||||||
register const void *buf;
|
const void *buf;
|
||||||
register size_t len;
|
size_t len;
|
||||||
{
|
{
|
||||||
register int cc;
|
int cc;
|
||||||
|
|
||||||
if (ISALIVE(kd)) {
|
if (ISALIVE(kd)) {
|
||||||
/*
|
/*
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: kvm_m68k.c,v 1.5 1997/08/15 02:07:40 mikel Exp $ */
|
/* $NetBSD: kvm_m68k.c,v 1.6 1998/02/03 19:12:46 perry Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1989, 1992, 1993
|
* Copyright (c) 1989, 1992, 1993
|
||||||
@ -42,7 +42,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)kvm_hp300.c 8.1 (Berkeley) 6/4/93";
|
static char sccsid[] = "@(#)kvm_hp300.c 8.1 (Berkeley) 6/4/93";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: kvm_m68k.c,v 1.5 1997/08/15 02:07:40 mikel Exp $");
|
__RCSID("$NetBSD: kvm_m68k.c,v 1.6 1998/02/03 19:12:46 perry Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* LIBC_SCCS and not lint */
|
#endif /* LIBC_SCCS and not lint */
|
||||||
|
|
||||||
@ -135,9 +135,9 @@ _kvm_vatop(kd, sta, va, pa)
|
|||||||
u_long va;
|
u_long va;
|
||||||
u_long *pa;
|
u_long *pa;
|
||||||
{
|
{
|
||||||
register struct vmstate *vm;
|
struct vmstate *vm;
|
||||||
register u_long lowram;
|
u_long lowram;
|
||||||
register u_long addr;
|
u_long addr;
|
||||||
int p, ste, pte;
|
int p, ste, pte;
|
||||||
int offset;
|
int offset;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: kvm.c,v 1.54 1997/10/10 08:45:31 mrg Exp $ */
|
/* $NetBSD: kvm.c,v 1.55 1998/02/03 19:12:42 perry Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1989, 1992, 1993
|
* Copyright (c) 1989, 1992, 1993
|
||||||
@ -42,7 +42,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)kvm.c 8.2 (Berkeley) 2/13/94";
|
static char sccsid[] = "@(#)kvm.c 8.2 (Berkeley) 2/13/94";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: kvm.c,v 1.54 1997/10/10 08:45:31 mrg Exp $");
|
__RCSID("$NetBSD: kvm.c,v 1.55 1998/02/03 19:12:42 perry Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* LIBC_SCCS and not lint */
|
#endif /* LIBC_SCCS and not lint */
|
||||||
|
|
||||||
@ -141,7 +141,7 @@ _kvm_syserr(kd, program, fmt, va_alist)
|
|||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
va_list ap;
|
va_list ap;
|
||||||
register int n;
|
int n;
|
||||||
|
|
||||||
#if __STDC__
|
#if __STDC__
|
||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
@ -153,7 +153,7 @@ _kvm_syserr(kd, program, fmt, va_alist)
|
|||||||
(void)vfprintf(stderr, fmt, ap);
|
(void)vfprintf(stderr, fmt, ap);
|
||||||
(void)fprintf(stderr, ": %s\n", strerror(errno));
|
(void)fprintf(stderr, ": %s\n", strerror(errno));
|
||||||
} else {
|
} else {
|
||||||
register char *cp = kd->errbuf;
|
char *cp = kd->errbuf;
|
||||||
|
|
||||||
(void)vsnprintf(cp, sizeof(kd->errbuf), (char *)fmt, ap);
|
(void)vsnprintf(cp, sizeof(kd->errbuf), (char *)fmt, ap);
|
||||||
n = strlen(cp);
|
n = strlen(cp);
|
||||||
@ -165,8 +165,8 @@ _kvm_syserr(kd, program, fmt, va_alist)
|
|||||||
|
|
||||||
void *
|
void *
|
||||||
_kvm_malloc(kd, n)
|
_kvm_malloc(kd, n)
|
||||||
register kvm_t *kd;
|
kvm_t *kd;
|
||||||
register size_t n;
|
size_t n;
|
||||||
{
|
{
|
||||||
void *p;
|
void *p;
|
||||||
|
|
||||||
@ -213,7 +213,7 @@ Read(kd, fd, buf, nbytes)
|
|||||||
|
|
||||||
static kvm_t *
|
static kvm_t *
|
||||||
_kvm_open(kd, uf, mf, sf, flag, errout)
|
_kvm_open(kd, uf, mf, sf, flag, errout)
|
||||||
register kvm_t *kd;
|
kvm_t *kd;
|
||||||
const char *uf;
|
const char *uf;
|
||||||
const char *mf;
|
const char *mf;
|
||||||
const char *sf;
|
const char *sf;
|
||||||
@ -638,7 +638,7 @@ kvm_openfiles(uf, mf, sf, flag, errout)
|
|||||||
int flag;
|
int flag;
|
||||||
char *errout;
|
char *errout;
|
||||||
{
|
{
|
||||||
register kvm_t *kd;
|
kvm_t *kd;
|
||||||
|
|
||||||
if ((kd = malloc(sizeof(*kd))) == NULL) {
|
if ((kd = malloc(sizeof(*kd))) == NULL) {
|
||||||
(void)strncpy(errout, strerror(errno), _POSIX2_LINE_MAX - 1);
|
(void)strncpy(errout, strerror(errno), _POSIX2_LINE_MAX - 1);
|
||||||
@ -656,7 +656,7 @@ kvm_open(uf, mf, sf, flag, program)
|
|||||||
int flag;
|
int flag;
|
||||||
const char *program;
|
const char *program;
|
||||||
{
|
{
|
||||||
register kvm_t *kd;
|
kvm_t *kd;
|
||||||
|
|
||||||
if ((kd = malloc(sizeof(*kd))) == NULL && program != NULL) {
|
if ((kd = malloc(sizeof(*kd))) == NULL && program != NULL) {
|
||||||
(void)fprintf(stderr, "%s: %s\n", program, strerror(errno));
|
(void)fprintf(stderr, "%s: %s\n", program, strerror(errno));
|
||||||
@ -670,7 +670,7 @@ int
|
|||||||
kvm_close(kd)
|
kvm_close(kd)
|
||||||
kvm_t *kd;
|
kvm_t *kd;
|
||||||
{
|
{
|
||||||
register int error = 0;
|
int error = 0;
|
||||||
|
|
||||||
if (kd->pmfd >= 0)
|
if (kd->pmfd >= 0)
|
||||||
error |= close(kd->pmfd);
|
error |= close(kd->pmfd);
|
||||||
@ -768,8 +768,8 @@ kvm_nlist(kd, nl)
|
|||||||
kvm_t *kd;
|
kvm_t *kd;
|
||||||
struct nlist *nl;
|
struct nlist *nl;
|
||||||
{
|
{
|
||||||
register struct nlist *p;
|
struct nlist *p;
|
||||||
register int nvalid, rv;
|
int nvalid, rv;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If we can't use the data base, revert to the
|
* If we can't use the data base, revert to the
|
||||||
@ -788,7 +788,7 @@ kvm_nlist(kd, nl)
|
|||||||
*/
|
*/
|
||||||
nvalid = 0;
|
nvalid = 0;
|
||||||
for (p = nl; p->n_name && p->n_name[0]; ++p) {
|
for (p = nl; p->n_name && p->n_name[0]; ++p) {
|
||||||
register int len;
|
int len;
|
||||||
DBT rec;
|
DBT rec;
|
||||||
|
|
||||||
if ((len = strlen(p->n_name)) > 4096) {
|
if ((len = strlen(p->n_name)) > 4096) {
|
||||||
@ -862,12 +862,12 @@ kvm_t *kd;
|
|||||||
ssize_t
|
ssize_t
|
||||||
kvm_read(kd, kva, buf, len)
|
kvm_read(kd, kva, buf, len)
|
||||||
kvm_t *kd;
|
kvm_t *kd;
|
||||||
register u_long kva;
|
u_long kva;
|
||||||
register void *buf;
|
void *buf;
|
||||||
register size_t len;
|
size_t len;
|
||||||
{
|
{
|
||||||
register int cc;
|
int cc;
|
||||||
register void *cp;
|
void *cp;
|
||||||
|
|
||||||
if (ISALIVE(kd)) {
|
if (ISALIVE(kd)) {
|
||||||
/*
|
/*
|
||||||
@ -934,11 +934,11 @@ kvm_read(kd, kva, buf, len)
|
|||||||
ssize_t
|
ssize_t
|
||||||
kvm_write(kd, kva, buf, len)
|
kvm_write(kd, kva, buf, len)
|
||||||
kvm_t *kd;
|
kvm_t *kd;
|
||||||
register u_long kva;
|
u_long kva;
|
||||||
register const void *buf;
|
const void *buf;
|
||||||
register size_t len;
|
size_t len;
|
||||||
{
|
{
|
||||||
register int cc;
|
int cc;
|
||||||
|
|
||||||
if (ISALIVE(kd)) {
|
if (ISALIVE(kd)) {
|
||||||
/*
|
/*
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: kvm_file.c,v 1.8 1997/08/15 17:52:45 drochner Exp $ */
|
/* $NetBSD: kvm_file.c,v 1.9 1998/02/03 19:12:42 perry Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1989, 1992, 1993
|
* Copyright (c) 1989, 1992, 1993
|
||||||
@ -38,7 +38,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)kvm_file.c 8.1 (Berkeley) 6/4/93";
|
static char sccsid[] = "@(#)kvm_file.c 8.1 (Berkeley) 6/4/93";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: kvm_file.c,v 1.8 1997/08/15 17:52:45 drochner Exp $");
|
__RCSID("$NetBSD: kvm_file.c,v 1.9 1998/02/03 19:12:42 perry Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* LIBC_SCCS and not lint */
|
#endif /* LIBC_SCCS and not lint */
|
||||||
|
|
||||||
@ -92,7 +92,7 @@ kvm_deadfiles(kd, op, arg, filehead_o, nfiles)
|
|||||||
int buflen = kd->arglen, n = 0;
|
int buflen = kd->arglen, n = 0;
|
||||||
struct file *fp;
|
struct file *fp;
|
||||||
struct filelist filehead;
|
struct filelist filehead;
|
||||||
register char *where = kd->argspc;
|
char *where = kd->argspc;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* first copyout filehead
|
* first copyout filehead
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: kvm_mips.c,v 1.8 1997/10/20 19:43:26 jonathan Exp $ */
|
/* $NetBSD: kvm_mips.c,v 1.9 1998/02/03 19:12:43 perry Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1989, 1992, 1993
|
* Copyright (c) 1989, 1992, 1993
|
||||||
@ -42,7 +42,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)kvm_mips.c 8.1 (Berkeley) 6/4/93";
|
static char sccsid[] = "@(#)kvm_mips.c 8.1 (Berkeley) 6/4/93";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: kvm_mips.c,v 1.8 1997/10/20 19:43:26 jonathan Exp $");
|
__RCSID("$NetBSD: kvm_mips.c,v 1.9 1998/02/03 19:12:43 perry Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* LIBC_SCCS and not lint */
|
#endif /* LIBC_SCCS and not lint */
|
||||||
|
|
||||||
@ -135,7 +135,7 @@ _kvm_kvatop(kd, va, pa)
|
|||||||
u_long va;
|
u_long va;
|
||||||
u_long *pa;
|
u_long *pa;
|
||||||
{
|
{
|
||||||
register struct vmstate *vm;
|
struct vmstate *vm;
|
||||||
u_long pte, addr, offset;
|
u_long pte, addr, offset;
|
||||||
|
|
||||||
u_int pgshift, pg_v, pg_frame;
|
u_int pgshift, pg_v, pg_frame;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: kvm_proc.c,v 1.20 1997/08/15 17:52:46 drochner Exp $ */
|
/* $NetBSD: kvm_proc.c,v 1.21 1998/02/03 19:12:44 perry Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1994, 1995 Charles M. Hannum. All rights reserved.
|
* Copyright (c) 1994, 1995 Charles M. Hannum. All rights reserved.
|
||||||
@ -43,7 +43,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)kvm_proc.c 8.3 (Berkeley) 9/23/93";
|
static char sccsid[] = "@(#)kvm_proc.c 8.3 (Berkeley) 9/23/93";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: kvm_proc.c,v 1.20 1997/08/15 17:52:46 drochner Exp $");
|
__RCSID("$NetBSD: kvm_proc.c,v 1.21 1998/02/03 19:12:44 perry Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* LIBC_SCCS and not lint */
|
#endif /* LIBC_SCCS and not lint */
|
||||||
|
|
||||||
@ -107,8 +107,8 @@ _kvm_uread(kd, p, va, cnt)
|
|||||||
u_long va;
|
u_long va;
|
||||||
u_long *cnt;
|
u_long *cnt;
|
||||||
{
|
{
|
||||||
register u_long addr, head;
|
u_long addr, head;
|
||||||
register u_long offset;
|
u_long offset;
|
||||||
struct vm_map_entry vme;
|
struct vm_map_entry vme;
|
||||||
struct vm_object vmo;
|
struct vm_object vmo;
|
||||||
int rv;
|
int rv;
|
||||||
@ -333,7 +333,7 @@ kvm_proclist(kd, what, arg, p, bp, maxcnt)
|
|||||||
struct kinfo_proc *bp;
|
struct kinfo_proc *bp;
|
||||||
int maxcnt;
|
int maxcnt;
|
||||||
{
|
{
|
||||||
register int cnt = 0;
|
int cnt = 0;
|
||||||
struct eproc eproc;
|
struct eproc eproc;
|
||||||
struct pgrp pgrp;
|
struct pgrp pgrp;
|
||||||
struct session sess;
|
struct session sess;
|
||||||
@ -458,8 +458,8 @@ kvm_deadprocs(kd, what, arg, a_allproc, a_zombproc, maxcnt)
|
|||||||
u_long a_zombproc;
|
u_long a_zombproc;
|
||||||
int maxcnt;
|
int maxcnt;
|
||||||
{
|
{
|
||||||
register struct kinfo_proc *bp = kd->procbase;
|
struct kinfo_proc *bp = kd->procbase;
|
||||||
register int acnt, zcnt;
|
int acnt, zcnt;
|
||||||
struct proc *p;
|
struct proc *p;
|
||||||
|
|
||||||
if (KREAD(kd, a_allproc, &p)) {
|
if (KREAD(kd, a_allproc, &p)) {
|
||||||
@ -596,14 +596,14 @@ static char **
|
|||||||
kvm_argv(kd, p, addr, narg, maxcnt)
|
kvm_argv(kd, p, addr, narg, maxcnt)
|
||||||
kvm_t *kd;
|
kvm_t *kd;
|
||||||
const struct proc *p;
|
const struct proc *p;
|
||||||
register u_long addr;
|
u_long addr;
|
||||||
register int narg;
|
int narg;
|
||||||
register int maxcnt;
|
int maxcnt;
|
||||||
{
|
{
|
||||||
register char *np, *cp, *ep, *ap;
|
char *np, *cp, *ep, *ap;
|
||||||
register u_long oaddr = -1;
|
u_long oaddr = -1;
|
||||||
register int len, cc;
|
int len, cc;
|
||||||
register char **argv;
|
char **argv;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Check that there aren't an unreasonable number of agruments,
|
* Check that there aren't an unreasonable number of agruments,
|
||||||
@ -665,9 +665,9 @@ kvm_argv(kd, p, addr, narg, maxcnt)
|
|||||||
if (ep != 0)
|
if (ep != 0)
|
||||||
cc = ep - cp + 1;
|
cc = ep - cp + 1;
|
||||||
if (len + cc > kd->arglen) {
|
if (len + cc > kd->arglen) {
|
||||||
register int off;
|
int off;
|
||||||
register char **pp;
|
char **pp;
|
||||||
register char *op = kd->argspc;
|
char *op = kd->argspc;
|
||||||
|
|
||||||
kd->arglen *= 2;
|
kd->arglen *= 2;
|
||||||
kd->argspc = (char *)_kvm_realloc(kd, kd->argspc,
|
kd->argspc = (char *)_kvm_realloc(kd, kd->argspc,
|
||||||
@ -760,8 +760,8 @@ kvm_doargv(kd, kp, nchr, info)
|
|||||||
int nchr;
|
int nchr;
|
||||||
void (*info)(struct ps_strings *, u_long *, int *);
|
void (*info)(struct ps_strings *, u_long *, int *);
|
||||||
{
|
{
|
||||||
register const struct proc *p = &kp->kp_proc;
|
const struct proc *p = &kp->kp_proc;
|
||||||
register char **ap;
|
char **ap;
|
||||||
u_long addr;
|
u_long addr;
|
||||||
int cnt;
|
int cnt;
|
||||||
struct ps_strings arginfo;
|
struct ps_strings arginfo;
|
||||||
@ -816,17 +816,17 @@ kvm_getenvv(kd, kp, nchr)
|
|||||||
ssize_t
|
ssize_t
|
||||||
kvm_uread(kd, p, uva, buf, len)
|
kvm_uread(kd, p, uva, buf, len)
|
||||||
kvm_t *kd;
|
kvm_t *kd;
|
||||||
register const struct proc *p;
|
const struct proc *p;
|
||||||
register u_long uva;
|
u_long uva;
|
||||||
register char *buf;
|
char *buf;
|
||||||
register size_t len;
|
size_t len;
|
||||||
{
|
{
|
||||||
register char *cp;
|
char *cp;
|
||||||
|
|
||||||
cp = buf;
|
cp = buf;
|
||||||
while (len > 0) {
|
while (len > 0) {
|
||||||
register int cc;
|
int cc;
|
||||||
register char *dp;
|
char *dp;
|
||||||
u_long cnt;
|
u_long cnt;
|
||||||
|
|
||||||
dp = _kvm_uread(kd, p, uva, &cnt);
|
dp = _kvm_uread(kd, p, uva, &cnt);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: kvm_sparc.c,v 1.15 1997/10/10 13:11:50 mrg Exp $ */
|
/* $NetBSD: kvm_sparc.c,v 1.16 1998/02/03 19:12:44 perry Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1992, 1993
|
* Copyright (c) 1992, 1993
|
||||||
@ -42,7 +42,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)kvm_sparc.c 8.1 (Berkeley) 6/4/93";
|
static char sccsid[] = "@(#)kvm_sparc.c 8.1 (Berkeley) 6/4/93";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: kvm_sparc.c,v 1.15 1997/10/10 13:11:50 mrg Exp $");
|
__RCSID("$NetBSD: kvm_sparc.c,v 1.16 1998/02/03 19:12:44 perry Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* LIBC_SCCS and not lint */
|
#endif /* LIBC_SCCS and not lint */
|
||||||
|
|
||||||
@ -155,7 +155,7 @@ _kvm_kvatop44c(kd, va, pa)
|
|||||||
u_long va;
|
u_long va;
|
||||||
u_long *pa;
|
u_long *pa;
|
||||||
{
|
{
|
||||||
register int vr, vs, pte;
|
int vr, vs, pte;
|
||||||
cpu_kcore_hdr_t *cpup = kd->cpu_data;
|
cpu_kcore_hdr_t *cpup = kd->cpu_data;
|
||||||
struct segmap *sp, *segmaps;
|
struct segmap *sp, *segmaps;
|
||||||
int *ptes;
|
int *ptes;
|
||||||
@ -188,7 +188,7 @@ _kvm_kvatop44c(kd, va, pa)
|
|||||||
goto err;
|
goto err;
|
||||||
pte = ptes[sp->sg_pmeg * nptesg + VA_VPG(va)];
|
pte = ptes[sp->sg_pmeg * nptesg + VA_VPG(va)];
|
||||||
if ((pte & PG_V) != 0) {
|
if ((pte & PG_V) != 0) {
|
||||||
register long p, off = VA_OFF(va);
|
long p, off = VA_OFF(va);
|
||||||
|
|
||||||
p = (pte & PG_PFNUM) << pgshift;
|
p = (pte & PG_PFNUM) << pgshift;
|
||||||
*pa = p + off;
|
*pa = p + off;
|
||||||
@ -206,7 +206,7 @@ _kvm_kvatop4m(kd, va, pa)
|
|||||||
u_long *pa;
|
u_long *pa;
|
||||||
{
|
{
|
||||||
cpu_kcore_hdr_t *cpup = kd->cpu_data;
|
cpu_kcore_hdr_t *cpup = kd->cpu_data;
|
||||||
register int vr, vs;
|
int vr, vs;
|
||||||
int pte;
|
int pte;
|
||||||
off_t foff;
|
off_t foff;
|
||||||
struct segmap *sp, *segmaps;
|
struct segmap *sp, *segmaps;
|
||||||
@ -246,7 +246,7 @@ _kvm_kvatop4m(kd, va, pa)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ((pte & SRMMU_TETYPE) == SRMMU_TEPTE) {
|
if ((pte & SRMMU_TETYPE) == SRMMU_TEPTE) {
|
||||||
register long p, off = VA_OFF(va);
|
long p, off = VA_OFF(va);
|
||||||
|
|
||||||
p = (pte & SRMMU_PPNMASK) << SRMMU_PPNPASHIFT;
|
p = (pte & SRMMU_PPNMASK) << SRMMU_PPNPASHIFT;
|
||||||
*pa = p + off;
|
*pa = p + off;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: kvm_vax.c,v 1.6 1997/10/20 12:49:50 ragge Exp $ */
|
/* $NetBSD: kvm_vax.c,v 1.7 1998/02/03 19:12:45 perry Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1992, 1993
|
* Copyright (c) 1992, 1993
|
||||||
@ -77,7 +77,7 @@ int
|
|||||||
_kvm_initvtop(kd)
|
_kvm_initvtop(kd)
|
||||||
kvm_t *kd;
|
kvm_t *kd;
|
||||||
{
|
{
|
||||||
register struct vmstate *vm;
|
struct vmstate *vm;
|
||||||
struct stat st;
|
struct stat st;
|
||||||
struct nlist nlist[2];
|
struct nlist nlist[2];
|
||||||
|
|
||||||
@ -116,7 +116,7 @@ _kvm_kvatop(kd, va, pa)
|
|||||||
u_long va;
|
u_long va;
|
||||||
u_long *pa;
|
u_long *pa;
|
||||||
{
|
{
|
||||||
register int end;
|
int end;
|
||||||
|
|
||||||
if (va < KERNBASE) {
|
if (va < KERNBASE) {
|
||||||
_kvm_err(kd, 0, "invalid address (%x<%x)", va, KERNBASE);
|
_kvm_err(kd, 0, "invalid address (%x<%x)", va, KERNBASE);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: put.c,v 1.4 1997/01/23 14:03:07 mrg Exp $ */
|
/* $NetBSD: put.c,v 1.5 1998/02/03 19:12:47 perry Exp $ */
|
||||||
|
|
||||||
/* S/KEY v1.1b (put.c)
|
/* S/KEY v1.1b (put.c)
|
||||||
*
|
*
|
||||||
@ -2278,7 +2278,7 @@ static void
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
standard (word)
|
standard (word)
|
||||||
register char *word;
|
char *word;
|
||||||
{
|
{
|
||||||
while (*word)
|
while (*word)
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: skeysubr.c,v 1.10 1997/06/28 01:12:19 christos Exp $ */
|
/* $NetBSD: skeysubr.c,v 1.11 1998/02/03 19:12:48 perry Exp $ */
|
||||||
|
|
||||||
/* S/KEY v1.1b (skeysubr.c)
|
/* S/KEY v1.1b (skeysubr.c)
|
||||||
*
|
*
|
||||||
@ -43,7 +43,7 @@ char *passwd; /* Password, any length */
|
|||||||
MD4_CTX md;
|
MD4_CTX md;
|
||||||
unsigned int buflen;
|
unsigned int buflen;
|
||||||
int i;
|
int i;
|
||||||
register int tmp;
|
int tmp;
|
||||||
u_int32_t hash[4];
|
u_int32_t hash[4];
|
||||||
|
|
||||||
buflen = strlen(seed) + strlen(passwd);
|
buflen = strlen(seed) + strlen(passwd);
|
||||||
@ -87,7 +87,7 @@ f(x)
|
|||||||
char *x;
|
char *x;
|
||||||
{
|
{
|
||||||
MD4_CTX md;
|
MD4_CTX md;
|
||||||
register int tmp;
|
int tmp;
|
||||||
u_int32_t hash[4];
|
u_int32_t hash[4];
|
||||||
|
|
||||||
MD4Init(&md);
|
MD4Init(&md);
|
||||||
@ -210,10 +210,10 @@ trapped(sig)
|
|||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
atob8(out, in)
|
atob8(out, in)
|
||||||
register char *out, *in;
|
char *out, *in;
|
||||||
{
|
{
|
||||||
register int i;
|
int i;
|
||||||
register int val;
|
int val;
|
||||||
|
|
||||||
if (in == NULL || out == NULL)
|
if (in == NULL || out == NULL)
|
||||||
return -1;
|
return -1;
|
||||||
@ -237,9 +237,9 @@ atob8(out, in)
|
|||||||
/* Convert 8-byte binary array to hex-ascii string */
|
/* Convert 8-byte binary array to hex-ascii string */
|
||||||
int
|
int
|
||||||
btoa8(out, in)
|
btoa8(out, in)
|
||||||
register char *out, *in;
|
char *out, *in;
|
||||||
{
|
{
|
||||||
register int i;
|
int i;
|
||||||
|
|
||||||
if (in == NULL || out == NULL)
|
if (in == NULL || out == NULL)
|
||||||
return -1;
|
return -1;
|
||||||
@ -255,7 +255,7 @@ btoa8(out, in)
|
|||||||
/* Convert hex digit to binary integer */
|
/* Convert hex digit to binary integer */
|
||||||
int
|
int
|
||||||
htoi(c)
|
htoi(c)
|
||||||
register char c;
|
char c;
|
||||||
{
|
{
|
||||||
if ('0' <= c && c <= '9')
|
if ('0' <= c && c <= '9')
|
||||||
return c - '0';
|
return c - '0';
|
||||||
@ -268,7 +268,7 @@ htoi(c)
|
|||||||
|
|
||||||
char *
|
char *
|
||||||
skipspace(cp)
|
skipspace(cp)
|
||||||
register char *cp;
|
char *cp;
|
||||||
{
|
{
|
||||||
while (*cp == ' ' || *cp == '\t')
|
while (*cp == ' ' || *cp == '\t')
|
||||||
cp++;
|
cp++;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: tc3.c,v 1.2 1998/01/09 03:16:42 perry Exp $ */
|
/* $NetBSD: tc3.c,v 1.3 1998/02/03 19:12:49 perry Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1983, 1993
|
* Copyright (c) 1983, 1993
|
||||||
@ -86,7 +86,7 @@ main(argc, argv) char **argv; {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pr(p)
|
pr(p)
|
||||||
register char *p;
|
char *p;
|
||||||
{
|
{
|
||||||
for (; *p; p++)
|
for (; *p; p++)
|
||||||
printf("%s", rdchar(*p));
|
printf("%s", rdchar(*p));
|
||||||
@ -101,7 +101,7 @@ char *rdchar(c)
|
|||||||
char c;
|
char c;
|
||||||
{
|
{
|
||||||
static char ret[4];
|
static char ret[4];
|
||||||
register char *p = ret;
|
char *p = ret;
|
||||||
|
|
||||||
if ((c&0377) > 0177)
|
if ((c&0377) > 0177)
|
||||||
*p++ = '\'';
|
*p++ = '\'';
|
||||||
|
Loading…
Reference in New Issue
Block a user