modify all stat in posix-helper.c, but still has bug