/src/lib/libc/gen/ |
confstr.c | 58 size_t tlen; local in function:__weak_alias 70 if (sysctl(mib, 2, NULL, &tlen, NULL, 0) == -1) 73 if ((p = malloc(tlen)) == NULL) 75 if (sysctl(mib, 2, p, &tlen, NULL, 0) == -1) { 89 return tlen + 1;
|
/src/usr.sbin/npf/npftest/libnpftest/ |
npf_nbuf_test.c | 78 unsigned tlen = 0; local in function:mbuf_getstring 84 s[tlen++] = *d++; 140 unsigned tlen = 0, n = 0; local in function:mbuf_random_len 142 while (tlen < chain_len) { 151 if (tlen + len > chain_len) { 152 len = chain_len - tlen; 154 tlen += len; 168 KASSERT(tlen == chain_len); 171 m0->m_pkthdr.len = tlen;
|
npf_state_test.c | 17 int tlen; /* TCP data length. */ member in struct:__anon3c128e340108 125 ip->ip_len = htons(sizeof(struct ip) + sizeof(struct tcphdr) + p->tlen);
|
npf_mbuf_subr.c | 92 unsigned tlen; local in function:npfkern_m_ensure_contig 95 tlen = npfkern_m_length(*m0); 96 if ((m1 = npfkern_m_get(NULL, M_PKTHDR, tlen)) == NULL) { 99 m1->m_pkthdr.len = m1->m_len = tlen;
|
/src/lib/libwrap/ |
expandm.c | 71 size_t tlen; local in function:expandm 75 * tlen, then don't bother. The format string is 83 tlen = nlen + blen; 85 nbuf = realloc(buf, tlen + 1); 90 nbuf[tlen] = '\0';
|
/src/usr.bin/tail/ |
read.c | 68 int ch, len, tlen; local in function:displaybytes 95 tlen = len; 102 if (tlen) { 103 WR(sp, tlen); 104 tlen = 0; 109 if (tlen) 110 WR(sp, tlen);
|
/src/usr.bin/audio/common/ |
audio.c | 186 int veclen, left, tlen; local in function:write_header 207 tlen = 0; 212 tlen += iv[veclen++].iov_len; 217 tlen += iv[veclen++].iov_len; 222 tlen += iv[veclen++].iov_len; 225 if (tlen == 0) 228 if (writev(ti->outfd, iv, veclen) != tlen)
|
/src/usr.sbin/fwctl/ |
fwdv.c | 101 int len, tlen, npad, fd, k, m, vec, lsystem = -1, nb; local in function:dvrecv 141 tlen = 0; 142 while ((len = read(d, buf + tlen, PSIZE 143 /* RBUFSIZE - tlen */)) > 0) { 154 tlen += len; 155 if ((RBUFSIZE - tlen) < PSIZE) 159 tlen = len = read(d, buf, RBUFSIZE); 249 if ((char *)ptr < buf + tlen) 267 int len, tlen, header, fd, frames, packets, vec, offset, nhdr, i; local in function:dvsend 339 tlen = 0 [all...] |
fwmpegts.c | 149 int fd, k, len, m, pkt_size, startwr, tlen; local in function:mpegtsrecv 180 len = tlen = read(d, buf, RBUFSIZE); 217 /* tlen needs to be decremented before end of the loop */ 256 tlen -= pkt_size; 257 } while (tlen > 0);
|
/src/usr.bin/mail/ |
head.c | 119 size_t tlen; member in struct:cmatch_data 155 cmatch_minlen = MIN(cmatch_minlen, cmdp->tlen); 161 if (dl == cmdp->tlen && cmatch(date, cmdp->tdata))
|
/src/usr.bin/at/ |
parsetime.c | 363 size_t tlen; local in function:tod 367 tlen = strlen(sc_token); 377 } else if (tlen == 4) { 462 size_t tlen; local in function:month 519 tlen = strlen(sc_token); 543 } else if (tlen == 6 || tlen == 8) { 544 if (tlen == 8) {
|
/src/tests/lib/libc/stdlib/ |
t_mktemp.c | 85 size_t tlen; local in function:ATF_TC_BODY 90 tlen = (size_t)name_max + sizeof("/tmp/"); 91 template = malloc(tlen); 100 (void)memset(template, '\0', tlen); 103 for (i = 12; i < tlen - 1; i++) 107 ATF_REQUIRE(strlen(template) == tlen - 1);
|
/src/usr.bin/last/ |
want.c | 101 ssize_t tlen; local in function:wtmp 115 tlen = read(wfd, buf, len); 116 if (tlen < 0) { 119 if (tlen == 0) { 122 if (write(tempfd, buf, tlen) != tlen) {
|
/src/bin/sh/ |
memalloc.c | 357 size_t len, tlen = 0, alen[8]; local in function:ststrcat 368 tlen += len; 374 *lp = tlen; 376 if (tlen >= INT_MAX) 378 str = (char *)stalloc((int)tlen + 1); /* 1 for \0 */ 379 str[tlen] = '\0'; /* in case of no args */
|
/src/sys/netinet/ |
tcp_input.c | 455 tcp_reass(struct tcpcb *tp, const struct tcphdr *th, struct mbuf *m, int tlen) 482 rcvoobyte = tlen; 488 pkt_len = tlen; 877 int toff, int off, int tlen) 910 htons(hw_csum + tlen + off + IPPROTO_TCP)); 931 tlen + off) != 0) 965 tlen + off) != 0) 989 struct mbuf *m, int tlen) 1006 if (todrop > tlen || 1007 (todrop == tlen && (tiflags & TH_FIN) == 0)) 1196 int len, tlen, hdroptlen = 0; local in function:tcp_input [all...] |
tcp_syncache.c | 1083 u_int16_t tlen; local in function:syn_cache_respond 1112 tlen = hlen + sizeof(struct tcphdr) + MAX_TCPOPTLEN; 1113 KASSERT(max_linkhdr + tlen <= MCLBYTES); 1119 if (m && (max_linkhdr + tlen) > MHLEN) { 1135 memset(mtod(m, void *), 0, tlen); 1244 tlen = hlen + sizeof(struct tcphdr) + optlen; 1245 m->m_len = m->m_pkthdr.len = tlen; 1312 ip->ip_len = htons(tlen - hlen); 1314 th->th_sum = in4_cksum(m, IPPROTO_TCP, hlen, tlen - hlen); 1315 ip->ip_len = htons(tlen); [all...] |
/src/usr.sbin/bootp/bootpef/ |
bootpef.c | 233 unsigned int tlen, hashcode; 236 tlen = strlen(argv[0]); 237 hashcode = hash_HashFunction((u_char *)argv[0], tlen); 230 unsigned int tlen, hashcode; local in function:main
|
/src/sys/netipsec/ |
key_debug.c | 102 int tlen, extlen; local in function:kdebug_sadb 115 tlen = PFKEY_UNUNIT64(base->sadb_msg_len) - sizeof(struct sadb_msg); 118 while (tlen > 0) { 119 if (ext->sadb_ext_len == 0 || ext->sadb_ext_len > tlen) { 120 panic("%s: invalid ext_len=%d tlen=%d was passed", 121 __func__, ext->sadb_ext_len, tlen); 174 tlen -= extlen; 385 int tlen; local in function:kdebug_sadb_x_policy 388 tlen = PFKEY_UNUNIT64(xpl->sadb_x_policy_len) - sizeof(*xpl); 391 while (tlen > 0) [all...] |
/src/sys/dev/ppbus/ |
ppbus_base.c | 482 int tlen, i, j; local in function:search_token 492 for (tlen = 0, p = token; *p != '\0'; p++) 493 tlen++; 495 if (tlen == 0) 498 for (i = 0; i <= slen-tlen; i++) { 499 for (j = 0; j < tlen; j++) 502 if (j == tlen)
|
/src/lib/libc/hash/ |
hmac.c | 118 const void *text, size_t tlen, 152 (*h->update)(c, text, (unsigned int)tlen);
|
/src/sys/dev/ic/ |
smc90cx6.c | 355 int len, tlen, offset, s, buffer; local in function:bah_start 418 tlen = m->m_pkthdr.len; 419 if (tlen < ARC_MIN_FORBID_LEN) { 420 offset = 256 - tlen; 424 if (tlen <= ARC_MAX_FORBID_LEN) 427 if (tlen > ARC_MAX_LEN) 428 tlen = ARC_MAX_LEN; 429 offset = 512 - tlen;
|
/src/common/dist/zlib/examples/ |
gzlog.c | 301 ulong tlen; /* length (modulo 2^32) of total data */ member in struct:log 425 log->tlen = PULL4(buf + HEAD + 28); 447 PUT4(ext + 28, log->tlen); 525 log->tlen += put; 551 PUT4(buf + 4, log->tlen); 691 log->clen = log->tlen; 696 log->tlen = log->clen; 703 PUT4(buf + 4, log->tlen);
|
/src/sys/arch/hp300/stand/common/ |
if_lereg.h | 37 #define TLEN 1 110 u_short tlen; /* high order pointer and no rings */ member in struct:init_block
|
/src/sys/arch/emips/ebus/ |
if_le_ebus.c | 852 printf("enic? tlen %d > %d\n", 887 int len, tlen = 0, xlen = m->m_pkthdr.len; local in function:enic_put 892 tlen = xlen; 901 tlen -= len; 904 if (tlen <= 0) 912 if (((m = *pm) == NULL) || (tlen > 0)) 924 tlen = xlen; 929 n->m_pkthdr.len = tlen; 937 n->m_len = tlen; 939 for (; m && tlen; m = mm) [all...] |
/src/lib/libpthread/ |
pthread_tsd.c | 86 pthread_tsd_init(size_t *tlen) 111 *tlen = sizeof(struct __pthread_st) 113 alen = *tlen
|