/dports/devel/dev86/dev86-0.16.20/libc/misc/ |
H A D | getcwd.c | 15 static int path_size; variable 28 path_size = size; 54 if( strlen(path_buf) + 4 > path_size ) { errno = ERANGE; return 0; } in recurser() 80 if( slen + 2 > path_size ) { errno = ERANGE; return 0; } 93 if( slen + strlen(d->d_name) > path_size )
|
/dports/devel/gmake/make-4.3/src/w32/compat/ |
H A D | posixfcn.c | 268 unsigned path_size = GetTempPath (sizeof temp_path, temp_path); in tmpfile() local 284 if (path_size == 0) in tmpfile() 286 path_size = GetCurrentDirectory (sizeof temp_path, temp_path); in tmpfile() 300 while (path_size > 0 && in tmpfile() 301 path_size + sizemax < sizeof temp_path && in tmpfile() 306 sprintf (temp_path + path_size, in tmpfile() 308 temp_path[path_size - 1] == '\\' ? "" : "\\", in tmpfile() 339 path_size = GetCurrentDirectory (sizeof temp_path, temp_path); in tmpfile()
|
/dports/biology/sra-tools/sra-tools-2.11.0/ncbi-vdb/libs/kfs/unix/ |
H A D | sysdir.c | 750 uint32_t path_size; in KSysDirVisit_v1() local 765 … while ( path_size > 1 && path_size > self -> root && pb . dir . path [ path_size - 1 ] == '/' ) in KSysDirVisit_v1() 766 -- path_size; in KSysDirVisit_v1() 1149 path [ path_size ] = '/'; in KSysDirEmptyDir_v1() 1332 path [ path_size ] = '/'; in KSysDirChangeDirAccess_v1() 1530 path [ path_size ] = '/'; in KSysDirChangeDirDate_v1() 2300 while ( path_size > 1 && full [ path_size - 1 ] == '/' ) in KSysDirOpenDirRead_v1() 2301 full [ -- path_size ] = 0; in KSysDirOpenDirRead_v1() 2340 while ( path_size > 1 && full [ path_size - 1 ] == '/' ) in KSysDirOpenDirUpdate_v1() 2577 self -> size = path_size + 1; in KSysDirInit_v1() [all …]
|
/dports/biology/ncbi-vdb/ncbi-vdb-2.11.0/libs/kfs/unix/ |
H A D | sysdir.c | 750 uint32_t path_size; in KSysDirVisit_v1() local 765 … while ( path_size > 1 && path_size > self -> root && pb . dir . path [ path_size - 1 ] == '/' ) in KSysDirVisit_v1() 766 -- path_size; in KSysDirVisit_v1() 1149 path [ path_size ] = '/'; in KSysDirEmptyDir_v1() 1332 path [ path_size ] = '/'; in KSysDirChangeDirAccess_v1() 1530 path [ path_size ] = '/'; in KSysDirChangeDirDate_v1() 2300 while ( path_size > 1 && full [ path_size - 1 ] == '/' ) in KSysDirOpenDirRead_v1() 2301 full [ -- path_size ] = 0; in KSysDirOpenDirRead_v1() 2340 while ( path_size > 1 && full [ path_size - 1 ] == '/' ) in KSysDirOpenDirUpdate_v1() 2577 self -> size = path_size + 1; in KSysDirInit_v1() [all …]
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/acpi/acpica/ |
H A D | nsnames.c | 194 char *full_path, u32 path_size, u8 no_trailing) in acpi_ns_build_normalized_path() argument 218 path_size = 0; in acpi_ns_build_normalized_path() 228 ACPI_PATH_PUT8(full_path, path_size, in acpi_ns_build_normalized_path() 240 ACPI_PATH_PUT8(full_path, path_size, c, length); in acpi_ns_build_normalized_path() 247 ACPI_PATH_PUT8(full_path, path_size, AML_ROOT_PREFIX, length); in acpi_ns_build_normalized_path() 251 if (length <= path_size) { in acpi_ns_build_normalized_path() 265 ACPI_PATH_PUT8(full_path, path_size, '\0', length); in acpi_ns_build_normalized_path()
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/acpi/acpica/ |
H A D | nsnames.c | 194 char *full_path, u32 path_size, u8 no_trailing) in acpi_ns_build_normalized_path() argument 218 path_size = 0; in acpi_ns_build_normalized_path() 228 ACPI_PATH_PUT8(full_path, path_size, in acpi_ns_build_normalized_path() 240 ACPI_PATH_PUT8(full_path, path_size, c, length); in acpi_ns_build_normalized_path() 247 ACPI_PATH_PUT8(full_path, path_size, AML_ROOT_PREFIX, length); in acpi_ns_build_normalized_path() 251 if (length <= path_size) { in acpi_ns_build_normalized_path() 265 ACPI_PATH_PUT8(full_path, path_size, '\0', length); in acpi_ns_build_normalized_path()
|
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/acpi/acpica/ |
H A D | nsnames.c | 194 char *full_path, u32 path_size, u8 no_trailing) in acpi_ns_build_normalized_path() argument 218 path_size = 0; in acpi_ns_build_normalized_path() 228 ACPI_PATH_PUT8(full_path, path_size, in acpi_ns_build_normalized_path() 240 ACPI_PATH_PUT8(full_path, path_size, c, length); in acpi_ns_build_normalized_path() 247 ACPI_PATH_PUT8(full_path, path_size, AML_ROOT_PREFIX, length); in acpi_ns_build_normalized_path() 251 if (length <= path_size) { in acpi_ns_build_normalized_path() 265 ACPI_PATH_PUT8(full_path, path_size, '\0', length); in acpi_ns_build_normalized_path()
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/protobuf/src/google/protobuf/io/ |
H A D | printer_unittest.cc | 240 ASSERT_EQ(1, foo->path_size()); in TEST() 241 ASSERT_EQ(2, bar->path_size()); in TEST() 280 ASSERT_EQ(1, foo->path_size()); in TEST() 281 ASSERT_EQ(2, bar->path_size()); in TEST() 310 ASSERT_EQ(1, foobar->path_size()); in TEST() 335 ASSERT_EQ(1, bazbam->path_size()); in TEST() 359 ASSERT_EQ(1, bar->path_size()); in TEST() 396 ASSERT_EQ(1, foo->path_size()); in TEST() 402 ASSERT_EQ(1, bar->path_size()); in TEST() 408 ASSERT_EQ(1, braces->path_size()); in TEST() [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/protobuf/src/google/protobuf/io/ |
H A D | printer_unittest.cc | 240 ASSERT_EQ(1, foo->path_size()); in TEST() 241 ASSERT_EQ(2, bar->path_size()); in TEST() 280 ASSERT_EQ(1, foo->path_size()); in TEST() 281 ASSERT_EQ(2, bar->path_size()); in TEST() 310 ASSERT_EQ(1, foobar->path_size()); in TEST() 335 ASSERT_EQ(1, bazbam->path_size()); in TEST() 359 ASSERT_EQ(1, bar->path_size()); in TEST() 396 ASSERT_EQ(1, foo->path_size()); in TEST() 402 ASSERT_EQ(1, bar->path_size()); in TEST() 408 ASSERT_EQ(1, braces->path_size()); in TEST() [all …]
|
/dports/devel/protobuf/protobuf-3.17.3/src/google/protobuf/io/ |
H A D | printer_unittest.cc | 240 ASSERT_EQ(1, foo->path_size()); in TEST() 241 ASSERT_EQ(2, bar->path_size()); in TEST() 280 ASSERT_EQ(1, foo->path_size()); in TEST() 281 ASSERT_EQ(2, bar->path_size()); in TEST() 310 ASSERT_EQ(1, foobar->path_size()); in TEST() 335 ASSERT_EQ(1, bazbam->path_size()); in TEST() 359 ASSERT_EQ(1, bar->path_size()); in TEST() 396 ASSERT_EQ(1, foo->path_size()); in TEST() 402 ASSERT_EQ(1, bar->path_size()); in TEST() 408 ASSERT_EQ(1, braces->path_size()); in TEST() [all …]
|
/dports/devel/py-grpcio-tools/grpcio-tools-1.43.0/third_party/protobuf/src/google/protobuf/io/ |
H A D | printer_unittest.cc | 240 ASSERT_EQ(1, foo->path_size()); in TEST() 241 ASSERT_EQ(2, bar->path_size()); in TEST() 280 ASSERT_EQ(1, foo->path_size()); in TEST() 281 ASSERT_EQ(2, bar->path_size()); in TEST() 310 ASSERT_EQ(1, foobar->path_size()); in TEST() 335 ASSERT_EQ(1, bazbam->path_size()); in TEST() 359 ASSERT_EQ(1, bar->path_size()); in TEST() 396 ASSERT_EQ(1, foo->path_size()); in TEST() 402 ASSERT_EQ(1, bar->path_size()); in TEST() 408 ASSERT_EQ(1, braces->path_size()); in TEST() [all …]
|
/dports/mail/bogofilter-kc/bogofilter-1.2.5/src/ |
H A D | paths.c | 270 size_t path_size, env_size; in create_path_from_env() local 276 path_size = env_size + (subdir ? strlen(subdir) : 0) + 2; in create_path_from_env() 277 buff = (char *)xmalloc(path_size); in create_path_from_env() 279 strlcpy(buff, env, path_size); in create_path_from_env() 282 strlcat(buff, DIRSEP_S, path_size); in create_path_from_env() 283 strlcat(buff, subdir, path_size); in create_path_from_env() 285 if (strlcat(buff, "", path_size) >= path_size) in create_path_from_env()
|
/dports/mail/bogofilter-sqlite/bogofilter-1.2.5/src/ |
H A D | paths.c | 270 size_t path_size, env_size; in create_path_from_env() local 276 path_size = env_size + (subdir ? strlen(subdir) : 0) + 2; in create_path_from_env() 277 buff = (char *)xmalloc(path_size); in create_path_from_env() 279 strlcpy(buff, env, path_size); in create_path_from_env() 282 strlcat(buff, DIRSEP_S, path_size); in create_path_from_env() 283 strlcat(buff, subdir, path_size); in create_path_from_env() 285 if (strlcat(buff, "", path_size) >= path_size) in create_path_from_env()
|
/dports/mail/bogofilter-lmdb/bogofilter-1.2.5/src/ |
H A D | paths.c | 270 size_t path_size, env_size; in create_path_from_env() local 276 path_size = env_size + (subdir ? strlen(subdir) : 0) + 2; in create_path_from_env() 277 buff = (char *)xmalloc(path_size); in create_path_from_env() 279 strlcpy(buff, env, path_size); in create_path_from_env() 282 strlcat(buff, DIRSEP_S, path_size); in create_path_from_env() 283 strlcat(buff, subdir, path_size); in create_path_from_env() 285 if (strlcat(buff, "", path_size) >= path_size) in create_path_from_env()
|
/dports/mail/bogofilter/bogofilter-1.2.5/src/ |
H A D | paths.c | 270 size_t path_size, env_size; in create_path_from_env() local 276 path_size = env_size + (subdir ? strlen(subdir) : 0) + 2; in create_path_from_env() 277 buff = (char *)xmalloc(path_size); in create_path_from_env() 279 strlcpy(buff, env, path_size); in create_path_from_env() 282 strlcat(buff, DIRSEP_S, path_size); in create_path_from_env() 283 strlcat(buff, subdir, path_size); in create_path_from_env() 285 if (strlcat(buff, "", path_size) >= path_size) in create_path_from_env()
|
/dports/sysutils/fusefs-squashfuse/squashfuse-0.1.103/ |
H A D | traverse.c | 212 trv->path_size = 1; /* includes nul-terminator */ in sqfs_traverse_path_init() 217 trv->path[trv->path_size - 1] = '\0'; in sqfs_traverse_path_terminate() 222 size_t need = trv->path_size + size; in sqfs_traverse_path_add() 236 memcpy(trv->path + trv->path_size - 1, str, size); in sqfs_traverse_path_add() 237 trv->path_size = need; in sqfs_traverse_path_add() 243 if (trv->path_size > size) in sqfs_traverse_path_remove() 244 trv->path_size -= size; in sqfs_traverse_path_remove() 246 trv->path_size = 1; /* only nul terminator left */ in sqfs_traverse_path_remove()
|
/dports/sysutils/cfengine317/cfengine-3.17.0/libpromises/ |
H A D | files_names.c | 152 char *JoinSuffix(char *path, size_t path_size, const char *leaf) in JoinSuffix() argument 156 if (Chop(path, path_size) == -1) in JoinSuffix() 162 if (strlen(path) + len + 1 > path_size) in JoinSuffix() 169 strlcat(path, leaf, path_size); in JoinSuffix() 183 char *JoinPaths(char *path, size_t path_size, const char *leaf_path) in JoinPaths() argument 186 size_t path_len = strnlen(path, path_size); in JoinPaths() 188 if (Chop(path, path_size - 1) == -1) in JoinPaths() 194 if (path_len + len + 1 > path_size) in JoinPaths() 204 strlcat(path, FILE_SEPARATOR_STR, path_size); in JoinPaths() 210 strlcat(path, leaf_path, path_size); in JoinPaths()
|
/dports/sysutils/cfengine316/cfengine-3.16.0/libpromises/ |
H A D | files_names.c | 152 char *JoinSuffix(char *path, size_t path_size, const char *leaf) in JoinSuffix() argument 156 if (Chop(path, path_size) == -1) in JoinSuffix() 162 if (strlen(path) + len + 1 > path_size) in JoinSuffix() 169 strlcat(path, leaf, path_size); in JoinSuffix() 183 char *JoinPaths(char *path, size_t path_size, const char *leaf_path) in JoinPaths() argument 186 size_t path_len = strnlen(path, path_size); in JoinPaths() 188 if (Chop(path, path_size - 1) == -1) in JoinPaths() 194 if (path_len + len + 1 > path_size) in JoinPaths() 204 strlcat(path, FILE_SEPARATOR_STR, path_size); in JoinPaths() 210 strlcat(path, leaf_path, path_size); in JoinPaths()
|
/dports/sysutils/cfengine/cfengine-3.19.0/libpromises/ |
H A D | files_names.c | 152 char *JoinSuffix(char *path, size_t path_size, const char *leaf) in JoinSuffix() argument 156 if (Chop(path, path_size) == -1) in JoinSuffix() 162 if (strlen(path) + len + 1 > path_size) in JoinSuffix() 169 strlcat(path, leaf, path_size); in JoinSuffix() 183 char *JoinPaths(char *path, size_t path_size, const char *leaf_path) in JoinPaths() argument 186 size_t path_len = strnlen(path, path_size); in JoinPaths() 188 if (Chop(path, path_size - 1) == -1) in JoinPaths() 194 if (path_len + len + 1 > path_size) in JoinPaths() 204 strlcat(path, FILE_SEPARATOR_STR, path_size); in JoinPaths() 210 strlcat(path, leaf_path, path_size); in JoinPaths()
|
/dports/sysutils/cfengine-devel/core-d08ae9eff/libpromises/ |
H A D | files_names.c | 152 char *JoinSuffix(char *path, size_t path_size, const char *leaf) in JoinSuffix() argument 156 if (Chop(path, path_size) == -1) in JoinSuffix() 162 if (strlen(path) + len + 1 > path_size) in JoinSuffix() 169 strlcat(path, leaf, path_size); in JoinSuffix() 183 char *JoinPaths(char *path, size_t path_size, const char *leaf_path) in JoinPaths() argument 186 size_t path_len = strnlen(path, path_size); in JoinPaths() 188 if (Chop(path, path_size - 1) == -1) in JoinPaths() 194 if (path_len + len + 1 > path_size) in JoinPaths() 204 strlcat(path, FILE_SEPARATOR_STR, path_size); in JoinPaths() 210 strlcat(path, leaf_path, path_size); in JoinPaths()
|
/dports/sysutils/cfengine318/cfengine-3.18.1/libpromises/ |
H A D | files_names.c | 152 char *JoinSuffix(char *path, size_t path_size, const char *leaf) in JoinSuffix() argument 156 if (Chop(path, path_size) == -1) in JoinSuffix() 162 if (strlen(path) + len + 1 > path_size) in JoinSuffix() 169 strlcat(path, leaf, path_size); in JoinSuffix() 183 char *JoinPaths(char *path, size_t path_size, const char *leaf_path) in JoinPaths() argument 186 size_t path_len = strnlen(path, path_size); in JoinPaths() 188 if (Chop(path, path_size - 1) == -1) in JoinPaths() 194 if (path_len + len + 1 > path_size) in JoinPaths() 204 strlcat(path, FILE_SEPARATOR_STR, path_size); in JoinPaths() 210 strlcat(path, leaf_path, path_size); in JoinPaths()
|
/dports/sysutils/cfengine319/cfengine-3.19.0/libpromises/ |
H A D | files_names.c | 152 char *JoinSuffix(char *path, size_t path_size, const char *leaf) in JoinSuffix() argument 156 if (Chop(path, path_size) == -1) in JoinSuffix() 162 if (strlen(path) + len + 1 > path_size) in JoinSuffix() 169 strlcat(path, leaf, path_size); in JoinSuffix() 183 char *JoinPaths(char *path, size_t path_size, const char *leaf_path) in JoinPaths() argument 186 size_t path_len = strnlen(path, path_size); in JoinPaths() 188 if (Chop(path, path_size - 1) == -1) in JoinPaths() 194 if (path_len + len + 1 > path_size) in JoinPaths() 204 strlcat(path, FILE_SEPARATOR_STR, path_size); in JoinPaths() 210 strlcat(path, leaf_path, path_size); in JoinPaths()
|
/dports/devel/libpff/libpff-20180714/libcpath/ |
H A D | libcpath_path.h | 89 size_t *path_size, 111 size_t *path_size, 164 size_t path_size, 172 size_t *path_size, 194 size_t *path_size,
|
/dports/print/freetype/freetype-1.3.1/contrib/ttf2pk/ |
H A D | emtexdir.c | 277 static int find1 (char *path, size_t path_size, const char *dir, in find1() argument 303 rc = emtex_dir_trunc (path, path_size, buf, flags, EDT_5_PLUS_3); in find1() 309 rc = emtex_dir_trunc (path, path_size, buf, flags, EDT_8); in find1() 320 if (len < path_size && find2 (buf, flags)) in find1() 328 rc = emtex_dir_trunc (path, path_size, buf, flags, method); in find1() 340 int emtex_dir_find (char *path, size_t path_size, in emtex_dir_find() argument 356 return (find1 (path, path_size, NULL, fname, flags)); in emtex_dir_find() 358 if ((flags & EDF_CWD) && find1 (path, path_size, NULL, fname, flags)) in emtex_dir_find() 362 if (find1 (path, path_size, ed->list[i], fname, flags)) in emtex_dir_find()
|
/dports/print/texlive-base/texlive-20150521-source/texk/ttf2pk2/ |
H A D | emtexdir.c | 277 static int find1 (char *path, size_t path_size, const char *dir, in find1() argument 303 rc = emtex_dir_trunc (path, path_size, buf, flags, EDT_5_PLUS_3); in find1() 309 rc = emtex_dir_trunc (path, path_size, buf, flags, EDT_8); in find1() 320 if (len < path_size && find2 (buf, flags)) in find1() 328 rc = emtex_dir_trunc (path, path_size, buf, flags, method); in find1() 340 int emtex_dir_find (char *path, size_t path_size, in emtex_dir_find() argument 356 return (find1 (path, path_size, NULL, fname, flags)); in emtex_dir_find() 358 if ((flags & EDF_CWD) && find1 (path, path_size, NULL, fname, flags)) in emtex_dir_find() 362 if (find1 (path, path_size, ed->list[i], fname, flags)) in emtex_dir_find()
|