genericopenlibs/openenvcore/libc/test/testsyscalls/src/tsyscallsblocks.cpp
branchRCL_3
changeset 57 2efc27d87e1c
parent 56 acd3cd4aaceb
equal deleted inserted replaced
56:acd3cd4aaceb 57:2efc27d87e1c
  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;
       
  6931 	return 0;
  6930 	return 0;
  6932 	}
  6931 	}
  6933 
  6932 
  6934 
  6933 
  6935 void* handler1(void *)
  6934 void* handler1(void *)
  6936 	{
  6935 	{
  6937 	int ret;
  6936 	int ret;
  6938 	lseek(fd, 2, SEEK_SET);
  6937 	lseek(fd, 2, SEEK_SET);
  6939 	ret = fsync(fd);   //only one fsync should be able to sync the data.
  6938 	ret = fsync(fd);   //only one fsync should be able to sync the data.
  6940 	ret = ret;
       
  6941 	return 0;
  6939 	return 0;
  6942 	}
  6940 	}
  6943 
  6941 
  6944 TInt CTestSyscalls :: sync_safe()
  6942 TInt CTestSyscalls :: sync_safe()
  6945 	{
  6943 	{