home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume4 / unaxcess / part1 / user.h < prev   
Encoding:
C/C++ Source or Header  |  1986-11-30  |  1.2 KB  |  43 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. struct user
  7.     {
  8.     char u_name[33];            /* user name */
  9.     char u_pass[12];            /* password */
  10.     short u_access;            /* can killmsg() or shell() ? */
  11.     char u_login[6];            /* Intended for system login name */
  12.     short u_llen;            /* line length, or default u_access */
  13.     short u_nbull;            /* highest numbered bulletin read */
  14.     char u_lconf[33];            /* login conference (dft = general) */
  15.     }
  16.     ;                    /* current user */
  17.  
  18. extern struct user user;
  19.  
  20. /* access modes, in u_access */
  21.  
  22. #define A_NONE        0        /* invalidated login */
  23. #define A_GUEST        1        /* read-only access */
  24. #define A_USER        2        /* standard access */
  25. #define A_FILES        3        /* can udl() */
  26. #define A_SYSTEM    4        /* can system() */
  27. #define A_WITNESS    5        /* Fairwitness */
  28. #define A_MKUSER    6        /* Special: user creator */
  29.  
  30. struct _himsg
  31.     {
  32.     char hi_conf[33];            /* conference this record refers to */
  33.     char hi_uns;            /* unsubscribed to this conference */
  34.     short hi_num;            /* high message in this conference */
  35.     struct _himsg *hi_next;
  36.     }
  37.     ;
  38.  
  39. extern struct _himsg *hicnts;
  40.  
  41. #define HI_SUBSCR    0
  42. #define HI_UNSUB    1
  43.