17c478bd9Sstevel@tonic-gate /* 27c478bd9Sstevel@tonic-gate * CDDL HEADER START 37c478bd9Sstevel@tonic-gate * 47c478bd9Sstevel@tonic-gate * The contents of this file are subject to the terms of the 5*d67944fbSScott Rotondo * Common Development and Distribution License (the "License"). 6*d67944fbSScott Rotondo * You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate * 87c478bd9Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate * See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate * and limitations under the License. 127c478bd9Sstevel@tonic-gate * 137c478bd9Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate * 197c478bd9Sstevel@tonic-gate * CDDL HEADER END 207c478bd9Sstevel@tonic-gate */ 217c478bd9Sstevel@tonic-gate /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 227c478bd9Sstevel@tonic-gate /* All Rights Reserved */ 237c478bd9Sstevel@tonic-gate 247c478bd9Sstevel@tonic-gate /* 25*d67944fbSScott Rotondo * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 26*d67944fbSScott Rotondo * Use is subject to license terms. 277c478bd9Sstevel@tonic-gate */ 287c478bd9Sstevel@tonic-gate 297c478bd9Sstevel@tonic-gate /* 307c478bd9Sstevel@tonic-gate * University Copyright- Copyright (c) 1982, 1986, 1988 317c478bd9Sstevel@tonic-gate * The Regents of the University of California 327c478bd9Sstevel@tonic-gate * All Rights Reserved 337c478bd9Sstevel@tonic-gate * 347c478bd9Sstevel@tonic-gate * University Acknowledgment- Portions of this document are derived from 357c478bd9Sstevel@tonic-gate * software developed by the University of California, Berkeley, and its 367c478bd9Sstevel@tonic-gate * contributors. 377c478bd9Sstevel@tonic-gate */ 387c478bd9Sstevel@tonic-gate 39*d67944fbSScott Rotondo #ifndef _HDR_GLOB_H 40*d67944fbSScott Rotondo #define _HDR_GLOB_H 417c478bd9Sstevel@tonic-gate 427c478bd9Sstevel@tonic-gate /* 437c478bd9Sstevel@tonic-gate * mailx -- a modified version of a University of California at Berkeley 447c478bd9Sstevel@tonic-gate * mail program 457c478bd9Sstevel@tonic-gate * 467c478bd9Sstevel@tonic-gate * A bunch of global variable declarations lie herein. 477c478bd9Sstevel@tonic-gate * def.h must be included first. 487c478bd9Sstevel@tonic-gate */ 497c478bd9Sstevel@tonic-gate 507c478bd9Sstevel@tonic-gate extern int Fflag; /* -F option (followup) */ 517c478bd9Sstevel@tonic-gate extern int Hflag; /* print headers and exit */ 527c478bd9Sstevel@tonic-gate extern char *Tflag; /* -T temp file for netnews */ 537c478bd9Sstevel@tonic-gate extern int UnUUCP; /* -U flag */ 547c478bd9Sstevel@tonic-gate extern char **altnames; /* List of alternate names for user */ 557c478bd9Sstevel@tonic-gate extern int askme; /* ???? */ 567c478bd9Sstevel@tonic-gate extern int baud; /* Output baud rate */ 577c478bd9Sstevel@tonic-gate extern char *bflag; /* Bcc given from non tty */ 587c478bd9Sstevel@tonic-gate extern char *binmsg; /* Message: content unprintable */ 597c478bd9Sstevel@tonic-gate extern char *cflag; /* Cc given from non tty */ 607c478bd9Sstevel@tonic-gate extern const struct cmd cmdtab[]; /* ???? */ 617c478bd9Sstevel@tonic-gate extern int cond; /* Current state of conditional exc. */ 627c478bd9Sstevel@tonic-gate extern NODE *curptr; /* ???? */ 637c478bd9Sstevel@tonic-gate extern int debug; /* Debug flag set */ 647c478bd9Sstevel@tonic-gate extern char domain[]; /* ???? */ 657c478bd9Sstevel@tonic-gate extern struct message *dot; /* Pointer to current message */ 667c478bd9Sstevel@tonic-gate extern int edit; /* Indicates editing a file */ 677c478bd9Sstevel@tonic-gate extern char *editfile; /* Name of file being edited */ 687c478bd9Sstevel@tonic-gate extern int exitflg; /* -e for mail test */ 697c478bd9Sstevel@tonic-gate extern NODE *fplist; /* ???? */ 707c478bd9Sstevel@tonic-gate extern struct grouphead *groups[]; /* Pointer to active groups */ 717c478bd9Sstevel@tonic-gate extern int hflag; /* Sequence number for network -h */ 727c478bd9Sstevel@tonic-gate extern char homedir[]; /* Name of home directory */ 737c478bd9Sstevel@tonic-gate extern char host[]; /* ???? */ 747c478bd9Sstevel@tonic-gate extern struct ignore *ignore[]; /* Pointer to ignored fields */ 757c478bd9Sstevel@tonic-gate extern int image; /* File descriptor for image of msg */ 767c478bd9Sstevel@tonic-gate extern FILE *input; /* Current command input file */ 777c478bd9Sstevel@tonic-gate extern int intty; /* True if standard input a tty */ 787c478bd9Sstevel@tonic-gate extern int issysmbox; /* mailname is a system mailbox */ 797c478bd9Sstevel@tonic-gate extern FILE *itf; /* Input temp file buffer */ 807c478bd9Sstevel@tonic-gate extern int lexnumber; /* Number of TNUMBER from scan() */ 817c478bd9Sstevel@tonic-gate extern char lexstring[]; /* String from TSTRING, scan() */ 827c478bd9Sstevel@tonic-gate extern int loading; /* Loading user definitions */ 83*d67944fbSScott Rotondo extern char *lockname; /* named used for /var/mail locking */ 847c478bd9Sstevel@tonic-gate extern char *maildir; /* directory for mail files */ 857c478bd9Sstevel@tonic-gate extern char mailname[]; /* Name of /var/mail system mailbox */ 867c478bd9Sstevel@tonic-gate extern off_t mailsize; /* Size of system mailbox */ 877c478bd9Sstevel@tonic-gate extern int maxfiles; /* Maximum number of open files */ 887c478bd9Sstevel@tonic-gate extern struct message *message; /* The actual message structure */ 897c478bd9Sstevel@tonic-gate extern char *metanet; /* ???? */ 907c478bd9Sstevel@tonic-gate extern int msgCount; /* Count of messages read in */ 917c478bd9Sstevel@tonic-gate extern gid_t myegid; /* User's effective gid */ 927c478bd9Sstevel@tonic-gate extern uid_t myeuid; /* User's effective uid */ 937c478bd9Sstevel@tonic-gate extern char myname[]; /* My login id */ 947c478bd9Sstevel@tonic-gate extern pid_t mypid; /* Current process id */ 957c478bd9Sstevel@tonic-gate extern gid_t myrgid; /* User's real gid */ 967c478bd9Sstevel@tonic-gate extern uid_t myruid; /* User's real uid */ 977c478bd9Sstevel@tonic-gate extern int newsflg; /* -I option for netnews */ 987c478bd9Sstevel@tonic-gate extern char noheader; /* Suprress initial header listing */ 997c478bd9Sstevel@tonic-gate extern int noreset; /* String resets suspended */ 1007c478bd9Sstevel@tonic-gate extern char nosrc; /* Don't source /etc/mail/mailx.rc */ 1017c478bd9Sstevel@tonic-gate extern int nretained; /* Number of retained fields */ 1027c478bd9Sstevel@tonic-gate extern int numberstack[]; /* Stack of regretted numbers */ 1037c478bd9Sstevel@tonic-gate extern char origname[]; /* Original name of mail file */ 1047c478bd9Sstevel@tonic-gate extern FILE *otf; /* Output temp file buffer */ 1057c478bd9Sstevel@tonic-gate extern int outtty; /* True if standard output a tty */ 1067c478bd9Sstevel@tonic-gate extern FILE *pipef; /* Pipe file we have opened */ 1077c478bd9Sstevel@tonic-gate extern char *progname; /* program name (argv[0]) */ 1087c478bd9Sstevel@tonic-gate extern char *prompt; /* prompt string */ 1097c478bd9Sstevel@tonic-gate extern int rcvmode; /* True if receiving mail */ 1107c478bd9Sstevel@tonic-gate extern int readonly; /* Will be unable to rewrite file */ 1117c478bd9Sstevel@tonic-gate extern int regretp; /* Pointer to TOS of regret tokens */ 1127c478bd9Sstevel@tonic-gate extern int regretstack[]; /* Stack of regretted tokens */ 1137c478bd9Sstevel@tonic-gate extern struct ignore *retain[HSHSIZE]; /* Pointer to retained fields */ 1147c478bd9Sstevel@tonic-gate extern char *rflag; /* -r address for network */ 1157c478bd9Sstevel@tonic-gate extern int rmail; /* Being called as rmail */ 1167c478bd9Sstevel@tonic-gate extern int sawcom; /* Set after first command */ 1177c478bd9Sstevel@tonic-gate extern int selfsent; /* User sent self something */ 1187c478bd9Sstevel@tonic-gate extern int senderr; /* An error while checking */ 1197c478bd9Sstevel@tonic-gate extern int rpterr; /* An error msg was sent to stderr */ 1207c478bd9Sstevel@tonic-gate extern char *sflag; /* Subject given from non tty */ 1217c478bd9Sstevel@tonic-gate extern int sourcing; /* Currently reading variant file */ 1227c478bd9Sstevel@tonic-gate extern int space; /* Current maximum number of messages */ 1237c478bd9Sstevel@tonic-gate extern jmp_buf srbuf; /* ???? */ 1247c478bd9Sstevel@tonic-gate extern struct strings stringdope[]; /* pointer for the salloc routines */ 1257c478bd9Sstevel@tonic-gate extern char *stringstack[]; /* Stack of regretted strings */ 1267c478bd9Sstevel@tonic-gate extern char tempEdit[]; /* ???? */ 1277c478bd9Sstevel@tonic-gate extern char tempMail[]; /* ???? */ 1287c478bd9Sstevel@tonic-gate extern char tempMesg[]; /* ???? */ 1297c478bd9Sstevel@tonic-gate extern char tempQuit[]; /* ???? */ 1307c478bd9Sstevel@tonic-gate extern char tempResid[]; /* temp file in :saved */ 1317c478bd9Sstevel@tonic-gate extern char tempZedit[]; /* ???? */ 1327c478bd9Sstevel@tonic-gate extern int tflag; /* Read headers from text */ 1337c478bd9Sstevel@tonic-gate extern uid_t uid; /* The invoker's user id */ 1347c478bd9Sstevel@tonic-gate extern struct utimbuf *utimep; /* ???? */ 1357c478bd9Sstevel@tonic-gate extern struct var *variables[]; /* Pointer to active var list */ 1367c478bd9Sstevel@tonic-gate extern const char *const version; /* ???? */ 1377c478bd9Sstevel@tonic-gate extern int receipt_flg; /* Flag for return receipt */ 1387c478bd9Sstevel@tonic-gate 1397c478bd9Sstevel@tonic-gate /* 1407c478bd9Sstevel@tonic-gate * Standard external variables from the C library. 1417c478bd9Sstevel@tonic-gate */ 1427c478bd9Sstevel@tonic-gate extern char *optarg; 1437c478bd9Sstevel@tonic-gate extern int optind; 144*d67944fbSScott Rotondo 145*d67944fbSScott Rotondo #endif /* _HDR_GLOB_H */ 146