HomeSort by: relevance | last modified time | path
    Searched defs:nbuf (Results 1 - 25 of 86) sorted by relevancy

1 2 3 4

  /src/usr.bin/ctags/
tree.c 65 char nbuf[MAXTOKEN]; local in function:pfnote
81 (void)snprintf(nbuf, sizeof(nbuf), "M%s", fp);
82 fp = strrchr(nbuf, '.');
85 name = nbuf;
  /src/sys/arch/m68k/m68k/
regdump.c 140 static char nbuf[9]; local in function:hexstr
144 nbuf[0] = '\0';
145 return(nbuf);
147 nbuf[len] = '\0';
151 nbuf[i] = HEXDIGITS[x];
154 return nbuf;
  /src/lib/libc/db/btree/
bt_overflow.c 100 void *nbuf = realloc(*buf, sz); local in function:__ovfl_get
101 if (nbuf == NULL)
103 *buf = nbuf;
  /src/lib/libc/gen/
nlist_aout.c 101 struct nlist nbuf[1024]; local in function:__fdnlist_aout
163 cc = MIN(symsize, sizeof(nbuf));
164 if (read(fd, nbuf, cc) != (ssize_t) cc)
167 for (s = nbuf; cc > 0; ++s, cc -= sizeof(*s)) {
initdir.c 79 char *buf, *nbuf; local in function:_initdir
114 nbuf = realloc(buf, len);
115 if (nbuf == NULL) {
119 buf = nbuf;
getpass.c 255 char *nbuf = realloc(buf, nlen); local in function:__weak_alias
256 if (nbuf == NULL)
258 buf = nbuf;
  /src/tools/compat/
getline.c 77 char *nbuf; local in function:getdelim
80 if ((nbuf = realloc(*buf, nbufsiz)) == NULL)
82 *buf = nbuf;
84 eptr = nbuf + nbufsiz;
85 ptr = nbuf + d;
  /src/sys/arch/luna68k/stand/boot/
machdep.c 203 static char nbuf[9]; local in function:hexstr
208 nbuf[len] = '\0';
212 nbuf[i] = x - 10 + 'A';
214 nbuf[i] = x + '0';
217 return nbuf;
  /src/lib/libwrap/
expandm.c 53 char *buf, *nbuf; local in function:expandm
85 nbuf = realloc(buf, tlen + 1);
86 if (nbuf == NULL)
89 memcpy(nbuf + blen, ptr, nlen);
90 nbuf[tlen] = '\0';
92 buf = nbuf;
97 if (asprintf(&nbuf, "%s%.*s%s", buf ? buf : "",
101 buf = nbuf;
104 if (asprintf(&nbuf, "%s%s%s", buf ? buf : "", ptr, sf ? sf : "") == -1)
109 *rbuf = nbuf;
    [all...]
  /src/bin/rcp/
util.c 153 char *nbuf; local in function:allocbuf
164 if ((nbuf = realloc(bp->buf, size)) == NULL) {
171 bp->buf = nbuf;
  /src/sys/dev/wsfont/
wsfontdev.c 119 char nbuf[64]; local in function:wsfontioctl
130 res = copyinstr(d->name, nbuf, sizeof(nbuf), 0);
133 d->name = nbuf;
  /src/tests/lib/libc/net/getaddrinfo/
h_gai.c 114 char nbuf[14]; local in function:main
167 strncpy(nbuf, "(empty)", sizeof(nbuf));
168 print1("arg:", &ai, p ? p : nbuf , q ? q : nbuf);
178 snprintf(nbuf, sizeof(nbuf), "ai%d:", i);
179 print1(nbuf, res, NULL, NULL);
  /src/usr.bin/fold/
fold.c 133 wchar_t *nbuf; local in function:fold
189 if ((nbuf = realloc (buf, buf_max + 2048)) == NULL) {
193 buf = nbuf;
  /src/bin/dd/
misc.c 194 char hbuf[7], nbuf[32]; local in function:dd_write_msg
217 (void)snprintf(nbuf, sizeof(nbuf), "%llu",
219 ADDS(nbuf);
229 (void)snprintf(nbuf, sizeof(nbuf), "%llu",
231 ADDS(nbuf);
241 (void)snprintf(nbuf, sizeof(nbuf), "%llu",
243 ADDS(nbuf);
    [all...]
  /src/lib/libedit/
hist.c 191 char *nbuf = el_realloc(buf, maxlen); local in function:hist_command
192 if (nbuf == NULL) {
196 buf = nbuf;
  /src/sys/arch/acorn32/stand/lib/
riscosdisk.c 122 void *nbuf; local in function:rodisk_strategy
134 &rd->privword, &ndaddr, &nbuf, &resid)) != NULL)
139 &rd->privword, &ndaddr, &nbuf, &resid)) != NULL)
146 size, NULL, &rd->privword, &ndaddr, &nbuf, &resid)) !=
  /src/sys/net/npf/
npf_bpf.c 50 #define m_length(m) (nbuf)->nb_mops->getchainlen(m)
87 nbuf_t *nbuf = npc->npc_nbuf; local in function:npf_bpf_prepare
88 const struct mbuf *mbuf = nbuf_head_mbuf(nbuf);
93 args->pkt = (const uint8_t *)nbuf_dataptr(nbuf);
npf_handler.c 84 nbuf_t *nbuf = npc->npc_nbuf; local in function:npf_reassembly
89 m = nbuf_head_mbuf(nbuf);
104 /* Reassembly failed; free the mbuf, clear the nbuf. */
107 memset(nbuf, 0, sizeof(nbuf_t));
121 nbuf_init(npf, nbuf, m, nbuf->nb_ifp);
132 npf_packet_bypass_tag_p(nbuf_t *nbuf)
135 return nbuf_find_tag(nbuf, &ntag) == 0 && (ntag & NPF_NTAG_PASS) != 0;
146 nbuf_t nbuf; local in function:npfk_packet_handler
161 nbuf_init(npf, &nbuf, *mp, ifp)
349 nbuf_t nbuf; local in function:npfk_layer2_handler
    [all...]
npf_alg_icmp.c 123 * the nbuf nor npc is touched.
129 nbuf_t *nbuf = npc->npc_nbuf; local in function:npfa_icmp4_inspect
139 if (!nbuf_advance(nbuf, offsetof(struct icmp, icmp_ip), 0)) {
162 nbuf_t *nbuf = npc->npc_nbuf; local in function:npfa_icmp6_inspect
171 if (!nbuf_advance(nbuf, sizeof(struct icmp6_hdr), 0)) {
195 nbuf_t *nbuf = npc->npc_nbuf; local in function:npfa_icmp_inspect
202 nbuf_reset(nbuf);
203 if (!nbuf_advance(nbuf, npc->npc_hlen, 0)) {
208 enpc->npc_nbuf = nbuf;
308 * Recache npc. The nbuf may have been updated as a result o
    [all...]
  /src/usr.sbin/kvm_mkdb/
nlist_aout.c 112 NLIST nbuf; local in function:create_knlist_aout
174 data.data = (u_char *)&nbuf;
182 if (fread((char *)&nbuf, sizeof (NLIST), 1, fp) != 1) {
188 if (!nbuf._strx || nbuf.n_type&N_STAB)
191 key.data = (u_char *)strtab + nbuf._strx - sizeof(long);
206 voff = nbuf.n_value - kerntextoff + N_TXTADDR(ebuf);
207 if ((nbuf.n_type & N_TYPE) == N_TEXT)
233 data.data = (u_char *)&nbuf;
nlist_coff.c 87 struct nlist nbuf; local in function:create_knlist_coff
166 data.data = (u_char *)&nbuf;
167 data.size = sizeof(nbuf);
248 nbuf.n_value = val;
249 nbuf.n_type = N_EXT; /* XXX */
250 nbuf.n_desc = 0; /* XXX */
251 nbuf.n_other = 0; /* XXX */
277 vma = nbuf.n_value;
338 data.data = (u_char *)&nbuf;
339 data.size = sizeof(nbuf);
    [all...]
  /src/usr.sbin/npf/npftest/libnpftest/
npf_nbuf_test.c 2 * NPF nbuf interface tests.
20 mbuf_consistency_check(nbuf_t *nbuf)
22 struct mbuf *m = nbuf_head_mbuf(nbuf);
35 nbuf_t nbuf; local in function:parse_nbuf_chain
39 nbuf_init(npf_getkernctx(), &nbuf, m, dummy_ifp);
41 nptr = nbuf_advance(&nbuf, (random() % 16) + 1, (random() % 16) + 1);
42 mbuf_consistency_check(&nbuf);
44 nbuf_reset(&nbuf);
49 nptr = nbuf_ensure_contig(&nbuf, sizeof(uint32_t));
53 mbuf_consistency_check(&nbuf);
    [all...]
  /src/sys/external/bsd/libnv/dist/
nv_kern_netbsd.c 271 void *nbuf = alloc(len); local in function:nv_realloc
272 memcpy(nbuf, buf, *olen);
274 return nbuf;
  /src/tests/lib/libc/stdlib/
h_sort.c 89 size_t nbuf; local in function:main
130 nbuf = 0x1000;
131 error = reallocarr(&buf, nbuf, 1);
140 while ((nread = read(STDIN_FILENO, buf + off, nbuf - off - 1)) != 0) {
143 if ((size_t)nread > nbuf - off - 1)
153 if (nbuf - off == 1) {
154 if (nbuf > SIZE_MAX/2)
156 nbuf *= 2;
157 error = reallocarr(&buf, nbuf, 1);
  /src/usr.bin/netstat/
route.c 184 char nbuf[20]; local in function:p_rtnode
195 (void)snprintf(nbuf, sizeof nbuf, "(%d)", rnode.rn_b);
196 printf("%6.6s %8.8lx : %8.8lx", nbuf, (u_long) rnode.rn_l,
201 (void)snprintf(nbuf, sizeof nbuf, " %d refs, ", rmask.rm_refs);
203 -1 - rmask.rm_b, rmask.rm_refs ? nbuf : " ");

Completed in 19 milliseconds

1 2 3 4