2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
18 fd
= mkstemp("T:lseekXXXXXX");
20 TEST((lseek(fd
, size
, SEEK_SET
) == size
));
21 TEST((fstat(fd
, &buf
) != -1));
22 TEST((buf
.st_size
== size
));
24 TEST((lseek(fd
, 0, SEEK_SET
) == 0));
25 TEST((lseek(fd
, 100, SEEK_CUR
) == 100));
26 TEST((lseek(fd
, -100, SEEK_CUR
) == 0));
28 TEST((lseek(fd
, 0, SEEK_END
) == size
));
29 TEST((lseek(fd
, -size
, SEEK_END
) == 0));