OSDN Git Service

Create wrapper pgwin32_safestat() and redefine stat() to it
authorMagnus Hagander <magnus@hagander.net>
Thu, 10 Apr 2008 16:58:51 +0000 (16:58 +0000)
committerMagnus Hagander <magnus@hagander.net>
Thu, 10 Apr 2008 16:58:51 +0000 (16:58 +0000)
commit47a19a495d89e00fd98ad7139beb0dbecedca353
tree4f061bb10cad784af09e3e434e0ac39bde01c1ef
parenta57a1e61a17c002b300da397726b9d0fd86b59a0
Create wrapper pgwin32_safestat() and redefine stat() to it
on win32, because the stat() function in the runtime cannot
be trusted to always update the st_size field.

Per report and research by Sergey Zubkovsky.
src/include/port.h
src/port/dirmod.c