Re-import nvi sources, this time based on the distributed tar ball, after

going through the new nvi2netbsd script
This commit is contained in:
aymeric 2008-05-18 14:29:31 +00:00
parent 799e82abba
commit 96bc64d20f
279 changed files with 52377 additions and 210 deletions

2
dist/nvi/LICENSE vendored
View File

@ -1,5 +1,5 @@
/*-
* $Id: LICENSE,v 1.1.1.1 2008/05/16 18:03:01 aymeric Exp $ (Sleepycat) $Date: 2008/05/16 18:03:01 $
* Id: LICENSE,v 8.17 2000/08/18 14:58:41 bostic Exp (Sleepycat) Date: 2000/08/18 14:58:41
*/
The following are the copyrights and redistribution conditions that apply

4
dist/nvi/README vendored
View File

@ -1,6 +1,6 @@
# $Id: README,v 1.1.1.1 2008/05/16 18:03:01 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:01 $
# Id: README,v 8.153 2001/04/30 09:31:12 skimo Exp (Berkeley) Date: 2001/04/30 09:31:12
This is version 1.80 (%H%) of nex/nvi, a reimplementation of the ex/vi
This is version 1.81.6 (2007-11-18) of nex/nvi, a reimplementation of the ex/vi
text editors originally distributed as part of the Fourth Berkeley
Software Distribution (4BSD), by the University of California, Berkeley.

2
dist/nvi/TODO vendored
View File

@ -1,4 +1,4 @@
# $Id: TODO,v 1.1.1.1 2008/05/16 18:03:01 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:01 $
# Id: TODO,v 8.2 1997/04/12 15:53:31 bostic Exp (Berkeley) Date: 1997/04/12 15:53:31
========================================================================
GENERAL

View File

@ -1,4 +1,4 @@
# $Id: README,v 1.1.1.1 2008/05/16 18:03:02 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:02 $
# Id: README,v 8.29 2001/05/13 20:52:36 skimo Exp (Berkeley) Date: 2001/05/13 20:52:36
Nvi uses the GNU autoconf program for configuration and compilation. You
should enter:

View File

@ -1,4 +1,4 @@
# $Id: Makefile,v 1.1.1.1 2008/05/16 18:03:03 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:03 $
# Id: Makefile,v 8.30 1996/11/27 11:59:09 bostic Exp (Berkeley) Date: 1996/11/27 11:59:09
CAT= dutch english french german ru_SU.KOI8-R spanish swedish
FILES= ../cl/*.c ../common/*.c ../ex/*.c ../vi/*.c

View File

@ -1,4 +1,4 @@
# $Id: README,v 1.1.1.1 2008/05/16 18:03:03 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:03 $
# Id: README,v 8.4 1994/11/22 09:52:04 bostic Exp (Berkeley) Date: 1994/11/22 09:52:04
Generally, all non-system error and informational messages in nvi are
catalog messages, i.e. they can be tailored to a specific langauge.

View File

@ -1,3 +1,5 @@
/* $NetBSD: dump.c,v 1.1.1.2 2008/05/18 14:29:33 aymeric Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994
* The Regents of the University of California. All rights reserved.
@ -12,7 +14,7 @@ static char copyright[] =
#endif /* not lint */
#ifndef lint
static char sccsid[] = "$Id: dump.c,v 1.1.1.1 2008/05/16 18:03:03 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:03 $";
static char sccsid[] = "Id: dump.c,v 8.1 1994/08/31 13:27:37 bostic Exp (Berkeley) Date: 1994/08/31 13:27:37";
#endif /* not lint */
#include <ctype.h>

View File

@ -1,4 +1,4 @@
# $Id: README.signal,v 1.1.1.1 2008/05/16 18:03:08 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:08 $
# Id: README.signal,v 10.1 1995/06/23 10:28:17 bostic Exp (Berkeley) Date: 1995/06/23 10:28:17
There are six (normally) asynchronous actions about which vi cares:
SIGHUP, SIGINT, SIGQUIT, SIGTERM, SIGTSTP and SIGWINCH.

4
dist/nvi/cl/cl.h vendored
View File

@ -1,3 +1,5 @@
/* $NetBSD: cl.h,v 1.1.1.2 2008/05/18 14:29:36 aymeric Exp $ */
/*-
* Copyright (c) 1993, 1994
* The Regents of the University of California. All rights reserved.
@ -6,7 +8,7 @@
*
* See the LICENSE file for redistribution information.
*
* $Id: cl.h,v 1.1.1.1 2008/05/16 18:03:08 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:08 $
* Id: cl.h,v 10.32 2001/08/28 11:33:40 skimo Exp (Berkeley) Date: 2001/08/28 11:33:40
*/
/* Avoid clash on OSF1 */

View File

@ -1,3 +1,5 @@
/* $NetBSD: cl_bsd.c,v 1.1.1.2 2008/05/18 14:29:36 aymeric Exp $ */
/*-
* Copyright (c) 1995, 1996
* Keith Bostic. All rights reserved.
@ -8,7 +10,7 @@
#include "config.h"
#ifndef lint
static const char sccsid[] = "$Id: cl_bsd.c,v 1.1.1.1 2008/05/16 18:03:09 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:09 $";
static const char sccsid[] = "Id: cl_bsd.c,v 8.32 2000/12/01 13:56:17 skimo Exp (Berkeley) Date: 2000/12/01 13:56:17";
#endif /* not lint */
#include <sys/types.h>

View File

@ -1,3 +1,5 @@
/* $NetBSD: cl_funcs.c,v 1.1.1.2 2008/05/18 14:29:36 aymeric Exp $ */
/*-
* Copyright (c) 1993, 1994
* The Regents of the University of California. All rights reserved.
@ -10,7 +12,7 @@
#include "config.h"
#ifndef lint
static const char sccsid[] = "$Id: cl_funcs.c,v 1.1.1.1 2008/05/16 18:03:09 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:09 $";
static const char sccsid[] = "Id: cl_funcs.c,v 10.72 2002/03/02 23:18:33 skimo Exp (Berkeley) Date: 2002/03/02 23:18:33";
#endif /* not lint */
#include <sys/types.h>

View File

@ -1,3 +1,5 @@
/* $NetBSD: cl_main.c,v 1.1.1.2 2008/05/18 14:29:37 aymeric Exp $ */
/*-
* Copyright (c) 1993, 1994
* The Regents of the University of California. All rights reserved.
@ -10,7 +12,7 @@
#include "config.h"
#ifndef lint
static const char sccsid[] = "$Id: cl_main.c,v 1.1.1.1 2008/05/16 18:03:10 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:10 $";
static const char sccsid[] = "Id: cl_main.c,v 10.54 2001/07/29 19:07:27 skimo Exp (Berkeley) Date: 2001/07/29 19:07:27";
#endif /* not lint */
#include <sys/types.h>

View File

@ -1,3 +1,5 @@
/* $NetBSD: cl_read.c,v 1.1.1.2 2008/05/18 14:29:37 aymeric Exp $ */
/*-
* Copyright (c) 1993, 1994
* The Regents of the University of California. All rights reserved.
@ -10,7 +12,7 @@
#include "config.h"
#ifndef lint
static const char sccsid[] = "$Id: cl_read.c,v 1.1.1.1 2008/05/16 18:03:10 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:10 $";
static const char sccsid[] = "Id: cl_read.c,v 10.29 2001/08/18 21:51:59 skimo Exp (Berkeley) Date: 2001/08/18 21:51:59";
#endif /* not lint */
#include <sys/types.h>

View File

@ -1,3 +1,5 @@
/* $NetBSD: cl_screen.c,v 1.1.1.2 2008/05/18 14:29:38 aymeric Exp $ */
/*-
* Copyright (c) 1993, 1994
* The Regents of the University of California. All rights reserved.
@ -10,7 +12,7 @@
#include "config.h"
#ifndef lint
static const char sccsid[] = "$Id: cl_screen.c,v 1.1.1.1 2008/05/16 18:03:10 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:10 $";
static const char sccsid[] = "Id: cl_screen.c,v 10.56 2002/05/03 19:59:44 skimo Exp (Berkeley) Date: 2002/05/03 19:59:44";
#endif /* not lint */
#include <sys/types.h>

View File

@ -1,3 +1,5 @@
/* $NetBSD: cl_term.c,v 1.1.1.2 2008/05/18 14:29:38 aymeric Exp $ */
/*-
* Copyright (c) 1993, 1994
* The Regents of the University of California. All rights reserved.
@ -10,7 +12,7 @@
#include "config.h"
#ifndef lint
static const char sccsid[] = "$Id: cl_term.c,v 1.1.1.1 2008/05/16 18:03:11 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:11 $";
static const char sccsid[] = "Id: cl_term.c,v 10.31 2001/07/08 13:06:56 skimo Exp (Berkeley) Date: 2001/07/08 13:06:56";
#endif /* not lint */
#include <sys/types.h>

63
dist/nvi/cl/extern.h vendored Normal file
View File

