Home
last modified time | relevance | path

Searched refs:dir_len (Results 1 – 7 of 7) sorted by relevance

/freebsd/contrib/ntp/sntp/libopts/
H A Dload.c191 size_t dir_len; //!< length of the directory portion of the path to the exe in add_prog_path() local
227 dir_len = (pz - path) + 1; // + dir sep character in add_prog_path()
233 if (dir_len + fname_len > (unsigned)b_sz) in add_prog_path()
236 memcpy(buf, path, dir_len); in add_prog_path()
237 memcpy(buf + dir_len, fname, fname_len); in add_prog_path()
277 size_t dir_len = strlen(dir_part); in add_env_val() local
280 if (dir_len + nm_len >= (unsigned)buf_sz) in add_env_val()
282 memcpy(buf, dir_part, dir_len); in add_env_val()
283 memcpy(buf + dir_len, name, nm_len); in add_env_val()
/freebsd/bin/pax/
H A Dpat_rep.c739 set_dest(ARCHD *arcn, char *dest_dir, int dir_len) in set_dest() argument
741 if (fix_path(arcn->name, &(arcn->nlen), dest_dir, dir_len) < 0) in set_dest()
752 if (fix_path(arcn->ln_name, &(arcn->ln_nlen), dest_dir, dir_len) < 0) in set_dest()
766 fix_path( char *or_name, int *or_len, char *dir_name, int dir_len) in fix_path() argument
781 dest = src + dir_len; in fix_path()
797 src = dir_name + dir_len - 1; in fix_path()
/freebsd/contrib/diff/lib/
H A Ddirname.h39 size_t dir_len (char const *path);
/freebsd/contrib/file/src/
H A Dcdf.c715 dir->dir_len = ns * nd; in cdf_read_dir()
717 CDF_CALLOC(dir->dir_len, sizeof(dir->dir_tab[0]))); in cdf_read_dir()
743 for (i = 0; i < dir->dir_len; i++) in cdf_read_dir()
807 for (i = 0; i < dir->dir_len; i++) in cdf_read_short_stream()
812 if (i == dir->dir_len) { in cdf_read_short_stream()
883 for (i = dir->dir_len; i > 0; i--) in cdf_find_stream()
1436 for (i = 0; i < dir->dir_len; i++) { in cdf_dump_dir()
H A Dcdf.h126 size_t dir_len; member
H A Dreadcdf.c407 for (j = 0; str == NULL && j < dir->dir_len; j++) { in cdf_check_summary_info()
/freebsd/contrib/tzcode/
H A Dzic.c1443 size_t i, taillen, dir_len = 0, dotdots = 0; in relname() local
1460 dir_len = i + 1; in relname()
1463 taillen = strlen(f + dir_len); in relname()
1470 memmove(result + 3 * dotdots, f + dir_len, taillen + 1); in relname()