genericopenlibs/openenvcore/libc/test/testsyscalls/src/tsyscallsblocks.cpp
changeset 18 47c74d1534e1
parent 0 e4d67989cc36
child 45 4b03adbd26ca
child 57 2efc27d87e1c
equal deleted inserted replaced
0:e4d67989cc36 18:47c74d1534e1
  6925 
  6925 
  6926 void* handler(void *)
  6926 void* handler(void *)
  6927 	{
  6927 	{
  6928 	int ret;
  6928 	int ret;
  6929 	ret = fsync(fd);
  6929 	ret = fsync(fd);
       
  6930 	ret = ret;
  6930 	return 0;
  6931 	return 0;
  6931 	}
  6932 	}
  6932 
  6933 
  6933 
  6934 
  6934 void* handler1(void *)
  6935 void* handler1(void *)
  6935 	{
  6936 	{
  6936 	int ret;
  6937 	int ret;
  6937 	lseek(fd, 2, SEEK_SET);
  6938 	lseek(fd, 2, SEEK_SET);
  6938 	ret = fsync(fd);   //only one fsync should be able to sync the data.
  6939 	ret = fsync(fd);   //only one fsync should be able to sync the data.
       
  6940 	ret = ret;
  6939 	return 0;
  6941 	return 0;
  6940 	}
  6942 	}
  6941 
  6943 
  6942 TInt CTestSyscalls :: sync_safe()
  6944 TInt CTestSyscalls :: sync_safe()
  6943 	{
  6945 	{