[BACK]Return to extern.h CVS log [TXT][DIR] Up to [local] / src / usr.bin / mail

Annotation of src/usr.bin/mail/extern.h, Revision 1.27

1.27    ! martynas    1: /*     $OpenBSD: extern.h,v 1.26 2008/07/15 19:23:26 martynas Exp $    */
1.6       millert     2: /*     $NetBSD: extern.h,v 1.7 1997/07/09 05:22:00 mikel Exp $ */
1.2       niklas      3:
1.1       deraadt     4: /*-
                      5:  * Copyright (c) 1992, 1993
                      6:  *     The Regents of the University of California.  All rights reserved.
                      7:  *
                      8:  * Redistribution and use in source and binary forms, with or without
                      9:  * modification, are permitted provided that the following conditions
                     10:  * are met:
                     11:  * 1. Redistributions of source code must retain the above copyright
                     12:  *    notice, this list of conditions and the following disclaimer.
                     13:  * 2. Redistributions in binary form must reproduce the above copyright
                     14:  *    notice, this list of conditions and the following disclaimer in the
                     15:  *    documentation and/or other materials provided with the distribution.
1.21      millert    16:  * 3. Neither the name of the University nor the names of its contributors
1.1       deraadt    17:  *    may be used to endorse or promote products derived from this software
                     18:  *    without specific prior written permission.
                     19:  *
                     20:  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
                     21:  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
                     22:  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
                     23:  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
                     24:  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
                     25:  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
                     26:  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
                     27:  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
                     28:  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
                     29:  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
                     30:  * SUCH DAMAGE.
                     31:  *
1.6       millert    32:  *     @(#)extern.h    8.2 (Berkeley) 4/20/95
1.27    ! martynas   33:  *     $OpenBSD: extern.h,v 1.26 2008/07/15 19:23:26 martynas Exp $
1.1       deraadt    34:  */
                     35:
1.3       deraadt    36: struct name;
1.19      millert    37: struct name *cat(struct name *, struct name *);
                     38: struct name *delname(struct name *, char *);
                     39: struct name *elide(struct name *);
                     40: struct name *extract(char *, int);
1.3       deraadt    41: struct grouphead;
1.19      millert    42: struct name *gexpand(struct name *, struct grouphead *, int, int);
                     43: struct name *nalloc(char *, int);
1.3       deraadt    44: struct header;
1.19      millert    45: struct name *outof(struct name *, FILE *, struct header *);
                     46: struct name *put(struct name *, struct name *);
                     47: struct name *tailof(struct name *);
                     48: struct name *usermap(struct name *);
                     49: FILE   *Fdopen(int, char *);
                     50: FILE   *Fopen(char *, char *);
                     51: FILE   *Popen(char *, char *);
                     52: FILE   *collect(struct header *, int);
                     53: char   *copy(char *, char *);
                     54: char   *copyin(char *, char **);
                     55: char   *detract(struct name *, int);
                     56: char   *expand(char *);
                     57: char   *getdeadletter(void);
                     58: char   *getname(uid_t);
