Home
last modified time | relevance | path

Searched refs:nw (Results 1 – 25 of 50) sorted by relevance

12

/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dirp_nw.c90 if (!(nw = memget(sizeof *nw))) { in irs_irp_nw()
95 memset(nw, 0x0, sizeof *nw); in irs_irp_nw()
105 return (nw); in irs_irp_nw()
164 nw = NULL; in nw_byaddr()
167 nw = NULL; in nw_byaddr()
174 return (nw); in nw_byaddr()
213 nw = NULL; in nw_byname()
216 nw = NULL; in nw_byname()
223 return (nw); in nw_byname()
286 nw = NULL; in nw_next()
[all …]
H A Dgen_nw.c77 if (!(nw = memget(sizeof *nw))) { in irs_gen_nw()
82 memset(nw, 0x5e, sizeof *nw); in irs_gen_nw()
122 nw = pvt->rule->inst->nw; in nw_next()
123 rval = (*nw->next)(nw); in nw_next()
130 nw = pvt->rule->inst->nw; in nw_next()
131 (*nw->rewind)(nw); in nw_next()
148 nw = rule->inst->nw; in nw_byname()
171 nw = rule->inst->nw; in nw_byaddr()
190 nw = pvt->rule->inst->nw; in nw_rewind()
191 (*nw->rewind)(nw); in nw_rewind()
[all …]
H A Dgetnetent.c110 if (!net_data || !(nw = net_data->nw)) in getnetent_p()
112 net_data->nww_last = (*nw->next)(nw); in getnetent_p()
123 if (!net_data || !(nw = net_data->nw)) in getnetbyname_p()
134 net_data->nww_last = (*nw->byname)(nw, name, AF_INET); in getnetbyname_p()
147 if (!net_data || !(nw = net_data->nw)) in getnetbyaddr_p()
185 net_data->nww_last = (*nw->byaddr)(nw, addr, bits, AF_INET); in getnetbyaddr_p()
199 if (!net_data || !(nw = net_data->nw)) in setnetent_p()
202 (*nw->rewind)(nw); in setnetent_p()
212 if ((net_data != NULL) && ((nw = net_data->nw) != NULL)) in endnetent_p()
213 (*nw->minimize)(nw); in endnetent_p()
[all …]
H A Dlcl_nw.c119 struct irs_nw *nw; in irs_lcl_nw() local
129 if (!(nw = memget(sizeof *nw))) { in irs_lcl_nw()
134 memset(nw, 0x5e, sizeof *nw); in irs_lcl_nw()
135 nw->private = pvt; in irs_lcl_nw()
136 nw->close = nw_close; in irs_lcl_nw()
137 nw->byname = nw_byname; in irs_lcl_nw()
138 nw->byaddr = nw_byaddr; in irs_lcl_nw()
139 nw->next = nw_next; in irs_lcl_nw()
140 nw->rewind = nw_rewind; in irs_lcl_nw()
142 nw->res_get = nw_res_get; in irs_lcl_nw()
[all …]
H A Ddns_nw.c101 struct irs_nw *nw; in irs_dns_nw() local
111 if (!(nw = memget(sizeof *nw))) { in irs_dns_nw()
116 memset(nw, 0x5e, sizeof *nw); in irs_dns_nw()
117 nw->private = pvt; in irs_dns_nw()
118 nw->close = nw_close; in irs_dns_nw()
119 nw->byname = nw_byname; in irs_dns_nw()
120 nw->byaddr = nw_byaddr; in irs_dns_nw()
121 nw->next = nw_next; in irs_dns_nw()
122 nw->rewind = nw_rewind; in irs_dns_nw()
124 nw->res_get = nw_res_get; in irs_dns_nw()
[all …]
H A Dgen.c198 struct irs_nw *nw; in gen_res_set()
216 nw = rule->inst->nw; in gen_res_set()
218 (*nw->res_set)(nw, res, NULL); in gen_res_set()
246 if (irs->accessors[n].nw != NULL) in gen_close()
247 (*irs->accessors[n].nw->close)(irs->accessors[n].nw); in gen_close()
365 if (inst->nw == NULL && inst->acc->nw_map != NULL) in add_rule()
366 inst->nw = (*inst->acc->nw_map)(inst->acc); in add_rule()
H A Dirs_data.c95 if (net_data->nw != NULL) { in net_data_destroy()
96 (*net_data->nw->close)(net_data->nw); in net_data_destroy()
97 net_data->nw = NULL; in net_data_destroy()
H A Dirs_data.h34 struct irs_nw * nw; member
/illumos-gate/usr/src/cmd/lp/model/netpr/
H A Dnet.c135 int nw; in xfer_file() local
155 if ((nw == 0) || (nw < 0)) { in xfer_file()
180 ctr -= nw; in xfer_file()
181 pa += nw; in xfer_file()
199 int nw = 0; in xfer_cfAfile() local
224 if (nw <= 0) { in xfer_cfAfile()
243 ctr -= nw; in xfer_cfAfile()
244 pa += nw; in xfer_cfAfile()
323 int nw; in netpr_send_message() local
358 ctr -= nw; in netpr_send_message()
[all …]
/illumos-gate/usr/src/cmd/troff/troff.d/
H A Dmakedev.c222 int i, nw, spacewidth, n, v; local
254 nw = 0;
259 nw++;
260 width[nw] = atoi(s1);
261 kern[nw] = atoi(s2);
267 code[nw] = i;
278 fitab[i + 128-32] = nw; /* starts after the ascii */
285 nw++;
286 if (dev.biggestfont >= nw)
291 n = nw;
[all …]
H A Dt10.c101 int i, fin, nw; in ptinit() local
136 nw = *p & BYTEMASK; /* 1st thing is width count */ in ptinit()
143 kerntab[i] = p + nw; in ptinit()
144 codetab[i] = p + 2 * nw; in ptinit()
145 fitab[i] = p + 3 * nw; /* skip width, kern, code */ in ptinit()
146 p += 3 * nw + dev.nchtab + 128 - 32; in ptinit()
/illumos-gate/usr/src/cmd/lp/filter/postscript/font/
H A Dmakedev.c228 int i, nw, spacewidth, n, v; in dofont() local
264 nw = 0; in dofont()
269 nw++; in dofont()
270 width[nw] = atoi(s1); in dofont()
271 kern[nw] = atoi(s2); in dofont()
277 code[nw] = i; in dofont()
287 fitab[i + 128-32] = nw; /* starts after the ascii */ in dofont()
294 nw++; in dofont()
303 if ( nw > n ) { in dofont()
304 n = nw; in dofont()
[all …]
/illumos-gate/usr/src/cmd/tip/aculib/
H A Ddn11.c27 int lt, nw; in dn_dialer() local
56 nw = write(dn, num, lt = strlen(num)); in dn_dialer()
57 exit(nw != lt); in dn_dialer()
77 while ((nw = wait(&lt)) != child && nw != -1) in dn_dialer()
/illumos-gate/usr/src/cmd/sendmail/db/os/
H A Dos_rw.c125 ssize_t nw; local
129 offset = 0; offset < len; taddr += nw, offset += nw)
130 if ((nw = __db_jump.j_write != NULL ?
/illumos-gate/usr/src/cmd/tcopy/
H A Dtcopy.c66 int n, nw, inp, outp; in main() local
121 nw = write(outp, buff, (size_t)n); in main()
122 if (nw != n) { in main()
124 " read (%d)\n", nw, n); in main()
/illumos-gate/usr/src/cmd/iconv/
H A Diconv_main.c190 int nr, nw, rc; in iconv_file() local
219 nw = fwrite(obuf, 1, ocnt, stdout); in iconv_file()
220 if (nw != ocnt) { in iconv_file()
304 nw = fwrite(obuf, 1, ocnt, stdout); in iconv_file()
305 if (nw != ocnt) { in iconv_file()
/illumos-gate/usr/src/cmd/ps/
H A Dps.c1417 size_t nw; in prcom() local
1422 else if (nw > 8) in prcom()
1431 size_t nw; in prcom() local
1436 else if (nw > 8) in prcom()
1674 size_t nw; in print_field() local
1696 size_t nw; in print_field() local
1986 size_t nw; in print_field() local
2026 size_t nw; in print_field() local
2318 size_t nw; in przom() local
2323 else if (nw > 8) in przom()
[all …]
/illumos-gate/usr/src/cmd/sendmail/db/log/
H A Dlog_put.c363 size_t nw, remain; local
393 nw = remain > len ? len : remain;
394 memcpy(lp->buf + lp->b_off, addr, nw);
395 addr = (u_int8_t *)addr + nw;
396 len -= nw;
397 lp->b_off += nw;
421 ssize_t nw; local
438 (ret = __os_write(dblp->lfd, addr, len, &nw)) != 0) {
442 if (nw != (int32_t)len)
/illumos-gate/usr/src/cmd/sendmail/db/db/
H A Ddb_region.c39 ssize_t nr, nw; local
360 __os_write(infop->fd, rlp, sizeof(*rlp), &nw)) != 0)
742 ssize_t nr, nw; local
763 __os_write(infop->fd, buf, sizeof(buf), &nw)) != 0)
765 if (nw != sizeof(buf))
782 if ((ret = __os_write(infop->fd, buf, sizeof(buf), &nw)) != 0)
784 if (nw != sizeof(buf))
/illumos-gate/usr/src/cmd/bnu/
H A Dcpmv.c48 register int nr, nw; local
86 (nw = write(fd2, buf, nr)) == nr)
92 if (nr != 0 || nw == -1) {
/illumos-gate/usr/src/cmd/sendmail/util/
H A Dmail.local.c740 int mbfd = -1, nr, nw = 0, off; local
879 for (off = 0; off < nr; nr -= nw, off += nw)
880 if ((nw = write(mbfd, buf + off, nr)) < 0)
909 for (off = 0; off < nr; nr -= nw, off += nw)
910 if ((nw = write(mbfd, buf + off, nr)) < 0) {
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dlocaladdr.c362 struct linux_ipv6_addr_list *nw; in get_linux_ipv6_addrs() local
393 nw = malloc (sizeof (struct linux_ipv6_addr_list)); in get_linux_ipv6_addrs()
394 if (nw == 0) in get_linux_ipv6_addrs()
396 memset (nw, 0, sizeof (*nw)); in get_linux_ipv6_addrs()
397 nw->addr.sin6_addr = a6; in get_linux_ipv6_addrs()
398 nw->addr.sin6_family = AF_INET6; in get_linux_ipv6_addrs()
400 nw->next = lst; in get_linux_ipv6_addrs()
401 lst = nw; in get_linux_ipv6_addrs()
/illumos-gate/usr/src/uts/common/io/
H A Demul64.c1547 emul64_nowrite_t *nw; in emul64_nowrite_alloc() local
1549 nw = kmem_zalloc(sizeof (*nw), KM_SLEEP); in emul64_nowrite_alloc()
1551 (void *) &nw->emul64_blocked, in emul64_nowrite_alloc()
1552 sizeof (nw->emul64_blocked)); in emul64_nowrite_alloc()
1553 return (nw); in emul64_nowrite_alloc()
1557 emul64_nowrite_free(emul64_nowrite_t *nw) in emul64_nowrite_free() argument
1559 kmem_free((void *) nw, sizeof (*nw)); in emul64_nowrite_free()
/illumos-gate/usr/src/cmd/lp/filter/postscript/dpost/
H A Ddpost.c1403 int nw; /* number of width table entries */ in loadfont() local
1446 nw = fontbase[n]->nwfont & BMASK; in loadfont()
1448 codetab[n] = (char *) widthtab[n] + 2 * nw; in loadfont()
1449 fitab[n] = (char *) widthtab[n] + 3 * nw; in loadfont()
1466 int nw; /* width entries in next font */ in loadspecial() local
1485 nw = *p & BMASK; in loadspecial()
1488 p += 3 * nw + dev.nchtab + 128 - 32 + sizeof(struct Font); in loadspecial()
/illumos-gate/usr/src/cmd/sendmail/db/btree/
H A Dbt_recno.c1002 ssize_t nw; local
1091 __os_write(fd, data.data, data.size, &nw)) != 0)
1093 if (nw != (ssize_t)data.size) {
1101 __os_write(fd, pad, rp->re_len, &nw)) != 0)
1103 if (nw != (ssize_t)rp->re_len) {
1114 if ((ret = __os_write(fd, &delim, 1, &nw)) != 0)
1116 if (nw != 1) {

12