Lines Matching refs:fname

24 static PetscErrorCode PetscTestOwnership(const char fname[], char mode, uid_t fuid, gid_t fgid, int…  in PetscTestOwnership()  argument
34 if (!access(fname, m)) { in PetscTestOwnership()
35 PetscCall(PetscInfo(NULL, "System call access() succeeded on file %s\n", fname)); in PetscTestOwnership()
38 …PetscCall(PetscInfo(NULL, "System call access() failed on file %s due to \"%s\"\n", fname, strerro… in PetscTestOwnership()
42 … != X_OK, PETSC_COMM_SELF, PETSC_ERR_SUP, "Unable to check execute permission for file %s", fname); in PetscTestOwnership()
43 if (!_access(fname, m)) *flg = PETSC_TRUE; in PetscTestOwnership()
50 static PetscErrorCode PetscTestOwnership(const char fname[], char mode, uid_t fuid, gid_t fgid, int… in PetscTestOwnership() argument
113 static PetscErrorCode PetscGetFileStat(const char fname[], uid_t *fileUid, gid_t *fileGid, int *fil… in PetscGetFileStat() argument
122 ierr = stat((char *)fname, &statbuf); in PetscGetFileStat()
124 ierr = stat(fname, &statbuf); in PetscGetFileStat()
130 …PetscCall(PetscInfo(NULL, "System call stat() failed on file %s due to \"%s\"\n", fname, strerror(… in PetscGetFileStat()
133 PetscCall(PetscInfo(NULL, "System call stat() succeeded on file %s\n", fname)); in PetscGetFileStat()
161 PetscErrorCode PetscTestFile(const char fname[], char mode, PetscBool *flg) in PetscTestFile() argument
170 if (!fname) PetscFunctionReturn(PETSC_SUCCESS); in PetscTestFile()
172 PetscCall(PetscGetFileStat(fname, &fuid, &fgid, &fmode, &exists)); in PetscTestFile()
181 PetscCall(PetscTestOwnership(fname, mode, fuid, fgid, fmode, flg)); in PetscTestFile()