open function ....

I have written a program which opens a file in create cum append mode for logging data into a file ...

if ((transferInfo->objFd = open(transferInfo->tempFile,

O_WRONLY | O_CREAT | O_APPEND, URDWRMASK))

== -1)

This works fine on Solaris <=9 but I am running this program on Solaris 10. Have there been any changes in this functions usage in Solaris 10. It is opening the file and overwriting the contents of it, not appending. Can anyone have a look at this and suggest if I am not doing anything correctly ?

Thanks

[560 byte] By [shishir.singh] at [2007-11-26 8:07:25]
# 1
It works OK on my Solaris 10 3/05 s10_74 X86 box, maybe some other process is erasing your data (or the file completely)?
MaximKartashev at 2007-7-6 20:46:56 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2
Thanks...the problem was not with the open call but because of a internal temp file which was putting only the latest data in the final file ...
shishirsingh at 2007-7-6 20:46:56 > top of Java-index,Development Tools,Solaris and Linux Development Tools...