projects
/
unix-history
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
BSD 4_3_Net_2 release
[unix-history]
/
usr
/
src
/
sys
/
tests
/
benchmarks
/
syscall.c
/*
* System call overhead benchmark.
*/
main
(
argc
,
argv
)
char
*
argv
[];
{
register
int
ncalls
;
if
(
argc
<
2
) {
printf
(
"usage: %s #syscalls
\n
"
,
argv
[
0
]);
exit
(
1
);
}
ncalls
=
atoi
(
argv
[
1
]);
while
(
ncalls
-- >
0
)
(
void
)
getpid
();
}