|
|
1.1 ! root 1: /* globals.c: these are our global variable, structs, file pointers... */ ! 2: ! 3: #include <stdio.h> ! 4: #include <curses.h> ! 5: #include <fcntl.h> ! 6: ! 7: #define PORTFILE "/usr/lib/uucp/port" ! 8: #define SYSFILE "/usr/lib/uucp/sys" ! 9: #define DIALFILE "/usr/lib/uucp/dial" ! 10: #define UUEDIT "/usr/lib/uucp/editfile" ! 11: #define UUTMP "/usr/lib/uucp/tmpfile" ! 12: ! 13: #define MAXENTRIES 100 ! 14: ! 15: /* screen positions, opening screen */ ! 16: #define UNAMELABEL 20 ! 17: #define SYSLINE 7 ! 18: #define PORTLINE 8 ! 19: #define DIALLINE 9 ! 20: ! 21: extern int startpos[]; /* corresponding start line in file */ ! 22: extern int total_entries_found;/* total number opf ports read from file */ ! 23: extern short dialflag; /* flag to indicate that we're working w/dial */ ! 24: extern short sysflag; /* flag to indicate that we're working w/sys */ ! 25: extern short portflag; /* flag to indicate that we're working w/port */ ! 26: extern char action; /* action to be performed on a file entry. */ ! 27: extern char litestring[]; /* used to highlight and select a name. */ ! 28: ! 29: /* selection window coordinates used to highlight and select entries */ ! 30: extern int newrow, prevrow, newcol, prevcol; ! 31: ! 32: extern WINDOW *selwin; /* window of existing entries */ ! 33: extern WINDOW *promptwin; /* window to print prompts in */ ! 34: extern WINDOW *menwin; /* window of menu options */ ! 35: extern WINDOW *portwin; /* view/create/edit port file entries */ ! 36: ! 37: /* character arrays to hold port info when enterin port data */ ! 38: ! 39: extern char portname[]; ! 40: extern char porttype[]; ! 41: extern char portdev[]; ! 42: extern char portspeed[]; ! 43: extern char portdial[]; ! 44: ! 45: ! 46: /* character arrays to hold dial info when entring dialer data */ ! 47: ! 48: extern char dialname[]; ! 49: extern char dialchat[]; ! 50: extern char dialtout[]; ! 51: extern char dialfail1[]; ! 52: extern char dialfail2[]; ! 53: extern char dialfail3[]; ! 54: extern char dialplete[]; ! 55: extern char dialabort[]; ! 56: ! 57: /* character arrays to hold sys info when entering data */ ! 58: ! 59: extern char sysname[]; ! 60: extern char systime[]; ! 61: extern char sysspeed[]; ! 62: extern char sysport[]; ! 63: extern char sysphone[]; ! 64: extern char syschat[]; ! 65: extern char sysmyname[]; ! 66: extern char sysprot[]; ! 67: extern char syscmds[]; ! 68: extern char sysread[]; ! 69: extern char syswrite[]; ! 70: ! 71: extern char * get_data(); ! 72: ! 73: ! 74: /* color related stuff */ ! 75: ! 76: extern short use_colors; /* flag to use colors */ ! 77: ! 78: extern int mainfore; /* main menu colors */ ! 79: extern int mainback; ! 80: extern int actfore; /* action menu colors */ ! 81: extern int actback; ! 82: extern int selfore; /* select screen colors */ ! 83: extern int selback; ! 84: extern int helpfore; /* help message colors */ ! 85: extern int helpback;
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.