1: #include "hd.h"
   2: 
   3: /* This records each usage of Vsh in the file LOGFILE */
   4: /* Each entry is in the form "User Time(minutes) Date" */
   5: 
   6: long time (), ent_time [1];
   7: char *ctime ();
   8: 
   9: comein () {
  10: time (ent_time);
  11: }
  12: 
  13: goout () {
  14: 
  15: /* this proceedure was used upon exit to see who was using
  16:    vsh, for the moment comment out the procedure.
  17: 	long lv_time [1];
  18: 	char *namep;
  19: 	register char *cp;
  20: 	FILE *logfile;
  21: 
  22: 	time (lv_time);
  23: 	for (namep = cp = envhome; *cp; cp++)
  24: 		if (*cp == '/') namep = cp;
  25: 	namep++;
  26: 	if (compe (namep, "scheibel")) return;
  27: 	logfile = fopen (LOGFILE, "a");
  28: 	fprintf (logfile, "%8.8s %3.3d %10.10s\n",
  29: 		namep, (*lv_time - *ent_time)/60, ctime (ent_time));
  30: 	fclose (logfile); */
  31: }
  32: 
  33: leave () {          /* exit after resetting tty */
  34:     tty_cooked ();
  35:     goout ();
  36:     exit (0);
  37: }

Defined functions

comein defined in line 9; used 1 times
goout defined in line 13; used 1 times
  • in line 35

Defined variables

ent_time defined in line 6; used 1 times
  • in line 10
Last modified: 1980-08-11
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 614
Valid CSS Valid XHTML 1.0 Strict