Searched refs:nlen (Results 26 - 50 of 131) sorted by relevance

123456

/freebsd-11-stable/contrib/nvi/common/
H A Dconv.c113 ssize_t nlen = len; local
122 BINC_RETW(NULL, *tostr, *blen, nlen);
140 nlen += 256;
141 BINC_RETW(NULL, *tostr, *blen, nlen);
209 ssize_t nlen = len + MB_CUR_MAX; local
231 nlen += 256; \
233 nlen); \
249 BINC_RETC(NULL, *tostr, *blen, nlen);
267 nlen += 256;
268 BINC_RETC(NULL, *tostr, *blen, nlen);
[all...]
H A Dmsg.c60 size_t blen, len, mlen, nlen; local
121 nlen = 1024;
124 nlen *= 2;
128 GET_SPACE_GOTOC(sp, bp, blen, nlen);
240 if ((rbp = malloc(nlen)) == NULL)
280 if (len >= nlen)
368 size_t nlen; local
375 INT2CHAR(sp, str, STRLEN(str) + 1, nstr, nlen);
872 size_t blen, nlen; local
887 nlen
[all...]
H A Dseq.c41 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-11-stable/usr.sbin/ckdist/
H A Dckdist.c359 size_t plen, nlen; local
369 nlen = strlen(name);
370 if (ext && nlen > 4 && name[nlen - 4] == '.' &&
371 disttype(name + nlen - 3) == DISTINF)
372 nlen -= 4;
379 if (plen + (plen > 0) + nlen + (ext ? 3 : 0) >= sizeof(buf))
387 memcpy(s, name, nlen);
388 s += nlen;
/freebsd-11-stable/usr.sbin/pmcstat/
H A Dpmcpl_gprof.c316 int count, nlen; local
333 nlen = strlen(sn);
334 nlen = min(nlen, (int) (sizeof(name) - sizeof(".gmon")));
336 snprintf(name, sizeof(name), "%.*s.gmon", nlen, sn);
346 nlen = strlen(sn);
347 nlen = min(nlen, (int) (sizeof(name)-sizeof("~NNN.gmon")));
355 nlen, sn, count);
/freebsd-11-stable/usr.bin/whereis/
H A Dwhereis.c385 size_t nlen, olen, s; local
463 nlen = strlen(cp);
465 olen + nlen + 2);
535 nlen = strlen(cp2);
537 olen + nlen + 2);
574 nlen = strlen(cp);
576 olen + nlen + 2);
642 nlen = strlen(buf);
645 nlen + 2);
/freebsd-11-stable/contrib/nvi/ex/
H A Dex_write.c132 size_t nlen; local
232 n, nlen);
233 name = v_strdup(sp, n, nlen - 1);
243 if ((n = v_strdup(sp, name, nlen - 1)) != NULL) {
265 INT2CHAR(sp, p, STRLEN(p) + 1, n, nlen);
H A Dex_tag.c149 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 Dex_bang.c60 size_t nlen; local
115 INT2CHAR(sp, ap->bp, ap->len+1, np, nlen);
H A Dex_edit.c54 size_t nlen; local
76 np, nlen);
H A Dex_argv.c322 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 Dex_cscope.c118 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-11-stable/crypto/openssh/
H A Dmac.c97 size_t nlen, rlen = 0; local
103 nlen = strlen(m->name);
104 if ((tmp = realloc(ret, rlen + nlen + 2)) == NULL) {
109 memcpy(ret + rlen, m->name, nlen + 1);
110 rlen += nlen;
H A Dsshbuf-misc.c117 int nlen, r; local
124 if ((nlen = b64_pton(b64, p, plen)) < 0) {
129 if ((r = sshbuf_put(buf, p, nlen)) < 0) {
/freebsd-11-stable/sys/contrib/ipfilter/netinet/
H A Dip_irc_pxy.c261 size_t nlen = 0, olen; local
319 nlen = strlen(newbuf);
320 inc = nlen - olen;
332 nm = allocb(nlen, BPRI_MED);
336 nm->b_wptr += nlen;
356 COPYBACK(m, off, nlen, newbuf);
/freebsd-11-stable/lib/libutil/
H A Dlogin_class.c142 substvar(const char * var, const struct passwd * pwd, int hlen, int pch, int nlen) argument
159 np = malloc(strlen(var) + (dollas * nlen)
185 memmove(p + nlen, p + 1, l); /* Subst username */
186 memmove(p, pwd->pw_name, nlen);
187 p += nlen;
203 int nlen = pwd ? strlen(pwd->pw_name) : 0; local
213 char * np = substvar(var, pwd, hlen, pch, nlen);
239 if ((np = substvar(p, pwd, hlen, pch, nlen)) != NULL) {
/freebsd-11-stable/contrib/nvi/vi/
H A Dv_txt.c1768 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-11-stable/bin/pax/
H A Dpax.h192 int nlen; /* file name length */ member in struct:archd
H A Dpat_rep.c622 arcn->nlen--;
668 if ((res = rep_name(arcn->name, &(arcn->nlen), 1)) != 0)
750 res = add_name(arcn->name, arcn->nlen, tmpname);
751 arcn->nlen = l_strncpy(arcn->name, tmpname, sizeof(arcn->name) - 1);
752 arcn->name[arcn->nlen] = '\0';
769 if (fix_path(arcn->name, &(arcn->nlen), dest_dir, dir_len) < 0)
848 * nlen is the length of this name (and is modified to hold the length of
857 rep_name(char *name, int *nlen, int prnt) argument
1007 *nlen = l_strncpy(name, nname, PAXPATHLEN + 1);
/freebsd-11-stable/usr.sbin/ofwdump/
H A Dofwdump.c146 int nlen; local
149 for (nlen = ofw_firstprop(fd, n, prop, sizeof(prop)); nlen != 0;
150 nlen = ofw_nextprop(fd, n, prop, prop, sizeof(prop)))
/freebsd-11-stable/usr.sbin/eeprom/
H A Dofw_options.c248 int fd, len, nlen, pblen; local
257 for (nlen = ofw_firstprop(fd, optnode, prop, sizeof(prop)); nlen != 0;
258 nlen = ofw_nextprop(fd, optnode, prop, prop, sizeof(prop))) {
/freebsd-11-stable/sys/contrib/zlib/
H A Dinflate.h115 unsigned nlen; /* number of length code lengths */ member in struct:inflate_state
/freebsd-11-stable/contrib/ipfilter/
H A Dip_fil_compat.c1943 int nlen = fr->fr_namelen; local
1947 fr->fr_ifnames[0] = nlen;
1948 nlen = ipf_addfrstr(names, nlen, old->fr_ifnames[0],
1952 fr->fr_ifnames[1] = nlen;
1953 nlen = ipf_addfrstr(names, nlen, old->fr_ifnames[1],
1957 fr->fr_ifnames[2] = nlen;
1958 nlen = ipf_addfrstr(names, nlen, ol
2074 int nlen = fr->fr_namelen; local
2207 int nlen = fr->fr_namelen; local
2416 int nlen = np->in_namelen; local
2498 int nlen = np->in_namelen; local
[all...]
/freebsd-11-stable/bin/cp/
H A Dcp.c270 size_t nlen; local
338 nlen = curr->fts_pathlen - base;
343 if (target_mid - to.p_path + nlen >= PATH_MAX) {
349 (void)strncat(target_mid, p, nlen);
350 to.p_end = target_mid + nlen;
/freebsd-11-stable/sys/geom/
H A Dgeom_ctl.c161 if (ap[i].nlen < 1 || ap[i].nlen > SPECNAMELEN) {
163 "wrong param name length %d: %d", i, ap[i].nlen);
166 p = geom_alloc_copyin(req, ap[i].name, ap[i].nlen);
169 if (p[ap[i].nlen - 1] != '\0') {
254 printf(" param:\t%d@%p", ap->nlen, ap->name);

Completed in 188 milliseconds

123456