1.3       deraadt    59: struct message;
1.19      millert    60: char   *hfield(char *, struct message *);
                     61: FILE   *infix(struct header *, FILE *);
                     62: char   *ishfield(char *, char *, char *);
                     63: char   *name1(struct message *, int);
                     64: char   *nameof(struct message *, int);
                     65: char   *nextword(char *, char *);
                     66: char   *readtty(char *, char *);
                     67: char   *reedit(char *);
                     68: FILE   *run_editor(FILE *, off_t, int, int);
                     69: char   *salloc(int);
                     70: char   *savestr(char *);
                     71: FILE   *setinput(struct message *);
                     72: char   *skin(char *);
                     73: char   *skip_comment(char *);
                     74: char   *snarf(char *, int *);
                     75: char   *username(void);
                     76: char   *value(char *);
                     77: char   *vcopy(char *);
                     78: char   *yankword(char *, char *);
                     79: int     Fclose(FILE *);
                     80: int     More(void *);
                     81: int     Pclose(FILE *);
                     82: int     Respond(void *);
                     83: int     Type(void *);
                     84: int     _Respond(int *);
                     85: int     _respond(int *);
                     86: void    alter(char *);
                     87: int     alternates(void *);
                     88: void    announce(void);
                     89: int     append(struct message *, FILE *);
                     90: int     argcount(char **);
                     91: void    assign(char *, char *);
                     92: int     bangexp(char *, size_t);
                     93: int     blankline(char *);
                     94: int     charcount(char *, int);
                     95: int     check(int, int);
                     96: void    clearnew(void);
                     97: void    close_all_files(void);
                     98: int     cmatch(char *, char *);
                     99: int     collabort(void);
                    100: void    commands(void);
                    101: int     copycmd(void *);
                    102: int     count(struct name *);
1.23      deraadt   103: int     deletecmd(void *);
1.19      millert   104: int     delm(int *);
                    105: int     deltype(void *);
                    106: void    demail(void);
                    107: void    dointr(void);
                    108: int     dosh(void *);
                    109: int     echo(void *);
                    110: int     edit1(int *, int);
                    111: int     editor(void *);
                    112: int     edstop(void);
                    113: int     elsecmd(void *);
                    114: int     endifcmd(void *);
                    115: int     evalcol(int);
                    116: int     execute(char *, int);
                    117: int     exwrite(char *, FILE *, int);
                    118: void    fail(char *, char *);
                    119: int     file(void *);
1.1       deraadt   120: struct grouphead *
1.19      millert   121:         findgroup(char *);
                    122: void    findmail(char *, char *, int);
                    123: void    fioint(int);
                    124: int     first(int, int);
                    125: void    fixhead(struct header *, struct name *);
                    126: void    fmt(char *, struct name *, FILE *, int);
                    127: int     folders(void *);
                    128: int     forward(char *, FILE *, char *, int);
                    129: void    free_child(pid_t);
                    130: int     from(void *);
                    131: off_t   fsize(FILE *);
                    132: int     getfold(char *, int);
                    133: int     gethfield(FILE *, char *, int, char **);
                    134: int     gethfromtty(struct header *, int);
                    135: int     getmsglist(char *, int *, int);
                    136: int     getrawlist(char *, char **, int);
                    137: uid_t   getuserid(char *);
                    138: int     grabh(struct header *, int);
                    139: int     group(void *);
                    140: int     hash(char *);
                    141: void    hdrint(int);
                    142: int     headers(void *);
                    143: int     help(void *);
                    144: void    holdsigs(void);
                    145: int     ifcmd(void *);
                    146: int     igfield(void *);
1.3       deraadt   147: struct ignoretab;
1.19      millert   148: int     ignore1(char **, struct ignoretab *, char *);
                    149: int     ignoresig(int, struct sigaction *, sigset_t *);
                    150: int     igshow(struct ignoretab *, char *);
                    151: void    intr(int);
                    152: int     inc(void *);
                    153: int     incfile(void);
                    154: int     isdate(char *);
                    155: int     isdir(char *);
                    156: int     isfileaddr(char *);
                    157: int     ishead(char *);
                    158: int     isign(char *, struct ignoretab *);
                    159: int     isprefix(char *, char *);
                    160: size_t  istrlcpy(char *, const char *, size_t);
1.2       niklas    161: const struct cmd *
1.19      millert   162:         lex(char *);
                    163: void    load(char *);
