newpath 50 src/libsir/include/sir/filecache.h bool _sirfile_roll(sirfile* sf, char** newpath); newpath 52 src/libsir/include/sir/filecache.h bool _sirfile_archive(sirfile* sf, const char* newpath); newpath 197 src/libsir/src/sirfilecache.c bool _sirfile_roll(sirfile* sf, char** newpath) { newpath 198 src/libsir/src/sirfilecache.c if (!_sirfile_validate(sf) || !_sir_validptrptr(newpath)) newpath 220 src/libsir/src/sirfilecache.c *newpath = (char*)calloc(SIR_MAXPATH, sizeof(char)); newpath 222 src/libsir/src/sirfilecache.c if (_sir_validptr(*newpath)) { newpath 229 src/libsir/src/sirfilecache.c (void)snprintf(*newpath, SIR_MAXPATH, SIR_FNAMEFORMAT, name, newpath 237 src/libsir/src/sirfilecache.c if (!_sir_pathexists(*newpath, &exists, SIR_PATH_REL_TO_CWD)) { newpath 246 src/libsir/src/sirfilecache.c _sir_selflog("path: '%s' already exists; incrementing sequence", *newpath); //-V576 newpath 249 src/libsir/src/sirfilecache.c _sir_selflog("found good path: '%s'", *newpath); newpath 263 src/libsir/src/sirfilecache.c retval = resolved && _sirfile_archive(sf, *newpath); newpath 278 src/libsir/src/sirfilecache.c char* newpath = NULL; newpath 285 src/libsir/src/sirfilecache.c if (_sirfile_roll(sf, &newpath)) { newpath 287 src/libsir/src/sirfilecache.c (void)snprintf(header, SIR_MAXFHEADER, SIR_FHROLLED, newpath); newpath 291 src/libsir/src/sirfilecache.c _sir_safefree(&newpath); newpath 298 src/libsir/src/sirfilecache.c bool _sirfile_archive(sirfile* sf, const char* newpath) { newpath 299 src/libsir/src/sirfilecache.c bool retval = _sirfile_validate(sf) && _sir_validstr(newpath); newpath 306 src/libsir/src/sirfilecache.c if (0 != rename(sf->path, newpath)) { newpath 311 src/libsir/src/sirfilecache.c _sir_selflog("archived '%s' " SIR_R_ARROW " '%s'", sf->path, newpath);