Lines Matching refs:flg
24 …etscTestOwnership(const char fname[], char mode, uid_t fuid, gid_t fgid, int fmode, PetscBool *flg) in PetscTestOwnership() argument
36 *flg = PETSC_TRUE; in PetscTestOwnership()
39 *flg = PETSC_FALSE; in PetscTestOwnership()
43 if (!_access(fname, m)) *flg = PETSC_TRUE; in PetscTestOwnership()
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()
161 PetscErrorCode PetscTestFile(const char fname[], char mode, PetscBool *flg) in PetscTestFile() argument
169 *flg = PETSC_FALSE; in PetscTestFile()
178 *flg = exists; in PetscTestFile()
181 PetscCall(PetscTestOwnership(fname, mode, fuid, fgid, fmode, flg)); in PetscTestFile()
201 PetscErrorCode PetscTestDirectory(const char dirname[], char mode, PetscBool *flg) in PetscTestDirectory() argument
209 *flg = PETSC_FALSE; in PetscTestDirectory()
218 PetscCall(PetscTestOwnership(dirname, mode, fuid, fgid, fmode, flg)); in PetscTestDirectory()
240 …scErrorCode PetscLs(MPI_Comm comm, const char dirname[], char found[], size_t tlen, PetscBool *flg) in PetscLs() argument
255 if (f) *flg = PETSC_TRUE; in PetscLs()
256 else *flg = PETSC_FALSE; in PetscLs()
261 if (*flg) PetscCall(PetscInfo(NULL, "ls on %s gives \n%s\n", dirname, found)); in PetscLs()