increase max line size from 1024 to 4096, hopefully
This commit is contained in:
parent
c3f3679ee8
commit
9a4f47c081
4
LEGAL
4
LEGAL
|
@ -1,8 +1,12 @@
|
||||||
|
$MirBSD: LEGAL,v 1.2 2003/04/12 14:32:14 tg Exp $
|
||||||
$OpenBSD: LEGAL,v 1.1.1.1 1996/08/14 06:19:10 downsj Exp $
|
$OpenBSD: LEGAL,v 1.1.1.1 1996/08/14 06:19:10 downsj Exp $
|
||||||
|
|
||||||
pdksh is provided AS IS, with NO WARRANTY, either expressed or implied.
|
pdksh is provided AS IS, with NO WARRANTY, either expressed or implied.
|
||||||
|
|
||||||
The vast majority of the code that makes pdksh is in the public domain.
|
The vast majority of the code that makes pdksh is in the public domain.
|
||||||
|
|
||||||
|
The exceptions are not included in the MirBSD source tree.
|
||||||
|
|
||||||
The exceptions are:
|
The exceptions are:
|
||||||
sigact.c and sigact.h
|
sigact.c and sigact.h
|
||||||
These are covered by copyrighten by Simon J. Gerraty;
|
These are covered by copyrighten by Simon J. Gerraty;
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* $MirBSD: history.c,v 1.4 2003/04/12 14:32:14 tg Exp $ */
|
||||||
/* $OpenBSD: history.c,v 1.18 2003/04/06 23:39:17 deraadt Exp $ */
|
/* $OpenBSD: history.c,v 1.18 2003/04/06 23:39:17 deraadt Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -934,7 +935,7 @@ hist_shrink(oldbase, oldbytes)
|
||||||
int oldbytes;
|
int oldbytes;
|
||||||
{
|
{
|
||||||
int fd;
|
int fd;
|
||||||
char nfile[1024];
|
char nfile[4096];
|
||||||
struct stat statb;
|
struct stat statb;
|
||||||
unsigned char *nbase = oldbase;
|
unsigned char *nbase = oldbase;
|
||||||
int nbytes = oldbytes;
|
int nbytes = oldbytes;
|
||||||
|
|
7
sh.h
7
sh.h
|
@ -1,3 +1,4 @@
|
||||||
|
/* $MirBSD: sh.h,v 1.2 2003/04/12 14:32:14 tg Exp $ */
|
||||||
/* $OpenBSD: sh.h,v 1.12 2002/10/07 23:09:32 vincent Exp $ */
|
/* $OpenBSD: sh.h,v 1.12 2002/10/07 23:09:32 vincent Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -366,9 +367,9 @@ typedef INT32 Tflag;
|
||||||
#define ISMAGIC(c) ((unsigned char)(c) == MAGIC)
|
#define ISMAGIC(c) ((unsigned char)(c) == MAGIC)
|
||||||
#define NOT '!' /* might use ^ (ie, [!...] vs [^..]) */
|
#define NOT '!' /* might use ^ (ie, [!...] vs [^..]) */
|
||||||
|
|
||||||
#define LINE 1024 /* input line size */
|
#define LINE 4096 /* input line size */
|
||||||
#define PATH 1024 /* pathname size (todo: PATH_MAX/pathconf()) */
|
#define PATH 4096 /* pathname size (todo: PATH_MAX/pathconf()) */
|
||||||
#define ARRAYMAX 1023 /* max array index */
|
#define ARRAYMAX 4095 /* max array index */
|
||||||
|
|
||||||
EXTERN const char *kshname; /* $0 */
|
EXTERN const char *kshname; /* $0 */
|
||||||
EXTERN pid_t kshpid; /* $$, shell pid */
|
EXTERN pid_t kshpid; /* $$, shell pid */
|
||||||
|
|
3
vi.c
3
vi.c
|
@ -1,3 +1,4 @@
|
||||||
|
/* $MirBSD: vi.c,v 1.2 2003/04/12 14:32:14 tg Exp $ */
|
||||||
/* $OpenBSD: vi.c,v 1.11 2003/03/13 09:03:07 deraadt Exp $ */
|
/* $OpenBSD: vi.c,v 1.11 2003/03/13 09:03:07 deraadt Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -14,7 +15,7 @@
|
||||||
#include "ksh_stat.h" /* completion */
|
#include "ksh_stat.h" /* completion */
|
||||||
#include "edit.h"
|
#include "edit.h"
|
||||||
|
|
||||||
#define CMDLEN 1024
|
#define CMDLEN 4096
|
||||||
#define Ctrl(c) (c&0x1f)
|
#define Ctrl(c) (c&0x1f)
|
||||||
#define is_wordch(c) (letnum(c))
|
#define is_wordch(c) (letnum(c))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue