/freebsd-10.0-release/usr.sbin/ckdist/ |
H A D | ckdist.c | 357 size_t plen, nlen; local 367 nlen = strlen(name); 368 if (ext && nlen > 4 && name[nlen - 4] == '.' && 369 disttype(name + nlen - 3) == DISTINF) 370 nlen -= 4; 377 if (plen + (plen > 0) + nlen + (ext ? 3 : 0) >= sizeof(buf)) 385 memcpy(s, name, nlen); 386 s += nlen;
|
/freebsd-10.0-release/usr.sbin/pmcstat/ |
H A D | pmcpl_gprof.c | 303 int count, nlen; local 318 nlen = strlen(sn); 319 nlen = min(nlen, (int) (sizeof(name) - sizeof(".gmon"))); 321 snprintf(name, sizeof(name), "%.*s.gmon", nlen, sn); 331 nlen = strlen(sn); 332 nlen = min(nlen, (int) (sizeof(name)-sizeof("~NNN.gmon"))); 340 nlen, sn, count);
|
/freebsd-10.0-release/crypto/openssh/ |
H A D | mac.c | 99 size_t nlen, rlen = 0; local 105 nlen = strlen(m->name); 106 ret = xrealloc(ret, 1, rlen + nlen + 2); 107 memcpy(ret + rlen, m->name, nlen + 1); 108 rlen += nlen;
|
/freebsd-10.0-release/contrib/nvi/ex/ |
H A D | ex_tag.c | 149 size_t nlen; local 170 np, nlen); 189 size_t nlen; local 210 np, nlen); 318 size_t nlen; local 334 arg, nlen); 718 size_t nlen; local 779 np, nlen); 914 size_t nlen; local 923 INT2CHAR(sp, search, slen+1, np, nlen); 981 size_t nlen; local 1034 size_t dlen, nlen = 0, slen; local [all...] |
H A D | ex_bang.c | 60 size_t nlen; local 115 INT2CHAR(sp, ap->bp, ap->len+1, np, nlen);
|
H A D | ex_edit.c | 54 size_t nlen; local 76 np, nlen);
|
H A D | ex_write.c | 133 size_t nlen; local 233 n, nlen); 234 name = v_strdup(sp, n, nlen - 1); 244 if ((n = v_strdup(sp, name, nlen - 1)) != NULL) { 266 INT2CHAR(sp, p, STRLEN(p) + 1, n, nlen);
|
H A D | ex_argv.c | 322 size_t len, nlen; local 328 INT2CHAR(sp, uname + 1, ulen - 1, np, nlen); 329 if ((np = v_strdup(sp, np, nlen)) == NULL) 335 if (nlen > 0 && 336 (nlen > len || memcmp(np, pw->pw_name, nlen))) 562 size_t dlen, len, nlen; local 598 INT2CHAR(sp, dname, dlen + 1, tp, nlen); 608 INT2CHAR(sp, np, STRLEN(np), tp, nlen); 609 if ((name = v_strdup(sp, tp, nlen)) 676 size_t nlen; local [all...] |
H A D | ex_cscope.c | 118 size_t nlen; local 142 INT2CHAR(sp, cmd, STRLEN(cmd) + 1, np, nlen); 206 size_t nlen; local 230 INT2CHAR(sp, dname, STRLEN(dname)+1, np, nlen); 467 size_t nlen; local 496 INT2CHAR(sp, pattern, STRLEN(pattern) + 1, np, nlen); 679 size_t dlen, nlen = 0, slen = 0; local 727 nlen = strlen(name); 760 TAG *, 1, sizeof(TAG) + dlen + 2 + nlen + 1 + 770 memcpy(tp->fname + dlen, name, nlen 842 size_t nlen; local 883 size_t nlen; local [all...] |
/freebsd-10.0-release/contrib/nvi/common/ |
H A D | seq.c | 41 size_t nlen, 86 if (name == NULL || nlen == 0) 88 else if ((qp->name = v_wstrdup(sp, name, nlen)) == NULL) { 92 qp->nlen = nlen; 334 olen = qp->nlen; olen > 0; --olen, ++p) 38 seq_set( SCR *sp, CHAR_T *name, size_t nlen, CHAR_T *input, size_t ilen, CHAR_T *output, size_t olen, seq_t stype, int flags) argument
|
/freebsd-10.0-release/sys/contrib/ipfilter/netinet/ |
H A D | ip_irc_pxy.c | 261 size_t nlen = 0, olen; local 323 nlen = strlen(newbuf); 324 inc = nlen - olen; 336 nm = allocb(nlen, BPRI_MED); 340 nm->b_wptr += nlen; 360 COPYBACK(m, off, nlen, newbuf);
|
/freebsd-10.0-release/lib/libutil/ |
H A D | login_class.c | 139 substvar(const char * var, const struct passwd * pwd, int hlen, int pch, int nlen) argument 156 np = malloc(strlen(var) + (dollas * nlen) 182 memmove(p + nlen, p + 1, l); /* Subst username */ 183 memmove(p, pwd->pw_name, nlen); 184 p += nlen; 200 int nlen = pwd ? strlen(pwd->pw_name) : 0; local 210 char * np = substvar(var, pwd, hlen, pch, nlen); 236 if ((np = substvar(p, pwd, hlen, pch, nlen)) != NULL) {
|
/freebsd-10.0-release/contrib/nvi/vi/ |
H A D | v_txt.c | 1768 size_t nlen; local 1792 if ((nlen = (p - t)) == 0) 1796 BINC_RETW(sp, tp->lb, tp->lb_len, tp->len + nlen); 1800 MEMMOVE(tp->lb + nlen, tp->lb, tp->len); 1801 tp->len += nlen; 1804 MEMMOVE(tp->lb, t, nlen); 1807 tp->ai = nlen; 1997 size_t indx, len, nlen, off; local 2059 nlen = STRLEN(cmd.argv[0]->bp); 2067 for (nlen 2158 size_t nlen; local 2271 size_t chlen, nlen, olen; local 2437 size_t chlen, cno, copydown, olen, nlen; local [all...] |
/freebsd-10.0-release/bin/pax/ |
H A D | pax.h | 192 int nlen; /* file name length */ member in struct:archd
|
H A D | pat_rep.c | 624 arcn->nlen--; 670 if ((res = rep_name(arcn->name, &(arcn->nlen), 1)) != 0) 752 res = add_name(arcn->name, arcn->nlen, tmpname); 753 arcn->nlen = l_strncpy(arcn->name, tmpname, sizeof(arcn->name) - 1); 754 arcn->name[arcn->nlen] = '\0'; 771 if (fix_path(arcn->name, &(arcn->nlen), dest_dir, dir_len) < 0) 850 * nlen is the length of this name (and is modified to hold the length of 859 rep_name(char *name, int *nlen, int prnt) argument 1009 *nlen = l_strncpy(name, nname, PAXPATHLEN + 1);
|
/freebsd-10.0-release/usr.sbin/eeprom/ |
H A D | ofw_options.c | 246 int fd, len, nlen, pblen; local 255 for (nlen = ofw_firstprop(fd, optnode, prop, sizeof(prop)); nlen != 0; 256 nlen = ofw_nextprop(fd, optnode, prop, prop, sizeof(prop))) {
|
/freebsd-10.0-release/usr.sbin/ofwdump/ |
H A D | ofwdump.c | 151 int nlen, len, i, j, max, vlen; local 153 for (nlen = ofw_firstprop(fd, n, prop, sizeof(prop)); nlen != 0; 154 nlen = ofw_nextprop(fd, n, prop, prop, sizeof(prop))) {
|
/freebsd-10.0-release/sbin/sysctl/ |
H A D | sysctl.c | 646 show_var(int *oid, int nlen) argument 667 memcpy(qoid + 2, oid, nlen * sizeof(int)); 671 i = sysctl(qoid, nlen + 2, name, &j, 0, 0); 675 oidfmt(oid, nlen, fmt, &kind); 697 i = sysctl(qoid, nlen + 2, buf, &j, 0, 0); 705 i = sysctl(oid, nlen, 0, &j, 0, 0); 714 i = sysctl(oid, nlen, val, &len, 0, 0);
|
/freebsd-10.0-release/contrib/ipfilter/ |
H A D | ip_fil_compat.c | 1965 int nlen = fr->fr_namelen; local 1969 fr->fr_ifnames[0] = nlen; 1970 nlen = ipf_addfrstr(names, nlen, old->fr_ifnames[0], 1974 fr->fr_ifnames[1] = nlen; 1975 nlen = ipf_addfrstr(names, nlen, old->fr_ifnames[1], 1979 fr->fr_ifnames[2] = nlen; 1980 nlen = ipf_addfrstr(names, nlen, ol 2096 int nlen = fr->fr_namelen; local 2229 int nlen = fr->fr_namelen; local 2438 int nlen = np->in_namelen; local 2520 int nlen = np->in_namelen; local [all...] |
/freebsd-10.0-release/bin/cp/ |
H A D | cp.c | 266 size_t nlen; local 334 nlen = curr->fts_pathlen - base; 339 if (target_mid - to.p_path + nlen >= PATH_MAX) { 345 (void)strncat(target_mid, p, nlen); 346 to.p_end = target_mid + nlen;
|
/freebsd-10.0-release/lib/libc/locale/ |
H A D | collate.c | 253 int dest_len, len, nlen; local 265 nlen = len + strlen(__collate_substitute_table[*s]); 266 if (dest_len <= nlen) { 267 dest_str = reallocf(dest_str, dest_len = nlen + delta); 272 len = nlen;
|
/freebsd-10.0-release/usr.bin/whereis/ |
H A D | whereis.c | 384 size_t nlen, olen, s; local 462 nlen = strlen(cp); 464 olen + nlen + 2); 536 nlen = strlen(cp2); 538 olen + nlen + 2); 575 nlen = strlen(cp); 577 olen + nlen + 2); 643 nlen = strlen(buf); 646 nlen + 2);
|
/freebsd-10.0-release/contrib/unbound/validator/ |
H A D | val_nsec.c | 384 size_t nlen; local 385 if(!nsec_get_next(nsec, &next, &nlen)) 454 size_t nlen; local 456 if(!nsec_get_next(nsec, &next, &nlen)) 549 size_t i, nlen; local 561 !nsec_get_next(rep->rrsets[i], &next, &nlen))
|
/freebsd-10.0-release/sys/geom/ |
H A D | geom_ctl.c | 159 if (ap[i].nlen < 1 || ap[i].nlen > SPECNAMELEN) { 161 "wrong param name length %d: %d", i, ap[i].nlen); 164 p = geom_alloc_copyin(req, ap[i].name, ap[i].nlen); 167 if (p[ap[i].nlen - 1] != '\0') { 250 printf(" param:\t%d@%p", ap->nlen, ap->name);
|
/freebsd-10.0-release/contrib/tcpdump/ |
H A D | addrtoname.c | 351 * with length 'nlen' 355 lookup_bytestring(register const u_char *bs, const unsigned int nlen) argument 360 if (nlen >= 6) { 364 } else if (nlen >= 4) { 376 memcmp((const char *)bs, (const char *)(tp->e_bs), nlen) == 0) 385 tp->e_bs = (u_char *) calloc(1, nlen + 1); 389 memcpy(tp->e_bs, bs, nlen); 403 unsigned int nlen = *nsap; local 405 const u_char *ensap = nsap + nlen - 6; 407 if (nlen > [all...] |