| /NextBSD/crypto/openssl/crypto/bn/ |
| HD | bn_shift.c | 133 int i, nw, lb, rb; in BN_lshift() local 146 nw = n / BN_BITS2; in BN_lshift() 147 if (bn_wexpand(r, a->top + nw + 1) == NULL) in BN_lshift() 153 t[a->top + nw] = 0; in BN_lshift() 156 t[nw + i] = f[i]; in BN_lshift() 160 t[nw + i + 1] |= (l >> rb) & BN_MASK2; in BN_lshift() 161 t[nw + i] = (l << lb) & BN_MASK2; in BN_lshift() 163 memset(t, 0, nw * sizeof(t[0])); in BN_lshift() 167 r->top = a->top + nw + 1; in BN_lshift() 175 int i, j, nw, lb, rb; in BN_rshift() local [all …]
|
| /NextBSD/contrib/gcc/ |
| HD | et-forest.c | 446 struct et_occ *nw; in et_new_occ() local 450 nw = pool_alloc (et_occurrences); in et_new_occ() 452 nw->of = node; in et_new_occ() 453 nw->parent = NULL; in et_new_occ() 454 nw->prev = NULL; in et_new_occ() 455 nw->next = NULL; in et_new_occ() 457 nw->depth = 0; in et_new_occ() 458 nw->min_occ = nw; in et_new_occ() 459 nw->min = 0; in et_new_occ() 461 return nw; in et_new_occ() [all …]
|
| HD | tree-tailcall.c | 380 struct tailcall *nw; in find_tail_calls() local 529 nw = XNEW (struct tailcall); in find_tail_calls() 531 nw->call_block = bb; in find_tail_calls() 532 nw->call_bsi = bsi; in find_tail_calls() 534 nw->tail_recursion = tail_recursion; in find_tail_calls() 536 nw->mult = m; in find_tail_calls() 537 nw->add = a; in find_tail_calls() 539 nw->next = *ret; in find_tail_calls() 540 *ret = nw; in find_tail_calls()
|
| /NextBSD/usr.bin/tip/libacu/ |
| HD | dn11.c | 56 int lt, nw; in dn_dialer() local 85 nw = write(dn, num, lt = strlen(num)); in dn_dialer() 86 exit(nw != lt); in dn_dialer() 106 while ((nw = wait(<)) != child && nw != -1) in dn_dialer()
|
| /NextBSD/bin/dd/ |
| HD | dd.c | 419 ssize_t nw; in dd_out() local 461 nw = cnt; in dd_out() 480 nw = write(out.fd, outp, cnt); in dd_out() 485 if (nw <= 0) { in dd_out() 486 if (nw == 0) in dd_out() 490 nw = 0; in dd_out() 493 outp += nw; in dd_out() 494 st.bytes += nw; in dd_out() 496 if ((size_t)nw == n && n == out.dbsz) in dd_out() 501 if ((size_t) nw != cnt) { in dd_out() [all …]
|
| /NextBSD/contrib/elftoolchain/libelftc/ |
| HD | elftc_copyfile.c | 53 ssize_t nw; in elftc_copyfile() local 94 for (n = sb.st_size, b = buf; n > 0; n -= nw, b += nw) in elftc_copyfile() 95 if ((nw = write(ofd, b, n)) <= 0) in elftc_copyfile()
|
| /NextBSD/sys/nlm/ |
| HD | nlm_prot_impl.c | 1327 struct nlm_waiting_lock *nw; in nlm_register_wait_lock() local 1329 nw = malloc(sizeof(struct nlm_waiting_lock), M_NLM, M_WAITOK); in nlm_register_wait_lock() 1330 nw->nw_lock = *lock; in nlm_register_wait_lock() 1331 memcpy(&nw->nw_fh.fh_bytes, nw->nw_lock.fh.n_bytes, in nlm_register_wait_lock() 1332 nw->nw_lock.fh.n_len); in nlm_register_wait_lock() 1333 nw->nw_lock.fh.n_bytes = nw->nw_fh.fh_bytes; in nlm_register_wait_lock() 1334 nw->nw_waiting = TRUE; in nlm_register_wait_lock() 1335 nw->nw_vp = vp; in nlm_register_wait_lock() 1337 TAILQ_INSERT_TAIL(&nlm_waiting_locks, nw, nw_link); in nlm_register_wait_lock() 1340 return nw; in nlm_register_wait_lock() [all …]
|
| /NextBSD/sbin/savecore/ |
| HD | savecore.c | 298 int he, hs, nr, nw, wl; in DoRegularFile() local 319 nw = fwrite(buf, 1, wl, fp); in DoRegularFile() 321 for (nw = 0; nw < nr; nw = he) { in DoRegularFile() 323 for (hs = nw; hs < nr; hs += BLOCKSIZE) { in DoRegularFile() 350 if (hs > nw) in DoRegularFile() 351 if (fwrite(buf + nw, hs - nw, 1, fp) in DoRegularFile() 359 if (nw != wl) { in DoRegularFile() 392 int nr, nw, wl; in DoTextdumpFile() local 415 nw = fwrite(buf, 1, wl, fp); in DoTextdumpFile() 416 if (nw != wl) { in DoTextdumpFile()
|
| /NextBSD/contrib/gdtoa/ |
| HD | strtoIg.c | 42 int i, nb, nw, nw1, rv, rv1, swap; local 59 nw = b->wds; 60 nw1 = nw - 1; 76 if (b1->wds > nw
|
| HD | smisc.c | 142 int nw, nw1; local 152 nw = b->wds; 153 nw1 = nw & 1; 154 for(xe = x + (nw - nw1); x < xe; x += 2)
|
| /NextBSD/usr.bin/tcopy/ |
| HD | tcopy.c | 77 int lastnread, nread, nw, inp, outp; in main() local 181 nw = write(outp, buff, nread); in main() 182 if (nw != nread) { in main() 183 if (nw == -1) { in main() 189 warnx("write (%d) != read (%d)", nw, nread); in main()
|
| /NextBSD/usr.bin/tset/ |
| HD | misc.c | 48 register int fd, nr, nw; in cat() local 55 if ((nw = write(STDERR_FILENO, buf, nr)) == -1) in cat()
|
| /NextBSD/release/picobsd/tinyware/msh/ |
| HD | sh4.c | 582 newword(nw) in newword() argument 583 register int nw; in newword() 587 wb = (struct wdblock *) space(sizeof(*wb) + nw*sizeof(char *)); 588 wb->w_bsize = nw; 599 register nw; local 603 if ((nw = wb->w_nword) >= wb->w_bsize) { 604 wb2 = newword(nw * 2); 605 memcopy((char *)wb2->w_words, (char *)wb->w_words, nw*sizeof(char *)); 606 wb2->w_nword = nw;
|
| /NextBSD/bin/cat/ |
| HD | cat.c | 271 ssize_t nr, nw; in raw_cat() local 293 for (off = 0; nr; nr -= nw, off += nw) in raw_cat() 294 if ((nw = write(wfd, buf + off, (size_t)nr)) < 0) in raw_cat()
|
| /NextBSD/usr.sbin/bluetooth/btpand/ |
| HD | tap.c | 135 ssize_t nw; in tap_send() local 147 nw = writev(chan->fd, iov, __arraycount(iov)); in tap_send() 148 assert(nw > 0); in tap_send()
|
| /NextBSD/crypto/openssl/ssl/ |
| HD | s3_pkt.c | 639 unsigned int n, nw; in ssl3_write_bytes() local 750 nw = max_send_fragment * (mb_param.interleave = 8); in ssl3_write_bytes() 752 nw = max_send_fragment * (mb_param.interleave = 4); in ssl3_write_bytes() 762 mb_param.len = nw; in ssl3_write_bytes() 776 mb_param.len = nw; in ssl3_write_bytes() 792 s->s3->wpend_tot = nw; in ssl3_write_bytes() 795 s->s3->wpend_ret = nw; in ssl3_write_bytes() 797 i = ssl3_write_pending(s, type, &buf[tot], nw); in ssl3_write_bytes() 826 nw = s->max_send_fragment; in ssl3_write_bytes() 828 nw = n; in ssl3_write_bytes() [all …]
|
| /NextBSD/contrib/file/src/ |
| HD | file.c | 366 size_t j, wid, nw; in main() local 368 nw = file_mbswidth(argv[j]); in main() 369 if (nw > wid) in main() 370 wid = nw; in main()
|
| /NextBSD/usr.bin/xinstall/ |
| HD | xinstall.c | 1147 int nr, nw; in copy() local 1171 nw = write(to_fd, p, size); in copy() 1172 if (nw != size) { in copy() 1175 if (nw >= 0) { in copy() 1178 to_name, (uintmax_t)nw, (uintmax_t)size); in copy() 1190 if ((nw = write(to_fd, buf, nr)) != nr) { in copy() 1193 if (nw >= 0) { in copy() 1196 to_name, (uintmax_t)nw, in copy()
|
| /NextBSD/contrib/binutils/ld/emulparams/ |
| HD | ppcnw.sh | 1 SCRIPT_NAME=nw
|
| HD | i386nw.sh | 1 SCRIPT_NAME=nw
|
| /NextBSD/contrib/groff/src/utils/tfmtodit/ |
| HD | tfmtodit.cpp | 86 int nw; member in tfm 312 nw = read2(ptr); in load() 320 if (6 + lh + (ec - bc + 1) + nw + nh + nd + ni + nl + nk + ne + np != lf) { in load() 331 width = new int[nw]; in load() 352 for (i = 0; i < nw; i++) in load()
|
| /NextBSD/contrib/nvi/common/ |
| HD | recover.c | 798 int nr, nw, off, rfd; in rcv_copy() local 804 for (off = 0; nr; nr -= nw, off += nw) in rcv_copy() 805 if ((nw = write(wfd, buf + off, nr)) < 0) in rcv_copy()
|
| /NextBSD/usr.sbin/ppp/ |
| HD | ip.c | 908 ssize_t nw; in ip_Input() local 942 nw = write(bundle->dev.fd, data, nb); in ip_Input() 943 if (nw != (ssize_t)nb) { in ip_Input() 944 if (nw == -1) in ip_Input() 949 nw); in ip_Input()
|
| HD | physical.c | 403 int nw, result = 0; in physical_DescriptorWrite() local 409 nw = physical_Write(p, MBUF_CTOP(p->out), p->out->m_len); in physical_DescriptorWrite() 411 p->link.name, nw, (unsigned long)p->out->m_len, p->fd); in physical_DescriptorWrite() 412 if (nw > 0) { in physical_DescriptorWrite() 413 p->out->m_len -= nw; in physical_DescriptorWrite() 414 p->out->m_offset += nw; in physical_DescriptorWrite() 418 } else if (nw < 0) { in physical_DescriptorWrite()
|
| /NextBSD/contrib/nvi/ex/ |
| HD | ex_script.c | 303 int isempty, matchprompt, nw, rval; in sscr_exec() local 345 if ((nw = write(sc->sh_master, p, len)) != len) in sscr_exec() 349 err2: if (nw == 0) in sscr_exec()
|