xref: /illumos-gate/usr/src/cmd/mailx/hdr/glob.h (revision 84bf06e9e5fd6d61897cc8c298a0f3e807b27094)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License (the "License").
6  * You may not use this file except in compliance with the License.
7  *
8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9  * or http://www.opensolaris.org/os/licensing.
10  * See the License for the specific language governing permissions
11  * and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL HEADER in each
14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15  * If applicable, add the following below this CDDL HEADER, with the
16  * fields enclosed by brackets "[]" replaced with your own identifying
17  * information: Portions Copyright [yyyy] [name of copyright owner]
18  *
19  * CDDL HEADER END
20  */
21 /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
22 /*	  All Rights Reserved  	*/
23 
24 /*
25  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
26  * Use is subject to license terms.
27  */
28 
29 /*
30  * University Copyright- Copyright (c) 1982, 1986, 1988
31  * The Regents of the University of California
32  * All Rights Reserved
33  *
34  * University Acknowledgment- Portions of this document are derived from
35  * software developed by the University of California, Berkeley, and its
36  * contributors.
37  */
38 
39 #ifndef	_HDR_GLOB_H
40 #define	_HDR_GLOB_H
41 
42 /*
43  * mailx -- a modified version of a University of California at Berkeley
44  *	mail program
45  *
46  * A bunch of global variable declarations lie herein.
47  * def.h must be included first.
48  */
49 
50 extern int		Fflag;		/* -F option (followup) */
51 extern int		Hflag;		/* print headers and exit */
52 extern char		*Tflag;		/* -T temp file for netnews */
53 extern int		UnUUCP;		/* -U flag */
54 extern char		**altnames;	/* List of alternate names for user */
55 extern int		askme;		/* ???? */
56 extern int		baud;		/* Output baud rate */
57 extern char		*bflag;		/* Bcc given from non tty */
58 extern char		*binmsg;	/* Message: content unprintable */
59 extern char		*cflag;		/* Cc given from non tty */
60 extern const struct cmd	cmdtab[];	/* ???? */
61 extern int		cond;		/* Current state of conditional exc. */
62 extern NODE		*curptr;	/* ???? */
63 extern int		debug;		/* Debug flag set */
64 extern char		domain[];	/* ???? */
65 extern struct message	*dot;		/* Pointer to current message */
66 extern int		edit;		/* Indicates editing a file */
67 extern char		*editfile;	/* Name of file being edited */
68 extern int		exitflg;	/* -e for mail test */
69 extern NODE		*fplist;	/* ???? */
70 extern struct grouphead	*groups[];	/* Pointer to active groups */
71 extern int		hflag;		/* Sequence number for network -h */
72 extern char		homedir[];	/* Name of home directory */
73 extern char		host[];		/* ???? */
74 extern struct ignore	*ignore[];	/* Pointer to ignored fields */
75 extern int		image;		/* File descriptor for image of msg */
76 extern FILE		*input;		/* Current command input file */
77 extern int		intty;		/* True if standard input a tty */
78 extern int		issysmbox;	/* mailname is a system mailbox */
79 extern FILE		*itf;		/* Input temp file buffer */
80 extern int		lexnumber;	/* Number of TNUMBER from scan() */
81 extern char		lexstring[];	/* String from TSTRING, scan() */
82 extern int		loading;	/* Loading user definitions */
83 extern char		*lockname;	/* named used for /var/mail locking */
84 extern char		*maildir;	/* directory for mail files */
85 extern char		mailname[];	/* Name of /var/mail system mailbox */
86 extern off_t		mailsize;	/* Size of system mailbox */
87 extern int		maxfiles;	/* Maximum number of open files */
88 extern struct message	*message;	/* The actual message structure */
89 extern char		*metanet;	/* ???? */
90 extern int		msgCount;	/* Count of messages read in */
91 extern gid_t		myegid;		/* User's effective gid */
92 extern uid_t		myeuid;		/* User's effective uid */
93 extern char		myname[];	/* My login id */
94 extern pid_t		mypid;		/* Current process id */
95 extern gid_t		myrgid;		/* User's real gid */
96 extern uid_t		myruid;		/* User's real uid */
97 extern int		newsflg;	/* -I option for netnews */
98 extern char		noheader;	/* Suprress initial header listing */
99 extern int		noreset;	/* String resets suspended */
100 extern char		nosrc;		/* Don't source /etc/mail/mailx.rc */
101 extern int		nretained;	/* Number of retained fields */
102 extern int		numberstack[];	/* Stack of regretted numbers */
103 extern char		origname[];	/* Original name of mail file */
104 extern FILE		*otf;		/* Output temp file buffer */
105 extern int		outtty;		/* True if standard output a tty */
106 extern FILE		*pipef;		/* Pipe file we have opened */
107 extern char		*progname;	/* program name (argv[0]) */
108 extern char		*prompt;	/* prompt string */
109 extern int		rcvmode;	/* True if receiving mail */
110 extern int		readonly;	/* Will be unable to rewrite file */
111 extern int		regretp;	/* Pointer to TOS of regret tokens */
112 extern int		regretstack[];	/* Stack of regretted tokens */
113 extern struct ignore	*retain[HSHSIZE]; /* Pointer to retained fields */
114 extern char		*rflag;		/* -r address for network */
115 extern int		rmail;		/* Being called as rmail */
116 extern int		sawcom;		/* Set after first command */
117 extern int		selfsent;	/* User sent self something */
118 extern int		senderr;	/* An error while checking */
119 extern int		rpterr;		/* An error msg was sent to stderr */
120 extern char		*sflag;		/* Subject given from non tty */
121 extern int		sourcing;	/* Currently reading variant file */
122 extern int		space;		/* Current maximum number of messages */
123 extern jmp_buf		srbuf;		/* ???? */
124 extern struct strings	stringdope[];	/* pointer for the salloc routines */
125 extern char		*stringstack[];	/* Stack of regretted strings */
126 extern char		tempEdit[];	/* ???? */
127 extern char		tempMail[];	/* ???? */
128 extern char		tempMesg[];	/* ???? */
129 extern char		tempQuit[];	/* ???? */
130 extern char		tempResid[];	/* temp file in :saved */
131 extern char		tempZedit[];	/* ???? */
132 extern int		tflag;		/* Read headers from text */
133 extern uid_t		uid;		/* The invoker's user id */
134 extern struct utimbuf	*utimep;	/* ???? */
135 extern struct var	*variables[];	/* Pointer to active var list */
136 extern const char *const version;	/* ???? */
137 extern int		receipt_flg;	/* Flag for return receipt */
138 
139 /*
140  * Standard external variables from the C library.
141  */
142 extern char		*optarg;
143 extern int		optind;
144 
145 #endif /* _HDR_GLOB_H */
146