Home
last modified time | relevance | path

Searched refs:path_size (Results 1 – 25 of 941) sorted by relevance

12345678910>>...38

/dports/math/scilab/scilab-6.1.1/scilab/modules/io/tests/unit_tests/
H A Dread.tst10 path_size = TMPDIR + "/save_size";
42 write(path_size,test_size);
43 result = read(path_size,1,1);
45 result = read(path_size,1,2);
47 result = read(path_size,2,1);
49 result = read(path_size,2,2);
54 assert_checkerror("read(path_size,3,2);", refMsg);
55 assert_checkerror("read(path_size,2,3);", refMsg);
56 assert_checkerror("read(path_size,3,3);", refMsg);
58 mdelete(path_size);
H A Dread.dia.ref9 path_size = TMPDIR + "/save_size";
30 write(path_size,test_size);
31 result = read(path_size,1,1);
33 result = read(path_size,1,2);
35 result = read(path_size,2,1);
37 result = read(path_size,2,2);
40 assert_checkerror("read(path_size,3,2);", refMsg);
41 assert_checkerror("read(path_size,2,3);", refMsg);
42 assert_checkerror("read(path_size,3,3);", refMsg);
43 mdelete(path_size);
/dports/games/scummvm/scummvm-2.5.1/engines/ultima/nuvie/pathfinder/
H A Dpath.cpp31 : path(0), step_count(0), path_size(0), pf(0) { in Path()
39 path_size = alloc_size; in set_path_size()
40 path = (MapCoord *)nuvie_realloc(path, path_size * sizeof(MapCoord)); in set_path_size()
72 path_size = 0; in delete_path()
102 if (step_count >= path_size) { in add_step()
103 path_size += path_block_size; in add_step()
104 path = (MapCoord *)nuvie_realloc(path, path_size * sizeof(MapCoord)); in add_step()
112 path_size = step_count; in remove_first_step()
113 MapCoord *new_path = (MapCoord *)malloc(path_size * sizeof(MapCoord)); in remove_first_step()
/dports/lang/ocaml/ocaml-4.05.0/stdlib/
H A Dheader.c140 uint32_t path_size; in read_runtime_path() local
148 path_size = 0; in read_runtime_path()
153 path_size = read_size(buffer + 4); in read_runtime_path()
154 ofs += path_size; in read_runtime_path()
155 } else if (path_size > 0) in read_runtime_path()
158 if (path_size == 0) return default_runtime_path; in read_runtime_path()
159 if (path_size >= MAXPATHLEN) return NULL; in read_runtime_path()
161 if (read(fd, runtime_path, path_size) != path_size) return NULL; in read_runtime_path()
162 runtime_path[path_size - 1] = 0; in read_runtime_path()
H A Dheadernt.c55 int num_sections, path_size, i; in read_runtime_path() local
64 path_size = 0; in read_runtime_path()
69 path_size = read_size(buffer + 4); in read_runtime_path()
70 ofs += path_size; in read_runtime_path()
71 } else if (path_size > 0) in read_runtime_path()
74 if (path_size == 0) return default_runtime_name; in read_runtime_path()
75 if (path_size >= MAX_PATH) return NULL; in read_runtime_path()
77 if (! ReadFile(h, runtime_path, path_size, &nread, NULL)) return NULL; in read_runtime_path()
78 if (nread != path_size) return NULL; in read_runtime_path()
79 runtime_path[path_size - 1] = 0; in read_runtime_path()
/dports/lang/ocaml-nox11/ocaml-4.05.0/stdlib/
H A Dheader.c140 uint32_t path_size; in read_runtime_path() local
148 path_size = 0; in read_runtime_path()
153 path_size = read_size(buffer + 4); in read_runtime_path()
154 ofs += path_size; in read_runtime_path()
155 } else if (path_size > 0) in read_runtime_path()
158 if (path_size == 0) return default_runtime_path; in read_runtime_path()
159 if (path_size >= MAXPATHLEN) return NULL; in read_runtime_path()
161 if (read(fd, runtime_path, path_size) != path_size) return NULL; in read_runtime_path()
162 runtime_path[path_size - 1] = 0; in read_runtime_path()
H A Dheadernt.c55 int num_sections, path_size, i; in read_runtime_path() local
64 path_size = 0; in read_runtime_path()
69 path_size = read_size(buffer + 4); in read_runtime_path()
70 ofs += path_size; in read_runtime_path()
71 } else if (path_size > 0) in read_runtime_path()
74 if (path_size == 0) return default_runtime_name; in read_runtime_path()
75 if (path_size >= MAX_PATH) return NULL; in read_runtime_path()
77 if (! ReadFile(h, runtime_path, path_size, &nread, NULL)) return NULL; in read_runtime_path()
78 if (nread != path_size) return NULL; in read_runtime_path()
79 runtime_path[path_size - 1] = 0; in read_runtime_path()
/dports/www/privoxy/privoxy-3.0.33-stable/
H A Dssl_common.c502 size_t path_size = strlen(conf_dir) in make_certs_path() local
508 path_size += 1; in make_certs_path()
523 path_size += strlen(basedir) + 2; in make_certs_path()
524 path = zalloc_or_die(path_size); in make_certs_path()
526 strlcpy(path, basedir, path_size); in make_certs_path()
527 strlcat(path, delim, path_size); in make_certs_path()
528 strlcat(path, conf_dir, path_size); in make_certs_path()
529 strlcat(path, delim, path_size); in make_certs_path()
530 strlcat(path, file_name, path_size); in make_certs_path()
531 strlcat(path, suffix, path_size); in make_certs_path()
[all …]
H A Dmiscutil.c694 size_t path_size = strlen(dir) + strlen(file) + 2; /* +2 for trailing (back)slash and \0 */ in make_path() local
702 path_size += strlen(basedir) + 1; /* +1 for the slash */ in make_path()
703 path = malloc(path_size); in make_path()
705 strlcpy(path, basedir, path_size); in make_path()
706 strlcat(path, "/", path_size); in make_path()
707 strlcat(path, dir, path_size); in make_path()
712 path = malloc(path_size); in make_path()
714 strlcpy(path, dir, path_size); in make_path()
721 strlcat(path, "\\", path_size); in make_path()
726 strlcat(path, "/", path_size); in make_path()
[all …]
/dports/net-p2p/mktorrent/mktorrent-1.1/
H A Dftw.c136 size_t path_size = 256; in file_tree_walk() local
147 path = malloc(path_size); in file_tree_walk()
152 path_max = path + path_size; in file_tree_walk()
162 new_path = realloc(path, 2*path_size); in file_tree_walk()
167 end = new_path + path_size; in file_tree_walk()
168 path_size *= 2; in file_tree_walk()
170 path_max = path + path_size; in file_tree_walk()
211 new_path = realloc(path, 2*path_size); in file_tree_walk()
216 end = new_path + path_size; in file_tree_walk()
217 path_size *= 2; in file_tree_walk()
[all …]
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/openscreen/src/platform/test/
H A Dpaths_internal_mac.cc16 uint32_t path_size = 0; in GetExePath() local
17 _NSGetExecutablePath(nullptr, &path_size); in GetExePath()
18 OSP_DCHECK(path_size > 0u); in GetExePath()
19 std::string exe_path(path_size, 0); in GetExePath()
20 int ret = _NSGetExecutablePath(data(exe_path), &path_size); in GetExePath()
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/ninja/src/
H A Ddeps_log.cc236 int path_size = size - 4; in Load() local
237 assert(path_size > 0); // CanonicalizePath() rejects empty paths. in Load()
239 if (buf[path_size - 1] == '\0') --path_size; in Load()
240 if (buf[path_size - 1] == '\0') --path_size; in Load()
241 if (buf[path_size - 1] == '\0') --path_size; in Load()
242 StringPiece subpath(buf, path_size); in Load()
383 int path_size = node->path().size(); in RecordId() local
384 int padding = (4 - path_size % 4) % 4; // Pad path to 4 byte boundary. in RecordId()
386 unsigned size = path_size + padding + 4; in RecordId()
393 if (fwrite(node->path().data(), path_size, 1, file_) < 1) { in RecordId()
/dports/devel/ninja/ninja-1.10.2/src/
H A Ddeps_log.cc226 int path_size = size - 4; in Load() local
227 assert(path_size > 0); // CanonicalizePath() rejects empty paths. in Load()
229 if (buf[path_size - 1] == '\0') --path_size; in Load()
230 if (buf[path_size - 1] == '\0') --path_size; in Load()
231 if (buf[path_size - 1] == '\0') --path_size; in Load()
232 StringPiece subpath(buf, path_size); in Load()
373 int path_size = node->path().size(); in RecordId() local
374 int padding = (4 - path_size % 4) % 4; // Pad path to 4 byte boundary. in RecordId()
376 unsigned size = path_size + padding + 4; in RecordId()
387 if (fwrite(node->path().data(), path_size, 1, file_) < 1) { in RecordId()
/dports/x11-toolkits/wlroots/wlroots-0.12.0/xwayland/
H A Dsockets.c42 static int open_socket(struct sockaddr_un *addr, size_t path_size) { in open_socket() argument
44 socklen_t size = offsetof(struct sockaddr_un, sun_path) + path_size + 1; in open_socket()
89 size_t path_size; in open_sockets() local
95 path_size = snprintf(addr.sun_path + 1, sizeof(addr.sun_path) - 1, socket_fmt, display); in open_sockets()
97 path_size = snprintf(addr.sun_path, sizeof(addr.sun_path), socket_fmt2, display); in open_sockets()
99 socks[0] = open_socket(&addr, path_size); in open_sockets()
104 path_size = snprintf(addr.sun_path, sizeof(addr.sun_path), socket_fmt, display); in open_sockets()
105 socks[1] = open_socket(&addr, path_size); in open_sockets()
/dports/devel/git-svn/git-2.34.1/contrib/stats/
H A Dpackinfo.pl165 my ($sha1, $depth, $path_size) = @_;
166 $path_size += $sizes{$sha1};
169 push(@path_sizes, $path_size);
170 push(@all_path_sizes, $path_size);
171 $path_sizes{$sha1} = $path_size;
175 $sha1, $sizes{$sha1}, $path_size, $paths{$sha1});
178 dig($child, $depth + 1, $path_size);
/dports/devel/git-gui/git-2.34.1/contrib/stats/
H A Dpackinfo.pl165 my ($sha1, $depth, $path_size) = @_;
166 $path_size += $sizes{$sha1};
169 push(@path_sizes, $path_size);
170 push(@all_path_sizes, $path_size);
171 $path_sizes{$sha1} = $path_size;
175 $sha1, $sizes{$sha1}, $path_size, $paths{$sha1});
178 dig($child, $depth + 1, $path_size);
/dports/devel/git-p4/git-2.34.1/contrib/stats/
H A Dpackinfo.pl165 my ($sha1, $depth, $path_size) = @_;
166 $path_size += $sizes{$sha1};
169 push(@path_sizes, $path_size);
170 push(@all_path_sizes, $path_size);
171 $path_sizes{$sha1} = $path_size;
175 $sha1, $sizes{$sha1}, $path_size, $paths{$sha1});
178 dig($child, $depth + 1, $path_size);
/dports/devel/git/git-2.34.1/contrib/stats/
H A Dpackinfo.pl165 my ($sha1, $depth, $path_size) = @_;
166 $path_size += $sizes{$sha1};
169 push(@path_sizes, $path_size);
170 push(@all_path_sizes, $path_size);
171 $path_sizes{$sha1} = $path_size;
175 $sha1, $sizes{$sha1}, $path_size, $paths{$sha1});
178 dig($child, $depth + 1, $path_size);
/dports/devel/git-cvs/git-2.34.1/contrib/stats/
H A Dpackinfo.pl165 my ($sha1, $depth, $path_size) = @_;
166 $path_size += $sizes{$sha1};
169 push(@path_sizes, $path_size);
170 push(@all_path_sizes, $path_size);
171 $path_sizes{$sha1} = $path_size;
175 $sha1, $sizes{$sha1}, $path_size, $paths{$sha1});
178 dig($child, $depth + 1, $path_size);
/dports/devel/cgit/cgit-1.2.3/git/contrib/stats/
H A Dpackinfo.pl165 my ($sha1, $depth, $path_size) = @_;
166 $path_size += $sizes{$sha1};
169 push(@path_sizes, $path_size);
170 push(@all_path_sizes, $path_size);
171 $path_sizes{$sha1} = $path_size;
175 $sha1, $sizes{$sha1}, $path_size, $paths{$sha1});
178 dig($child, $depth + 1, $path_size);
/dports/devel/unibilium/unibilium-92d929f/
H A Duniutil.c103 size_t dir_len, mid_len, term_len, path_size; in from_dir() local
109 path_size = 0; in from_dir()
111 add_overflowed(&path_size, dir_len) || in from_dir()
112 add_overflowed(&path_size, mid_len) || in from_dir()
113 add_overflowed(&path_size, term_len) || in from_dir()
114 add_overflowed(&path_size, 1 + 2 + 1 + 1) in from_dir()
121 if (!(path = malloc(path_size))) { in from_dir()
/dports/net/freeswitch/freeswitch-1.10.3.-release/libs/apr/file_io/unix/
H A Dfilepath_util.c71 apr_size_t path_size = 0; in apr_filepath_list_merge_impl() local
82 path_size += strlen(((char**)pathelts->elts)[i]); in apr_filepath_list_merge_impl()
84 if (path_size == 0) in apr_filepath_list_merge_impl()
91 path_size += (i - 1); in apr_filepath_list_merge_impl()
94 path = *liststr = apr_palloc(p, path_size + 1); in apr_filepath_list_merge_impl()
/dports/devel/apr1/apr-1.7.0/file_io/unix/
H A Dfilepath_util.c71 apr_size_t path_size = 0; in apr_filepath_list_merge_impl() local
82 path_size += strlen(((char**)pathelts->elts)[i]); in apr_filepath_list_merge_impl()
84 if (path_size == 0) in apr_filepath_list_merge_impl()
91 path_size += (i - 1); in apr_filepath_list_merge_impl()
94 path = *liststr = apr_palloc(p, path_size + 1); in apr_filepath_list_merge_impl()
/dports/cad/cura-engine/CuraEngine-fadb5d6b/src/utils/
H A Dgetpath.cpp18 …DWORD path_size = GetFullPathNameA(filePath.c_str(), static_cast<DWORD>(MAX_PATH), buffer, &file_n… in getPathName() local
19 if (path_size == 0) in getPathName()
25 DWORD dir_path_size = path_size - (path_size - (file_name_start - buffer)); in getPathName()
/dports/net-im/tdlib/td-a53cb30e99f937cfd64e0266fa558785a184a553/tdutils/td/utils/
H A DHttpUrl.cpp193 size_t path_size = 0; in parse_url_query() local
194 while (path_size < query.size() && query[path_size] != '?' && query[path_size] != '#') { in parse_url_query()
195 path_size++; in parse_url_query()
199 result.path_ = full_split(url_decode(query.substr(0, path_size), false), '/'); in parse_url_query()
204 if (path_size < query.size() && query[path_size] == '?') { in parse_url_query()
205 query = query.substr(path_size + 1); in parse_url_query()

12345678910>>...38