MCPcopy Create free account
hub / github.com/apache/trafficserver / make_state_path

Function make_state_path

plugins/regex_revalidate/regex_revalidate.cc:732–745  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

730}
731
732static char *
733make_state_path(const char *filename)
734{
735 if ('/' == *filename) {
736 return TSstrdup(filename);
737 } else {
738 char buf[8192];
739 const char *dir = TSInstallDirGet();
740 snprintf(buf, sizeof(buf), "%s/%s/%s", dir, DEFAULT_DIR, filename);
741 return TSstrdup(buf);
742 }
743
744 return nullptr;
745}
746
747void
748TSPluginInit(int argc, const char *argv[])

Callers 1

TSPluginInitFunction · 0.70

Calls 2

TSstrdupFunction · 0.85
TSInstallDirGetFunction · 0.85

Tested by

no test coverage detected