Lines Matching refs:fmode
24 …etscTestOwnership(const char fname[], char mode, uid_t fuid, gid_t fgid, int fmode, PetscBool *flg) in PetscTestOwnership() argument
50 …etscTestOwnership(const char fname[], char mode, uid_t fuid, gid_t fgid, int fmode, PetscBool *flg) in PetscTestOwnership() argument
102 if (fmode & rbit) *flg = PETSC_TRUE; in PetscTestOwnership()
104 if (fmode & wbit) *flg = PETSC_TRUE; in PetscTestOwnership()
106 if (fmode & ebit) *flg = PETSC_TRUE; in PetscTestOwnership()
165 int fmode; in PetscTestFile() local
172 PetscCall(PetscGetFileStat(fname, &fuid, &fgid, &fmode, &exists)); in PetscTestFile()
175 if (!S_ISREG(fmode)) PetscFunctionReturn(PETSC_SUCCESS); in PetscTestFile()
181 PetscCall(PetscTestOwnership(fname, mode, fuid, fgid, fmode, flg)); in PetscTestFile()
205 int fmode; in PetscTestDirectory() local
212 PetscCall(PetscGetFileStat(dirname, &fuid, &fgid, &fmode, &exists)); in PetscTestDirectory()
216 if (!S_ISDIR(fmode)) PetscFunctionReturn(PETSC_SUCCESS); in PetscTestDirectory()
218 PetscCall(PetscTestOwnership(dirname, mode, fuid, fgid, fmode, flg)); in PetscTestDirectory()