version 1.5, 2000/02/27 05:55:30 |
version 1.6, 2000/04/13 06:12:17 |
|
|
#include <stdlib.h> |
#include <stdlib.h> |
#include <string.h> |
#include <string.h> |
|
|
#define KBLOCK 8192 /* Kill grow. */ |
#define KBLOCK 8192 /* Kill grow. */ |
#define GOOD 0 /* Good exit status. */ |
#define GOOD 0 /* Good exit status. */ |
#define SYMBLINK 1 /* Handle symbolic links */ |
#define SYMBLINK 1 /* Handle symbolic links */ |
#define MAXPATH PATH_MAX /* Maximum length of path for chdir */ |
#define MAXPATH PATH_MAX /* Maximum length of path for chdir */ |
|
|
typedef int RSIZE; /* Type for file/region sizes */ |
typedef int RSIZE; /* Type for file/region sizes */ |
typedef short KCHAR; /* Type for internal keystrokes */ |
typedef short KCHAR; /* Type for internal keystrokes */ |
|
|
/* |
/* |
* Macros used by the buffer name making code. |
* Macros used by the buffer name making code. |
|
|
* stops at end of string (or at the next BDC3 character, |
* stops at end of string (or at the next BDC3 character, |
* if defined). BDC2 and BDC3 are mainly for VMS. |
* if defined). BDC2 and BDC3 are mainly for VMS. |
*/ |
*/ |
#define BDC1 '/' /* Buffer names. */ |
#define BDC1 '/' /* Buffer names. */ |
|
|
#define MALLOCROUND(m) (m+=7,m&=~7) /* round up to 8 byte boundry */ |
#define MALLOCROUND(m) (m+=7,m&=~7) /* round up to 8 byte boundry */ |
|
|
#define fncmp strcmp /* file name comparison */ |
#define fncmp strcmp /* file name comparison */ |
#define gettermtype() getenv("TERM") /* determine terminal type */ |
#define gettermtype() getenv("TERM") /* determine terminal type */ |
|
|
struct fileinfo { |
struct fileinfo { |
mode_t fi_mode; |
mode_t fi_mode; |
uid_t fi_uid; |
uid_t fi_uid; |
gid_t short fi_gid; |
gid_t short fi_gid; |
}; |
}; |