home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume25 / finger / part02 / args.h next >
Encoding:
C/C++ Source or Header  |  1992-04-03  |  1.9 KB  |  62 lines

  1. /*
  2.  * args.h -- flag/switch definitions
  3.  *
  4.  * Copyright (C) 1986, 1990  Philip L. Budne
  5.  *
  6.  * This file is part of "Phil's Finger Program".
  7.  *
  8.  * This program is free software; you can redistribute it and/or modify
  9.  * it under the terms of the GNU General Public License as published by
  10.  * the Free Software Foundation; either version 1, or (at your option)
  11.  * any later version.
  12.  *
  13.  */
  14.  
  15. # define ARGS_RCSID "$Id: args.h,v 3.0 90/07/06 13:10:20 budd Rel $"
  16.  
  17. # ifndef EXTERN
  18. # define EXTERN extern
  19. # endif /* EXTERN not defined */
  20.  
  21. /* global (not per-person) switches */
  22. typedef char sw_t;
  23.  
  24. EXTERN sw_t sw_age;        /* age switch */
  25.                 /* display on rather than idle */
  26. EXTERN sw_t sw_berkeley;    /* be like bzerkly finger */
  27.                 /* (force -w -p with names) */
  28. EXTERN sw_t sw_debug;        /* enable debug output */
  29. EXTERN sw_t sw_follow;        /* let finger do the walking */
  30.                 /* cudos to CTorek for the idea */
  31. EXTERN sw_t sw_its;        /* be more like ITS (default is Twenex; */
  32. EXTERN sw_t sw_jobs;        /* do whoj display */
  33. EXTERN sw_t sw_nosave;        /* prohibit write of nlist */
  34.                 /* this is forced on by 'xf' */
  35. EXTERN sw_t sw_output;        /* display idle time based on last output */
  36. EXTERN sw_t sw_pid;        /* show current process pid */
  37. EXTERN sw_t sw_read;        /* force read of nlist, and save */
  38.                 /* do this from your rc file */
  39.                 /* if you don't use AUTONLIST */
  40. EXTERN sw_t sw_state;        /* show process state in place of idle */
  41. EXTERN sw_t sw_whois;        /* whois switch -- show long information */
  42.  
  43. EXTERN char *sw_fields;        /* NYI: display output in AWKable form */
  44.  
  45. /****************
  46.  * flags processed per-user
  47.  */
  48.  
  49. EXTERN struct switches {
  50.     int sw_location    : 1;    /* ignore user location */
  51.     int sw_mail        : 1;    /* force mail check */
  52.     int sw_match    : 1;    /* match on usernames only */
  53.     int sw_noplan    : 1;    /* prhibit display of plan under /whois */
  54.     int sw_plan        : 1;    /* check for ~/.plan file */
  55. } Sw;
  56.  
  57. /*
  58.  * Local variables:
  59.  * comment-column: 32
  60.  * End:
  61.  */
  62.