File: shconfig.h

package info (click to toggle)
zmailer 2.99.55-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 19,516 kB
  • ctags: 9,694
  • sloc: ansic: 120,953; sh: 3,862; makefile: 3,166; perl: 2,695; python: 115; awk: 22
file content (87 lines) | stat: -rw-r--r-- 2,989 bytes parent folder | download | duplicates (2)
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
/*
 *	Copyright 1990 by Rayan S. Zachariassen, all rights reserved.
 *	This will be free software, but only when it is finished.
 */

#include "zmalloc.h"
#define	STATIC static

/* configurable language-independent stuff */
#define	MAILCHECK_INTERVAL	600	/* 10 minute mail check interval */
#define	MAILPATH_MSG_SEPARATOR	'%'	/* MAILPATH=/foo%message:/bar */
#define	CHARSETSIZE		256	/* 8-bit ASCII/EBCDIC */
#define	DEFAULT_OPEN_MASK	0644	/* 3rd parameter to open() */
#define	MAXNFILE		128	/* max # file descriptors dealt with */
#define	MAXNPROC		128	/* max # outstanding child processes */
#define	ENVIRONMENT		":env"	/* magic name for environment */
#define	MAXNSCOPES		32	/* max # of scopes (optimizer limit) */
#define	MAXNCOMMANDS		32	/* max # nested command descriptors */
#define	DEFAULT_PS1		"$ "
#define	DEFAULT_PS2		"> "
#define	DEFAULT_ROOT_PS1	"# "
#define	DEFAULT_IFS		" \t\n"
#define	DEFAULT_PATH		"/usr/ucb:/bin:/usr/bin:"
#define	LOGIN_SCRIPT "\
if [ -f /etc/profile ]; then\n\
	. /etc/profile;\n\
fi;\n\
if [ -f $HOME/.profile ]; then\n\
	. $HOME/.profile;\n\
fi\n"

/* standard variables */
#define	CDPATH			"CDPATH"
#define	HOME			"HOME"
#define	IFS			"IFS"
#define	MAIL			"MAIL"
#define	MAILPATH		"MAILPATH"
#define	MAILCHECK		"MAILCHECK"
#define	OPTARG			"OPTARG"
#define	OPTIND			"OPTIND"
#define	PATH			"PATH"
#define	PS1			"PS1"
#define	PS2			"PS2"

/* messages */

/* mail.c */
#define	YOU_HAVE_MAIL		"you have mail"
#define	ILLEGAL_MAILCHECK_VALUE	"illegal MAILCHECK value"
/* trap.c */
#define	BAD_TRAP		"bad trap"
/* test.c */
#define	TEST_SYNTAX_ERROR	"syntax error at"
/* builtins.c */
#define	USAGE_RETURN		"Usage: %s [ # | (...) ]\n"
#define	NO_HOME_DIRECTORY	"no home directory"
#define	USAGE_CD		"Usage: %s [ directory ]\n"
#define	NO_HASHING_INFORMATION	"no hashing information\n"
#define	USAGE_READ		"Usage: %s [ variable ... ]\n"
#define	USAGE_INCLUDE		"Usage: %s script\n"
#define	NOT_FOUND		"not found"
#define	USAGE_BCE		"Usage: %s [ # ]\n"
#define	NEGATIVE_VALUE		"negative value"
#define	EXPORT			"export"
#define	USAGE_GETOPTS		"Usage: %s optstring name [ arguments ... ]\n"
#define	USAGE_SHIFT		"Usage: %s [ # ]\n"
#define	USAGE_UMASK		"Usage: %s [ #o ]\n"
#define	BAD_OPTIONS		"bad option(s)"
#define	USAGE_UNSET		"Usage: %s [ variable ... ]\n"
#define	CANNOT_UNSET		"cannot unset"
#define	CORE_DUMPED		" - core dumped"
#define	USAGE_WAIT		"Usage: %s [ pid ]\n"
#define	USAGE_TIMES		"Usage: %s\n"
#define	USAGE_SLEEP		"Usage: %s #seconds\n"
#define	NULL_NAME		"null name\n"
#define	IS_A_SHELL_BUILTIN	"is a shell builtin"
#define	IS_A_SHELL_FUNCTION	"is a shell function"
#define	IS			"is"
#define USAGE_EXPR		"Usage: %s str ':' REGEXPR\n"
/* execute.c */
#define	CANNOT_FORK		"cannot fork"
#define	EXISTS_BUT_NOT_FIFO	"exists but is not a fifo"
#define	CANNOT_MKNOD		"cannot mknod"
#define	CANNOT_OPEN		"cannot open"
#define	PIPE			"pipe"
/* sh.c */
#define	USAGE	"Usage: %s [ -isaefhkntuvx[CGILMOPRSY] ] [ -c command ] [ argument ... ]\n"