@ -0,0 +1,63 @@
/* $NetBSD: extern.h,v 1.1.1.1 2008/05/18 14:29:38 aymeric Exp $ */
/* Do not edit: automatically built by build/distrib. */
#ifndef HAVE_CURSES_WADDNSTR
int waddnstr __P((WINDOW*, char *, int));
#endif
#ifndef HAVE_CURSES_BEEP
void beep __P((void));
#endif
#ifndef HAVE_CURSES_FLASH
void flash __P((void));
#endif
#ifndef HAVE_CURSES_IDLOK
void idlok __P((WINDOW *, int));
#endif
#ifndef HAVE_CURSES_KEYPAD
int keypad __P((void *, int));
#endif
#ifndef HAVE_CURSES_NEWTERM
void *newterm __P((const char *, FILE *, FILE *));
#endif
#ifndef HAVE_CURSES_SETUPTERM
void setupterm __P((char *, int, int *));
#endif
#ifdef HAVE_CURSES_TIGETSTR
char *tigetstr();
#else
char *tigetstr __P((char *));
#endif
#ifndef HAVE_CURSES_TIGETSTR
int tigetnum __P((char *));
#endif
int cl_waddstr __P((SCR *, const CHAR_T *, size_t));
int cl_addstr __P((SCR *, const char *, size_t));
int cl_attr __P((SCR *, scr_attr_t, int));
int cl_baud __P((SCR *, u_long *));
int cl_bell __P((SCR *));
int cl_clrtoeol __P((SCR *));
int cl_cursor __P((SCR *, size_t *, size_t *));
int cl_deleteln __P((SCR *));
int cl_discard __P((SCR *, SCR **));
int cl_ex_adjust __P((SCR *, exadj_t));
int cl_insertln __P((SCR *));
int cl_keyval __P((SCR *, scr_keyval_t, CHAR_T *, int *));
int cl_move __P((SCR *, size_t, size_t));
int cl_refresh __P((SCR *, int));
int cl_rename __P((SCR *, char *, int));
void cl_setname __P((GS *, char *));
int cl_split __P((SCR *, SCR *));
int cl_suspend __P((SCR *, int *));
void cl_usage __P((void));
int sig_init __P((GS *, SCR *));
int cl_event __P((SCR *, EVENT *, u_int32_t, int));
int cl_screen __P((SCR *, u_int32_t));
int cl_quit __P((GS *));
int cl_getcap __P((SCR *, char *, char **));
int cl_term_init __P((SCR *));
int cl_term_end __P((GS *));
int cl_fmap __P((SCR *, seq_t, CHAR_T *, size_t, CHAR_T *, size_t));
int cl_optchange __P((SCR *, int, char *, u_long *));
int cl_omesg __P((SCR *, CL_PRIVATE *, int));
int cl_ssize __P((SCR *, int, size_t *, size_t *, int *));
int cl_putchar __P((int));

View File

@ -1,3 +1,5 @@
/* $NetBSD: bsearch.c,v 1.1.1.2 2008/05/18 14:29:38 aymeric Exp $ */
/*
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.

2
dist/nvi/clib/env.c vendored
View File

@ -1,3 +1,5 @@
/* $NetBSD: env.c,v 1.1.1.2 2008/05/18 14:29:38 aymeric Exp $ */
/*
* Copyright (c) 1987, 1993
* The Regents of the University of California. All rights reserved.

View File

@ -1,3 +1,5 @@
/* $NetBSD: gethostname.c,v 1.1.1.2 2008/05/18 14:29:38 aymeric Exp $ */
#include "config.h"
/*

View File

@ -1,7 +1,9 @@
/* $NetBSD: iswblank.c,v 1.1.1.2 2008/05/18 14:29:38 aymeric Exp $ */
#include "config.h"
#if defined(LIBC_SCCS) && !defined(lint)
static const char sccsid[] = "$Id: iswblank.c,v 1.1.1.1 2008/05/16 18:03:11 aymeric Exp $";
static const char sccsid[] = "Id: iswblank.c,v 1.1 2001/10/11 19:22:29 skimo Exp";
#endif /* LIBC_SCCS and not lint */
#include <wchar.h>

View File

@ -1,3 +1,5 @@
/* $NetBSD: memchr.c,v 1.1.1.2 2008/05/18 14:29:38 aymeric Exp $ */
/*-
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.

View File

@ -1,3 +1,5 @@
/* $NetBSD: memset.c,v 1.1.1.2 2008/05/18 14:29:38 aymeric Exp $ */
/*-
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.

View File

@ -1,3 +1,5 @@
/* $NetBSD: mkstemp.c,v 1.1.1.2 2008/05/18 14:29:38 aymeric Exp $ */
/*
* Copyright (c) 1987, 1993
* The Regents of the University of California. All rights reserved.

View File

@ -1,3 +1,5 @@
/* $NetBSD: mmap.c,v 1.1.1.2 2008/05/18 14:29:38 aymeric Exp $ */
#include "config.h"
#include <sys/types.h>

View File

@ -1,3 +1,5 @@
/* $NetBSD: snprintf.c,v 1.1.1.2 2008/05/18 14:29:39 aymeric Exp $ */
#include "config.h"
#include <sys/types.h>

View File

@ -1,3 +1,5 @@
/* $NetBSD: strdup.c,v 1.1.1.2 2008/05/18 14:29:39 aymeric Exp $ */
/*
* Copyright (c) 1988, 1993
* The Regents of the University of California. All rights reserved.

View File

@ -1,3 +1,5 @@
/* $NetBSD: strpbrk.c,v 1.1.1.2 2008/05/18 14:29:39 aymeric Exp $ */
/*
* Copyright (c) 1985, 1993
* The Regents of the University of California. All rights reserved.

View File

@ -1,3 +1,5 @@
/* $NetBSD: strsep.c,v 1.1.1.2 2008/05/18 14:29:39 aymeric Exp $ */
/*-
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.

View File

@ -1,3 +1,5 @@
/* $NetBSD: strtol.c,v 1.1.1.2 2008/05/18 14:29:39 aymeric Exp $ */
/*-
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.

View File

@ -1,3 +1,5 @@
/* $NetBSD: strtoul.c,v 1.1.1.2 2008/05/18 14:29:39 aymeric Exp $ */
/*
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.

View File

@ -1,3 +1,5 @@
/* $NetBSD: vsnprintf.c,v 1.1.1.2 2008/05/18 14:29:39 aymeric Exp $ */
#include "config.h"
#include <sys/types.h>

View File

@ -1,3 +1,5 @@
/* $NetBSD: api.c,v 1.1.1.2 2008/05/18 14:29:40 aymeric Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994
* The Regents of the University of California. All rights reserved.
@ -12,7 +14,7 @@
#include "config.h"
#ifndef lint
static const char sccsid[] = "$Id: api.c,v 1.1.1.1 2008/05/16 18:03:13 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:13 $";
static const char sccsid[] = "Id: api.c,v 8.40 2002/06/08 19:30:33 skimo Exp (Berkeley) Date: 2002/06/08 19:30:33";
#endif /* not lint */
#include <sys/types.h>

View File

@ -1,3 +1,5 @@
/* $NetBSD: args.h,v 1.1.1.2 2008/05/18 14:29:40 aymeric Exp $ */
/*-
* Copyright (c) 1993, 1994
* The Regents of the University of California. All rights reserved.
@ -6,7 +8,7 @@
*
* See the LICENSE file for redistribution information.
*
* $Id: args.h,v 1.1.1.1 2008/05/16 18:03:13 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:13 $
* Id: args.h,v 10.2 1996/03/06 19:50:07 bostic Exp (Berkeley) Date: 1996/03/06 19:50:07
*/
/*

View File

@ -1,3 +1,5 @@
/* $NetBSD: common.h,v 1.1.1.2 2008/05/18 14:29:40 aymeric Exp $ */
/*-
* Copyright (c) 1991, 1993, 1994
* The Regents of the University of California. All rights reserved.
@ -6,7 +8,7 @@
*
* See the LICENSE file for redistribution information.
*
* $Id: common.h,v 1.1.1.1 2008/05/16 18:03:13 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:13 $
* Id: common.h,v 10.20 2002/03/02 23:36:22 skimo Exp (Berkeley) Date: 2002/03/02 23:36:22
*/
/*

View File

@ -1,3 +1,5 @@
/* $NetBSD: conv.c,v 1.1.1.2 2008/05/18 14:29:40 aymeric Exp $ */
/*-
* Copyright (c) 1993, 1994
* The Regents of the University of California. All rights reserved.
@ -10,7 +12,7 @@
#include "config.h"
#ifndef lint
static const char sccsid[] = "$Id: conv.c,v 1.1.1.1 2008/05/16 18:03:13 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:13 $";
static const char sccsid[] = "Id: conv.c,v 1.27 2001/08/18 21:41:41 skimo Exp (Berkeley) Date: 2001/08/18 21:41:41";
#endif /* not lint */
#include <sys/types.h>

View File

