struct stat defines in client