home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
unix
/
volume22
/
byte-benchmarks
/
part01
/
syscall.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-06-07
|
1KB
|
44 lines
/*******************************************************************************
* The BYTE UNIX Benchmarks - Release 2
* Module: syscall.c SID: 2.4 4/17/90 16:45:36
*
*******************************************************************************
* Bug reports, patches, comments, suggestions should be sent to:
*
* Ben Smith or Rick Grehan at BYTE Magazine
* bensmith@bixpb.UUCP rick_g@bixpb.UUCP
*
*******************************************************************************
* Modification Log:
* $Header: syscall.c,v 3.4 87/06/22 14:32:54 kjmcdonell Beta $
*
******************************************************************************/
char SCCSid[] = "@(#) @(#)syscall.c:2.4 -- 4/17/90 16:45:36";
/*
* syscall -- sit in a loop calling the system
*
*/
main(argc, argv)
int argc;
char *argv[];
{
int iter;
int i;
if (argc != 2) {
printf("Usage: %s count\n", argv[0]);
exit(1);
}
iter = atoi(argv[1]);
while (iter-- > 0) {
close(dup(0));
getpid();
getuid();
umask(022);
}
exit(0);
}