iozone.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. --- src/current/iozone.c Wed Jun 26 23:45:45 2002
  2. +++ src/current/iozone.c.orig Mon Jul 1 16:06:47 2002
  3. @@ -782,7 +782,7 @@
  4. void throughput_test(); /* Multi process throughput */
  5. void multi_throughput_test(); /* Multi process throughput */
  6. void prepage(); /* Pre-fault user buffer */
  7. -#if defined(linux) || defined(solaris) || defined(__AIX__) || defined(OSFV5) || defined(UWIN) || defined(Windows)
  8. +#ifdef HAVE_ANSIC_C
  9. float do_compute(float); /* compute cycle simulation */
  10. #else
  11. float do_compute(); /* compute cycle simulation */
  12. @@ -13030,27 +13030,27 @@
  13. }
  14. #ifndef ASYNC_IO
  15. -async_read()
  16. +int async_read()
  17. {
  18. printf("Your system does not support async I/O\n");
  19. exit(169);
  20. }
  21. -async_write_no_copy()
  22. +size_t async_write_no_copy()
  23. {
  24. printf("Your system does not support async I/O\n");
  25. exit(170);
  26. }
  27. -async_write()
  28. +size_t async_write()
  29. {
  30. printf("Your system does not support async I/O\n");
  31. exit(171);
  32. }
  33. -async_read_no_copy()
  34. +int async_read_no_copy()
  35. {
  36. printf("Your system does not support async I/O\n");
  37. exit(172);
  38. }
  39. -async_release()
  40. +void async_release()
  41. {
  42. printf("Your system does not support async I/O\n");
  43. exit(173);