/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | irp_nw.c | 69 static void free_nw(struct nwent *nw); 81 struct irs_nw *nw; in irs_irp_nw() local 90 if (!(nw = memget(sizeof *nw))) { in irs_irp_nw() 95 memset(nw, 0x0, sizeof *nw); in irs_irp_nw() 98 nw->private = pvt; in irs_irp_nw() 99 nw->close = nw_close; in irs_irp_nw() 100 nw->byname = nw_byname; in irs_irp_nw() 101 nw->byaddr = nw_byaddr; in irs_irp_nw() 102 nw->next = nw_next; in irs_irp_nw() 103 nw->rewind = nw_rewind; in irs_irp_nw() [all …]
|
H A D | gen_nw.c | 69 struct irs_nw *nw; in irs_gen_nw() local 77 if (!(nw = memget(sizeof *nw))) { in irs_gen_nw() 82 memset(nw, 0x5e, sizeof *nw); in irs_gen_nw() 85 nw->private = pvt; in irs_gen_nw() 86 nw->close = nw_close; in irs_gen_nw() 87 nw->next = nw_next; in irs_gen_nw() 88 nw->byname = nw_byname; in irs_gen_nw() 89 nw->byaddr = nw_byaddr; in irs_gen_nw() 90 nw->rewind = nw_rewind; in irs_gen_nw() 91 nw->minimize = nw_minimize; in irs_gen_nw() [all …]
|
H A D | getnetent.c | 108 struct irs_nw *nw; in getnetent_p() local 110 if (!net_data || !(nw = net_data->nw)) in getnetent_p() 112 net_data->nww_last = (*nw->next)(nw); in getnetent_p() 119 struct irs_nw *nw; in getnetbyname_p() local 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() 143 struct irs_nw *nw; in getnetbyaddr_p() local 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() 197 struct irs_nw *nw; in setnetent_p() local [all …]
|
H A D | lcl_nw.c | 119 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() 141 nw->minimize = nw_minimize; in irs_lcl_nw() [all …]
|
H A D | dns_nw.c | 101 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() 123 nw->minimize = nw_minimize; in irs_dns_nw() [all …]
|
H A D | gen.c | 198 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 D | irs_data.c | 95 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 D | irs_data.h | 34 struct irs_nw * nw; member
|
/illumos-gate/usr/src/cmd/lp/model/netpr/ |
H A D | net.c | 133 int nw; in xfer_file() local 150 nw = write(sockfd, pa, ctr); in xfer_file() 151 syslog(LOG_DEBUG, "xfer_file: write while loop => nw = %d", nw); in xfer_file() 153 if ((nw == 0) || (nw < 0)) { in xfer_file() 178 ctr -= nw; in xfer_file() 179 pa += nw; in xfer_file() 197 int nw = 0; in xfer_cfAfile() local 220 nw = write(sockfd, pa, size); in xfer_cfAfile() 222 if (nw <= 0) { in xfer_cfAfile() 241 ctr -= nw; in xfer_cfAfile() [all …]
|
/illumos-gate/usr/src/cmd/troff/troff.d/ |
H A D | makedev.c | 220 int i, nw, spacewidth, n, v; local 252 nw = 0; 257 nw++; 258 width[nw] = atoi(s1); 259 kern[nw] = atoi(s2); 265 code[nw] = i; 272 fitab[ch[0] - 32] = nw; /* fitab origin omits non-graphics */ 276 fitab[i + 128-32] = nw; /* starts after the ascii */ 283 nw++; 284 if (dev.biggestfont >= nw) [all …]
|
H A D | t10.c | 99 int i, fin, nw; in ptinit() local 134 nw = *p & BYTEMASK; /* 1st thing is width count */ in ptinit() 141 kerntab[i] = p + nw; in ptinit() 142 codetab[i] = p + 2 * nw; in ptinit() 143 fitab[i] = p + 3 * nw; /* skip width, kern, code */ in ptinit() 144 p += 3 * nw + dev.nchtab + 128 - 32; in ptinit()
|
/illumos-gate/usr/src/cmd/lp/filter/postscript/font/ |
H A D | makedev.c | 226 int i, nw, spacewidth, n, v; in dofont() local 262 nw = 0; in dofont() 267 nw++; in dofont() 268 width[nw] = atoi(s1); in dofont() 269 kern[nw] = atoi(s2); in dofont() 275 code[nw] = i; in dofont() 281 fitab[ch[0] - 32] = nw; /* fitab origin omits non-graphics */ in dofont() 285 fitab[i + 128-32] = nw; /* starts after the ascii */ in dofont() 292 nw++; in dofont() 301 if ( nw > n ) { in dofont() [all …]
|
/illumos-gate/usr/src/cmd/tip/aculib/ |
H A D | dn11.c | 25 int lt, nw; in dn_dialer() local 54 nw = write(dn, num, lt = strlen(num)); in dn_dialer() 55 exit(nw != lt); in dn_dialer() 75 while ((nw = wait(<)) != child && nw != -1) in dn_dialer()
|
/illumos-gate/usr/src/cmd/sendmail/db/os/ |
H A D | os_rw.c | 125 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/ps/ |
H A D | ps.c | 1413 size_t nw; in prcom() local 1415 nw = mbstowcs(NULL, zonename, 0); in prcom() 1416 if (nw == (size_t)-1) in prcom() 1418 else if (nw > 8) in prcom() 1427 size_t nw; in prcom() local 1429 nw = mbstowcs(NULL, pwd->pw_name, 0); in prcom() 1430 if (nw == (size_t)-1) in prcom() 1432 else if (nw > 8) in prcom() 1670 size_t nw; in print_field() local 1672 nw = mbstowcs(NULL, pwd->pw_name, 0); in print_field() [all …]
|
/illumos-gate/usr/src/cmd/iconv/ |
H A D | iconv_main.c | 190 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/tcopy/ |
H A D | tcopy.c | 66 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/sendmail/db/log/ |
H A D | log_put.c | 363 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 D | db_region.c | 39 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 D | cpmv.c | 48 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 D | mail.local.c | 738 int mbfd = -1, nr, nw = 0, off; local 877 for (off = 0; off < nr; nr -= nw, off += nw) 878 if ((nw = write(mbfd, buf + off, nr)) < 0) 907 for (off = 0; off < nr; nr -= nw, off += nw) 908 if ((nw = write(mbfd, buf + off, nr)) < 0) {
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | emul64.c | 1547 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/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | localaddr.c | 362 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/cmd/sendmail/db/btree/ |
H A D | bt_recno.c | 1002 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) {
|
/illumos-gate/usr/src/cmd/lp/filter/postscript/dpost/ |
H A D | dpost.c | 1400 int nw; /* number of width table entries */ in loadfont() local 1443 nw = fontbase[n]->nwfont & BMASK; in loadfont() 1445 codetab[n] = (char *) widthtab[n] + 2 * nw; in loadfont() 1446 fitab[n] = (char *) widthtab[n] + 3 * nw; in loadfont() 1463 int nw; /* width entries in next font */ in loadspecial() local 1482 nw = *p & BMASK; in loadspecial() 1485 p += 3 * nw + dev.nchtab + 128 - 32 + sizeof(struct Font); in loadspecial()
|