1: static char sccsid[] = "@(#)speeds.c	4.1	(Berkeley)	10/2/82";
   2: 
   3: /*
   4: 	speeds niter -m mach -p len
   5: 
   6: 	used with speedr.c to compute the link speed
   7: */
   8: # include "defs.h"
   9: /* global variables */
  10: struct daemonparms netd;
  11: 
  12: main(argc,argv)
  13:   char **argv;{
  14:     int n,t,i;
  15:     short j;
  16:     char buf[2000];
  17:     t = atoi(argv[argc-1]);
  18:     debugflg = DBV;
  19:     setupdaemon(argc,argv);
  20:     n = netd.dp_datasize;
  21:     printf("len %d iter %d\n",netd.dp_datasize,t);
  22:     initseqno();
  23:     j = n;
  24: # ifdef SWAB
  25:     swab(&j,&j,2);
  26: # endif
  27:     xwrite(&j,2);
  28:     for(i=0; i<n; i++)buf[i] = 'A';
  29:     buf[n-1] = '\n';
  30:     for(i=0;i<t;i++){
  31:         if(i == t-1)buf[0] = 'Z';
  32:         xwrite(buf,n);
  33:         putchar('.');
  34:         fflush(stdout);
  35:         }
  36:     }

Defined functions

main defined in line 12; never used

Defined variables

netd defined in line 10; used 2 times
sccsid defined in line 1; never used
Last modified: 1982-10-03
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 701
Valid CSS Valid XHTML 1.0 Strict