@ -1,3 +1,5 @@
/* $NetBSD: conv.h,v 1.1.1.2 2008/05/18 14:29:40 aymeric Exp $ */
#define KEY_COL(sp, ch) \
(INTISWIDE(ch) ? CHAR_WIDTH(sp, ch) ? CHAR_WIDTH(sp, ch) : \
1 : /* extra space */ \

View File

@ -1,3 +1,5 @@
/* $NetBSD: cut.c,v 1.1.1.2 2008/05/18 14:29:40 aymeric Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994
* The Regents of the University of California. All rights reserved.
@ -10,7 +12,7 @@
#include "config.h"
#ifndef lint
static const char sccsid[] = "$Id: cut.c,v 1.1.1.1 2008/05/16 18:03:13 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:13 $";
static const char sccsid[] = "Id: cut.c,v 10.18 2001/06/25 15:19:09 skimo Exp (Berkeley) Date: 2001/06/25 15:19:09";
#endif /* not lint */
#include <sys/types.h>

View File

@ -1,3 +1,5 @@
/* $NetBSD: cut.h,v 1.1.1.2 2008/05/18 14:29:40 aymeric Exp $ */
/*-
* Copyright (c) 1991, 1993, 1994
* The Regents of the University of California. All rights reserved.
@ -6,7 +8,7 @@
*
* See the LICENSE file for redistribution information.
*
* $Id: cut.h,v 1.1.1.1 2008/05/16 18:03:13 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:13 $
* Id: cut.h,v 10.9 2000/07/22 17:31:18 skimo Exp (Berkeley) Date: 2000/07/22 17:31:18
*/
typedef struct _texth TEXTH; /* TEXT list head structure. */

View File

@ -1,3 +1,5 @@
/* $NetBSD: db.c,v 1.1.1.2 2008/05/18 14:29:40 aymeric Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994
* The Regents of the University of California. All rights reserved.
@ -10,7 +12,7 @@
#include "config.h"
#ifndef lint
static const char sccsid[] = "$Id: db.c,v 1.1.1.1 2008/05/16 18:03:14 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:14 $";
static const char sccsid[] = "Id: db.c,v 10.48 2002/06/08 19:32:52 skimo Exp (Berkeley) Date: 2002/06/08 19:32:52";
#endif /* not lint */
#include <sys/types.h>

View File

@ -1,3 +1,5 @@
/* $NetBSD: db.h,v 1.1.1.2 2008/05/18 14:29:41 aymeric Exp $ */
#include <db.h>
#ifndef DB_BUFFER_SMALL

View File

@ -1,3 +1,5 @@
/* $NetBSD: db1.c,v 1.1.1.2 2008/05/18 14:29:41 aymeric Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994
* The Regents of the University of California. All rights reserved.
@ -10,7 +12,7 @@
#include "config.h"
#ifndef lint
static const char sccsid[] = "$Id: db1.c,v 1.1.1.1 2008/05/16 18:03:14 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:14 $";
static const char sccsid[] = "Id: db1.c,v 10.1 2002/03/09 12:53:57 skimo Exp (Berkeley) Date: 2002/03/09 12:53:57";
#endif /* not lint */
#include <sys/types.h>

View File

@ -1,3 +1,5 @@
/* $NetBSD: delete.c,v 1.1.1.2 2008/05/18 14:29:41 aymeric Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994
* The Regents of the University of California. All rights reserved.
@ -10,7 +12,7 @@
#include "config.h"
#ifndef lint
static const char sccsid[] = "$Id: delete.c,v 1.1.1.1 2008/05/16 18:03:14 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:14 $";
static const char sccsid[] = "Id: delete.c,v 10.17 2001/06/25 15:19:09 skimo Exp (Berkeley) Date: 2001/06/25 15:19:09";
#endif /* not lint */
#include <sys/types.h>

View File

@ -1,3 +1,5 @@
/* $NetBSD: dldb.c,v 1.1.1.2 2008/05/18 14:29:41 aymeric Exp $ */
#include "config.h"
#include <dlfcn.h>

View File

@ -1,3 +1,5 @@
/* $NetBSD: exf.c,v 1.1.1.2 2008/05/18 14:29:45 aymeric Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994
* The Regents of the University of California. All rights reserved.
@ -10,7 +12,7 @@
#include "config.h"
#ifndef lint
static const char sccsid[] = "$Id: exf.c,v 1.1.1.1 2008/05/16 18:03:16 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:16 $";
static const char sccsid[] = "Id: exf.c,v 10.72 2003/08/10 09:44:01 skimo Exp (Berkeley) Date: 2003/08/10 09:44:01";
#endif /* not lint */
#include <sys/param.h>

View File

@ -1,3 +1,5 @@
/* $NetBSD: exf.h,v 1.1.1.2 2008/05/18 14:29:45 aymeric Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994
* The Regents of the University of California. All rights reserved.
@ -6,7 +8,7 @@
*
* See the LICENSE file for redistribution information.
*
* $Id: exf.h,v 1.1.1.1 2008/05/16 18:03:16 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:16 $
* Id: exf.h,v 10.19 2002/03/02 23:36:23 skimo Exp (Berkeley) Date: 2002/03/02 23:36:23
*/
/* Undo direction. */
/*

225
dist/nvi/common/extern.h vendored Normal file
View File

@ -0,0 +1,225 @@
/* $NetBSD: extern.h,v 1.1.1.1 2008/05/18 14:29:54 aymeric Exp $ */
/* Do not edit: automatically built by build/distrib. */
SCR *api_fscreen __P((int, char *));
int api_aline __P((SCR *, db_recno_t, char *, size_t));
int api_extend __P((SCR *, db_recno_t));
int api_dline __P((SCR *, db_recno_t));
int api_gline __P((SCR *, db_recno_t, CHAR_T **, size_t *));
int api_iline __P((SCR *, db_recno_t, CHAR_T *, size_t));
int api_lline __P((SCR *, db_recno_t *));
int api_sline __P((SCR *, db_recno_t, CHAR_T *, size_t));
int api_getmark __P((SCR *, int, MARK *));
int api_setmark __P((SCR *, int, MARK *));
int api_nextmark __P((SCR *, int, char *));
int api_getcursor __P((SCR *, MARK *));
int api_setcursor __P((SCR *, MARK *));
void api_emessage __P((SCR *, char *));
void api_imessage __P((SCR *, char *));
int api_edit __P((SCR *, char *, SCR **, int));
int api_escreen __P((SCR *));
int api_swscreen __P((SCR *, SCR *));
int api_map __P((SCR *, char *, char *, size_t));
int api_unmap __P((SCR *, char *));
int api_opts_get __P((SCR *, CHAR_T *, char **, int *));
int api_opts_set __P((SCR *, CHAR_T *, char *, u_long, int));
int api_run_str __P((SCR *, char *));
TAGQ * api_tagq_new __P((SCR*, char*));
void api_tagq_add __P((SCR*, TAGQ*, char*, char *, char *));
int api_tagq_push __P((SCR*, TAGQ**));
void api_tagq_free __P((SCR*, TAGQ*));
int cut __P((SCR *, CHAR_T *, MARK *, MARK *, int));
int cut_line __P((SCR *, db_recno_t, size_t, size_t, CB *));
void cut_close __P((WIN *));
TEXT *text_init __P((SCR *, const CHAR_T *, size_t, size_t));
void text_lfree __P((TEXTH *));
void text_free __P((TEXT *));
int db_eget __P((SCR *, db_recno_t, CHAR_T **, size_t *, int *));
int db_get __P((SCR *, db_recno_t, u_int32_t, CHAR_T **, size_t *));
int db_delete __P((SCR *, db_recno_t));
int db_append __P((SCR *, int, db_recno_t, CHAR_T *, size_t));
int db_insert __P((SCR *, db_recno_t, CHAR_T *, size_t));
int db_set __P((SCR *, db_recno_t, CHAR_T *, size_t));
int db_exist __P((SCR *, db_recno_t));
int db_last __P((SCR *, db_recno_t *));
void db_err __P((SCR *, db_recno_t));
int scr_update __P((SCR *sp, db_recno_t lno,
lnop_t op, int current));
void update_cache __P((SCR *sp, lnop_t op, db_recno_t lno));
int line_insdel __P((SCR *sp, lnop_t op, db_recno_t lno));
int db_eget __P((SCR *, db_recno_t, CHAR_T **, size_t *, int *));
int db_get __P((SCR *, db_recno_t, u_int32_t, CHAR_T **, size_t *));
int db_delete __P((SCR *, db_recno_t));
int db_append __P((SCR *, int, db_recno_t, CHAR_T *, size_t));
int db_insert __P((SCR *, db_recno_t, CHAR_T *, size_t));
int db_set __P((SCR *, db_recno_t, CHAR_T *, size_t));
int db_exist __P((SCR *, db_recno_t));
int db_last __P((SCR *, db_recno_t *));
void db_err __P((SCR *, db_recno_t));
int del __P((SCR *, MARK *, MARK *, int));
FREF *file_add __P((SCR *, char *));
int file_init __P((SCR *, FREF *, char *, int));
int file_end __P((SCR *, EXF *, int));
int file_write __P((SCR *, MARK *, MARK *, char *, int));
int file_m1 __P((SCR *, int, int));
int file_m2 __P((SCR *, int));
int file_m3 __P((SCR *, int));
int file_aw __P((SCR *, int));
void set_alt_name __P((SCR *, char *));
lockr_t file_lock __P((SCR *, char *, int *, int, int));
GS * gs_init __P((char*));
WIN * gs_new_win __P((GS *gp));
int win_end __P((WIN *wp));
void gs_end __P((GS *));
int v_key_init __P((SCR *));
void v_key_ilookup __P((SCR *));
size_t v_key_len __P((SCR *, ARG_CHAR_T));
u_char *v_key_name __P((SCR *, ARG_CHAR_T));
int v_key_val __P((SCR *, ARG_CHAR_T));
int v_event_push __P((SCR *, EVENT *, CHAR_T *, size_t, u_int));
int v_event_get __P((SCR *, EVENT *, int, u_int32_t));
void v_event_err __P((SCR *, EVENT *));
int v_event_flush __P((SCR *, u_int));
int log_init __P((SCR *, EXF *));
int log_end __P((SCR *, EXF *));
int log_cursor __P((SCR *));
int log_line __P((SCR *, db_recno_t, u_int));
int log_mark __P((SCR *, LMARK *));
int log_backward __P((SCR *, MARK *));
int log_setline __P((SCR *));
int log_forward __P((SCR *, MARK *));
int log_init __P((SCR *, EXF *));
int log_end __P((SCR *, EXF *));
int log_cursor __P((SCR *));
int log_line __P((SCR *, db_recno_t, u_int));
int log_mark __P((SCR *, LMARK *));
int log_backward __P((SCR *, MARK *));
int log_setline __P((SCR *));
int log_forward __P((SCR *, MARK *));
int editor __P((WIN *, int, char *[]));
int mark_init __P((SCR *, EXF *));
int mark_end __P((SCR *, EXF *));
int mark_get __P((SCR *, ARG_CHAR_T, MARK *, mtype_t));
int mark_set __P((SCR *, ARG_CHAR_T, MARK *, int));
int mark_insdel __P((SCR *, lnop_t, db_recno_t));
void msgq __P((SCR *, mtype_t, const char *, ...));
void msgq_wstr __P((SCR *, mtype_t, CHAR_T *, char *));
void msgq_str __P((SCR *, mtype_t, char *, char *));
void mod_rpt __P((SCR *));
void msgq_status __P((SCR *, db_recno_t, u_int));
int msg_open __P((SCR *, char *));
void msg_close __P((GS *));
const char *msg_cmsg __P((SCR *, cmsg_t, size_t *));
const char *msg_cat __P((SCR *, const char *, size_t *));
char *msg_print __P((SCR *, const char *, int *));
void thread_init __P((GS *gp));
int opts_init __P((SCR *, int *));
int opts_set __P((SCR *, ARGS *[], char *));
int o_set __P((SCR *, int, u_int, char *, u_long));
int opts_empty __P((SCR *, int, int));
void opts_dump __P((SCR *, enum optdisp));
int opts_save __P((SCR *, FILE *));
OPTLIST const *opts_search __P((CHAR_T *));
void opts_nomatch __P((SCR *, CHAR_T *));
int opts_copy __P((SCR *, SCR *));
void opts_free __P((SCR *));
int f_altwerase __P((SCR *, OPTION *, char *, u_long *));
int f_columns __P((SCR *, OPTION *, char *, u_long *));
int f_lines __P((SCR *, OPTION *, char *, u_long *));
int f_lisp __P((SCR *, OPTION *, char *, u_long *));
int f_msgcat __P((SCR *, OPTION *, char *, u_long *));
int f_paragraph __P((SCR *, OPTION *, char *, u_long *));
int f_print __P((SCR *, OPTION *, char *, u_long *));
int f_readonly __P((SCR *, OPTION *, char *, u_long *));
int f_recompile __P((SCR *, OPTION *, char *, u_long *));
int f_reformat __P((SCR *, OPTION *, char *, u_long *));
int f_section __P((SCR *, OPTION *, char *, u_long *));
int f_ttywerase __P((SCR *, OPTION *, char *, u_long *));
int f_w300 __P((SCR *, OPTION *, char *, u_long *));
int f_w1200 __P((SCR *, OPTION *, char *, u_long *));
int f_w9600 __P((SCR *, OPTION *, char *, u_long *));
int f_window __P((SCR *, OPTION *, char *, u_long *));
int f_encoding __P((SCR *, OPTION *, char *, u_long *));
void thread_init __P((GS *gp));
int put __P((SCR *, CB *, CHAR_T *, MARK *, MARK *, int));
int rcv_tmp __P((SCR *, EXF *, char *));
int rcv_init __P((SCR *));
int rcv_sync __P((SCR *, u_int));
int rcv_list __P((SCR *));
int rcv_read __P((SCR *, FREF *));
int screen_init __P((GS *, SCR *, SCR **));
int screen_end __P((SCR *));
SCR *screen_next __P((SCR *));
int f_search __P((SCR *,
MARK *, MARK *, CHAR_T *, size_t, CHAR_T **, u_int));
int b_search __P((SCR *,
MARK *, MARK *, CHAR_T *, size_t, CHAR_T **, u_int));
void search_busy __P((SCR *, busy_t));
int seq_set __P((SCR *, CHAR_T *,
size_t, CHAR_T *, size_t, CHAR_T *, size_t, seq_t, int));
int seq_delete __P((SCR *, CHAR_T *, size_t, seq_t));
int seq_mdel __P((SEQ *));
SEQ *seq_find
__P((SCR *, SEQ **, EVENT *, CHAR_T *, size_t, seq_t, int *));
void seq_close __P((GS *));
int seq_dump __P((SCR *, seq_t, int));
int seq_save __P((SCR *, FILE *, char *, seq_t));
int e_memcmp __P((CHAR_T *, EVENT *, size_t));
void vtrace_end __P((void));
void vtrace_init __P((char *));
void vtrace __P((const char *, ...));
void *binc __P((SCR *, void *, size_t *, size_t));
int nonblank __P((SCR *, db_recno_t, size_t *));
char *tail __P((char *));
char *v_strdup __P((SCR *, const char *, size_t));
CHAR_T *v_wstrdup __P((SCR *, const CHAR_T *, size_t));
enum nresult nget_uslong __P((SCR *, u_long *, const CHAR_T *, CHAR_T **, int));
enum nresult nget_slong __P((SCR *, long *, const CHAR_T *, CHAR_T **, int));
#ifdef USE_DB4_LOGGING
int __vi_marker_log __P((DB_ENV *, DB_TXN *, DB_LSN *, u_int32_t,
u_int32_t));
int __vi_marker_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops,
void *));
int __vi_marker_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops,
void *));
int __vi_marker_read __P((DB_ENV *, void *, __vi_marker_args **));
int __vi_cursor_log __P((DB_ENV *, DB_TXN *, DB_LSN *, u_int32_t,
u_int32_t, db_recno_t, size_t));
int __vi_cursor_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops,
void *));
int __vi_cursor_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops,
void *));
int __vi_cursor_read __P((DB_ENV *, void *, __vi_cursor_args **));
int __vi_mark_log __P((DB_ENV *, DB_TXN *, DB_LSN *, u_int32_t,
LMARK *));
int __vi_mark_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops,
void *));
int __vi_mark_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops,
void *));
int __vi_mark_read __P((DB_ENV *, void *, __vi_mark_args **));
int __vi_change_log __P((DB_ENV *, DB_TXN *, DB_LSN *, u_int32_t,
u_int32_t, db_recno_t));
int __vi_change_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops,
void *));
int __vi_change_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops,
void *));
int __vi_change_read __P((DB_ENV *, void *, __vi_change_args **));
int __vi_init_print __P((DB_ENV *, int (***)(DB_ENV *, DBT *,
DB_LSN *, db_recops, void *), size_t *));
int __vi_init_getpgnos __P((DB_ENV *, int (***)(DB_ENV *, DBT *,
DB_LSN *, db_recops, void *), size_t *));
int __vi_init_recover __P((DB_ENV *));
#endif
#ifdef USE_DB4_LOGGING
int __vi_marker_recover
__P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __vi_cursor_recover
__P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __vi_mark_recover
__P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __vi_change_recover
__P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __vi_log_truncate __P((EXF *ep));
int __vi_log_dispatch __P((DB_ENV *dbenv, DBT *data, DB_LSN *lsn, db_recops ops));
int __vi_log_traverse __P((SCR *sp, undo_t undo, MARK *));
#endif

