home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume4 / unaxcess / part1 / ua.h < prev    next >
Encoding:
C/C++ Source or Header  |  1986-11-30  |  1.4 KB  |  60 lines

  1. /*
  2.  * %W% %E% %U% ncoast!bsa %Z%
  3.  * %Z% Copyright (C) 1986 by Brandon S. Allbery, All Rights Reserved %Z%
  4.  */
  5.  
  6. #include <stdio.h>
  7. #include <ctype.h>
  8. #include <setjmp.h>
  9. #include <pwd.h>
  10. #include <signal.h>
  11. #include <sys/types.h>
  12. #include <sys/stat.h>
  13. #include <errno.h>
  14. #include "user.h"
  15. #include "dir.h"
  16. #include "sys.h"
  17.  
  18. #ifndef SIGUSR1
  19. #define SIGUSR1        NSIG-1
  20. #endif
  21.  
  22. #define SYSOP    parms.ua_sysop
  23. #define LOG    "Logfile"
  24. #define MOTD    "motd"
  25. #define PASSWD    "userfile"
  26. #define MSGBASE    "msgdir"
  27. #define NEWMSGS    "userind"
  28. #define NEWUSER    "NewMessage"
  29. #define CONFIG    "ua-config"
  30.  
  31. extern jmp_buf cmdloop;            /* so intrp() works */
  32. extern int logsig(), quit(), intrp(), thatsall();
  33. extern int doread(), doscan();
  34. extern struct _himsg *readhigh();
  35. extern struct tm *localtime();
  36. extern struct passwd *getpwuid();
  37. extern char *getowner(), *visible(), *mktemp(), *crypt(), *date(), *longdate();
  38. extern int errno, nopause;
  39. extern char conference[];
  40.  
  41. #define ToLower(x) (isupper(x)?tolower(x):x)    /* not all tolower() work */
  42. #define ToUpper(x) (islower(x)?toupper(x):x)    /* not all toupper() work */
  43. #define uncntrl(x) (x+'@')            /* maybe a Burroughs or CDC? */
  44.  
  45. #ifndef SYS3
  46. #  define RIndex(s,c) rindex(s,c)
  47. #  define Index(s,c) index(s,c)
  48. extern char *rindex(), *index();
  49. #else
  50. #  define RIndex(s,c) strrchr(s, c)
  51. #  define Index(s,c) strchr(s, c)
  52. extern char *strrchr(), *strchr();
  53. #endif
  54.  
  55. #ifdef BSD42
  56. #define CONFSIZE    32
  57. #else
  58. #define CONFSIZE    14
  59. #endif
  60.