1
/* $Id: sysdef.h,v 1.5.2.1 2003/02/23 13:58:14 amura Exp $ */
3
* unix based systems (for configure)
8
* Revision 1.5.2.1 2003/02/23 13:58:14 amura
9
* canna_init() must be called after setttysize() on ttyio.c
11
* Revision 1.5 2001/03/02 08:48:32 amura
12
* now AUTOSAVE feature implemented almost all (except for WIN32
14
* Revision 1.4 2001/02/18 19:29:04 amura
15
* split dir.c to port depend/independ
17
* Revision 1.3 2000/12/14 18:14:12 amura
18
* filename length become flexible
20
* Revision 1.2 2000/12/01 10:07:09 amura
23
* Revision 1.1 2000/11/19 18:35:00 amura
24
* support GNU configure system
30
#include <sys/types.h>
33
#ifdef HAVE_SYS_PARAM_H
34
#include <sys/param.h>
37
/* for use alloca() */
45
# ifndef alloca /* predefined by HP cc +Olibcalls */
52
#define KBLOCK 8192 /* Kill grow. */
53
#define GOOD 0 /* Good exit status. */
55
#define CMDLINELENGTH NFILEN /* Maximum length of shell command. */
57
#define BSMAP FALSE /* Bs map feature can use. */
58
/* (default mode is bsmap off) */
59
#define MAKEBACKUP TRUE /* Making backup file is on. */
60
#define ITIMER TRUE /* Interval timer support */
62
typedef long RSIZE; /* Type for file/region sizes */
63
typedef short KCHAR; /* Type for internal keystrokes */
66
# define FD_SET(fd,fdsp) ((*fdsp) |= (1<<(fd)))
67
# define FD_ZERO(fdsp) ((*fdsp) = 0)
71
* Macros used by the buffer name making code.
72
* Start at the end of the file name, scan to the left
73
* until BDC1 (or BDC2, if defined) is reached. The buffer
74
* name starts just to the right of that location, and
75
* stops at end of string (or at the next BDC3 character,
76
* if defined). BDC2 and BDC3 are mainly for VMS.
78
#define BDC1 '/' /* Buffer names. */
80
#define MALLOCROUND(m) (m+=7,m&=~7) /* round up to 8 byte boundry */
82
#define fncmp strcmp /* file name comparison */
84
#define bcopy(s,d,n) memcpy(d,s,n)
87
#define bzero(s,n) memset(s,0,n)
90
#define bcmp(s,d,n) memcmp(s,d,n)
93
#define unlinkdir(fn) rmdir(fn) /* unlink directory */
96
#define gettermtype() getenv("TERM") /* determine terminal type */
98
#define dirend() (VOID)0