fix appendfile problem on macos.
when i open file with mode 'a+' on linux, seek position is 0.
on macos seek position is end of file instead. not documented.
#header## HG changeset patch# User #author## Date #date|date## Node ID #node##parent%changesetparent##desc##diff#