Lines Matching refs:path_len
18 static int uvwasi__is_absolute_path(const char* path, uvwasi_size_t path_len) { in uvwasi__is_absolute_path() argument
20 return path != NULL && path_len > 0 && path[0] == '/'; in uvwasi__is_absolute_path()
36 uvwasi_size_t path_len, in uvwasi__normalize_path() argument
46 if (path_len > normalized_len) in uvwasi__normalize_path()
49 is_absolute = uvwasi__is_absolute_path(path, path_len); in uvwasi__normalize_path()
128 uvwasi_size_t path_len, in uvwasi__is_path_sandboxed() argument
140 if ((path_len == 2 && path[0] == '.' && path[1] == '.') || in uvwasi__is_path_sandboxed()
141 (path_len > 2 && path[0] == '.' && path[1] == '.' && path[2] == '/')) { in uvwasi__is_path_sandboxed()
153 remaining_len = path_len - fd_path_len; in uvwasi__is_path_sandboxed()
176 uvwasi_size_t path_len, in uvwasi__normalize_absolute_path() argument
192 abs_size = path_len + 1; in uvwasi__normalize_absolute_path()
200 err = uvwasi__normalize_path(path, path_len, abs_path, path_len); in uvwasi__normalize_absolute_path()
206 path_len, in uvwasi__normalize_absolute_path()
227 uvwasi_size_t path_len, in uvwasi__normalize_relative_path() argument
248 combined_size = path_len + fd_path_len + 2; in uvwasi__normalize_relative_path()
301 uvwasi_size_t path_len, in uvwasi__resolve_path_to_host() argument
323 stripped_len = path_len - fake_path_len; in uvwasi__resolve_path_to_host()
368 uvwasi_size_t path_len, in uvwasi__resolve_path() argument
384 input_len = path_len; in uvwasi__resolve_path()