View File

@ -1,3 +1,5 @@
/* $NetBSD: gs.c,v 1.1.1.2 2008/05/18 14:29:45 aymeric Exp $ */
/*-
* Copyright (c) 2000
* Sven Verdoolaege. All rights reserved.

View File

@ -1,3 +1,5 @@
/* $NetBSD: gs.h,v 1.1.1.2 2008/05/18 14:29:45 aymeric Exp $ */
/*-
* Copyright (c) 1993, 1994
* The Regents of the University of California. All rights reserved.
@ -6,7 +8,7 @@
*
* See the LICENSE file for redistribution information.
*
* $Id: gs.h,v 1.1.1.1 2008/05/16 18:03:17 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:17 $
* Id: gs.h,v 10.55 2001/11/01 10:28:25 skimo Exp (Berkeley) Date: 2001/11/01 10:28:25
*/
#define TEMPORARY_FILE_STRING "/tmp" /* Default temporary file name. */

View File

@ -1,3 +1,5 @@
/* $NetBSD: key.c,v 1.1.1.2 2008/05/18 14:29:46 aymeric Exp $ */
/*-
* Copyright (c) 1991, 1993, 1994
* The Regents of the University of California. All rights reserved.
@ -10,7 +12,7 @@
#include "config.h"
#ifndef lint
static const char sccsid[] = "$Id: key.c,v 1.1.1.1 2008/05/16 18:03:18 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:18 $";
static const char sccsid[] = "Id: key.c,v 10.48 2001/06/25 15:19:10 skimo Exp (Berkeley) Date: 2001/06/25 15:19:10";
#endif /* not lint */
#include <sys/types.h>

View File

@ -1,3 +1,5 @@
/* $NetBSD: key.h,v 1.1.1.2 2008/05/18 14:29:46 aymeric Exp $ */
/*-
* Copyright (c) 1991, 1993, 1994
* The Regents of the University of California. All rights reserved.
@ -6,7 +8,7 @@
*
* See the LICENSE file for redistribution information.
*
* $Id: key.h,v 1.1.1.1 2008/05/16 18:03:18 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:18 $
* Id: key.h,v 10.50 2001/06/28 17:53:58 skimo Exp (Berkeley) Date: 2001/06/28 17:53:58
*/
#include "multibyte.h"

View File

@ -1,3 +1,5 @@
/* $NetBSD: log.c,v 1.1.1.2 2008/05/18 14:29:46 aymeric Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994
* The Regents of the University of California. All rights reserved.
@ -10,7 +12,7 @@
#include "config.h"
#ifndef lint
static const char sccsid[] = "$Id: log.c,v 1.1.1.1 2008/05/16 18:03:18 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:18 $";
static const char sccsid[] = "Id: log.c,v 10.26 2002/03/02 23:12:13 skimo Exp (Berkeley) Date: 2002/03/02 23:12:13";
#endif /* not lint */
#include <sys/types.h>

View File

@ -1,3 +1,5 @@
/* $NetBSD: log.h,v 1.1.1.2 2008/05/18 14:29:46 aymeric Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994
* The Regents of the University of California. All rights reserved.
@ -6,7 +8,7 @@
*
* See the LICENSE file for redistribution information.
*
* $Id: log.h,v 1.1.1.1 2008/05/16 18:03:18 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:18 $
* Id: log.h,v 10.4 2002/06/08 21:00:33 skimo Exp (Berkeley) Date: 2002/06/08 21:00:33
*/
#define LOG_NOTYPE 0

View File

@ -1,3 +1,5 @@
/* $NetBSD: log4.c,v 1.1.1.2 2008/05/18 14:29:47 aymeric Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994
* The Regents of the University of California. All rights reserved.
@ -10,7 +12,7 @@
#include "config.h"
#ifndef lint
static const char sccsid[] = "$Id: log4.c,v 1.1.1.1 2008/05/16 18:03:19 aymeric Exp $";
static const char sccsid[] = "Id: log4.c,v 10.3 2002/06/08 21:00:33 skimo Exp";
#endif /* not lint */
#include <sys/types.h>

View File

@ -1,3 +1,5 @@
/* $NetBSD: main.c,v 1.1.1.2 2008/05/18 14:29:47 aymeric Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994
* The Regents of the University of California. All rights reserved.
@ -18,7 +20,7 @@ static const char copyright[] =
#endif /* not lint */
#ifndef lint
static const char sccsid[] = "$Id: main.c,v 1.1.1.1 2008/05/16 18:03:19 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:19 $";
static const char sccsid[] = "Id: main.c,v 10.63 2001/11/01 15:24:43 skimo Exp (Berkeley) Date: 2001/11/01 15:24:43";
#endif /* not lint */
#include <sys/types.h>

View File

@ -1,3 +1,5 @@
/* $NetBSD: mark.c,v 1.1.1.2 2008/05/18 14:29:47 aymeric Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994
* The Regents of the University of California. All rights reserved.
@ -10,7 +12,7 @@
#include "config.h"
#ifndef lint
static const char sccsid[] = "$Id: mark.c,v 1.1.1.1 2008/05/16 18:03:19 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:19 $";
static const char sccsid[] = "Id: mark.c,v 10.15 2001/06/25 15:19:11 skimo Exp (Berkeley) Date: 2001/06/25 15:19:11";
#endif /* not lint */
#include <sys/types.h>

