home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / source / byteunix.lzh / byte.1 / syscall.c < prev    next >
C/C++ Source or Header  |  1990-05-11  |  1KB  |  44 lines

  1. /*******************************************************************************
  2.  *  The BYTE UNIX Benchmarks - Release 2
  3.  *          Module: syscall.c   SID: 2.4 4/17/90 16:45:36
  4.  *          
  5.  *******************************************************************************
  6.  * Bug reports, patches, comments, suggestions should be sent to:
  7.  *
  8.  *    Ben Smith or Rick Grehan at BYTE Magazine
  9.  *    bensmith@bixpb.UUCP    rick_g@bixpb.UUCP
  10.  *
  11.  *******************************************************************************
  12.  *  Modification Log:
  13.  *  $Header: syscall.c,v 3.4 87/06/22 14:32:54 kjmcdonell Beta $
  14.  *
  15.  ******************************************************************************/
  16. char SCCSid[] = "@(#) @(#)syscall.c:2.4 -- 4/17/90 16:45:36";
  17. /*
  18.  *  syscall  -- sit in a loop calling the system
  19.  *
  20.  */
  21.  
  22. main(argc, argv)
  23. int    argc;
  24. char    *argv[];
  25. {
  26.     int    iter;
  27.     int    i;
  28.  
  29.     if (argc != 2) {
  30.         printf("Usage: %s count\n", argv[0]);
  31.         exit(1);
  32.     }
  33.  
  34.     iter = atoi(argv[1]);
  35.  
  36.     while (iter-- > 0) {
  37.         close(dup(0));
  38.         getpid();
  39.         getuid();
  40.         umask(022);
  41.     }
  42.     exit(0);
  43. }
  44.