#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>

int main (int argc, char* argv[]) {
	int fd;
	off_t pos;
	
	fd = open("tlseek.tst", O_RDWR);
	pos = lseek (fd, 0, SEEK_END);
	fsync(fd);
	while ( pos == lseek (fd, 0, SEEK_END) ) {
		sleep(1);
		fsync(fd);
	}
	
	return 0;
}