View File

@ -1,3 +1,5 @@
/* $NetBSD: mark.h,v 1.1.1.2 2008/05/18 14:29:47 aymeric Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994
* The Regents of the University of California. All rights reserved.
@ -6,7 +8,7 @@
*
* See the LICENSE file for redistribution information.
*
* $Id: mark.h,v 1.1.1.1 2008/05/16 18:03:19 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:19 $
* Id: mark.h,v 10.5 2000/07/14 14:29:16 skimo Exp (Berkeley) Date: 2000/07/14 14:29:16
*/
/*

View File

@ -1,3 +1,5 @@
/* $NetBSD: mem.h,v 1.1.1.2 2008/05/18 14:29:48 aymeric Exp $ */
/*-
* Copyright (c) 1993, 1994
* The Regents of the University of California. All rights reserved.
@ -6,7 +8,7 @@
*
* See the LICENSE file for redistribution information.
*
* $Id: mem.h,v 1.1.1.1 2008/05/16 18:03:20 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:20 $
* Id: mem.h,v 10.13 2002/01/05 23:13:37 skimo Exp (Berkeley) Date: 2002/01/05 23:13:37
*/
#ifdef HAVE_GCC

View File

@ -1,3 +1,5 @@
/* $NetBSD: msg.c,v 1.1.1.2 2008/05/18 14:29:48 aymeric Exp $ */
/*-
* Copyright (c) 1991, 1993, 1994
* The Regents of the University of California. All rights reserved.
@ -10,7 +12,7 @@
#include "config.h"
#ifndef lint
static const char sccsid[] = "$Id: msg.c,v 1.1.1.1 2008/05/16 18:03:20 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:20 $";
static const char sccsid[] = "Id: msg.c,v 10.61 2003/07/18 23:17:30 skimo Exp (Berkeley) Date: 2003/07/18 23:17:30";
#endif /* not lint */
#include <sys/param.h>

View File

@ -1,3 +1,5 @@
/* $NetBSD: msg.h,v 1.1.1.2 2008/05/18 14:29:48 aymeric Exp $ */
/*-
* Copyright (c) 1993, 1994
* The Regents of the University of California. All rights reserved.
@ -6,7 +8,7 @@
*
* See the LICENSE file for redistribution information.
*
* $Id: msg.h,v 1.1.1.1 2008/05/16 18:03:20 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:20 $
* Id: msg.h,v 10.11 2000/04/21 21:26:19 skimo Exp (Berkeley) Date: 2000/04/21 21:26:19
*/
/*

View File

@ -1,3 +1,5 @@
/* $NetBSD: multibyte.h,v 1.1.1.2 2008/05/18 14:29:48 aymeric Exp $ */
#ifndef MULTIBYTE_H
#define MULTIBYTE_H

View File

@ -1,3 +1,5 @@
/* $NetBSD: nothread.c,v 1.1.1.2 2008/05/18 14:29:48 aymeric Exp $ */
/*-
* Copyright (c) 2000
* Sven Verdoolaege. All rights reserved.
@ -8,7 +10,7 @@
#include "config.h"
#ifndef lint
static const char sccsid[] = "$Id: nothread.c,v 1.1.1.1 2008/05/16 18:03:20 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:20 $";
static const char sccsid[] = "Id: nothread.c,v 1.4 2000/07/22 14:52:37 skimo Exp (Berkeley) Date: 2000/07/22 14:52:37";
#endif /* not lint */
#include <sys/types.h>

View File

