Define PBUFSIZ in terms of MAXPATHLEN rather than hard coding it to

512.

Obtained, I think, from: OpenBSD
This commit is contained in:
Warner Losh 1998-09-11 05:44:41 +00:00
parent c0f3e0b9b0
commit 2e9e5d3b4c
1 changed files with 5 additions and 4 deletions

View File

@ -35,22 +35,23 @@
static char sccsid[] = "@(#)termcap.c 8.1 (Berkeley) 6/4/93";
#endif /* not lint */
#define PBUFSIZ 512 /* max length of filename path */
#define PVECSIZ 32 /* max number of names in path */
#define TBUFSIZ 1024 /* max length of tgetent buffer */
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <termios.h>
#include <sys/param.h>
#include <signal.h>
#include <errno.h>
#include <sys/syscall.h>
#include "termcap.h"
#include "pathnames.h"
#define PBUFSIZ MAXPATHLEN /* max length of filename path */
#define PVECSIZ 32 /* max number of names in path */
#define TBUFSIZ 1024 /* max length of tgetent buffer */
/*
* termcap - routines for dealing with the terminal capability data base
*