mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-18 01:30:07 +02:00
41 lines
1.1 KiB
Diff
41 lines
1.1 KiB
Diff
diff -urN piozone-1.0/piozone.c piozone-1.0-haiku/piozone.c
|
|
--- piozone-1.0/piozone.c 2002-01-28 08:14:54.022282240 +0000
|
|
+++ piozone-1.0-haiku/piozone.c 2012-07-18 19:03:17.767295488 +0000
|
|
@@ -12,7 +12,9 @@
|
|
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
*/
|
|
|
|
+#include <stdint.h>
|
|
#include <stdio.h>
|
|
+#include <stdlib.h>
|
|
#include <sys/types.h>
|
|
#include <unistd.h>
|
|
#include <string.h>
|
|
@@ -73,7 +75,7 @@
|
|
int count = 0;
|
|
int nr = 0;
|
|
|
|
- llseek(fd, off, SEEK_SET);
|
|
+ lseek(fd, off, SEEK_SET);
|
|
signal(SIGALRM, sigalrm_handler);
|
|
stopf = 0;
|
|
printf("Testing... ");
|
|
@@ -121,7 +123,7 @@
|
|
printf("Testing... ");
|
|
alarm(ts);
|
|
while (!stopf &&
|
|
- llseek(fd, off+((rand()&area)*MiB), SEEK_SET) != -1 &&
|
|
+ lseek(fd, off+((rand()&area)*MiB), SEEK_SET) != -1 &&
|
|
(nr = read(fd, iobuf, len)) == len)
|
|
{
|
|
print_dial();
|
|
@@ -159,7 +161,7 @@
|
|
off = 0;
|
|
del = 64*GiB;
|
|
|
|
- while (del > 8*KiB && llseek(fd, off+del, SEEK_SET) != -1)
|
|
+ while (del > 8*KiB && lseek(fd, off+del, SEEK_SET) != -1)
|
|
{
|
|
if (read(fd, buf, 8*KiB) < 0)
|
|
del >>= 1;
|