1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
|
/* Standard header for all files that make up the Orville 'write' program */
#ifndef WRITE_H
#define WRITE_H
#include "orville.h"
#define LBSIZE 1024 /* Size of the input line buffer */
/* ======================== GLOBAL VARIABLES =========================== */
extern bool char_by_char, ask_root, fixed_modes, in_cbreak, is_writing,
insys, telegram, no_switch, am_root, rec_only, postpone;
extern char tmp_mesg;
extern char *progname, *mytty, *version, *telmsg;
extern char myname[], hisname[], hisdevname[], histty[], linebuf[];
extern char myuidname[];
extern FILE *histerm;
extern int wstream;
extern long hispos,mypos;
/* =================== PROCEDURE DEFINITIONS ===-----================== */
/* wrt_him.c functions */
void find_us(void);
bool iswritable(void);
bool he_replied(void);
/* wrt_hist.c functions */
void open_hist(void);
bool may_answer_tel(void);
int check_flood(void);
void register_tel(void);
/* wrt_main.c functions */
void done(int code);
/* wrt_me.c functions */
void find_me(void);
void set_modes(void);
void reset_modes(void);
bool nested_write(void);
void init_lastmesg(void);
void show_lastmesg(void);
/* wrt_opt.c functions */
char *leafname(char *fullpath);
void default_opts(char *argname);
void user_opts(int argc, char **argv);
/* wrt_sig.c functions */
void siginit(void);
void sigoff(void);
RETSIGTYPE intr(int sig);
RETSIGTYPE susp(void);
void dosystem(char *cmd);
/* wrt_tty.c functions */
void cbreak(bool flag);
void flushinput(int dev);
int get_cols(void);
/* wrt_type.c functions */
void dowrite(void);
void dotelegram(bool nl);
void open_record(void);
int ishisexception(int yesfile, char *login);
int isuexception(char *user, int yesfile, char *login);
#endif /* WRITE_H */
|