use fstat, stat, lstat in linux