Lines Matching refs:program
319 char program[PETSC_MAX_PATH_LEN], found[8 * PETSC_MAX_PATH_LEN]; in PetscDLLibraryAppend() local
331 PetscCall(PetscStrncpy(program, path, sizeof(program))); in PetscDLLibraryAppend()
332 PetscCall(PetscStrlen(program, &len)); in PetscDLLibraryAppend()
333 if (program[len - 1] == '/') { in PetscDLLibraryAppend()
334 PetscCall(PetscStrlcat(program, "*.", sizeof(program))); in PetscDLLibraryAppend()
336 PetscCall(PetscStrlcat(program, "/*.", sizeof(program))); in PetscDLLibraryAppend()
338 PetscCall(PetscStrlcat(program, PETSC_SLSUFFIX, sizeof(program))); in PetscDLLibraryAppend()
340 PetscCall(PetscLs(comm, program, found, 8 * PETSC_MAX_PATH_LEN, &dir)); in PetscDLLibraryAppend()
402 char program[PETSC_MAX_PATH_LEN], found[8 * PETSC_MAX_PATH_LEN]; in PetscDLLibraryPrepend() local
414 PetscCall(PetscStrncpy(program, path, sizeof(program))); in PetscDLLibraryPrepend()
415 PetscCall(PetscStrlen(program, &len)); in PetscDLLibraryPrepend()
416 if (program[len - 1] == '/') { in PetscDLLibraryPrepend()
417 PetscCall(PetscStrlcat(program, "*.", sizeof(program))); in PetscDLLibraryPrepend()
419 PetscCall(PetscStrlcat(program, "/*.", sizeof(program))); in PetscDLLibraryPrepend()
421 PetscCall(PetscStrlcat(program, PETSC_SLSUFFIX, sizeof(program))); in PetscDLLibraryPrepend()
423 PetscCall(PetscLs(comm, program, found, 8 * PETSC_MAX_PATH_LEN, &dir)); in PetscDLLibraryPrepend()