home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume25 / finger / part07 / History.h < prev   
Encoding:
C/C++ Source or Header  |  1992-04-03  |  30.7 KB  |  1,087 lines

  1. /*-*-text-*-*/
  2. /*
  3.  * Copyright (C) 1986, 1990  Philip L. Budne
  4.  *
  5.  * This file is part of "Phil's Finger Program".
  6.  *
  7.  * This program is free software; you can redistribute it and/or modify
  8.  * it under the terms of the GNU General Public License as published by
  9.  * the Free Software Foundation; either version 1, or (at your option)
  10.  * any later version.
  11.  *
  12.  */
  13.  
  14. # define HISTORY_RCSID "$Id: History.h,v 3.0 90/07/06 13:09:46 budd Rel $"
  15.  
  16. # ifdef __GNUC__x        /* works in GCC 1.20 and up */
  17. # define B(x)            /* RMS does not believe in regression tests! */
  18. # else  /* __GNUC__x not defined */
  19. # define B(x) : x
  20. # endif /* __GNUC__x not defined */
  21.  
  22. struct _JBVER {
  23.     unsigned who   B(3);    /* 0=development group, 1=other digital */
  24.                 /* 2,3,4 customer; 5,6,7 customer's user */
  25.     unsigned major B(9);
  26.     unsigned minor B(6);
  27. # if 1
  28.     unsigned edit  B(18);
  29. # else  /* not 1 */
  30.     unsigned flag  B(1);
  31.     unsigned edit  B(17);
  32. # endif /* not 1 */
  33. };
  34.  
  35. /*
  36.  * For the uninformed:
  37.  *
  38.  * This is the format TOPS-10 uses to store version numbers.  Word
  39.  * 0137 in low core -- The JOB DATa area (JOBDAT) is called .JBVER
  40.  *
  41.  * TOPS-20 uses it too, with minor perversions: major/minor edits are
  42.  * displayed as major.minor (5.1 rather than 5A) If the high order bit
  43.  * of edit is set (0400000) the low 17 bits are printed in decimal.
  44.  *
  45.  */
  46.  
  47. /****************************************************************
  48.  
  49.     Pre-History:
  50.  
  51.     Nov 85 -- Work began with code that is now maketree and dofinger.
  52.           Just printed current users nicely.
  53.     Dec 85 -- enhanced ttylocs.
  54.     Jan 86 -- Command line parsing added.
  55.  
  56. 100    Wed May 21, 1986    Phil
  57.     Start History file.
  58.     Allow slash switches appended directly to unames.
  59.     Create routine doswitch().
  60.     Files:
  61.         args.c
  62.  
  63. 101    Wed May 28, 1986    Phil
  64.     Display last login host uppercase.
  65.     Remove ".arpa" in undomain.
  66.     Files:
  67.         lastlog.c    undomain.c
  68.  
  69. 102    Thurs May 28, 1986    Phil
  70.     Wrote my own getutmp().
  71.     Flush SYS V utmp.c
  72.     Files:
  73.         getut.c
  74.  
  75. 103    Thurs May 28, 1986    Phil
  76.     Massive cleanup.  Add copyrights,
  77.     make sure to use finger.h
  78.     Display [n.n.n.n]
  79.     Files:
  80.         doremote.c ....
  81.  
  82. **** given to sundar@mit-hermes ****
  83.  
  84. 104    July 16, 1986        BZS
  85.     Add SYSLOG option to fingerd.c
  86.  
  87. 105    August 12, 1986        Phil
  88.     Add ttyplace, ttyrandom options to ttyask.c
  89.  
  90. 106    August 12, 1986        Phil
  91.     Add -j option to force whoj output
  92.     Files:
  93.         args.c args.h
  94.  
  95. 107    Weds Sept 3, 1986    Phil
  96.     Merge in stuff for Umax (Encore Multimax 4.2) [under ifdef Umax]
  97.     Files:
  98.         luser.h    getttyloc.c output.c
  99.         getcommand.c readpr.c fingerd.c
  100.  
  101. 108    Sat Sept 27, 1986    Phil
  102.     Remove "On since" since it only applies to one login.
  103.     Files:
  104.         whois.c
  105.  
  106. 109    Thus Oct 2, 1986    Phil
  107.     Add hackery for "consdev" on sun. Does the right thing when
  108.     console is really a printer on ttya, but not when workstation
  109.     with a console window.
  110.     Files:
  111.         readpr.c getcommand.c
  112.  
  113. 110    Thus Oct 2, 1986    Phil
  114.     Add NETLOC and OTTYLOC conditionals.
  115.     Files:
  116.         getttyloc.c locname.c
  117.  
  118. 111    Fri Oct 3, 1986        Phil
  119.     Add (/L) sw_location -- ignore user ttyloc
  120.     Files:
  121.         getttyloc.c args.h args.c
  122.  
  123. 112    Mon Oct 6, 1986        Phil
  124.     Fix undomain
  125.     File:
  126.         undomain.c
  127.  
  128. 113    Mon Oct 6, 1986        Phil
  129.     Merge in working inq_stats code for Umax (encore)
  130.     Files:
  131.         undomain.c
  132.  
  133. 114    Weds Oct 22, 1986    Phil
  134.     Make getcommand() return struct pr.
  135.     Print flag for suid programs.
  136.     Make room for inquire group.
  137.     Split off whoj.c and finger.c from output.c.
  138.     Add ifdef lint around copyright in finger.h.
  139.     Create inquire.c hook into inquire/holmes.
  140.     Add fields in person struct, move p_Rc into p_flags.
  141.     Files:
  142.         whoj.c finger.c output.c finger.h inquire.c getperson.c
  143.  
  144. 115    Wednesday October 28, 1986    Phil
  145.     Create code to use mmap to read process table, and upage
  146.     pagemaps.  Code to read actual upage(s) does not work.  (MAP
  147.     UMAP1 UMAP2 in map.h).  Performance win is barely noticeable
  148.     Create names.c syms.h info.h. Read namelist into info struct
  149.     and save as /etc/saved-finger-namelist.  BIG win, bigger than
  150.     any crock in readpr.
  151.     Files:
  152.         readpr.c names.c syms.h info.h map.h
  153.  
  154. 116    Thursday October 29, 1986    Phil
  155.     create ttycycle (ttyask -c[time]).  Cycles thru ttylplaces
  156.     sleeping for time seconds.
  157.     Files:
  158.         ttyask.c
  159.  
  160. **** second version given to sundar@hermes ****
  161.  
  162. 117    Saturday November 1, 1986    Phil
  163.     Split readpr.c into kmem.c, readpr.c, ustruct.c
  164.     Split pr.h into pr.h and kmem.h
  165.     Files:
  166.         getcommand.c readpr.c pr.h
  167.  
  168. 118    Sunday November 1, 1986        Phil
  169.     Add optional ttyrandom cycling (ttyask -r<time>), -b(ackground).
  170.     Add savewho/checkwho to kill self when parent goes away.
  171.     File:
  172.         ttyask.c
  173.  
  174. 119    Monday November 3, 1986        Phil
  175.     Append suid character to program name.
  176.     Start playing with new select stuff (+tty .)
  177.     Files:
  178.         finger.c select.h select.c args.c
  179.  
  180. 120    Sunday, November 9, 1986    Phil
  181.     Make ttyloc check tty ownership, remove fchown().
  182.     Files:
  183.         ttyloc.c
  184.  
  185. 121    Monday, November 10, 1986    Phil
  186.     Don't decr todo counter unless hit has no person entry in pwtree.
  187.     Files:
  188.         getperson.c
  189.  
  190. 122    Monday, November 10, 1986    Phil
  191.     Implement blankline(), better defaults for empty fields in finger.
  192.     Files:
  193.         getperson.c doremote.c mcheck.c
  194.         finger.c inquire.c output.c
  195.  
  196.  
  197. 123    Wednesday, November 12, 1986    Phil
  198.     Do NETLOC for annexes too!  Make undomain() optionally
  199.     remove prefixes to 100% domain matches. Put it 'make depend'
  200.     Files:
  201.         undomain.c prefixes.h getttyloc.c lastlog.c whoj.c
  202.         Makefile
  203.  
  204. 124    Tuesday, December 2, 1986    Phil
  205.     zero p_count in makeperson. Warn about unknown switches.
  206.     Files:
  207.         getperson.c args.c
  208.  
  209. 125    Friday, January 1, 1987        Phil
  210.     Clean up NFILE reading, rejection.
  211.     Have ttyask use optarg(3), add -t time flag (as opposed
  212.     too -c [time] and -r [time]), use as timeout in ttyask too.
  213.     Files:
  214.         names.c ttyask.c
  215.  
  216. 126    Monday, January 12, 1987    Phil
  217.     Add read_vmunix, used to find _version in /vmunix and
  218.     fill in info_verstr when reading nlist.
  219.     Files:
  220.         names.c read_vmunix.c
  221.  
  222. 127    Monday, January 12, 1987    Phil
  223.     Add 4.3 stuff under BSD4_3; tty.h wants ioctl.h
  224.     tty group/mesg stuff.
  225.     Files:
  226.         getcommand.c output.c
  227.  
  228. 128    Friday, January 16, 1987    Phil
  229.     If stdin is not a tty, act as if /berk.
  230.     Fix doswitch() to accept multi letter switch names.
  231.     File:
  232.         args.c
  233.  
  234. 129    Sunday, January 25, 1987    Phil
  235.     Print /etc/nologin after herald.
  236.     File:
  237.         fingerd.c
  238.  
  239. 130    Feb 26, 1987    Phil
  240.     Do special ttyloc display for xterms.
  241.     File:
  242.         getttyloc.c
  243.  
  244. 131    Friday, March 13, 1987    Phil
  245.     Create netfinger variable, use in outchar to output <CR><LF>
  246.     and for /berk madness (see [128])
  247.     Files:
  248.         args.c output.c
  249.  
  250.  
  251. 132    Sunday, March 15, 1987    Phil
  252.     Display times more than a day, and less than 10
  253.     using hours, not fractions of days. Handle weeks ...
  254.     File:
  255.         output.c
  256.  
  257. 133    Weds, April 22, 1987    Phil
  258.     Don't set same is person && u->u_person are both NULL
  259.     File:
  260.         finger.c
  261.  
  262. 134    Sat, May 23, 1987    Phil
  263.     Clean up for namelist read/write. Add AUTONLIST.
  264.     Add fchown, fchmod in write.  Add ifdef Umax to read_vmunix.
  265.     Files:
  266.         names.c read_vmunix.c
  267.  
  268. 135    Mon, May 25, 1987    Phil
  269.     Add maddr() for mailing address.
  270.     Display '.' for biff, ',' for hungry, ';' for hungry + biff.
  271.     Files:
  272.         person.h finger.c mcheck.c getperson.c whois.c
  273.  
  274. 136    Tues, May 26, 1987    Phil
  275.     Never display interval with weeks, and zero days.
  276.     File:
  277.         output.c
  278.  
  279. 137    Friday May 29 and (cleanup) Monday June 29, 1987  Phil
  280.     (My father died June 10th) Use inquire for user lookup.  Use
  281.     getpwbynam in pwtree if GETPWNAM_SLOW is not defined.
  282.     makeperson and insert_winner take struct info pointer if
  283.     INQUIRE is defined. Can now display a person with no password
  284.     entry (but still has inquire entry!!)
  285.     Files:
  286.         getperson.c select.c inquire.c finger.c
  287.  
  288. 140    Saturday July 11, 1987        Phil
  289.     Check if last element in second strncmp in do_ttyplace.
  290.     File:
  291.         ttyask.c
  292.  
  293. 141    Saturday July 11, 1987        Phil
  294.     Change History into History.c. Create make-version, BUILD,
  295.     and version.c (reset BUILD when History is modified?)
  296.     Files:
  297.         make-version History.c version.c Makefile
  298.  
  299. 142    Saturday July 11, 1987        Phil
  300.     Implement full switch names. Add switch.h
  301.     Only say one of forwarded and no mailbox.
  302.     Add UNPREIX_NODOMAINS and unprefix() [helful for Xhost:display]
  303.     Add /version
  304.     create ttyloc.1
  305.     Files:
  306.         args.c switch.h mcheck.c undomain.c ttyloc.1
  307.  
  308. 143    Sunday July 12, 1987        Phil
  309.     Implement tty selectors. +name. checks for implied leading "tty"
  310.     Add tsel.h
  311.     Files:
  312.         getent.c finger.c tsel.h
  313.  
  314. 144    Sunday July 12, 1987        Phil
  315.     Add CONC macro.  Give SYM two arguments, first string, second member.
  316.     Put longversion[] into saved nlist file.
  317.     Files:
  318.         syms.h info.h names.c finger.h
  319.  
  320. 145    Monday July 13, 1987        Phil
  321.     Add /help, values on switches.
  322.     Files:
  323.         switch.h args.h
  324.  
  325. 146    Tuesday July 14, 1987    2am    Phil    -- Bastile Day!!
  326.     Add /follow, move savestr to string.c.
  327.     Add malloc and savestr defs to finger.h
  328.     Add <strings.h> in many places.
  329.     Files:
  330.         switch.h args.h select.c mcheck.c finger.h
  331.         ttyloc.c fingerd.c whois.c getperson.c
  332.  
  333. 147    Tuesday July 14, 1987    4pm    Phil    -- Bastile Day!!
  334.     Add readnewttyloc() new format ttyloc file (has short, line type)
  335.     Files:
  336.         getttyloc.c readttylocfile.c readttylocfile.h
  337.  
  338. 150    Thursday July 16, 1987        Phil
  339.     Add getttyents() -- read 4.3 /etc/ttys file as last resort
  340.     for tty locations.
  341.     Files:
  342.         getttyloc.c readttylocfile.c
  343.  
  344. 151    Thursday July 16, 1987        Phil
  345.     Create getttytype for ttyask-ing.  Create skip.c. use in readttylocfile
  346.     move findttyloc into readttylocfile.c make nttyloc static there.
  347.     Files:
  348.         getttytype.c skip.c readttylocfile.c getttyloc.c Makefile
  349.  
  350. 152    Friday July 17, 1987    2am    Phil
  351.     Add sw_fields, /fields, set_fields (no action yet)
  352.     Use binary search in findttyloc
  353.     Files:
  354.         args.c args.h switch.h readttylocfile.c
  355.  
  356. 153    Friday July 17, 1987    5pm    Phil
  357.     Create switch.c move doswitch and other switchiness there.
  358.     Use skipwhite and skipblack all over.
  359.     Files:
  360.         args.c switch.c Makefile getperson.c select.c ttyask.c
  361.  
  362. 154    Wednesday July 22, 1987    4am    Phil
  363.     Clean up readpr, make signal state an enum. Look at it in getcommand.
  364.     Files:
  365.         readpr.c pr.h getcommand.c
  366.  
  367. 155    Wednesday July 22, 1987    5am    Phil
  368.     Add ttystate, TTYSTATE
  369.     Files:
  370.         syms.h finger.c
  371.  
  372. 156    Thursday July 23, 1987    Phil
  373.     Add /debug sw_debug DEBUGSW
  374.     Files:
  375.         args.h switch.h switch.c Makefile getcommand.c
  376.  
  377. 157    Thursday July 23, 1987    Phil
  378.     Check for backgrounded forks which have group membership
  379.     by being disowned and writing to tty. Add II and IID macros.
  380.     File:
  381.         getcommand.c
  382.  
  383. 160    Saturday July 25, 1987    Phil
  384.     rename /save to /read. Add /nosave.  Force on when 'xf'
  385.     Files:
  386.         args.c args.h switch.h names.c
  387.  
  388. 161    Thursday July 30, 1987    Phil
  389.     Set width to PLUS_INF if netfinger
  390.     Files:
  391.         output.c
  392.  
  393. 162    Friday July 31, 1987    Phil
  394.     Create flags.h args.m4 flags struct.  Save Flags before
  395.     smashing for /berk.
  396.     Files:
  397.         flags.h args.m4 Makefile args.c
  398.  
  399. 163    Saturday August 1, 1987    Phil
  400.     Create local.h, removed prefixes.h.  sed UMAX to Umax.
  401.     Move Makefile work to ymakefile
  402.     Files:
  403.         local.h Makefile ymakefile
  404.  
  405. 164    Monday August 3, 1987    Phil
  406.     Remove tiresome fencepost errors.
  407.     Files:
  408.         getcommand.c read_vmunix.c names.c
  409.  
  410. 165    Saturday August 8, 1987    Phil
  411.     syslog argv passed to finger.
  412.     File:
  413.         fingerd.c
  414.  
  415. 166    Wednesday Sept 2, 1987    Phil
  416.     add unswitch -- detect switches on . and +
  417.     File:
  418.         args.c
  419.  
  420. 167    Thursday Sept 17, 1987    Phil
  421.     add else after doswitch in finger().
  422.     add ttystate_t tiwait towait
  423.     Files:
  424.         args.c pr.h getcommand.c readpr.c
  425.  
  426. 170    Thursday October 29, 1987    Phil
  427.     Flush zombies in getcommand()
  428.     Files:
  429.         getcommand.c
  430.  
  431. 171    Tuesday November 10, 1987    Phil
  432.     Make compile on ULTRIX
  433.     Split BSD4_3 defines into TTY_GROUP TTYENT TTY_REQUIRES_IOCTL
  434.     Files:
  435.         fingerd.c    getttytype.c    getttyloc    readpr.c
  436.         getcommand.c    output.c    undomain.c    readttylocfile.c
  437.  
  438. 172    Friday November 13, 1987    Phil
  439.     Move ttystate_t into ttystate.h (for Umax)
  440.     Update for Umax 3.1.0; no more libu.a, no more statistics typedefs.
  441.     Files:
  442.         ttystate.h getcommand.c readpr.c finger.c getttyloc.c
  443.         kmem.c names.c output.c pr.h read_vmunix.c ustruct.c
  444.         ymakefile
  445.  
  446. **** given to dle@csl.sri.com ****
  447.  
  448. 173    Tuesday Junuary 12, 1988    Phil
  449.     Display 0:xx as 12:xxAM and 12:xx as 12:xxPM in nicetime.
  450.     File:
  451.         whois.c
  452.  
  453. 174    Wednesday January 13, 1988    Phil
  454.     Port to IBM AIS 4.2 on PC/RT (ibm032);
  455.     - use getdtablsize in fingerd.
  456.     - Add L1 and N_SEGSIZ in read_vmunix.
  457.     - Add VDEBUG in readpr.
  458.     - Do awful things in ustruct.c
  459.     Files:
  460.         read_vmunix.c ustruct.c readpr.c fingerd.c
  461.  
  462. 175    Thursday January 14, 1988    Phil
  463.     Add u_daemon enum in pr struct.  Fill in
  464.     by tracing parents of current process in getcommand.
  465.     Move body of getcommand to getcommand2. Display
  466.     in getttyloc. Clean up readpr().
  467.     Files:
  468.         pr.h getcommand.c getttyloc.c readpr.c
  469.  
  470. 176    Saturday, January 23, 1988    Phil
  471.     Create daemon struct in daemon.h.
  472.     Create daemon table in daemon.c.
  473.     Make u_daemon a short -- index into daemons[].
  474.     Display daemon parantage without host (suntools)
  475.     Recognize /dev/console as location "Console"
  476.     Add suntools, vt100tool, othertools, dlogind(?) to known daemons.
  477.     Files:
  478.         ymakefile daemon.h daemon.c getttyloc.c readpr.c
  479.  
  480. 177    Wednesday, February 10, 1988    Phil
  481.     Add ttwait and selwait check in getcommand.
  482.     Display number of processes found in readpr.
  483.     Files:
  484.         getcommand.c readpr.c
  485.  
  486. **** new version given to dle@csl.sri.com ****
  487. **** given to winser@gnu.ai.mit.edu ****
  488.  
  489. 200    Wednesday, Feb 17, 1988    Phil
  490.     Revamp autoconfig. Do DEFBANNER, TTYGROUP, TTYENT seperately
  491.     Revamp taring in ymakefile. Include stuff dir.
  492.     Move this to History.h. Create pversion.c
  493.     File:
  494.         autoconfig ymakefile History.h pversion.c
  495.  
  496. 201    Thursday, Feb 25, 1988    Phil
  497.     Add u_daemonp to LUSER, make u_daemon a struct daemon *
  498.     Files:
  499.         luser.h daemon.h getcommand.c getttyloc.c
  500.  
  501. 202    Monday, March 7, 1988    Phil
  502.     Define INIT_PID as 1, use in getcommand.c ttyask.c
  503.     Use heuristic weighting in getcommand2()
  504.     Create pr_weight
  505.     Files:
  506.         pr.h finger.h getcommand.c
  507.  
  508. 203    Tuesday March 8, 1988    Phil
  509.     figure out signal states under Umax
  510.     use valloc for mapping in readpr()
  511.     rename ttystate etc to waitstate ...
  512.     penalize gamescontrol (crocked for now)
  513.     bonus for runnable
  514.     finger.c no longer includes waitstate
  515.     Files:
  516.         ttystate.h -> waitstate.h
  517.         finger.c getcommand.c readpr.c
  518.  
  519. 204    Thursday March 10, 1988    Phil
  520.     Create enum and strings via _STATE and _STATES
  521.     Create PAuse state and WAit state.
  522.     Zero strings ends in names.c, alloc strings as VERSTRLEN+1
  523.     Add _u to syms (for pause state)
  524.     Files:
  525.         waitstate.h readpr.c info.h names.c syms.h
  526.  
  527. 205    Tuesday, March 22, 1988 Phil
  528.     Back from St. Lucia, W.I.
  529.     Add officialhostname and OFFICIALhostname to args.c, use in undomain.c
  530.     Other cleanup in undomain.c
  531.     Handle X11 host:[:]display[.[screen]] madness in getttyloc.c
  532.     Files:
  533.         args.c undomain.c getttyloc.c
  534.  
  535. 206    Wednesday, March 23, 1988 Phil
  536.     Add aliases islocalhost() to args.c, use in mcheck.c
  537.     Add BOOL to finger.h
  538.     Make strupcpy() and strzcpy() in strings.c return src (like strcpy)
  539.     Fix LOG_ERROR to be LOG_ERR (for 4.3) in fingerd.c
  540.     Files:
  541.         args.c mcheck.c finger.h strings.c fingerd.c
  542.  
  543. 207    Monday, April 4, 1988    Phil
  544.     Use mtime .ge. atime (was .gt.) in mcheck()
  545.     File:
  546.         mcheck.c
  547.  
  548. 210    Monday, April 10, 1988    Phil
  549.     NETFOLLOW only when there are local users specified.
  550.     Do remote users even if no local users were specified.
  551.     (make just /follow work again)
  552.     File:
  553.         args.c
  554.  
  555. 211    Wednesday, April 20, 1988 Phil
  556.     Call openlog with name "fingerd", use LOG_DAEMON if defined.
  557.     Add HIDDEN_PROGRAMS for things like "gamescontrol"
  558.     Files:
  559.         fingerd.c getcommand.c
  560.  
  561. 212    Tuesday, May 3, 1988    Phil
  562.     Add /state switch.
  563.     Files:
  564.         getcommand.c finger.c flags.h switch.c switch.h
  565.  
  566. 213    Saturday, May 6, 1988    Phil
  567.     Have makeperson take luser as first arg.  This way we can
  568.     finger personal name via inquire even if the yellow pages are
  569.     dead!  Flush getperson1. Add REL_SUP.
  570.     Files:
  571.         getperson.c select.c finger.c
  572.  
  573. 214    Sunday, May 7, 1988    Phil
  574.     If redirected console, display in default ttyloc.  Add /ITS
  575.     (change nicetime, "Jobnam" header).  Display relation even if
  576.     REL_SUP under /whois.  Add /output-idle -- displays time since
  577.     last output.  Display groups in whois() -- Can get redundancies!!
  578.     Files:
  579.         getttyloc.c whois.c flags.h switch.c
  580.         switch.h finger.c output.c
  581.  
  582. 215    Friday, May 13, 1988    Phil
  583.     Port to Celerity (accel 3.4.x).  Make read_vmunix read NMAGIC
  584.     files.  Capitalize first letter of uname inserted by '&' crock.
  585.     Check for vaild u_procp in readpr().  Reuse t_short as long string
  586.     if no ty_comment in readttyents().  Add PICKY.  Correct TTYENT
  587.     ifdefs. Fix bsd4_3 quote problem in autoconfig.  Add accel to
  588.     fingerd ARHITECTUREs.  Make Ultrix an ARCHITECTURE.  Add -L to ls
  589.     /bin/write in autoconfig -- On accel its a symlink!
  590.     Files:
  591.         getperson.c getcommand.c getttyloc.c kmem.c read_vmunix.c
  592.         readpr.c readttylocfile.c syms.h ustruct.c names.c
  593.         autoconfig fingerd.c
  594.  
  595. 216    Tuesday, May 17, 1988    Phil
  596.     Check for console redirection in getttyloc(). Add ISCONS macro.
  597.     Add BIG_CONSOLE, SMALL_CONSOLE to tag lines.
  598.     Add UID_NOBODY, USER_NOBODY to fingerd.
  599.     Files:
  600.         getttyloc.c fingerd.c
  601.  
  602. 217    Friday, May 20, 1988    Phil
  603.     Add /process (sw_pid). Column not wide enough!!
  604.     Files:
  605.         finger.c flags.h switch.h switch.c
  606.  
  607. 220    Thursday, May 26, 1988    Phil (bucsf)
  608.     Add NINQUIRE, inquire.h to support *NEW INQUIRE*
  609.     Add P_NOPWENT to explicily flag users without password
  610.     file entries (yp failure, stale inquire entry)
  611.     Add s_next field to SELs for quick traversal.
  612.     make ttyask timeouts be per question
  613.     Files:
  614.         person.h finger.c inquire.h ttyask.c getperson.c
  615.         select.c select.h
  616.  
  617. 221    Monday, June 6, 1988 AM Phil (bucsf)
  618.     Add MINCYCLE for ttycycle/ttyrandom.
  619.     Cleanup in getcommand() and getcommand2().
  620.     Add X10_STR/X11_STR to getttyloc()
  621.     Add useinquire global.  Not yet checked *TODO*
  622.     Use acct as supervisor,  Flush [maddr] display in whois.c
  623.     Files:
  624.         ttyask.c getcommand.c getttyloc.c args.c whois.c
  625.  
  626. 222    Monday, June 6, 1988 PM Phil (bucsf)
  627.     Make finguser() table driven!!!
  628.     File:
  629.         finger.c
  630.  
  631. 223    Wednesday, June 8, 1988 Phil
  632.     Rename /process to /pid. Document.  Create PID_COL:
  633.     display pid in own column (crowds personal name) if defined.
  634.     File:
  635.         finger.c switch.h
  636.  
  637. **************** Begin version 2
  638.  
  639. 300    Wednesday, June 15, 1988 Phil
  640.     Prepped for Beta.  Updated all Copyrights, man page dates.
  641.     Move DOC and SITE text into README.
  642.     Kill locname.h move stuff to local.h, autoconfig.
  643.     Make Install a sh file, preprocess with cpp (renamed Install.cpp)
  644.     Fix day 1 bug in outchar (tab accounting (we do this twice!!)
  645.     Files:
  646.         COPYRIGHT Copying finger.1 ttyloc.1 nttyloc.5 fingerd.8c
  647.         Install.cpp ymakefile Makefile
  648.         autoconfig ttyloc.c locname.c output.c
  649.  
  650. **** Beta release!!
  651.  
  652. 301    Wednesday, June 15, 1988 Phil
  653.     Fix tar build to exclude SAMPLE*.h (avoid doubles)
  654.     Invoke symdate and make-version with ./
  655.         Allow supression of "same" (NEVER_SAME) (Fuat@columbia)
  656.     Flush locname once and for all. Check for /usr/var under ultrix
  657.         (mkhaw@teknowledge-vaxc.arpa)
  658.     Allow suppression of "What" field (SUPPRESS_WHAT) (henry@garp)
  659.     Files:
  660.         Install.cpp ymakefile autoconfig finger.c
  661.  
  662. 302    Sunday, June 26, 1988 Phil
  663.     Add ALWAYS_PRINT_HEADER, DONT_TAB_PLAN (fuat)
  664.     Use LOADADDR on VAXen (Stu Grossman@Stanford)
  665.     Create HZUP macro for hosts only, create PRESERVE_HOST_CASE (Stu)
  666.     and uppercase[] table.  Use in zup, strupcpy.
  667.     Print "No one logged in." when needed.
  668.     Files:
  669.         finger.c whois.c read_vmunix.c finger.h doremote.c
  670.         getttyloc.c whois.c undomain.c string.c ymakefile
  671.     New:
  672.         upper.h upper.c
  673.  
  674. 303    Tuesday, July 6, 1988 Phil
  675.     Ran thru comdef to comment all #else and #endifs (Fuat)
  676.  
  677. 304    Friday, July 8, 1988 Phil
  678.     Monday, July 11
  679.     Use fprintf for help, feed thru pager.
  680.     Print copyright and version along with help.
  681.     File:
  682.         switch.c
  683.  
  684. **** Second Beta release!!
  685.  
  686. 305    Monday, July 25, 1988 Phil
  687.     rename PRESERVE_HOST_CASE to UPCASE_HOSTS and swap sense of test.
  688.     (host case preservation is now the default)
  689.     File:
  690.         finger.h
  691.  
  692. 306    Wednesday, July 27, 1988 Phil
  693.     Fix sense of ALWAYS_PRINT_HEADER.  Display last modification
  694.     date of plan.  Add telnet.gw to daemons under ultrix
  695.     Files:
  696.         finger.c whois.c daemon.c
  697.  
  698. 307    Friday, July 29, 1988    Phil
  699.     Sunday, July 31, 1988
  700.     Port to SunOS 4.0 (sos4_0) on bu-pub a sun4
  701.     Files:
  702.         readpr.c ustruct.c getcommand.c syms.h pr.h
  703.         autoconfig Install.cpp
  704.  
  705. 310    Monday, August 29, 1988    Phil
  706.     Use kvm library under sos4_0
  707.     (but not for struct proc, or nlist)
  708.     Files:
  709.         getcommand.c kmem.h names.c ustruct.c
  710.         kmem.c readpr.c ymakefile
  711.  
  712. 311    Monday, September 19, 1988 Phil
  713.     Various cleanup; add some forwards (thanks to gcc 1.25)
  714.     Make edit 310 work on non SOS4.0. Use enum in ttyask.
  715.     Files:
  716.         ttyask.c ustruct.c ttyloc.c names.c
  717.         getttyloc.c args.c
  718.  
  719. 312    Monday, October 24, 1988 Phil
  720.     Check for pty named ttyv0 under Ultrix, remove leading
  721.     pound sign and spaces from ttyent comments.  Add dtermd (?)
  722.     to daemons list.
  723.     Files:
  724.         getttyloc.c readttylocfile.c daemon.c
  725.  
  726. 313    Wednesday, October 26, 1988 Phil
  727.     Use switch in finger(). Add \ quoting. Don't stomp on prog.
  728.     Increment sp after & copy loop in makeperson()
  729.     Fix some Ultrix typos.
  730.     Files:
  731.         args.c getperson.c
  732.         autoconfig daemon.c readttylocfile.c
  733.  
  734. 314    Saturday, November 12, 1988    Phil
  735.     Port to Road Runner (sun 386i); Allow for alternate symbol
  736.     forms under COFF.  Add cmdtool to daemons list (4.0 sunview?).
  737.     read_vmunix does not yet understand COFF.  Add RR to fingerd.
  738.     Detect NULL in pstr().  Chuck tp_long if NULL.
  739.     Files:
  740.         names.c syms.h info.h fingerd.c autoconfig
  741.         daemon.c finger.c getttyloc.c
  742.  
  743. 315    Sunday, November 13, 1988    Phil
  744.     Crock console stuff to work for 4.0.  Output consdev... under
  745.     DEBUGSW.  Always output dev_t's in hex. Document consdev obs.
  746.     Files:
  747.         getcommand.c kmem.c readpr.c
  748.  
  749. 316    Tuesday, November 15, 1988    Phil
  750.     Add selection_svc to list of hidden[].  Create IN_DOT_SERVER
  751.     in case somone other than sun uses in.telnetd etc.  Flush
  752.     sos4_0 in favor of SunOS >= 40.  Define KMEMREAD FTYPE
  753.     ISBADFILE using kvm_t. Have symdate give real exit values.
  754.     Files:
  755.         getcommand.c daemon.c autoconfig daemon.c kmem.h
  756.         kmem.c readpr.c ustruct.c fingerd.c pr.h syms.h
  757.         getcommand.c symdate.c
  758.  
  759. months pass...
  760.  
  761. 317    Thursday, February 2, 1989    Phil
  762.     Clean up in autoconfig. Use $T $RD etc for testing.
  763.     Port to Ultrix 3.0; VOIDSIG (was SunOs >= 40), and P_TTYP.
  764.     Add S_HELD for yux.
  765.     Files:
  766.         autoconfig readpr.c pr.h
  767.  
  768. 320    Thursday, February 16, 1989    Phil
  769.     Clear lastpr in getcommand()
  770.     File:
  771.         getcommand.c
  772.  
  773. 321    Tuesday, February 22, 1989    Phil
  774.     Fix ttyask symlink in Install.cpp
  775.     File:
  776.         Install.cpp
  777.  
  778. 322    Friday, March 3, 1989        Phil
  779.     Port to Sony News. Very clean 4.3!!
  780.     Punt in pstr before togoal()!
  781.     Files:
  782.         finger.c fingerd.c getttyloc.c read_vmunix.c
  783.  
  784. 323    Wednesday, April 26, 1989    Phil
  785.     Back from the Yucatan, Mex.
  786.     Update Copyrights again!  This time use GNU General
  787.     Public Licence Version 1. RCS-ified (1.1)
  788.     Files:
  789.         The known world
  790.  
  791. 324    Wednesday, April 26, 1989    Phil
  792.     Shorten KIT name for S5!
  793.     File:
  794.         ymakefile
  795.  
  796. 325    Sunday, May 21, 1989        Phil
  797.     Port to DEC PMAX. Ran comdef on *.c. Removed UMAP1/2 code
  798.     Files:
  799.         ustruct.c read_vmunix.c fingerd.c
  800.         autoconfig
  801.  
  802. 326    Monday, May 22, 1989        Phil
  803.     Use h_errno, h_errlist to report errors!
  804.     File:
  805.         doremote.c
  806.  
  807. 327    Sunday, June 11, 1989        Phil
  808.     Fix long standing bug with explicit finger of remotely logged
  809.     8 character usernames(!)  in ent_select() found by
  810.     composer@bucsf
  811.     File:
  812.         getent.c
  813.  
  814. 330    Monday, June 12, 1989        Phil
  815.     Port to SGI/Iris.  First USG system with the necessary tools
  816.     (job control and GNU Emacs)! myecho no longer needed.
  817.     Files:
  818.         Makefile acct.c getttyloc.c readpr.c autoconfig
  819.         getut.c make-version switch.c finger.c info.h myecho.c
  820.         syms.h fingerd.c kmem.c names.c getcommand.c kmem.h
  821.         pr.h ustruct.c getent.c lastlog.c read_vmunix.c
  822.         ymakefile ttyloc.c ttyask.c getent.c daemon.c
  823.  
  824.     New:
  825.         mywhoami.c uptime.c COMDEFALL DIFFALL
  826.  
  827. 331    Wednesday, June 14, 1989    Phil
  828.     Port back from SGI Clean up system include files in
  829.     readpr/getcommand/ustruct Compiles on SOS3, SOS4, SGI.  Defend
  830.     against missing h_errno.  Add new daemon names for SGI.  Try
  831.     to convert dotted octets to hostname or netname (checkhost).
  832.     Lookup terminal location for last logout terminal.  If stdout
  833.     not a terminal use unlimited output width.  Create strings.h
  834.     to ease ports to other USG systems.
  835.     Files:
  836.         daemon.c doremote.c finger.c readpr.c undomain.c
  837.         ustruct.c getcommand.c output.c readttylocfile.h
  838.  
  839.     New:
  840.         strings.h CHECKINALL
  841.  
  842. 332    Thursday, June 15, 1989        Phil
  843.     Killed unused vars found with gcc -W.  What a compiler!
  844.     Files:
  845.         ttyask.c fingerd.c switch.c args.c readttylocfile.c
  846.         readttylocfile.h kmem.c finger.c
  847.  
  848. 333    Tuesday, June 20, 1989        Phil
  849.     Port to Umax V (Multimax System 5) -- Second USG system
  850.     Clean up ttyloc.c, fingerd.c, PMAX/ultrix in ustruct.c
  851.     More gcc induced cleanup (void and int function decls)
  852.     Files:
  853.         Makefile acct.c autoconfig doremote.c finger.c
  854.         fingerd.c getcommand.c getttyloc.c kmem.c mcheck.c
  855.         names.c output.c pr.h pversion.c readpr.c syms.h
  856.         ttyloc.c ustruct.c ymakefile
  857.     Renamed:
  858.         readttylocfile.[ch] to ttylocfile.[ch]
  859.  
  860. 334    Wednesday, June 21, 1989    Phil
  861.     Port back to VAX/4.3 and RT/4.3.  Use getpwnam for unmatched
  862.     SELs under INQUIRE.  Add new switch /noinquire.  Add s_orig to
  863.     SEL.  Add PUP telser daemon! Weight reduction in readpr and
  864.     ustruct.  Always use p_addr, flushed MAP, HOG is default.  Use
  865.     ioctls to get terminal width.  Add U_BADTTY to luser.  Keep
  866.     last test version/date in README.
  867.     Files:
  868.         luser.h daemon.c finger.c output.c readpr.c
  869.         select.[ch] switch.[ch] symsh.h ustruct.c README
  870.         
  871.  
  872. 335    Thursday, June 22, 1989        Phil
  873.     Update finger man page.  Start port to AIX/RT; autoconfig for
  874.     SHORT_TTYP SYSLOG STREAMS SVR3_STATES PTYPATH PTS_PTY_NAMES.
  875.     Set SHELL in Makefile! Handle TTY_WID/PER_WID differently.
  876.     Move STD_{INPUT,OUTPUT} to finger.h. Always read padded
  877.     ustruct from drum.
  878.     Files:
  879.         Makefile finger.h output.c switch.h autoconfig
  880.         getcommand.c pr.h syms.h finger.1 getttyloc.c readpr.c
  881.         ttyask.c finger.c names.c switch.c ustruct.c
  882.  
  883. 336    Sunday, June 25, 1989        Phil
  884.     Use UNDERSCORE_NLIST_NAMES to determine nlist symbol flavor.
  885.     Move make depend to Makefile, use cc -M; add cc-M from xrn11.
  886.     Bring back usrpt lossage for ibm032 under NEED_USRPT.  Add
  887.     NEED_USERMAP for non accel BSD systems.
  888.     Files:
  889.         finger.c getcommand.c names.c pr.h syms.h ustruct.c
  890.         ymakefile Makefile autoconfig kmem.c readpr.c
  891.  
  892. 337    Tuesday, June 27, 1989        Phil
  893.     Make /follow work locally (at long last!)
  894.     Fix ttyloc.  Only CHECKINALL locked files!
  895.     Files:
  896.         args.c mcheck.c select.c CHECKINALL
  897.  
  898. 340    Sunday, July 9, 1989        Phil
  899.     Port back to VAX Ultrix 3.0; Fix mail last read time.
  900.     Files:
  901.         ymakefile daemon.c finger.c getcommand.c
  902.         mcheck.c output.c ustruct.c
  903.  
  904. 341    Wednesday, July 12, 1989    Phil
  905.     Port back to Umax 4.2 (no ttyp).  Use ut_pid under S5 and
  906.     kill(2) to verify utmp entries!  Works on sgi and Umax V.
  907.     Files:
  908.         getcommand.c getut.c
  909.  
  910. 342    Wednesday, July 26, 1989    Phil
  911.     output \r in fingerd. ansify newmanifest. Add DONT_SAY_HACKING
  912.     in whois(). make split uuencodes of compressed tar. Make
  913.     net_name a routine. use h_addr_list, display Trying...  use
  914.     net_name for remote fingers.
  915.     Files:
  916.         ymakefile fingerd.c newmanifest.c
  917.         whois.c undomain.c doremote.c
  918.  
  919.  
  920. 343    Tuesday, August 1, 1989        Phil
  921.     Now works on IBM PC-RT/AIX.  If /usr/mail exists use it.
  922.     Files:
  923.         ustruct.c autoconfig
  924.  
  925. 344    Saturday, September 9, 1989    Phil
  926.     Check for NULL in pcount()
  927.     File:
  928.         finger.c
  929.  
  930. 345    Wednesday, November 15, 1989    Phil
  931.     Add /noplan
  932.     File:
  933.         finger.c args.c flag.h switch.c switch.h finger.1
  934.  
  935. 346    Friday, December 1, 1989    Phil
  936.     Update for Umax V 2.2g
  937.     Files:
  938.         autoconfig ustruct.c readpr.c
  939.  
  940. 347    ??? Phil
  941.     Start working on per-user flags.
  942.     Particularly force /match for local names in .forward!!
  943.     Files:
  944.         args.c doremote.c
  945.  
  946. 350    Friday, January 12, 1990    Phil
  947.     Port to Interactive 386/ix SVR3.2; Put all ustruct include in
  948.     ustruct.h; Check modes in autoconfig with checkmode.c
  949.     Files:
  950.         autoconfig Makefile ymakefile
  951.         ustruct.c getcommand.c readpr.c 
  952.     New:
  953.         checkmode.c ustruct.h
  954.  
  955. 351    Friday, January 12, 1990    Phil
  956.     Reimplement select.c using lists, flush select.h
  957.     Implement per-user switches (only /match for now)
  958.     Files:
  959.         args.c select.c
  960.     Flushed:
  961.         select.h
  962.  
  963. 352    Friday, January 12, 1990    Phil
  964.     Add struct flags to luser struct
  965.     Do make depend while building xmakefile
  966.     Files:
  967.         finger.c getcommand.c getent.c getperson.c getttyloc.c
  968.         luser.c mcheck.c output.c select.c whois.c whoj.c
  969.         Makefile ymakefile
  970.  
  971. 353    Tuesday, January 30, 1990    Phil
  972.     Flush args.m4, etc, rename flags struct, Flags to
  973.     switches, Sw.  Remove old inquire (and INQUIRE define).
  974.     Major cleanup in select.c
  975.     Flushed:
  976.         args.m4 flags.h
  977.     New:
  978.         args.h    
  979.     Files:
  980.         ymakefile args.c finger.c getent.c getttyloc.c inquire.h
  981.         inquire.c luser.h mcheck.c select.c switch.c finger.1
  982.  
  983. 354    Tuesday, April 24, 1990    Phil
  984.     Only make depend when building programs. Added DEPEND hack.
  985.     Fix kit/dist. Update Copyrights to 1990, remove some
  986.     boilerplate, use RCS Id rather than Header. Ran COMDEFALL.
  987.     Checked in as RCS version 2.0
  988.     Files:
  989.         Makefile ymakefile README autoconfig
  990.  
  991. 355    Wednesday, April 25, 1990 3AM    Phil
  992.     Touchups for UmaxV and AIX
  993.     Files:
  994.         Makefile ymakefile autoconfig readpr.c ustruct.h cc-M
  995.  
  996. 356    Wednesday, April 25, 1990 6PM    Phil
  997.     Touchups for SGI/Irix and Ultrix 3.1 (per jdh)
  998.     Files:
  999.         ustruct.c ustruct.h output.c getttyloc.c
  1000.  
  1001. 357    Wednesday, April 25, 1990 8PM    Phil
  1002.     Moved make depend work back to x/ymakefile
  1003.     Files:
  1004.         Makefile ymakefile
  1005.  
  1006. 360    Thursday, April 26, 1990 -
  1007.     Wednesday, May 2, 1990        Phil
  1008.     Fixes to Install.cpp from spike@world.std.com;
  1009.     Implement finger.conf file!!
  1010.     Flushed:
  1011.         acct.c
  1012.     New:
  1013.         conf.c finger.conf.5 finger.conf
  1014.     Files:
  1015.         Install.cpp Makefile args.c autoconfig doremote.c
  1016.         finger.c getcommand.c getperson.c output.c undomain.c
  1017.         whois.c ymakefile
  1018.  
  1019. 361    Tuesday, May 8, 1990        Phil
  1020.     Port to SunOS 4.1, Make SunOS define 3 digits!!
  1021.     Files:
  1022.         autoconfig daemon.c fingerd.c getcommand.c getttyloc.c
  1023.         kmem.c kmem.h luser.h output.c pr.h readpr.c syms.h
  1024.         ustruct.c ustruct.h README
  1025.  
  1026. 362    Thursday, May 17, 1990        Phil
  1027.     Port to Sequent S3, add ORIG to kit.
  1028.     New:
  1029.         ORIG
  1030.     Files:
  1031.         DIFFALL README autoconfig fingerd.c read_vmunix.c
  1032.         ustruct.c ymakefile
  1033.  
  1034. 363    Friday, May 18, 1990        Phil
  1035.     Port back to Celerity, cleanup fingerd
  1036.     Files:
  1037.         autoconfig fingerd.c README
  1038.  
  1039. 364    Sunday, May 20, 1990        Phil
  1040.     Define Umax as 42 or 43 in preparation for release 4.0
  1041.     Use stat of /dev/tty15 in onlat(). Define and use AIX_RT
  1042.     Files:
  1043.         autoconfig fingerd.c getcommand.c getttyloc.c kmem.c
  1044.         names.c read_vmunix.c readpr.c ustruct.c ustruct.h
  1045.  
  1046. 365    Monday, May 21, 1990 -
  1047.     Monday, June 4, 1990        Phil
  1048.     Port to AIX3 on the IBM RS/6000
  1049.     Files:
  1050.         args.c autoconfig daemon.c finger.c fingerd.c getcommand.c
  1051.         getttyloc.c output.c readpr.c ustruct.c ustruct.h whois.c
  1052.         ymakefile
  1053.  
  1054. 366    Tuesday, May 29, 1990 -
  1055.     Monday, June 4, 1990        Phil
  1056.     Merge back changes for AIX 1.1 PS/2 port.
  1057.     Have not tested ustruct2() code. Add "make quick"
  1058.     Files:
  1059.         Makefile autoconfig fingerd.c getut.c ustruct.c ustruct.h
  1060.  
  1061. 367    Thursday, June 14, 1990        Phil
  1062.     Port to Umax 4.3 (rel 4.0).
  1063.     Files:
  1064.         autoconfig getcommand.c output.c
  1065.         read_vmunix.c readpr.c ustruct.c ymakefile
  1066.  
  1067.  
  1068. 370    Friday, June 29, 1990        Phil
  1069.     Fix display of last login host.  Do checkhost() in lltime(),
  1070.     pass back host flag to prevent tty line lookup!!  If local
  1071.     host is a suffix of remote host remove entire thing!!  Change
  1072.     " Account: " display to " Group: ".
  1073.     Files:
  1074.         undomain.c lastlog.c finger.c
  1075.  
  1076. **************** Start version 3
  1077.  
  1078. 400    Friday, July 6, 1990        Phil
  1079.     Ran COMDEF, checked all files in as 3.0
  1080.     Status "Rel", tag "rel1"
  1081.  
  1082. **************** released to comp.sources.unix
  1083.  
  1084. ******** DONT FORGET TO UPDATE VERSION NUMBER BELOW!! (IN OCTAL) ********/
  1085.  
  1086. struct _JBVER ver = { 0, 03, 0, 0400 };    /* who, major, minor, edit */
  1087.