Home
last modified time | relevance | path

Searched refs:path (Results 1 – 25 of 312) sorted by relevance

12345678910>>...13

/trafficserver/include/tscore/
H A Dts_file.h41 class path class
179 path canonical(const path &p, std::error_code &ec);
191 path filename(const path &p);
203 bool remove(const path &path, std::error_code &ec);
213 inline path::path(char const *src) : _path(src) {} in path() function in ts::file::path
268 inline path
274 inline path
295 operator/(const path &lhs, const path &rhs) in operator /()
301 operator/(path &&lhs, const path &rhs) in operator /()
319 operator==(const path &lhs, const path &rhs) in operator ==()
[all …]
H A Dink_file.h91 int ink_filepath_make(char *path, int pathsz, const char *rootpath, const char *addpath);
102 bool ink_file_is_directory(const char *path);
118 size_t ink_file_namemax(const char *path);
130 isdot(const char *path) in isdot() argument
132 return path[0] == '.' && path[1] == '\0'; in isdot()
137 isdotdot(const char *path) in isdotdot() argument
139 return path[0] == '.' && path[1] == '.' && path[2] == '\0'; in isdotdot()
/trafficserver/src/tscore/unit_tests/
H A Dtest_ts_file.cc45 path p3 = path("/home/dave") / "git/tools";
74 CHECK(ts::file::path("/").parent_path() == path("/"));
201 path unorthodox = testdir3 / path("..") / path("..") / "dir2";
204 CHECK(path() == ts::file::canonical(path(), ec));
230 CHECK(ts::file::filename(path("/foo/bar/")) == path(""));
231 CHECK(ts::file::filename(path("/foo/.")) == path("."));
232 CHECK(ts::file::filename(path("/foo/..")) == path(".."));
235 CHECK(ts::file::filename(path(".")) == path("."));
236 CHECK(ts::file::filename(path("..")) == path(".."));
237 CHECK(ts::file::filename(path("/")) == path(""));
[all …]
/trafficserver/doc/developer-guide/cache-architecture/images/
H A Dspan-header.svg1path d="M0 0h1760v1360H0z" fill="#fff"/><path d="M320 80h160v80H320z" stroke="#000" stroke-width="…
H A Dstripe-header.svg1path d="M0 0h1760v1360H0z" fill="#fff"/><path d="M80 300h80v160H80z" stroke="#000" stroke-opacity=…
/trafficserver/tests/gold_tests/runroot/
H A Drunroot_verify.test.py45 path = os.path.join(Test.RunDirectory, "runroot") variable
47 tr.Processes.Default.Command = "$ATS_BIN/traffic_layout init --path " + path
48 f = tr.Disk.File(os.path.join(path, "runroot.yaml"))
53 tr.Processes.Default.Command = "$ATS_BIN/traffic_layout verify --path " + path
55 tr.Processes.Default.Streams.All = Testers.ContainsExpression(os.path.join(path, binsuffix), "examp…
56 tr.Processes.Default.Streams.All = Testers.ContainsExpression(os.path.join(path, logsuffix), "examp…
62 …Processes.Default.Command = "cd " + path + ";" + os.path.join(bin_path, "traffic_layout") + " veri…
64 tr.Processes.Default.Streams.All = Testers.ContainsExpression(os.path.join(path, binsuffix), "examp…
65 tr.Processes.Default.Streams.All = Testers.ContainsExpression(os.path.join(path, logsuffix), "examp…
H A Drunroot_use.test.py29 path = os.path.join(Test.RunDirectory, "runroot") variable
31 tr.Processes.Default.Command = "$ATS_BIN/traffic_layout init --path " + path
32 f = tr.Disk.File(os.path.join(path, "runroot.yaml"))
35 path2 = os.path.join(Test.RunDirectory, "runroot2")
38 f = tr.Disk.File(os.path.join(path2, "runroot.yaml"))
43 tr.Processes.Default.Command = "$ATS_BIN/traffic_layout info --run-root=" + path
45 tr.Processes.Default.Streams.All = Testers.ContainsExpression("PREFIX: " + path, "commandline runro…
49 tr.Processes.Default.Command = "cd " + path + ";" + "$ATS_BIN/traffic_layout info"
51 tr.Processes.Default.Streams.All = Testers.ContainsExpression("PREFIX: " + path, "cwd runroot path"…
56 tr.Processes.Default.Command = os.path.join(path, os.path.join(bin_path, "traffic_layout") + " info…
[all …]
H A Drunroot_error.test.py27 path = os.path.join(Test.RunDirectory, "runroot") variable
29 tr.Processes.Default.Command = "$ATS_BIN/traffic_layout init --path " + path
30 f = tr.Disk.File(os.path.join(path, "runroot.yaml"))
35 tr.Processes.Default.Command = "$ATS_BIN/traffic_layout init --path " + path
37 f = tr.Disk.File(os.path.join(path, "runroot.yaml"))
41 path_inside = os.path.join(path, "runroot")
46 f = tr.Disk.File(os.path.join(path_inside, "runroot.yaml"))
50 path_invalid = os.path.join(Test.RunDirectory, "tmp")
H A Drunroot_init.test.py29 path1 = os.path.join(Test.RunDirectory, "runroot1")
33 f = tr.Disk.File(os.path.join(path1, "runroot.yaml"))
37 path2 = os.path.join(Test.RunDirectory, "runroot2")
45 path3 = os.path.join(Test.RunDirectory, "runroot3")
53 path4 = os.path.join(Test.RunDirectory, "runroot4")
55 randomfile = os.path.join(path4, "foo")
63 path5 = os.path.join(Test.RunDirectory, "runroot5")
64 exe_path = os.path.join(bin_path, "traffic_layout")
65 junk_file = os.path.join(bin_path, "junk")
66 junk = os.path.join(path1, junk_file)
[all …]
H A Drunroot_manager.test.py27 path = os.path.join(Test.RunDirectory, "runroot") variable
28 rr_file = os.path.join(Test.RunDirectory, "rr_tmp")
31 tr.Processes.Default.Command = "$ATS_BIN/traffic_layout init --path " + path + " --absolute; " + \
33 os.path.join(path, "runroot.yaml") + " " + \
34 os.path.join(rr_file, "runroot.yaml")
35 f = tr.Disk.File(os.path.join(rr_file, "runroot.yaml"))
50 path + "'", "check if the right runroot is passed down")
/trafficserver/proxy/http/remap/unit-tests/
H A Dtest_PluginFactory.cc69 static fs::path tempComponent = fs::path("c71e2bab-90dc-4770-9535-c9304c3de38e");
118 setupConfigPathTest(const fs::path &configPath, const fs::path &pluginBuildPath, const fs::path &uu… in setupConfigPathTest()
176 fs::path runtimePath;
181 fs::path pluginName = fs::path("plugin_v1.so");
204 fs::path configPath = fs::path("subdir") / pluginName;
285 fs::path configPath = fs::path("plugin_init_fail.so");
302 fs::path configPath = fs::path("plugin_instinit_fail.so");
326 fs::path configPath = fs::path("plugin_v1.so");
327 fs::path pluginName = fs::path("plugin_v1.so");
611 fs::path configName1 = fs::path("plugin_testing_calls_1.so");
[all …]
H A Dtest_RemapPlugin.cc59 …RemapPluginUnitTest(const fs::path &configPath, const fs::path &effectivePath, const fs::path &run… in RemapPluginUnitTest()
130 fs::path pluginConfigPath = fs::path("plugin_required_cb.so");
148 fs::path pluginConfigPath = fs::path("plugin_missing_init.so");
166 fs::path pluginConfigPath = fs::path("plugin_missing_doremap.so");
184 fs::path pluginConfigPath = fs::path("plugin_missing_deleteinstance.so");
202 fs::path pluginConfigPath = fs::path("plugin_missing_newinstance.so");
248 fs::path pluginConfigPath = fs::path("plugin_testing_calls.so");
302 fs::path pluginConfigPath = fs::path("plugin_testing_calls.so");
369 fs::path pluginConfigPath = fs::path("plugin_testing_calls.so");
388 fs::path pluginConfigPath = fs::path("plugin_testing_calls.so");
[all …]
/trafficserver/src/tscore/
H A Dink_file.cc214 path[0] = '/'; in ink_filepath_merge()
231 path[keptlen++] = '/'; in ink_filepath_merge()
311 path[pathlen] = '\0'; in ink_filepath_merge()
317 path[pathlen] = '\0'; in ink_filepath_merge()
331 if (rootpath[rootlen - 1] != '/' && path[rootlen] && path[rootlen] != '/') { in ink_filepath_merge()
364 *path = '\0'; in ink_filepath_make()
368 path += rootlen; in ink_filepath_make()
370 if (*(path - 1) != '/') { in ink_filepath_make()
371 *(path++) = '/'; in ink_filepath_make()
406 if (stat(path, &sbuf) == -1) { in ink_file_is_directory()
[all …]
H A Drunroot.cc76 return path; in get_yaml_path()
107 std::string path; in runroot_extra_handling() local
112 if (!path.empty()) { in runroot_extra_handling()
113 runroot_file = path; in runroot_extra_handling()
126 if (!path.empty()) { in runroot_extra_handling()
127 runroot_file = path; in runroot_extra_handling()
140 if (!path.empty()) { in runroot_extra_handling()
141 runroot_file = path; in runroot_extra_handling()
160 if (!path.empty()) { in argparser_runroot_handler()
179 std::string path; in runroot_handler() local
[all …]
H A Dts_file.cc30 path &
61 path
74 path
79 return path(cwd); in current_path()
81 return path(); in current_path()
84 path
89 return path(); in canonical()
100 return path(); in canonical()
103 path
162 copy(const path &from, const path &to, std::error_code &ec) in copy()
[all …]
H A DLayout.cc74 char path[PATH_NAME_MAX]; in layout_relative() local
77 ret = path; in layout_relative()
103 char path[PATH_NAME_MAX]; in relative_to() local
106 size_t path_len = strlen(path) + 1; in relative_to()
110 ink_strlcpy(buf, path, bufsz); in relative_to()
155 std::string path; in Layout() local
163 path = env_path; in Layout()
164 while (path.back() == '/') { in Layout()
165 path.pop_back(); in Layout()
169 path = TS_BUILD_PREFIX; in Layout()
[all …]
/trafficserver/src/traffic_layout/
H A Dengine.cc67 return path; in check_path()
75 std::string yaml_path = path; in check_parent_path()
106 if (path.empty()) { in path_handler()
109 if (path[0] == '/') { in path_handler()
110 return path; in path_handler()
118 if (!path.empty()) { in path_handler()
120 if (path[0] == '/') { in path_handler()
148 return path; in path_handler()
177 if (path.empty()) { in create_runroot()
357 if (path.empty()) { in remove_runroot()
[all …]
H A Dfile_system.cc49 append_slash(std::string &path) in append_slash() argument
51 if (path.back() != '/') { in append_slash()
52 path.append("/"); in append_slash()
59 if (path.back() == '/') { in remove_slash()
60 path.pop_back(); in remove_slash()
110 if (rm_func(path) == -1) { in remove_function()
143 std::string path = dir; in remove_directory() local
144 remove_slash(path); in remove_directory()
156 std::string path = dir; in remove_inside_directory() local
157 remove_slash(path); in remove_inside_directory()
[all …]
/trafficserver/iocore/net/quic/test/
H A Dtest_QUICPathValidator.cc56 QUICPath path = {local, remote}; variable
59 CHECK(!pv_c.is_validating(path));
60 CHECK(!pv_c.is_validated(path));
62 pv_c.validate(path);
63 CHECK(pv_c.is_validating(path));
64 CHECK(!pv_c.is_validated(path));
69 CHECK(pv_c.is_validating(path));
70 CHECK(!pv_c.is_validated(path));
75 CHECK(!pv_s.is_validated(path));
80 CHECK(!pv_s.is_validated(path));
[all …]
/trafficserver/proxy/http/remap/
H A DPluginFactory.cc112 PluginFactory::addSearchDir(const fs::path &searchDir) in addSearchDir()
122 _runtimeDir = runtimeDir / fs::path(getUuid()); in setRuntimeDir()
163 fs::path runtimePath; in getRemapPlugin()
167 fs::path parent = runtimePath.parent_path(); in getRemapPlugin()
216 fs::path
223 return fs::path(); in getEffectivePath()
227 fs::path path; in getEffectivePath() local
230 fs::path candidatePath = dir / configPath; in getEffectivePath()
232 path = fs::canonical(candidatePath, _ec); in getEffectivePath()
237 return path; in getEffectivePath()
[all …]
H A DPluginFactory.h94 PluginFactory &setRuntimeDir(const fs::path &runtimeDir);
95 PluginFactory &addSearchDir(const fs::path &searchDir);
97 …RemapPluginInst *getRemapPlugin(const fs::path &configPath, int argc, char **argv, std::string &er…
107 PluginDso *findByEffectivePath(const fs::path &path);
108 fs::path getEffectivePath(const fs::path &configPath);
110 …std::vector<fs::path> _searchDirs; /** @brief ordered list of search paths where we look for plugi…
111 …fs::path _runtimeDir; /** @brief the path where we would create a temporary copies of…
H A DPluginDso.h59 …PluginDso(const fs::path &configPath, const fs::path &effectivePath, const fs::path &runtimePath);
69 const fs::path &effectivePath() const;
70 const fs::path &runtimePath() const;
99 PluginDso *findByEffectivePath(const fs::path &path);
120 fs::path _configPath; /** @brief the name specified in the config file */
121 fs::path _effectivePath; /** @brief the plugin installation path which was used to load DSO */
122 …fs::path _runtimePath; /** @brief the plugin runtime path where the plugin was copied to be load…
/trafficserver/proxy/logging/unit-tests/
H A Dtest_RolledLogDeleter.cc33 const fs::path log_dir("/home/y/logs/trafficserver");
43 …_rolled_log_behavior(RolledLogDeleter &deleter, fs::path rolled_log1, fs::path rolled_log2, fs::pa… in verify_rolled_log_behavior()
136 const fs::path rolled_log1 = log_dir / "diags.log.20191117.16h43m15s-20191118.16h43m15s.old";
137 const fs::path rolled_log2 = log_dir / "diags.log.20191118.16h43m15s-20191122.04h07m09s.old";
138 const fs::path rolled_log3 = log_dir / "diags.log.20191122.04h07m09s-20191124.00h12m47s.old";
214 …const fs::path rolled_traffic = log_dir / "traffic.out.20191118.16h43m11s-20191122.01h30m30s.old";
215 … const fs::path rolled_diags = log_dir / "diags.log.20191117.16h43m15s-20191118.16h43m15s.old";
277 … const fs::path rolled_diags1 = log_dir / "diags.log.20191117.16h43m15s-20191118.16h43m15s.old";
278 … const fs::path rolled_diags2 = log_dir / "diags.log.20191118.16h43m15s-20191122.04h07m09s.old";
279 … const fs::path rolled_diags3 = log_dir / "diags.log.20191122.04h07m09s-20191124.00h12m47s.old";
[all …]
/trafficserver/proxy/
H A DPlugin.cc76 handle = dlopen(path, RTLD_NOW); in plugin_dso_load()
97 char path[PATH_NAME_MAX]; in single_plugin_init() local
103 ink_filepath_make(path, sizeof(path), plugin_dir, argv[0]); in single_plugin_init()
105 Note("loading plugin '%s'", path); in single_plugin_init()
109 if (strcmp(plugin_reg_temp->plugin_path, path) == 0) { in single_plugin_init()
110 Warning("multiple loading of plugin %s", path); in single_plugin_init()
124 bool loaded = plugin_dso_load(path, handle, initptr, error); in single_plugin_init()
139 plugin_reg_current->plugin_path = ats_strdup(path); in single_plugin_init()
235 ats_scoped_str path; in plugin_init() local
252 path = RecConfigReadConfigPath(nullptr, ts::filename::PLUGIN); in plugin_init()
[all …]
/trafficserver/tools/
H A Dcheck-unused-dependencies33 import os.path
51 os.path.basename(dependency).startswith,
61 if os.path.basename(program) == 'traffic_manager':
64 os.path.basename(dependency).startswith, [
81 if os.path.exists(filename):
91 program = os.path.join(os.path.dirname(filename), program)
92 if os.path.exists(program):

Completed in 105 milliseconds

12345678910>>...13