1.1       deraadt   164: struct var *
1.19      millert   165:         lookup(char *);
                    166: int     mail (struct name *, struct name *, struct name *, struct name *,
                    167:               char *);
                    168: void    mail1(struct header *, int);
                    169: void    makemessage(FILE *, int);
                    170: void    mark(int);
                    171: int     markall(char *, int);
                    172: int     marknew(void *);
                    173: int     matchsender(char *, int);
                    174: int     matchsubj(char *, int);
                    175: int     mboxit(void *);
                    176: int     member(char *, struct ignoretab *);
                    177: void    mesedit(FILE *, int);
                    178: void    mespipe(FILE *, char *);
                    179: int     messize(void *);
                    180: int     metamess(int, int);
                    181: int     more(void *);
                    182: int     newfileinfo(int);
                    183: int     next(void *);
                    184: int     null(void *);
1.3       deraadt   185: struct headline;
1.19      millert   186: void    parse(char *, struct headline *, char *);
                    187: int     pcmdlist(void *);
                    188: int     pdot(void *);
                    189: int     pipeit(void *, void *);
                    190: void    prepare_child(sigset_t *, int, int);
                    191: int     preserve(void *);
                    192: void    prettyprint(struct name *);
                    193: void    printgroup(char *);
                    194: void    printhead(int);
                    195: int     puthead(struct header *, FILE *, int);
                    196: int     putline(FILE *, char *, int);
                    197: int     pversion(void *);
                    198: int     quit(void);
                    199: int     quitcmd(void *);
                    200: int     readline(FILE *, char *, int, int *);
                    201: void    register_file(FILE *, int, pid_t);
                    202: void    regret(int);
                    203: void    relsesigs(void);
                    204: int     respond(void *);
                    205: int     retfield(void *);
                    206: int     rexit(void *);
                    207: int     rm(char *);
                    208: int     run_command(char *cmd, sigset_t *nset, int infd, int outfd, ...);
                    209: int     save(void *);
                    210: int     save1(char *, int, char *, struct ignoretab *);
                    211: void    savedeadletter(FILE *);
                    212: int     saveigfield(void *);
                    213: int     savemail(char *, FILE *);
                    214: int     saveretfield(void *);
                    215: int     scan(char **);
                    216: void    scaninit(void);
                    217: int     schdir(void *);
                    218: int     screensize(void);
                    219: int     scroll(void *);
1.20      millert   220: void    sendint(int);
1.19      millert   221: int     sendmessage(struct message *, FILE *, struct ignoretab *, char *);
                    222: int     sendmail(void *);
                    223: int     set(void *);
                    224: int     setfile(char *);
                    225: void    setmsize(int);
                    226: void    setptr(FILE *, off_t);
                    227: void    setscreensize(void);
                    228: int     shell(void *);
                    229: void    sigchild(int);
                    230: void    sort(char **);
                    231: int     source(void *);
                    232: int     spool_lock(void);
                    233: int     spool_unlock(void);
                    234: void    spreserve(void);
                    235: void    sreset(void);
                    236: pid_t   start_command(char *cmd, sigset_t *nset, int infd, int outfd, ...);
1.24      millert   237: pid_t   start_commandv(char *, sigset_t *, int, int, __va_list);
1.20      millert   238: int     statusput(struct message *, FILE *, char *);
1.19      millert   239: void    stop(int);
                    240: int     stouch(void *);
                    241: int     swrite(void *);
                    242: void    tinit(void);
                    243: int     top(void *);
                    244: void    touch(struct message *);
                    245: void    ttyint(int);
                    246: void    ttystop(int);
                    247: int     type(void *);
                    248: int     type1(int *, char *, int, int);
                    249: int     undeletecmd(void *);
                    250: void    unmark(int);
                    251: char   **unpack(struct name *, struct name *);
                    252: int     unread(void *);
                    253: void    unregister_file(FILE *);
                    254: int     unset(void *);
                    255: int     unstack(void);
                    256: void    vfree(char *);
                    257: int     visual(void *);
                    258: int     wait_child(pid_t);
                    259: int     wait_command(int);
                    260: int     writeback(FILE *);
1.6       millert   261:
                    262: extern char *__progname;
1.8       millert   263: extern char *tmpdir;
1.16      millert   264: extern const struct cmd *com; /* command we are running */