10Sstevel@tonic-gate /* 20Sstevel@tonic-gate * CDDL HEADER START 30Sstevel@tonic-gate * 40Sstevel@tonic-gate * The contents of this file are subject to the terms of the 5*9694SScott.Rotondo@Sun.COM * Common Development and Distribution License (the "License"). 6*9694SScott.Rotondo@Sun.COM * You may not use this file except in compliance with the License. 70Sstevel@tonic-gate * 80Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 100Sstevel@tonic-gate * See the License for the specific language governing permissions 110Sstevel@tonic-gate * and limitations under the License. 120Sstevel@tonic-gate * 130Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 140Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 160Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 170Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 180Sstevel@tonic-gate * 190Sstevel@tonic-gate * CDDL HEADER END 200Sstevel@tonic-gate */ 210Sstevel@tonic-gate /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 220Sstevel@tonic-gate /* All Rights Reserved */ 230Sstevel@tonic-gate 240Sstevel@tonic-gate /* 25*9694SScott.Rotondo@Sun.COM * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 26*9694SScott.Rotondo@Sun.COM * Use is subject to license terms. 270Sstevel@tonic-gate */ 280Sstevel@tonic-gate 290Sstevel@tonic-gate /* 300Sstevel@tonic-gate * University Copyright- Copyright (c) 1982, 1986, 1988 310Sstevel@tonic-gate * The Regents of the University of California 320Sstevel@tonic-gate * All Rights Reserved 330Sstevel@tonic-gate * 340Sstevel@tonic-gate * University Acknowledgment- Portions of this document are derived from 350Sstevel@tonic-gate * software developed by the University of California, Berkeley, and its 360Sstevel@tonic-gate * contributors. 370Sstevel@tonic-gate */ 380Sstevel@tonic-gate 39*9694SScott.Rotondo@Sun.COM #ifndef _HDR_GLOB_H 40*9694SScott.Rotondo@Sun.COM #define _HDR_GLOB_H 410Sstevel@tonic-gate 420Sstevel@tonic-gate /* 430Sstevel@tonic-gate * mailx -- a modified version of a University of California at Berkeley 440Sstevel@tonic-gate * mail program 450Sstevel@tonic-gate * 460Sstevel@tonic-gate * A bunch of global variable declarations lie herein. 470Sstevel@tonic-gate * def.h must be included first. 480Sstevel@tonic-gate */ 490Sstevel@tonic-gate 500Sstevel@tonic-gate extern int Fflag; /* -F option (followup) */ 510Sstevel@tonic-gate extern int Hflag; /* print headers and exit */ 520Sstevel@tonic-gate extern char *Tflag; /* -T temp file for netnews */ 530Sstevel@tonic-gate extern int UnUUCP; /* -U flag */ 540Sstevel@tonic-gate extern char **altnames; /* List of alternate names for user */ 550Sstevel@tonic-gate extern int askme; /* ???? */ 560Sstevel@tonic-gate extern int baud; /* Output baud rate */ 570Sstevel@tonic-gate extern char *bflag; /* Bcc given from non tty */ 580Sstevel@tonic-gate extern char *binmsg; /* Message: content unprintable */ 590Sstevel@tonic-gate extern char *cflag; /* Cc given from non tty */ 600Sstevel@tonic-gate extern const struct cmd cmdtab[]; /* ???? */ 610Sstevel@tonic-gate extern int cond; /* Current state of conditional exc. */ 620Sstevel@tonic-gate extern NODE *curptr; /* ???? */ 630Sstevel@tonic-gate extern int debug; /* Debug flag set */ 640Sstevel@tonic-gate extern char domain[]; /* ???? */ 650Sstevel@tonic-gate extern struct message *dot; /* Pointer to current message */ 660Sstevel@tonic-gate extern int edit; /* Indicates editing a file */ 670Sstevel@tonic-gate extern char *editfile; /* Name of file being edited */ 680Sstevel@tonic-gate extern int exitflg; /* -e for mail test */ 690Sstevel@tonic-gate extern NODE *fplist; /* ???? */ 700Sstevel@tonic-gate extern struct grouphead *groups[]; /* Pointer to active groups */ 710Sstevel@tonic-gate extern int hflag; /* Sequence number for network -h */ 720Sstevel@tonic-gate extern char homedir[]; /* Name of home directory */ 730Sstevel@tonic-gate extern char host[]; /* ???? */ 740Sstevel@tonic-gate extern struct ignore *ignore[]; /* Pointer to ignored fields */ 750Sstevel@tonic-gate extern int image; /* File descriptor for image of msg */ 760Sstevel@tonic-gate extern FILE *input; /* Current command input file */ 770Sstevel@tonic-gate extern int intty; /* True if standard input a tty */ 780Sstevel@tonic-gate extern int issysmbox; /* mailname is a system mailbox */ 790Sstevel@tonic-gate extern FILE *itf; /* Input temp file buffer */ 800Sstevel@tonic-gate extern int lexnumber; /* Number of TNUMBER from scan() */ 810Sstevel@tonic-gate extern char lexstring[]; /* String from TSTRING, scan() */ 820Sstevel@tonic-gate extern int loading; /* Loading user definitions */ 83*9694SScott.Rotondo@Sun.COM extern char *lockname; /* named used for /var/mail locking */ 840Sstevel@tonic-gate extern char *maildir; /* directory for mail files */ 850Sstevel@tonic-gate extern char mailname[]; /* Name of /var/mail system mailbox */ 860Sstevel@tonic-gate extern off_t mailsize; /* Size of system mailbox */ 870Sstevel@tonic-gate extern int maxfiles; /* Maximum number of open files */ 880Sstevel@tonic-gate extern struct message *message; /* The actual message structure */ 890Sstevel@tonic-gate extern char *metanet; /* ???? */ 900Sstevel@tonic-gate extern int msgCount; /* Count of messages read in */ 910Sstevel@tonic-gate extern gid_t myegid; /* User's effective gid */ 920Sstevel@tonic-gate extern uid_t myeuid; /* User's effective uid */ 930Sstevel@tonic-gate extern char myname[]; /* My login id */ 940Sstevel@tonic-gate extern pid_t mypid; /* Current process id */ 950Sstevel@tonic-gate extern gid_t myrgid; /* User's real gid */ 960Sstevel@tonic-gate extern uid_t myruid; /* User's real uid */ 970Sstevel@tonic-gate extern int newsflg; /* -I option for netnews */ 980Sstevel@tonic-gate extern char noheader; /* Suprress initial header listing */ 990Sstevel@tonic-gate extern int noreset; /* String resets suspended */ 1000Sstevel@tonic-gate extern char nosrc; /* Don't source /etc/mail/mailx.rc */ 1010Sstevel@tonic-gate extern int nretained; /* Number of retained fields */ 1020Sstevel@tonic-gate extern int numberstack[]; /* Stack of regretted numbers */ 1030Sstevel@tonic-gate extern char origname[]; /* Original name of mail file */ 1040Sstevel@tonic-gate extern FILE *otf; /* Output temp file buffer */ 1050Sstevel@tonic-gate extern int outtty; /* True if standard output a tty */ 1060Sstevel@tonic-gate extern FILE *pipef; /* Pipe file we have opened */ 1070Sstevel@tonic-gate extern char *progname; /* program name (argv[0]) */ 1080Sstevel@tonic-gate extern char *prompt; /* prompt string */ 1090Sstevel@tonic-gate extern int rcvmode; /* True if receiving mail */ 1100Sstevel@tonic-gate extern int readonly; /* Will be unable to rewrite file */ 1110Sstevel@tonic-gate extern int regretp; /* Pointer to TOS of regret tokens */ 1120Sstevel@tonic-gate extern int regretstack[]; /* Stack of regretted tokens */ 113*9694SScott.Rotondo@Sun.COM extern struct ignore *retain[HSHSIZE]; /* Pointer to retained fields */ 1140Sstevel@tonic-gate extern char *rflag; /* -r address for network */ 1150Sstevel@tonic-gate extern int rmail; /* Being called as rmail */ 1160Sstevel@tonic-gate extern int sawcom; /* Set after first command */ 1170Sstevel@tonic-gate extern int selfsent; /* User sent self something */ 1180Sstevel@tonic-gate extern int senderr; /* An error while checking */ 1190Sstevel@tonic-gate extern int rpterr; /* An error msg was sent to stderr */ 1200Sstevel@tonic-gate extern char *sflag; /* Subject given from non tty */ 1210Sstevel@tonic-gate extern int sourcing; /* Currently reading variant file */ 1220Sstevel@tonic-gate extern int space; /* Current maximum number of messages */ 1230Sstevel@tonic-gate extern jmp_buf srbuf; /* ???? */ 1240Sstevel@tonic-gate extern struct strings stringdope[]; /* pointer for the salloc routines */ 1250Sstevel@tonic-gate extern char *stringstack[]; /* Stack of regretted strings */ 1260Sstevel@tonic-gate extern char tempEdit[]; /* ???? */ 1270Sstevel@tonic-gate extern char tempMail[]; /* ???? */ 1280Sstevel@tonic-gate extern char tempMesg[]; /* ???? */ 1290Sstevel@tonic-gate extern char tempQuit[]; /* ???? */ 1300Sstevel@tonic-gate extern char tempResid[]; /* temp file in :saved */ 1310Sstevel@tonic-gate extern char tempZedit[]; /* ???? */ 1320Sstevel@tonic-gate extern int tflag; /* Read headers from text */ 1330Sstevel@tonic-gate extern uid_t uid; /* The invoker's user id */ 1340Sstevel@tonic-gate extern struct utimbuf *utimep; /* ???? */ 1350Sstevel@tonic-gate extern struct var *variables[]; /* Pointer to active var list */ 1360Sstevel@tonic-gate extern const char *const version; /* ???? */ 1370Sstevel@tonic-gate extern int receipt_flg; /* Flag for return receipt */ 1380Sstevel@tonic-gate 1390Sstevel@tonic-gate /* 1400Sstevel@tonic-gate * Standard external variables from the C library. 1410Sstevel@tonic-gate */ 1420Sstevel@tonic-gate extern char *optarg; 1430Sstevel@tonic-gate extern int optind; 144*9694SScott.Rotondo@Sun.COM 145*9694SScott.Rotondo@Sun.COM #endif /* _HDR_GLOB_H */ 146