search for: seektest

Displaying 1 result from an estimated 1 matches for "seektest".

2003 Nov 14
3
problems using large file systems
...it(-1); } result = lseek64(fd,2147483650,SEEK_SET); if (result < 0) { printf("error seeking file errno = %d\n",errno); exit(-1); } return 0; } I build the code like this: gcc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -c -o seektest.o seektest.c seektest.c: In function `main': seektest.c:21: warning: decimal constant is so large that it is unsigned gcc -o seektest seektest.o Now running seektest I get the following error: -bash-2.05b$ ./seektest error seeking file errno = 0 Any ideas what is going on ? Best Wishes Amit