@ -1,4 +1,4 @@
# $Id: options.awk,v 1.1.1.1 2008/05/16 18:03:20 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:20 $
# Id: options.awk,v 10.1 1995/06/08 19:00:01 bostic Exp (Berkeley) Date: 1995/06/08 19:00:01
/^\/\* O_[0-9A-Z_]*/ {
printf("#define %s %d\n", $2, cnt++);

View File

@ -1,3 +1,5 @@
/* $NetBSD: options.c,v 1.1.1.2 2008/05/18 14:29:49 aymeric Exp $ */
/*-
* Copyright (c) 1991, 1993, 1994
* The Regents of the University of California. All rights reserved.
@ -10,7 +12,7 @@
#include "config.h"
#ifndef lint
static const char sccsid[] = "$Id: options.c,v 1.1.1.1 2008/05/16 18:03:21 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:21 $";
static const char sccsid[] = "Id: options.c,v 10.65 2002/01/18 22:34:43 skimo Exp (Berkeley) Date: 2002/01/18 22:34:43";
#endif /* not lint */
#include <sys/types.h>

View File

@ -1,3 +1,5 @@
/* $NetBSD: options.h,v 1.1.1.2 2008/05/18 14:29:49 aymeric Exp $ */
/*-
* Copyright (c) 1991, 1993, 1994
* The Regents of the University of California. All rights reserved.
@ -6,7 +8,7 @@
*
* See the LICENSE file for redistribution information.
*
* $Id: options.h,v 1.1.1.1 2008/05/16 18:03:21 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:21 $
* Id: options.h,v 10.20 2001/06/09 18:26:28 skimo Exp (Berkeley) Date: 2001/06/09 18:26:28
*/
/*

85
dist/nvi/common/options_def.h vendored Normal file
View File

@ -0,0 +1,85 @@
/* $NetBSD: options_def.h,v 1.1.1.1 2008/05/18 14:29:48 aymeric Exp $ */
/* Do not edit: automatically built by build/distrib. */
#define O_ALTWERASE 0
#define O_AUTOINDENT 1
#define O_AUTOPRINT 2
#define O_AUTOWRITE 3
#define O_BACKUP 4
#define O_BEAUTIFY 5
#define O_CDPATH 6
#define O_CEDIT 7
#define O_COLUMNS 8
#define O_COMBINED 9
#define O_COMMENT 10
#define O_TMP_DIRECTORY 11
#define O_EDCOMPATIBLE 12
#define O_ESCAPETIME 13
#define O_ERRORBELLS 14
#define O_EXRC 15
#define O_EXTENDED 16
#define O_FILEC 17
#define O_FILEENCODING 18
#define O_FLASH 19
#define O_HARDTABS 20
#define O_ICLOWER 21
#define O_IGNORECASE 22
#define O_INPUTENCODING 23
#define O_KEYTIME 24
#define O_LEFTRIGHT 25
#define O_LINES 26
#define O_LISP 27
#define O_LIST 28
#define O_LOCKFILES 29
#define O_MAGIC 30
#define O_MATCHTIME 31
#define O_MESG 32
#define O_MODELINE 33
#define O_MSGCAT 34
#define O_NOPRINT 35
#define O_NUMBER 36
#define O_OCTAL 37
#define O_OPEN 38
#define O_OPTIMIZE 39
#define O_PARAGRAPHS 40
#define O_PATH 41
#define O_PRINT 42
#define O_PROMPT 43
#define O_READONLY 44
#define O_RECDIR 45
#define O_REDRAW 46
#define O_REMAP 47
#define O_REPORT 48
#define O_RULER 49
#define O_SCROLL 50
#define O_SEARCHINCR 51
#define O_SECTIONS 52
#define O_SECURE 53
#define O_SHELL 54
#define O_SHELLMETA 55
#define O_SHIFTWIDTH 56
#define O_SHOWMATCH 57
#define O_SHOWMODE 58
#define O_SIDESCROLL 59
#define O_SLOWOPEN 60
#define O_SOURCEANY 61
#define O_TABSTOP 62
#define O_TAGLENGTH 63
#define O_TAGS 64
#define O_TERM 65
#define O_TERSE 66
#define O_TILDEOP 67
#define O_TIMEOUT 68
#define O_TTYWERASE 69
#define O_VERBOSE 70
#define O_W1200 71
#define O_W300 72
#define O_W9600 73
#define O_WARN 74
#define O_WINDOW 75
#define O_WINDOWNAME 76
#define O_WRAPLEN 77
#define O_WRAPMARGIN 78
#define O_WRAPSCAN 79
#define O_WRITEANY 80
#define O_OPTIONCOUNT 81

View File

@ -1,3 +1,5 @@
/* $NetBSD: options_f.c,v 1.1.1.2 2008/05/18 14:29:50 aymeric Exp $ */
/*-
* Copyright (c) 1993, 1994
* The Regents of the University of California. All rights reserved.
@ -10,7 +12,7 @@
#include "config.h"
#ifndef lint
static const char sccsid[] = "$Id: options_f.c,v 1.1.1.1 2008/05/16 18:03:21 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:21 $";
static const char sccsid[] = "Id: options_f.c,v 10.33 2001/06/25 15:19:11 skimo Exp (Berkeley) Date: 2001/06/25 15:19:11";
#endif /* not lint */
#include <sys/types.h>

View File

@ -1,3 +1,5 @@
/* $NetBSD: pthread.c,v 1.1.1.2 2008/05/18 14:29:50 aymeric Exp $ */
/*-
* Copyright (c) 2000
* Sven Verdoolaege. All rights reserved.
@ -8,7 +10,7 @@
#include "config.h"
#ifndef lint
static const char sccsid[] = "$Id: pthread.c,v 1.1.1.1 2008/05/16 18:03:21 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:21 $";
static const char sccsid[] = "Id: pthread.c,v 1.4 2000/07/22 14:52:37 skimo Exp (Berkeley) Date: 2000/07/22 14:52:37";
#endif /* not lint */
#include <sys/types.h>

View File

@ -1,3 +1,5 @@
/* $NetBSD: put.c,v 1.1.1.2 2008/05/18 14:29:50 aymeric Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994
* The Regents of the University of California. All rights reserved.
@ -10,7 +12,7 @@
#include "config.h"
#ifndef lint
static const char sccsid[] = "$Id: put.c,v 1.1.1.1 2008/05/16 18:03:21 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:21 $";
static const char sccsid[] = "Id: put.c,v 10.18 2001/06/25 15:19:11 skimo Exp (Berkeley) Date: 2001/06/25 15:19:11";
#endif /* not lint */
#include <sys/types.h>

View File

@ -1,3 +1,5 @@
/* $NetBSD: recover.c,v 1.1.1.2 2008/05/18 14:29:51 aymeric Exp $ */
/*-
* Copyright (c) 1993, 1994
* The Regents of the University of California. All rights reserved.
@ -10,7 +12,7 @@
#include "config.h"
#ifndef lint
static const char sccsid[] = "$Id: recover.c,v 1.1.1.1 2008/05/16 18:03:23 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:23 $";
static const char sccsid[] = "Id: recover.c,v 10.31 2001/11/01 15:24:44 skimo Exp (Berkeley) Date: 2001/11/01 15:24:44";
#endif /* not lint */
#include <sys/param.h>

View File

@ -1,3 +1,5 @@
/* $NetBSD: screen.c,v 1.1.1.2 2008/05/18 14:29:51 aymeric Exp $ */
/*-
* Copyright (c) 1993, 1994
* The Regents of the University of California. All rights reserved.
@ -10,7 +12,7 @@
#include "config.h"
#ifndef lint
static const char sccsid[] = "$Id: screen.c,v 1.1.1.1 2008/05/16 18:03:23 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:23 $";
static const char sccsid[] = "Id: screen.c,v 10.22 2001/06/25 15:19:12 skimo Exp (Berkeley) Date: 2001/06/25 15:19:12";
#endif /* not lint */
#include <sys/types.h>

View File

@ -1,3 +1,5 @@
/* $NetBSD: screen.h,v 1.1.1.2 2008/05/18 14:29:51 aymeric Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994
* The Regents of the University of California. All rights reserved.
@ -6,7 +8,7 @@
*
* See the LICENSE file for redistribution information.
*
* $Id: screen.h,v 1.1.1.1 2008/05/16 18:03:23 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:23 $
* Id: screen.h,v 10.49 2002/03/02 23:47:02 skimo Exp (Berkeley) Date: 2002/03/02 23:47:02
*/
/*

View File

@ -1,3 +1,5 @@
/* $NetBSD: search.c,v 1.1.1.2 2008/05/18 14:29:51 aymeric Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994
* The Regents of the University of California. All rights reserved.
@ -10,7 +12,7 @@
#include "config.h"
#ifndef lint
static const char sccsid[] = "$Id: search.c,v 1.1.1.1 2008/05/16 18:03:23 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:23 $";
static const char sccsid[] = "Id: search.c,v 10.31 2001/06/25 15:19:12 skimo Exp (Berkeley) Date: 2001/06/25 15:19:12";
#endif /* not lint */
#include <sys/types.h>

View File

@ -1,3 +1,5 @@
/* $NetBSD: seq.c,v 1.1.1.2 2008/05/18 14:29:52 aymeric Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994
* The Regents of the University of California. All rights reserved.
@ -10,7 +12,7 @@
#include "config.h"
#ifndef lint
static const char sccsid[] = "$Id: seq.c,v 1.1.1.1 2008/05/16 18:03:24 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:24 $";
static const char sccsid[] = "Id: seq.c,v 10.15 2001/06/25 15:19:12 skimo Exp (Berkeley) Date: 2001/06/25 15:19:12";
#endif /* not lint */
#include <sys/types.h>

View File

@ -1,3 +1,5 @@
/* $NetBSD: seq.h,v 1.1.1.2 2008/05/18 14:29:52 aymeric Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994
* The Regents of the University of California. All rights reserved.
@ -6,7 +8,7 @@
*
* See the LICENSE file for redistribution information.
*
* $Id: seq.h,v 1.1.1.1 2008/05/16 18:03:24 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:24 $
* Id: seq.h,v 10.3 1996/03/06 19:51:03 bostic Exp (Berkeley) Date: 1996/03/06 19:51:03
*/
/*

View File

@ -1,3 +1,5 @@
/* $NetBSD: trace.c,v 1.1.1.2 2008/05/18 14:29:52 aymeric Exp $ */
/*-
* Copyright (c) 1996
* Rob Zimmermann. All rights reserved.
@ -10,7 +12,7 @@
#include "config.h"
#ifndef lint
static const char sccsid[] = "$Id: trace.c,v 1.1.1.1 2008/05/16 18:03:24 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:24 $";
static const char sccsid[] = "Id: trace.c,v 8.4 1997/08/03 15:04:23 bostic Exp (Berkeley) Date: 1997/08/03 15:04:23";
#endif /* not lint */
#include <sys/queue.h>

View File

@ -1,3 +1,5 @@
/* $NetBSD: util.c,v 1.1.1.2 2008/05/18 14:29:52 aymeric Exp $ */
/*-
* Copyright (c) 1991, 1993, 1994
* The Regents of the University of California. All rights reserved.
@ -10,7 +12,7 @@
#include "config.h"
#ifndef lint
static const char sccsid[] = "$Id: util.c,v 1.1.1.1 2008/05/16 18:03:24 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:24 $";
static const char sccsid[] = "Id: util.c,v 10.22 2001/06/25 15:19:12 skimo Exp (Berkeley) Date: 2001/06/25 15:19:12";
#endif /* not lint */
#include <sys/types.h>

View File

@ -1,3 +1,5 @@
/* $NetBSD: util.h,v 1.1.1.2 2008/05/18 14:29:52 aymeric Exp $ */
/*-
* Copyright (c) 1994
* The Regents of the University of California. All rights reserved.
@ -6,7 +8,7 @@
*
* See the LICENSE file for redistribution information.
*
* $Id: util.h,v 1.1.1.1 2008/05/16 18:03:24 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:24 $
* Id: util.h,v 10.5 1996/03/16 14:42:47 bostic Exp (Berkeley) Date: 1996/03/16 14:42:47
*/
/* Macros to init/set/clear/test flags. */

View File

@ -1,3 +1,5 @@
/* $NetBSD: util2.c,v 1.1.1.2 2008/05/18 14:29:52 aymeric Exp $ */
#include "config.h"
#include <sys/types.h>

View File

@ -1,3 +1,5 @@
/* $NetBSD: vi_auto.c,v 1.1.1.2 2008/05/18 14:29:53 aymeric Exp $ */
/* Do not edit: automatically built by gen_rec.awk. */
#include <sys/types.h>
#include <sys/queue.h>

View File

@ -1,3 +1,5 @@
/* $NetBSD: vi_auto.h,v 1.1.1.2 2008/05/18 14:29:53 aymeric Exp $ */
/* Do not edit: automatically built by gen_rec.awk. */
#ifndef vi_AUTO_H

View File

@ -1,3 +1,5 @@
/* $NetBSD: vi_rec.c,v 1.1.1.2 2008/05/18 14:29:53 aymeric Exp $ */
#include "db_config.h"
#ifndef NO_SYSTEM_INCLUDES

View File

@ -1,4 +1,4 @@
# $Id: Embed.pm,v 1.1.1.1 2008/05/16 18:03:31 aymeric Exp $
# Id: Embed.pm,v 10.2 1996/09/19 09:12:51 bostic Exp
require 5.002;
package ExtUtils::Embed;
@ -17,7 +17,7 @@ use vars qw(@ISA @EXPORT $VERSION
);
use strict;
$VERSION = sprintf("%d.%02d", q$Revision: 1.1.1.1 $ =~ /(\d+)\.(\d+)/);
$VERSION = sprintf("%d.%02d", qRevision: 10.2 =~ /(\d+)\.(\d+)/);
#for the namespace change
$Devel::embed::VERSION = "99.99";

1797
dist/nvi/dist/Makefile.in vendored Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,6 @@
/* $Id: acconfig.h,v 1.1.1.1 2008/05/16 18:03:26 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:26 $ */
/* $NetBSD: acconfig.h,v 1.1.1.2 2008/05/18 14:29:55 aymeric Exp $ */
/* Id: acconfig.h,v 8.34 2002/01/19 23:01:35 skimo Exp (Berkeley) Date: 2002/01/19 23:01:35 */
/* Define to `int' if <sys/types.h> doesn't define. */
#undef ssize_t

7440
dist/nvi/dist/aclocal.m4 vendored Normal file

File diff suppressed because it is too large Load Diff

1516
dist/nvi/dist/config.guess vendored Executable file

File diff suppressed because it is too large Load Diff

283
dist/nvi/dist/config.h.in vendored Normal file
View File

@ -0,0 +1,283 @@
/* config.h.in. Generated from configure.in by autoheader. */
/* Id: acconfig.h,v 8.34 2002/01/19 23:01:35 skimo Exp (Berkeley) Date: 2002/01/19 23:01:35 */
/* Define to `int' if <sys/types.h> doesn't define. */
#undef ssize_t
/* Define if you want a debugging version. */
#undef DEBUG
/* Define if you have a System V-style (broken) gettimeofday. */
#undef HAVE_BROKEN_GETTIMEOFDAY
/* Define if you have a Ultrix-style (broken) vdisable. */
#undef HAVE_BROKEN_VDISABLE
/* Define if you have a BSD version of curses. */
#undef HAVE_BSD_CURSES
/* Define if you have wide ncurses(3). */
#undef HAVE_NCURSESW
/* Define if you have the curses(3) waddnwstr function. */
#undef HAVE_CURSES_ADDNWSTR
/* Define if you have the curses(3) waddnstr function. */
#undef HAVE_CURSES_WADDNSTR
/* Define if you have the curses(3) beep function. */
#undef HAVE_CURSES_BEEP
/* Define if you have the curses(3) flash function. */
#undef HAVE_CURSES_FLASH
/* Define if you have the curses(3) idlok function. */
#undef HAVE_CURSES_IDLOK
/* Define if you have the curses(3) keypad function. */
#undef HAVE_CURSES_KEYPAD
/* Define if you have the curses(3) newterm function. */
#undef HAVE_CURSES_NEWTERM
/* Define if you have the curses(3) setupterm function. */
#undef HAVE_CURSES_SETUPTERM
/* Define if you have the curses(3) tigetstr/tigetnum functions. */
#undef HAVE_CURSES_TIGETSTR
/* Define if you have the DB __hash_open call in the C library. */
#undef HAVE_DB_HASH_OPEN
/* Define if you have the chsize(2) system call. */
#undef HAVE_FTRUNCATE_CHSIZE
/* Define if you have the ftruncate(2) system call. */
#undef HAVE_FTRUNCATE_FTRUNCATE
/* Define if you have gcc. */
#undef HAVE_GCC
/* Define if you have fcntl(2) style locking. */
#undef HAVE_LOCK_FCNTL
/* Define if you have flock(2) style locking. */
#undef HAVE_LOCK_FLOCK
/* Define is appropriate pango is available */
#undef HAVE_PANGO
/* Define if you want to compile in the Perl interpreter. */
#undef HAVE_PERL_INTERP
/* Define if using pthread. */
#undef HAVE_PTHREAD
/* Define if you have the Berkeley style revoke(2) system call. */
#undef HAVE_REVOKE
/* Define if you have the Berkeley style strsep(3) function. */
#undef HAVE_STRSEP
/* Define if you have <sys/mman.h> */
#undef HAVE_SYS_MMAN_H
/* Define if you have <sys/select.h> */
#undef HAVE_SYS_SELECT_H
/* Define if you have the System V style pty calls. */
#undef HAVE_SYS5_PTY
/* Define if you want to compile in the Tcl interpreter. */
#undef HAVE_TCL_INTERP
/* Define is appropriate zvt is available */
#undef HAVE_ZVT
/* Define if your sprintf returns a pointer, not a length. */
#undef SPRINTF_RET_CHARPNT
/* Define when using db1 */
#undef USE_DB1
/* Define when using db4 logging */
#undef USE_DB4_LOGGING
/* Define when dynamically loading DB 3 */
#undef USE_DYNAMIC_LOADING
/* Define when iconv can be used */
#undef USE_ICONV
/* Define when perl's setenv should be used */
#undef USE_PERL_SETENV
/* Define when using S-Lang */
#undef USE_SLANG_CURSES
/* Define when using wide characters */
#undef USE_WIDECHAR
/* Define if you have <ncurses.h> */
#undef HAVE_NCURSES_H
/* Define when fprintf prototype not in an obvious place */
#undef NEED_FPRINTF_PROTO
/* Define to 1 if you have the `bsearch' function. */
#undef HAVE_BSEARCH
/* Define to 1 if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H
/* Define to 1 if you have the `fork' function. */
#undef HAVE_FORK
/* Define to 1 if you have the `gethostname' function. */
#undef HAVE_GETHOSTNAME
/* Define to 1 if you have the `getpagesize' function. */
#undef HAVE_GETPAGESIZE
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
/* Define to 1 if you have the `iswblank' function. */
#undef HAVE_ISWBLANK
/* Define to 1 if you have the `memchr' function. */
#undef HAVE_MEMCHR
/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H
/* Define to 1 if you have the `memset' function. */
#undef HAVE_MEMSET
/* Define to 1 if you have the `mkstemp' function. */
#undef HAVE_MKSTEMP
/* Define to 1 if you have a working `mmap' system call. */
#undef HAVE_MMAP
/* Define to 1 if you have the <ncursesw/ncurses.h> header file. */
#undef HAVE_NCURSESW_NCURSES_H
/* Define to 1 if you have the <ncurses.h> header file. */
#undef HAVE_NCURSES_H
/* Define to 1 if you have the `select' function. */
#undef HAVE_SELECT
/* Define to 1 if you have the `setenv' function. */
#undef HAVE_SETENV
/* Define to 1 if you have the `snprintf' function. */
#undef HAVE_SNPRINTF
/* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H
/* Define to 1 if you have the <stdlib.h> header file. */
#undef HAVE_STDLIB_H
/* Define to 1 if you have the `strdup' function. */
#undef HAVE_STRDUP
/* Define to 1 if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H
/* Define to 1 if you have the <string.h> header file. */
#undef HAVE_STRING_H
/* Define to 1 if you have the `strpbrk' function. */
#undef HAVE_STRPBRK
/* Define to 1 if you have the `strsep' function. */
#undef HAVE_STRSEP
/* Define to 1 if `st_blksize' is member of `struct stat'. */
#undef HAVE_STRUCT_STAT_ST_BLKSIZE
/* Define to 1 if your `struct stat' has `st_blksize'. Deprecated, use
`HAVE_STRUCT_STAT_ST_BLKSIZE' instead. */
#undef HAVE_ST_BLKSIZE
/* Define to 1 if you have the <sys/stat.h> header file. */
#undef HAVE_SYS_STAT_H
/* Define to 1 if you have the <sys/types.h> header file. */
#undef HAVE_SYS_TYPES_H
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
/* Define to 1 if you have the `unsetenv' function. */
#undef HAVE_UNSETENV
/* Define to 1 if you have the `vfork' function. */
#undef HAVE_VFORK
/* Define to 1 if you have the <vfork.h> header file. */
#undef HAVE_VFORK_H
/* Define to 1 if you have the `vsnprintf' function. */
#undef HAVE_VSNPRINTF
/* Define to 1 if `fork' works. */
#undef HAVE_WORKING_FORK
/* Define to 1 if `vfork' works. */
#undef HAVE_WORKING_VFORK
/* Name of package */
#undef PACKAGE
/* Define to the address where bug reports for this package should be sent. */
#undef PACKAGE_BUGREPORT
/* Define to the full name of this package. */
#undef PACKAGE_NAME
/* Define to the full name and version of this package. */
#undef PACKAGE_STRING
/* Define to the one symbol short name of this package. */
#undef PACKAGE_TARNAME
/* Define to the version of this package. */
#undef PACKAGE_VERSION
/* Define to 1 if you have the ANSI C header files. */
#undef STDC_HEADERS
/* Define to 1 if your <sys/time.h> declares `struct tm'. */
#undef TM_IN_SYS_TIME
/* Version number of package */
#undef VERSION
/* Define to 1 if your processor stores words with the most significant byte
first (like Motorola and SPARC, unlike Intel and VAX). */
#undef WORDS_BIGENDIAN
/* Define to empty if `const' does not conform to ANSI C. */
#undef const
/* Define to `int' if <sys/types.h> does not define. */
#undef mode_t
/* Define to `long int' if <sys/types.h> does not define. */
#undef off_t
/* Define to `int' if <sys/types.h> does not define. */
#undef pid_t
/* Define to `unsigned int' if <sys/types.h> does not define. */
#undef size_t
/* Define to `int' if <sys/types.h> does not define. */
#undef ssize_t
/* Define as `fork' if `vfork' does not work. */
#undef vfork

1626
dist/nvi/dist/config.sub vendored Executable file

File diff suppressed because it is too large Load Diff

30513
dist/nvi/dist/configure vendored Executable file

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
dnl $Id: configure.in,v 1.1.1.1 2008/05/16 18:03:27 aymeric Exp $
dnl Id: configure.in,v 8.192 2003/02/17 20:09:07 skimo Exp
dnl Process this file with autoconf to produce a configure script.
AC_INIT(../common/main.c)

View File

@ -1,5 +1,5 @@
#! /bin/sh
# $Id: distrib,v 1.1.1.1 2008/05/16 18:03:28 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:28 $
# Id: distrib,v 8.24 2001/06/25 11:20:24 skimo Exp (Berkeley) Date: 2001/06/25 11:20:24
echo "Running libtoolize"
libtoolize -c --force

507
dist/nvi/dist/install-sh vendored Executable file
View File

@ -0,0 +1,507 @@
#!/bin/sh
# install - install a program, script, or datafile
scriptversion=2006-10-14.15
# This originates from X11R5 (mit/util/scripts/install.sh), which was
# later released in X11R6 (xc/config/util/install.sh) with the
# following copyright and license.
#
# Copyright (C) 1994 X Consortium
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
# Except as contained in this notice, the name of the X Consortium shall not
# be used in advertising or otherwise to promote the sale, use or other deal-
# ings in this Software without prior written authorization from the X Consor-
# tium.
#
#
# FSF changes to this file are in the public domain.
#
# 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.
nl='
'
IFS=" "" $nl"
# set DOITPROG to echo to test this script
# Don't use :- since 4.3BSD and earlier shells don't like it.
doit="${DOITPROG-}"
if test -z "$doit"; then
doit_exec=exec
else
doit_exec=$doit
fi
# Put in absolute file names if you don't have them in your path;
# or use environment vars.
mvprog="${MVPROG-mv}"
cpprog="${CPPROG-cp}"
chmodprog="${CHMODPROG-chmod}"
chownprog="${CHOWNPROG-chown}"
chgrpprog="${CHGRPPROG-chgrp}"
stripprog="${STRIPPROG-strip}"
rmprog="${RMPROG-rm}"
mkdirprog="${MKDIRPROG-mkdir}"
posix_glob=
posix_mkdir=
# Desired mode of installed file.
mode=0755
chmodcmd=$chmodprog
chowncmd=
chgrpcmd=
stripcmd=
rmcmd="$rmprog -f"
mvcmd="$mvprog"
src=
dst=
dir_arg=
dstarg=
no_target_directory=
usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
or: $0 [OPTION]... SRCFILES... DIRECTORY
or: $0 [OPTION]... -t DIRECTORY SRCFILES...
or: $0 [OPTION]... -d DIRECTORIES...
In the 1st form, copy SRCFILE to DSTFILE.
In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
In the 4th, create DIRECTORIES.
Options:
-c (ignored)
-d create directories instead of installing files.
-g GROUP $chgrpprog installed files to GROUP.
-m MODE $chmodprog installed files to MODE.
-o USER $chownprog installed files to USER.
-s $stripprog installed files.
-t DIRECTORY install into DIRECTORY.
-T report an error if DSTFILE is a directory.
--help display this help and exit.
--version display version info and exit.
Environment variables override the default commands:
CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
"
while test $# -ne 0; do
case $1 in
-c) shift
continue;;
-d) dir_arg=true
shift
continue;;
-g) chgrpcmd="$chgrpprog $2"
shift
shift
continue;;
--help) echo "$usage"; exit $?;;
-m) mode=$2
shift
shift
case $mode in
*' '* | *' '* | *'
'* | *'*'* | *'?'* | *'['*)
echo "$0: invalid mode: $mode" >&2
exit 1;;
esac
continue;;
-o) chowncmd="$chownprog $2"
shift
shift
continue;;
-s) stripcmd=$stripprog
shift
continue;;
-t) dstarg=$2
shift
shift
continue;;
-T) no_target_directory=true
shift
continue;;
--version) echo "$0 $scriptversion"; exit $?;;
--) shift
break;;
-*) echo "$0: invalid option: $1" >&2
exit 1;;
*) break;;
esac
done
if test $# -ne 0 && test -z "$dir_arg$dstarg"; then
# When -d is used, all remaining arguments are directories to create.
# When -t is used, the destination is already specified.
# Otherwise, the last argument is the destination. Remove it from $@.
for arg
do
if test -n "$dstarg"; then
# $@ is not empty: it contains at least $arg.
set fnord "$@" "$dstarg"
shift # fnord
fi
shift # arg
dstarg=$arg
done
fi
if test $# -eq 0; then
if test -z "$dir_arg"; then
echo "$0: no input file specified." >&2
exit 1
fi
# It's OK to call `install-sh -d' without argument.
# This can happen when creating conditional directories.
exit 0
fi
if test -z "$dir_arg"; then
trap '(exit $?); exit' 1 2 13 15
# Set umask so as not to create temps with too-generous modes.
# However, 'strip' requires both read and write access to temps.
case $mode in
# Optimize common cases.
*644) cp_umask=133;;
*755) cp_umask=22;;
*[0-7])
if test -z "$stripcmd"; then
u_plus_rw=
else
u_plus_rw='% 200'
fi
cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
*)
if test -z "$stripcmd"; then
u_plus_rw=
else
u_plus_rw=,u+rw
fi
cp_umask=$mode$u_plus_rw;;
esac
fi
for src
do
# Protect names starting with `-'.
case $src in
-*) src=./$src ;;
esac
if test -n "$dir_arg"; then
dst=$src
dstdir=$dst
test -d "$dstdir"
dstdir_status=$?
else
# Waiting for this to be detected by the "$cpprog $src $dsttmp" command
# might cause directories to be created, which would be especially bad
# if $src (and thus $dsttmp) contains '*'.
if test ! -f "$src" && test ! -d "$src"; then
echo "$0: $src does not exist." >&2
exit 1
fi
if test -z "$dstarg"; then
echo "$0: no destination specified." >&2
exit 1
fi
dst=$dstarg
# Protect names starting with `-'.
case $dst in
-*) dst=./$dst ;;
esac
# If destination is a directory, append the input filename; won't work
# if double slashes aren't ignored.
if test -d "$dst"; then
if test -n "$no_target_directory"; then
echo "$0: $dstarg: Is a directory" >&2
exit 1
fi
dstdir=$dst
dst=$dstdir/`basename "$src"`
dstdir_status=0
else
# Prefer dirname, but fall back on a substitute if dirname fails.
dstdir=`
(dirname "$dst") 2>/dev/null ||
expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
X"$dst" : 'X\(//\)[^/]' \| \
X"$dst" : 'X\(//\)$' \| \
X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
echo X"$dst" |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
s//\1/
q
}
/^X\(\/\/\)[^/].*/{
s//\1/
q
}
/^X\(\/\/\)$/{
s//\1/
q
}
/^X\(\/\).*/{
s//\1/
q
}
s/.*/./; q'
`
test -d "$dstdir"
dstdir_status=$?
fi
fi
obsolete_mkdir_used=false
if test $dstdir_status != 0; then
case $posix_mkdir in
'')
# Create intermediate dirs using mode 755 as modified by the umask.
# This is like FreeBSD 'install' as of 1997-10-28.
umask=`umask`
case $stripcmd.$umask in
# Optimize common cases.
*[2367][2367]) mkdir_umask=$umask;;
.*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
*[0-7])
mkdir_umask=`expr $umask + 22 \
- $umask % 100 % 40 + $umask % 20 \
- $umask % 10 % 4 + $umask % 2
`;;
*) mkdir_umask=$umask,go-w;;
esac
# With -d, create the new directory with the user-specified mode.
# Otherwise, rely on $mkdir_umask.
if test -n "$dir_arg"; then
mkdir_mode=-m$mode
else
mkdir_mode=
fi
posix_mkdir=false
case $umask in
*[123567][0-7][0-7])
# POSIX mkdir -p sets u+wx bits regardless of umask, which
# is incompatible with FreeBSD 'install' when (umask & 300) != 0.
;;
*)
tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
if (umask $mkdir_umask &&
exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
then
if test -z "$dir_arg" || {
# Check for POSIX incompatibilities with -m.
# HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
# other-writeable bit of parent directory when it shouldn't.
# FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
ls_ld_tmpdir=`ls -ld "$tmpdir"`
case $ls_ld_tmpdir in
d????-?r-*) different_mode=700;;
d????-?--*) different_mode=755;;
*) false;;
esac &&
$mkdirprog -m$different_mode -p -- "$tmpdir" && {
ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
}
}
then posix_mkdir=:
fi
rmdir "$tmpdir/d" "$tmpdir"
else
# Remove any dirs left behind by ancient mkdir implementations.
rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
fi
trap '' 0;;
esac;;
esac
if
$posix_mkdir && (
umask $mkdir_umask &&
$doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
)
then :
else
# The umask is ridiculous, or mkdir does not conform to POSIX,
# or it failed possibly due to a race condition. Create the
# directory the slow way, step by step, checking for races as we go.
case $dstdir in
/*) prefix=/ ;;
-*) prefix=./ ;;
*) prefix= ;;
esac
case $posix_glob in
'')
if (set -f) 2>/dev/null; then
posix_glob=true
else
posix_glob=false
fi ;;
esac
oIFS=$IFS
IFS=/
$posix_glob && set -f
set fnord $dstdir
shift
$posix_glob && set +f
IFS=$oIFS
prefixes=
for d
do
test -z "$d" && continue
prefix=$prefix$d
if test -d "$prefix"; then
prefixes=
else
if $posix_mkdir; then
(umask=$mkdir_umask &&
$doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
# Don't fail if two instances are running concurrently.
test -d "$prefix" || exit 1
else
case $prefix in
*\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
*) qprefix=$prefix;;
esac
prefixes="$prefixes '$qprefix'"
fi
fi
prefix=$prefix/
done
if test -n "$prefixes"; then
# Don't fail if two instances are running concurrently.
(umask $mkdir_umask &&
eval "\$doit_exec \$mkdirprog $prefixes") ||
test -d "$dstdir" || exit 1
obsolete_mkdir_used=true
fi
fi
fi
if test -n "$dir_arg"; then
{ test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
{ test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
{ test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
else
# Make a couple of temp file names in the proper directory.
dsttmp=$dstdir/_inst.$$_
rmtmp=$dstdir/_rm.$$_
# Trap to clean up those temp files at exit.
trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
# Copy the file name to the temp name.
(umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
# and set any options; do chmod last to preserve setuid bits.
#
# If any of these fail, we abort the whole thing. If we want to
# ignore errors from any of these, just make sure not to ignore
# errors from the above "$doit $cpprog $src $dsttmp" command.
#
{ test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
&& { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
&& { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
&& { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
# Now rename the file to the real destination.
{ $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null \
|| {
# The rename failed, perhaps because mv can't rename something else
# to itself, or perhaps because mv is so ancient that it does not
# support -f.
# Now remove or move aside any old file at destination location.
# We try this two ways since rm can't unlink itself on some
# systems and the destination file might be busy for other
# reasons. In this case, the final cleanup might fail but the new
# file should still install successfully.
{
if test -f "$dst"; then
$doit $rmcmd -f "$dst" 2>/dev/null \
|| { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null \
&& { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }; }\
|| {
echo "$0: cannot unlink or rename $dst" >&2
(exit 1); exit 1
}
else
:
fi
} &&
# Now rename the file to the real destination.
$doit $mvcmd "$dsttmp" "$dst"
}
} || exit 1
trap '' 0
fi
done
# Local variables:
# eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
# time-stamp-end: "$"
# End:

6930
dist/nvi/dist/ltmain.sh vendored Normal file

File diff suppressed because it is too large Load Diff

View File

@ -4,7 +4,7 @@
# Created: 1993-05-16
# Public domain
# $Id: mkinstalldirs,v 1.1.1.1 2008/05/16 18:03:31 aymeric Exp $
# Id: mkinstalldirs,v 8.3 2001/08/27 19:52:59 skimo Exp
errstatus=0

View File

@ -1,4 +1,4 @@
/* $Id: pathnames.h.in,v 1.1.1.1 2008/05/16 18:03:31 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:31 $ */
/* Id: pathnames.h.in,v 8.5 2000/04/21 21:26:21 skimo Exp (Berkeley) Date: 2000/04/21 21:26:21 */
#ifndef _PATH_BSHELL
#define _PATH_BSHELL "@vi_cv_path_shell@"

