File: sysdef.h

package info (click to toggle)
ng 1.5~beta1-3
  • links: PTS
  • area: main
  • in suites: lenny, squeeze, wheezy
  • size: 2,820 kB
  • ctags: 4,225
  • sloc: ansic: 43,209; asm: 3,150; sh: 2,539; cpp: 1,234; makefile: 625
file content (69 lines) | stat: -rw-r--r-- 2,043 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/* $Id: sysdef.h,v 1.2 2000/12/14 18:10:47 amura Exp $ */
/*
 *		System V system header file
 */

/*
 * $Log: sysdef.h,v $
 * Revision 1.2  2000/12/14 18:10:47  amura
 * filename length become flexible
 *
 * Revision 1.1.1.1  2000/06/27 01:47:59  amura
 * import to CVS
 *
 */

#include <stdio.h>
#include <unistd.h>		/* 00.04.15 by amura		*/

#define	HAVE_GETCWD

#define	KBLOCK	8192			/* Kill grow.			*/
#define	GOOD	0			/* Good exit status.		*/
#ifndef	NO_SHELL	/* 91.01.10  by K.Maeda */
#define	CMDLINELENGTH	NFILEN		/* Maximum length of shell command. */
#endif	/* NO_SHELL */
#define	BSMAP	FALSE			/* Bs map feature can use.	*/
					/* (default mode is bsmap off)	*/
#define	MAKEBACKUP	TRUE		/* Making backup file is on.	*/

typedef long	RSIZE;			/* Type for file/region sizes	*/
typedef short	KCHAR;			/* Type for internal keystrokes	*/

#if 0
#ifdef _POSIX_JOB_CONTROL		/* This is trick */
# if (0 - _POSIX_JOB_CONTROL - 1) != -1
#  define HAVE_GETSID
# endif
#endif
#endif

/*
 * Macros used by the buffer name making code.
 * Start at the end of the file name, scan to the left
 * until BDC1 (or BDC2, if defined) is reached. The buffer
 * name starts just to the right of that location, and
 * stops at end of string (or at the next BDC3 character,
 * if defined). BDC2 and BDC3 are mainly for VMS.
 */
#define	BDC1	'/'			/* Buffer names.		*/

#ifdef CANNA
#define SYSINIT canna_init()
#define SYSCLEANUP canna_end()
#endif

#define MALLOCROUND(m)	(m+=7,m&=~7)	/* round up to 8 byte boundry	*/

#define	fncmp		strcmp		/* file name comparison		*/
#define bcopy(s,d,n)	memcpy(d,s,n)	/* memory-to-memory copy	*/
#define bzero(s,n)	memset(s,0,n)	/* 91.01.21  Add by H.Kaneko.	*/
#define bcmp(s,d,n)	memcmp(s,d,n)	/* 91.02.04  Add by Y.Nimura.	*/
					/* 91.02.04  strncmp -> memcmp	*/
					/*		by S.Yoshida	*/
#ifndef SVR2		/* SVID2(==SVR3) has rmdir. 00.04.03 by amura	*/
#define	unlinkdir(fn)	rmdir(fn)	/* unlink directory		*/
#endif
char *getenv();
#define	gettermtype()	getenv("TERM")	/* determine terminal type	*/
char *getcwd();