blob: e3aee89ea2bd63c14ce06fc71f6f5aa52a7de517 [file] [log] [blame]
diff -urN src/Run newsrc/Run
--- src/Run 2006-05-17 14:24:46.000000000 -0700
+++ newsrc/Run 2010-05-07 19:02:43.000000000 -0700
@@ -53,7 +53,7 @@
# You will need ...
# awk cat cc chmod comm cp date dc df echo ed expr
# kill ls make mkdir rm sed test time touch tty umask who
-# AND /usr/bin/time
+# AND time
# to generate result indexes, you will also need ...
# join
#
@@ -66,7 +66,7 @@
#
if [ -z "${FLAVOR-}" ]; then
# determine flavor of UNIX from number of lines generated by "time"
- Fcount=`/usr/bin/time date 2>&1 | wc -l | sed 's/ //g'`
+ Fcount=`time date 2>&1 | wc -l | sed 's/ //g'`
case "$Fcount" in
2) FLAVOR=BSD ;;
3) FLAVOR=Linux ;;
@@ -468,10 +468,10 @@
############ THE BENCH IS TIMED ##############
if [ -z "${stdin-}" ]; then
# without redirected stdin
- /usr/bin/time $prog $opt $bg 2>>$TMPTIMES >>$stdout
+ time $prog $opt $bg 2>>$TMPTIMES >>$stdout
else
# with redirected stdin
- /usr/bin/time $prog $opt $bg <$stdin 2>>$TMPTIMES >>$stdout
+ time $prog $opt $bg <$stdin 2>>$TMPTIMES >>$stdout
fi
###############################################
cd $pwd # move back home
diff -urN src/src/execl.c newsrc/src/execl.c
--- src/src/execl.c 1999-07-28 14:46:58.000000000 -0700
+++ newsrc/src/execl.c 2010-05-07 19:01:38.000000000 -0700
@@ -88,7 +88,7 @@
fprintf(stderr, "%lu loops\n", iter);
exit(0);
}
- execl(fullpath, fullpath, "0", dur_str, count_str, start_str, 0);
+ execl(fullpath, fullpath, "0", dur_str, count_str, start_str, (char *)0);
printf("Exec failed at iteration %lu\n", iter);
perror("Reason");
exit(1);