Lines Matching refs:statbuf
371 struct stat statbuf; /* The file-statistics return buffer */ in _pu_path_is_dir() local
375 if(stat(pathname, &statbuf) < 0) in _pu_path_is_dir()
380 return S_ISDIR(statbuf.st_mode) != 0; in _pu_path_is_dir()
394 struct stat statbuf; /* The file-statistics return buffer */ in _pu_path_is_file() local
398 if(stat(pathname, &statbuf) < 0) in _pu_path_is_file()
403 return S_ISREG(statbuf.st_mode) != 0; in _pu_path_is_file()
417 struct stat statbuf; /* The file-statistics return buffer */ in _pu_path_is_exe() local
421 if(stat(pathname, &statbuf) < 0) in _pu_path_is_exe()
426 return S_ISREG(statbuf.st_mode) != 0 && in _pu_path_is_exe()
427 (statbuf.st_mode & (S_IXOTH | S_IXGRP | S_IXUSR)) && in _pu_path_is_exe()
535 struct stat statbuf; in _pu_file_exists() local
536 return stat(pathname, &statbuf) == 0; in _pu_file_exists()