View File

@ -1,4 +1,4 @@
/* $Id: port.h.in,v 1.1.1.1 2008/05/16 18:03:31 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:31 $ */
/* Id: port.h.in,v 8.15 2001/01/01 20:26:48 skimo Exp (Berkeley) Date: 2001/01/01 20:26:48 */
/*
* Declare the basic types, if they aren't already declared. Named and

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $Id: recover.in,v 1.1.1.1 2008/05/16 18:03:31 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:31 $
# Id: recover.in,v 8.9 2001/08/30 13:59:23 skimo Exp (Berkeley) Date: 2001/08/30 13:59:23
#
# Script to recover nvi edit sessions.

0
dist/nvi/dist/stamp-h.in vendored Normal file
View File

View File

@ -1,4 +1,4 @@
# $Id: README,v 1.1.1.1 2008/05/16 18:03:31 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:31 $
# Id: README,v 8.1 1997/04/13 10:38:45 bostic Exp (Berkeley) Date: 1997/04/13 10:38:45
[USD stands for "User's Supplementary Documents".]

View File

@ -1,4 +1,4 @@
# $Id: Makefile,v 1.1.1.1 2008/05/16 18:03:31 aymeric Exp $ (Berkeley) $Date: 2008/05/16 18:03:31 $
# Id: Makefile,v 8.6 2001/01/28 15:50:07 skimo Exp (Berkeley) Date: 2001/01/28 15:50:07
ROFF= groff
TBL= tbl

Some files were not shown because too many files have changed in this diff Show More