13 fd
= mkstemp("T:lseekXXXXXX");
15 TEST((lseek(fd
, size
, SEEK_SET
) == size
));
16 TEST((fstat(fd
, &buf
) != -1));
17 TEST((buf
.st_size
== size
));
19 TEST((lseek(fd
, 0, SEEK_SET
) == 0));
20 TEST((lseek(fd
, 100, SEEK_CUR
) == 100));
21 TEST((lseek(fd
, -100, SEEK_CUR
) == 0));
23 TEST((lseek(fd
, 0, SEEK_END
) == size
));
24 TEST((lseek(fd
, -size
, SEEK_END
) == 0));