glob.h revision 8883f1c270cc8e33c18dd088e744840092b47bbb
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* University Copyright- Copyright (c) 1982, 1986, 1988
* The Regents of the University of California
* All Rights Reserved
*
* University Acknowledgment- Portions of this document are derived from
* software developed by the University of California, Berkeley, and its
* contributors.
*/
#ifndef _HDR_GLOB_H
#define _HDR_GLOB_H
/*
* mailx -- a modified version of a University of California at Berkeley
* mail program
*
* A bunch of global variable declarations lie herein.
* def.h must be included first.
*/
extern int Fflag; /* -F option (followup) */
extern int Hflag; /* print headers and exit */
extern char *Tflag; /* -T temp file for netnews */
extern int UnUUCP; /* -U flag */
extern char **altnames; /* List of alternate names for user */
extern int askme; /* ???? */
extern int baud; /* Output baud rate */
extern char *bflag; /* Bcc given from non tty */
extern char *binmsg; /* Message: content unprintable */
extern char *cflag; /* Cc given from non tty */
extern int cond; /* Current state of conditional exc. */
extern int debug; /* Debug flag set */
extern char domain[]; /* ???? */
extern int edit; /* Indicates editing a file */
extern char *editfile; /* Name of file being edited */
extern int exitflg; /* -e for mail test */
extern int hflag; /* Sequence number for network -h */
extern char homedir[]; /* Name of home directory */
extern char host[]; /* ???? */
extern int image; /* File descriptor for image of msg */
extern int intty; /* True if standard input a tty */
extern int issysmbox; /* mailname is a system mailbox */
extern int lexnumber; /* Number of TNUMBER from scan() */
extern char lexstring[]; /* String from TSTRING, scan() */
extern int loading; /* Loading user definitions */
extern char *maildir; /* directory for mail files */
extern int maxfiles; /* Maximum number of open files */
extern char *metanet; /* ???? */
extern int msgCount; /* Count of messages read in */
extern char myname[]; /* My login id */
extern int newsflg; /* -I option for netnews */
extern char noheader; /* Suprress initial header listing */
extern int noreset; /* String resets suspended */
extern int nretained; /* Number of retained fields */
extern int numberstack[]; /* Stack of regretted numbers */
extern char origname[]; /* Original name of mail file */
extern int outtty; /* True if standard output a tty */
extern char *progname; /* program name (argv[0]) */
extern char *prompt; /* prompt string */
extern int rcvmode; /* True if receiving mail */
extern int readonly; /* Will be unable to rewrite file */
extern int regretp; /* Pointer to TOS of regret tokens */
extern int regretstack[]; /* Stack of regretted tokens */
extern char *rflag; /* -r address for network */
extern int rmail; /* Being called as rmail */
extern int sawcom; /* Set after first command */
extern int selfsent; /* User sent self something */
extern int senderr; /* An error while checking */
extern int rpterr; /* An error msg was sent to stderr */
extern char *sflag; /* Subject given from non tty */
extern int sourcing; /* Currently reading variant file */
extern int space; /* Current maximum number of messages */
extern char *stringstack[]; /* Stack of regretted strings */
extern char tempEdit[]; /* ???? */
extern char tempMail[]; /* ???? */
extern char tempMesg[]; /* ???? */
extern char tempQuit[]; /* ???? */
extern char tempResid[]; /* temp file in :saved */
extern char tempZedit[]; /* ???? */
extern int tflag; /* Read headers from text */
extern const char *const version; /* ???? */
extern int receipt_flg; /* Flag for return receipt */
/*
* Standard external variables from the C library.
*/
extern char *optarg;
extern int optind;
#endif /* _HDR_GLOB_H */