metag: use generic lowlevellock
[uclibc-ng.git] / test / stdio / lseek_no_lfs.c
blob54daf6b4832e808b216b8eeeb40b28c1c14d3c7e
1 #include <stdio.h>
2 #include <string.h>
3 #include <errno.h>
5 int main(int argc, char *argv[])
7 FILE * f = fopen(argv[0], "rb");
8 if (!f)
10 printf("Error: Can't open %s, reason: %s\n", argv[0], strerror(errno));
11 return 1;
14 if (fseek(f, (unsigned)4096, (int)SEEK_SET) == -1)
16 printf("Test failed, fseek return fail code. errno=%u (%s)\n", errno, strerror(errno));
17 return 1;
20 fclose(f);
21 return 0;