2002-03-29 18:10:02 +03:00
|
|
|
/* $NetBSD: extern.h,v 1.16 2002/03/29 15:10:03 ross Exp $ */
|
1996-06-08 23:48:09 +04:00
|
|
|
|
1994-06-29 09:09:04 +04:00
|
|
|
/*-
|
|
|
|
* Copyright (c) 1992, 1993
|
|
|
|
* The Regents of the University of California. All rights reserved.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
|
|
* documentation and/or other materials provided with the distribution.
|
|
|
|
* 3. All advertising materials mentioning features or use of this software
|
|
|
|
* must display the following acknowledgement:
|
|
|
|
* This product includes software developed by the University of
|
|
|
|
* California, Berkeley and its contributors.
|
|
|
|
* 4. Neither the name of the University nor the names of its contributors
|
|
|
|
* may be used to endorse or promote products derived from this software
|
|
|
|
* without specific prior written permission.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
|
|
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
* SUCH DAMAGE.
|
|
|
|
*
|
1996-12-28 10:10:57 +03:00
|
|
|
* @(#)extern.h 8.2 (Berkeley) 4/20/95
|
2002-03-29 18:10:02 +03:00
|
|
|
* $NetBSD: extern.h,v 1.16 2002/03/29 15:10:03 ross Exp $
|
1994-06-29 09:09:04 +04:00
|
|
|
*/
|
|
|
|
|
1996-06-08 23:48:09 +04:00
|
|
|
struct name;
|
2002-03-02 17:59:35 +03:00
|
|
|
struct name *cat(struct name *, struct name *);
|
|
|
|
struct name *delname(struct name *, char []);
|
|
|
|
struct name *elide(struct name *);
|
|
|
|
struct name *extract(char [], int);
|
1996-06-08 23:48:09 +04:00
|
|
|
struct grouphead;
|
2002-03-02 17:59:35 +03:00
|
|
|
struct name *gexpand(struct name *, struct grouphead *, int, int);
|
|
|
|
struct name *nalloc(char [], int);
|
1996-06-08 23:48:09 +04:00
|
|
|
struct header;
|
2002-03-02 17:59:35 +03:00
|
|
|
struct name *outof(struct name *, FILE *, struct header *);
|
|
|
|
struct name *put(struct name *, struct name *);
|
|
|
|
struct name *tailof(struct name *);
|
|
|
|
struct name *usermap(struct name *);
|
|
|
|
FILE *Fdopen(int, char *);
|
|
|
|
FILE *Fopen(char *, char *);
|
|
|
|
FILE *Popen(char *, char *);
|
|
|
|
FILE *collect(struct header *, int);
|
|
|
|
char *copy(char *, char *);
|
|
|
|
char *copyin(char *, char **);
|
|
|
|
char *detract(struct name *, int);
|
|
|
|
char *expand(char *);
|
|
|
|
char *getdeadletter(void);
|
|
|
|
const char *getname(int);
|
1996-06-08 23:48:09 +04:00
|
|
|
struct message;
|
2002-03-02 17:59:35 +03:00
|
|
|
char *hfield(char [], struct message *);
|
|
|
|
FILE *infix(struct header *, FILE *);
|
|
|
|
char *ishfield(char [], char[], char *);
|
|
|
|
char *name1(struct message *, int);
|
|
|
|
char *nameof(struct message *, int);
|
|
|
|
char *nextword(char *, char *);
|
|
|
|
char *readtty(char [], char []);
|
|
|
|
char *reedit(char *);
|
|
|
|
FILE *run_editor(FILE *, off_t, int, int);
|
|
|
|
char *salloc(int);
|
|
|
|
char *savestr(const char *);
|
|
|
|
FILE *setinput(struct message *);
|
|
|
|
char *skin(char *);
|
|
|
|
char *skip_comment(char *);
|
|
|
|
char *snarf(char [], int *);
|
|
|
|
const char *username(void);
|
|
|
|
char *value(char []);
|
|
|
|
char *vcopy(char []);
|
|
|
|
char *yankword(char *, char []);
|
|
|
|
int Fclose(FILE *);
|
|
|
|
int More(void *);
|
|
|
|
int Pclose(FILE *);
|
|
|
|
int Respond(void *);
|
|
|
|
int Type(void *);
|
|
|
|
int _Respond(int []);
|
|
|
|
int _respond(int *);
|
|
|
|
void alter(char *);
|
|
|
|
int alternates(void *);
|
|
|
|
void announce(void);
|
|
|
|
int append(struct message *, FILE *);
|
|
|
|
int argcount(char **);
|
|
|
|
void assign(char [], char []);
|
|
|
|
int bangexp(char *);
|
|
|
|
int blankline(char []);
|
|
|
|
void brokpipe(int);
|
|
|
|
int charcount(char *, int);
|
|
|
|
int check(int, int);
|
|
|
|
void clob1(int);
|
|
|
|
int clobber(void *);
|
|
|
|
void close_all_files(void);
|
|
|
|
int cmatch(char *, char *);
|
|
|
|
void collhup(int);
|
|
|
|
void collint(int);
|
|
|
|
void collstop(int);
|
|
|
|
void commands(void);
|
|
|
|
int copycmd(void *);
|
|
|
|
int core(void *);
|
|
|
|
int count(struct name *);
|
|
|
|
int delete(void *);
|
|
|
|
int delm(int []);
|
|
|
|
int deltype(void *);
|
|
|
|
void demail(void);
|
|
|
|
int dosh(void *);
|
|
|
|
int dot_lock(const char *, int, FILE *, const char *);
|
|
|
|
void dot_unlock(const char *);
|
|
|
|
int echo(void *);
|
|
|
|
int edit1(int *, int);
|
|
|
|
int editor(void *);
|
|
|
|
void edstop(void);
|
|
|
|
int elsecmd(void *);
|
|
|
|
int endifcmd(void *);
|
|
|
|
int evalcol(int);
|
|
|
|
int execute(char [], int);
|
|
|
|
int exwrite(char [], FILE *, int);
|
|
|
|
void fail(char [], char []);
|
|
|
|
int file(void *);
|
1994-06-29 09:09:04 +04:00
|
|
|
struct grouphead *
|
2002-03-02 17:59:35 +03:00
|
|
|
findgroup(char []);
|
|
|
|
void findmail(char *, char *);
|
|
|
|
int first(int, int);
|
|
|
|
void fixhead(struct header *, struct name *);
|
|
|
|
void fmt(char *, struct name *, FILE *, int);
|
|
|
|
int folders(void *);
|
2002-03-06 20:36:44 +03:00
|
|
|
int forward(char [], FILE *, char *, int);
|
2002-03-02 17:59:35 +03:00
|
|
|
void free_child(int);
|
|
|
|
int from(void *);
|
|
|
|
off_t fsize(FILE *);
|
|
|
|
int getfold(char *);
|
|
|
|
int gethfield(FILE *, char [], int, char **);
|
|
|
|
int getmsglist(char *, int *, int);
|
|
|
|
int getrawlist(char [], char **, int);
|
|
|
|
int getuserid(char []);
|
|
|
|
int grabh(struct header *, int);
|
|
|
|
int group(void *);
|
|
|
|
void hangup(int);
|
|
|
|
int hash(char *);
|
|
|
|
void hdrstop(int);
|
|
|
|
int headers(void *);
|
|
|
|
int help(void *);
|
|
|
|
void holdsigs(void);
|
|
|
|
int ifcmd(void *);
|
|
|
|
int igfield(void *);
|
1996-06-08 23:48:09 +04:00
|
|
|
struct ignoretab;
|
2002-03-02 17:59:35 +03:00
|
|
|
int ignore1(char *[], struct ignoretab *, char *);
|
|
|
|
int igshow(struct ignoretab *, char *);
|
|
|
|
void intr(int);
|
|
|
|
int inc(void *);
|
|
|
|
int incfile(void);
|
|
|
|
int isdate(char []);
|
|
|
|
int isdir(char []);
|
|
|
|
int isfileaddr(char *);
|
|
|
|
int ishead(char []);
|
|
|
|
int isign(char *, struct ignoretab []);
|
|
|
|
int isprefix(char *, char *);
|
|
|
|
void istrcpy(char *, char *);
|
1996-02-20 00:54:32 +03:00
|
|
|
const struct cmd *
|
2002-03-02 17:59:35 +03:00
|
|
|
lex(char []);
|
|
|
|
void load(char *);
|
1994-06-29 09:09:04 +04:00
|
|
|
struct var *
|
2002-03-02 17:59:35 +03:00
|
|
|
lookup(char []);
|
|
|
|
int mail(struct name *,
|
|
|
|
struct name *, struct name *, struct name *, char *);
|
|
|
|
void mail1(struct header *, int);
|
|
|
|
void makemessage(FILE *, int);
|
|
|
|
void mark(int);
|
|
|
|
int markall(char [], int);
|
|
|
|
int matchsender(char *, int);
|
|
|
|
int matchsubj(char *, int);
|
|
|
|
int mboxit(void *);
|
|
|
|
int member(char *, struct ignoretab *);
|
|
|
|
void mesedit(FILE *, int);
|
|
|
|
void mespipe(FILE *, char []);
|
|
|
|
int messize(void *);
|
|
|
|
int metamess(int, int);
|
|
|
|
int more(void *);
|
|
|
|
int newfileinfo(int);
|
|
|
|
int next(void *);
|
|
|
|
int null(void *);
|
1996-06-08 23:48:09 +04:00
|
|
|
struct headline;
|
2002-03-02 17:59:35 +03:00
|
|
|
void parse(char [], struct headline *, char []);
|
|
|
|
int pcmdlist(void *);
|
|
|
|
int pdot(void *);
|
|
|
|
void prepare_child(sigset_t *, int, int);
|
|
|
|
int preserve(void *);
|
|
|
|
void prettyprint(struct name *);
|
|
|
|
void printgroup(char []);
|
|
|
|
void printhead(int);
|
|
|
|
int puthead(struct header *, FILE *, int);
|
|
|
|
int putline(FILE *, char *, int);
|
|
|
|
int pversion(void *);
|
|
|
|
void quit(void);
|
|
|
|
int quitcmd(void *);
|
|
|
|
int upcase(int);
|
|
|
|
int readline(FILE *, char *, int);
|
|
|
|
void register_file(FILE *, int, int);
|
|
|
|
void regret(int);
|
|
|
|
void relsesigs(void);
|
|
|
|
int respond(void *);
|
|
|
|
int retfield(void *);
|
|
|
|
int rexit(void *);
|
|
|
|
int rm(char *);
|
|
|
|
int run_command(char *, sigset_t *, int, int, char *, char *, char *);
|
|
|
|
int save(void *);
|
2002-03-29 18:10:02 +03:00
|
|
|
int Save(void *);
|
2002-03-02 17:59:35 +03:00
|
|
|
int save1(char [], int, char *, struct ignoretab *);
|
|
|
|
void savedeadletter(FILE *);
|
|
|
|
int saveigfield(void *);
|
|
|
|
int savemail(char [], FILE *);
|
|
|
|
int saveretfield(void *);
|
|
|
|
int scan(char **);
|
|
|
|
void scaninit(void);
|
|
|
|
int schdir(void *);
|
|
|
|
int screensize(void);
|
|
|
|
int scroll(void *);
|
|
|
|
int sendmessage(struct message *, FILE *, struct ignoretab *, char *);
|
|
|
|
int sendmail(void *);
|
|
|
|
int set(void *);
|
|
|
|
int setfile(char *);
|
|
|
|
void setmsize(int);
|
|
|
|
void setptr(FILE *, off_t);
|
|
|
|
void setscreensize(void);
|
|
|
|
int shell(void *);
|
|
|
|
void sigchild(int);
|
|
|
|
void sort(char **);
|
|
|
|
int source(void *);
|
|
|
|
void spreserve(void);
|
|
|
|
void sreset(void);
|
|
|
|
int start_command(char *, sigset_t *, int, int, char *, char *, char *);
|
|
|
|
void statusput(struct message *, FILE *, char *);
|
|
|
|
void stop(int);
|
|
|
|
int stouch(void *);
|
|
|
|
int swrite(void *);
|
|
|
|
void tinit(void);
|
|
|
|
int top(void *);
|
|
|
|
void touch(struct message *);
|
|
|
|
void ttyint(int);
|
|
|
|
void ttystop(int);
|
|
|
|
int type(void *);
|
|
|
|
int type1(int *, int, int);
|
|
|
|
int undeletecmd(void *);
|
|
|
|
void unmark(int);
|
|
|
|
char **unpack(struct name *);
|
|
|
|
int unread(void *);
|
|
|
|
void unregister_file(FILE *);
|
|
|
|
int unset(void *);
|
|
|
|
int unstack(void);
|
|
|
|
void v_free(char *);
|
|
|
|
int visual(void *);
|
|
|
|
int wait_child(int);
|
|
|
|
int wait_command(int);
|
|
|
|
int writeback(FILE *);
|