Home
last modified time | relevance | path

Searched refs:nbytes (Results 1 – 25 of 229) sorted by relevance

12345678910

/openbsd/usr.sbin/mkuboot/
H A Dmkuboot.c286 ssize_t nbytes; in is_elf() local
290 if (nbytes == -1) in is_elf()
319 if (write(ofd, buf, nbytes) != nbytes) in copy_data()
323 size -= nbytes; in copy_data()
333 ssize_t nbytes; in copy_mem() local
338 if (write(ofd, memp, nbytes) != nbytes) in copy_mem()
341 memp += nbytes; in copy_mem()
343 size -= nbytes; in copy_mem()
364 size -= nbytes; in fill_zeroes()
374 ssize_t nbytes; in copy_raw() local
[all …]
/openbsd/usr.sbin/ldomctl/
H A Dldomctl.c431 ssize_t nbytes; in guest_start() local
462 if (nbytes != sizeof(msg)) in guest_start()
467 if (nbytes != sizeof(msg)) in guest_start()
478 ssize_t nbytes; in guest_stop() local
493 if (nbytes != sizeof(msg)) in guest_stop()
498 if (nbytes != sizeof(msg)) in guest_stop()
506 ssize_t nbytes; in guest_panic() local
537 if (nbytes != sizeof(msg)) in guest_panic()
553 ssize_t nbytes; in guest_status() local
698 ssize_t nbytes; in hv_open() local
[all …]
/openbsd/lib/libc/db/btree/
H A Dbt_split.c185 if (n < nbytes) { in __bt_split()
189 nbytes = n; in __bt_split()
197 nbytes = NRINTERNAL; in __bt_split()
514 u_int32_t nbytes; in bt_broot() local
525 nbytes = NBINTERNAL(0); in bt_broot()
594 u_int32_t nbytes; in bt_psplit() local
610 nbytes = ilen; in bt_psplit()
621 nbytes = NBLEAF(bl); in bt_psplit()
717 nbytes = NBLEAF(bl); in bt_psplit()
721 nbytes = NRINTERNAL; in bt_psplit()
[all …]
/openbsd/gnu/usr.bin/perl/
H A Dmalloc.c749 ((nbytes >= FIRST_BIG_BOUND) ? nbytes -= PERL_PAGESIZE : 0)
1178 size_t nbytes; in S_adjust_size_and_find_bucket() local
1192 if (nbytes == 0) in S_adjust_size_and_find_bucket()
1198 if (nbytes == 0) in S_adjust_size_and_find_bucket()
1199 nbytes = 1; in S_adjust_size_and_find_bucket()
1207 nbytes = (nbytes + 3) &~ 3; in S_adjust_size_and_find_bucket()
1251 BARK_64K_LIMIT("Allocation",nbytes,nbytes); in Perl_malloc()
1358 nbytes = (nbytes + RMAGIC_SZ - 1) & ~(RMAGIC_SZ - 1); in Perl_malloc()
1873 nbytes = (nbytes + (RMAGIC_SZ-1)) & ~(RMAGIC_SZ-1); in Perl_mfree()
2041 nbytes = (nbytes + (RMAGIC_SZ-1)) & ~(RMAGIC_SZ - 1); in Perl_realloc()
[all …]
/openbsd/usr.sbin/ldomd/
H A Dds.c280 ssize_t nbytes; in ldc_send_vers() local
300 ssize_t nbytes; in ldc_send_ack() local
320 ssize_t nbytes; in ldc_send_nack() local
340 ssize_t nbytes; in ldc_send_rts() local
360 ssize_t nbytes; in ldc_send_rtr() local
380 ssize_t nbytes; in ldc_send_rdx() local
410 ssize_t nbytes; in ldc_ack() local
577 ssize_t nbytes; in ds_receive_msg() local
611 ssize_t nbytes; in ldc_send_msg() local
638 ssize_t nbytes; in ds_send_msg() local
[all …]
H A Dldomd.c126 ssize_t nbytes; in main() local
168 if (nbytes != sizeof(msg)) in main()
173 if (nbytes != sizeof(msg)) in main()
388 size_t nbytes; in hv_update_md() local
418 if (nbytes != sizeof(msg)) in hv_update_md()
423 if (nbytes != sizeof(msg)) in hv_update_md()
436 ssize_t nbytes; in hv_open() local
451 if (nbytes != sizeof(msg)) in hv_open()
456 if (nbytes != sizeof(msg)) in hv_open()
469 if (nbytes != sizeof(msg)) in hv_open()
[all …]
/openbsd/gnu/usr.bin/binutils/gdb/rdi-share/
H A Detherdrv.c388 int nbytes, fromlen = sizeof(from); in read_packet() local
413 if (pfnProgressCallback != NULL && nbytes != SOCKET_ERROR) in read_packet()
415 progressInfo.nRead += nbytes; in read_packet()
454 nbytes, (devchan == DC_DBUG) ? "DBUG" : "APPL"); in read_packet()
458 printf("[%d on %d]\n", nbytes, devchan); in read_packet()
463 while (i < nbytes) in read_packet()
480 packet->len = nbytes; in read_packet()
623 int nbytes; in EthernetWrite() local
666 if (nbytes < 0 && errno != EWOULDBLOCK) in EthernetWrite()
686 else if (nbytes >= 0) in EthernetWrite()
[all …]
H A Dhsys.c506 fh, nbtotal, nbytes)); in HandleSysMessage()
519 nbtogo -= nbytes; in HandleSysMessage()
529 rwdata += nbytes; in HandleSysMessage()
599 rwdata += nbytes; in HandleSysMessage()
600 nbtogo -= nbytes; in HandleSysMessage()
648 nbytes = 0; in HandleSysMessage()
681 nbytes = nbtogo; in HandleSysMessage()
683 nbytes = max_data_in_buffer; in HandleSysMessage()
684 nbtogo -= nbytes; in HandleSysMessage()
699 rwdata += nbytes; in HandleSysMessage()
[all …]
/openbsd/gnu/usr.bin/binutils/gdb/
H A Ddwarfread.c1184 int nbytes; in decode_array_element_type() local
1284 int nbytes; in decode_subscript_data_item() local
1367 int nbytes; in dwarf_read_array_type() local
1666 int nbytes; in enum_type() local
2159 loc += nbytes; in locval()
2464 int nbytes; in add_enum_psymbol() local
3053 int nbytes; in decode_mod_fund_type() local
3099 int nbytes; in decode_mod_u_d_type() local
3164 int nbytes; in decode_modified_type() local
3738 switch (nbytes) in target_to_host()
[all …]
/openbsd/sys/arch/sparc64/dev/
H A Dvdsp.c746 nbytes, &nbytes); in vdsp_rx_vio_dring_data()
1170 dm->cookie[i].addr + off, pa, nbytes, &nbytes); in vdsp_read_desc()
1244 vd->cookie[i].addr + off, pa, nbytes, &nbytes); in vdsp_read_dring()
1299 nbytes = MIN(nbytes, PAGE_SIZE - (off & PAGE_MASK)); in vdsp_write_dring()
1301 vd->cookie[i].addr + off, pa, nbytes, &nbytes); in vdsp_write_dring()
1426 nbytes = MIN(nbytes, PAGE_SIZE - (off & PAGE_MASK)); in vdsp_get_vtoc()
1428 vd->cookie[i].addr + off, pa, nbytes, &nbytes); in vdsp_get_vtoc()
1477 nbytes = MIN(nbytes, PAGE_SIZE - (off & PAGE_MASK)); in vdsp_set_vtoc()
1479 vd->cookie[i].addr + off, pa, nbytes, &nbytes); in vdsp_set_vtoc()
1611 nbytes = MIN(nbytes, PAGE_SIZE - (off & PAGE_MASK)); in vdsp_get_diskgeom()
[all …]
/openbsd/sys/dev/isa/
H A Disadma.c292 if (nbytes > (1 << 17) || nbytes & 1 || (u_long)addr & 1) { in isa_dmastart()
298 if (nbytes > (1 << 16)) { in isa_dmastart()
363 (--nbytes) & 0xff); in isa_dmastart()
382 nbytes >>= 1; in isa_dmastart()
384 (--nbytes) & 0xff); in isa_dmastart()
416 bus_size_t nbytes; in isa_dmacount() local
440 nbytes &= 0xffff; in isa_dmacount()
447 nbytes <<= 1; in isa_dmacount()
448 nbytes &= 0x1ffff; in isa_dmacount()
452 nbytes = 0; in isa_dmacount()
[all …]
/openbsd/gnu/usr.sbin/mkhybrid/src/libfile/
H A Dsoftmagic.c58 softmagic(buf, nbytes) in softmagic() argument
60 int nbytes;
62 return (match(buf, nbytes));
93 match(s, nbytes) in match() argument
95 int nbytes;
102 if (!mget(&p, s, &magic[magindex], nbytes) ||
167 mget(p, s, m, nbytes) in mget() argument
171 int nbytes;
175 if (offset + sizeof(union VALUETYPE) <= nbytes)
182 int32 have = nbytes - offset;
[all …]
H A Dlfile.c182 int nbytes = 0; /* number of bytes read from a datafile */ local
198 if ((nbytes = read(fd, (char *)buf, HOWMANY)) == -1)
201 if (nbytes == 0)
204 buf[nbytes++] = '\0'; /* null-terminate it */
205 match = softmagic(buf, nbytes);
/openbsd/gnu/usr.bin/binutils/opcodes/
H A Dcris-dis.c699 int nbytes; local
702 nbytes = 4;
713 nbytes = 42;
723 nbytes = 2;
756 && (nbytes <= 2 || buffer[1 + nbytes] == 0)))
767 if (nbytes == 4
940 nbytes = 2;
944 switch (nbytes)
1197 int nbytes; local
1216 for (nbytes = MAX_BYTES_PER_CRIS_INSN; nbytes > 0; nbytes -= 2)
[all …]
/openbsd/usr.bin/hexdump/
H A Dodsyntax.c203 int x, y, nbytes; in posixtypes() local
248 nbytes = sizeof(char); in posixtypes()
251 nbytes = sizeof(short); in posixtypes()
254 nbytes = sizeof(int); in posixtypes()
257 nbytes = sizeof(long); in posixtypes()
266 nbytes = strtol(type_string, &type_string, 10); in posixtypes()
268 nbytes = 4; in posixtypes()
270 switch (nbytes) { in posixtypes()
285 "supported", nbytes); in posixtypes()
/openbsd/gnu/usr.bin/binutils/gdb/testsuite/gdb.base/
H A Dinterrupt.c9 int nbytes; in main() local
17 nbytes = read (0, &x, 1); in main()
18 if (nbytes < 0) in main()
25 else if (nbytes == 0) in main()
/openbsd/gnu/gcc/gcc/config/
H A Dhost-hpux.c123 ssize_t nbytes; in hpux_gt_pch_use_address() local
125 nbytes = read (fd, base, MIN (size, SSIZE_MAX)); in hpux_gt_pch_use_address()
126 if (nbytes <= 0) in hpux_gt_pch_use_address()
128 base = (char *) base + nbytes; in hpux_gt_pch_use_address()
129 size -= nbytes; in hpux_gt_pch_use_address()
H A Dhost-linux.c206 ssize_t nbytes; in linux_gt_pch_use_address() local
208 nbytes = read (fd, base, MIN (size, SSIZE_MAX)); in linux_gt_pch_use_address()
209 if (nbytes <= 0) in linux_gt_pch_use_address()
211 base = (char *) base + nbytes; in linux_gt_pch_use_address()
212 size -= nbytes; in linux_gt_pch_use_address()
/openbsd/gnu/usr.bin/binutils-2.17/opcodes/
H A Dcris-dis.c893 int nbytes; in print_with_operands() local
896 nbytes = 4; in print_with_operands()
907 nbytes = 42; in print_with_operands()
920 nbytes = 2; in print_with_operands()
953 && (nbytes <= 2 || buffer[1 + nbytes] == 0))) in print_with_operands()
964 if (nbytes == 4 in print_with_operands()
1138 nbytes = 2; in print_with_operands()
1142 switch (nbytes) in print_with_operands()
1394 int nbytes; in print_insn_cris_generic() local
1415 for (nbytes = MAX_BYTES_PER_CRIS_INSN; nbytes > 0; nbytes -= 2) in print_insn_cris_generic()
[all …]
/openbsd/lib/libc/db/recno/
H A Drec_delete.c147 u_int32_t nbytes; in __rec_dleaf() local
164 nbytes = NRLEAF(rl); in __rec_dleaf()
171 memmove(from + nbytes, from, (char *)to - from); in __rec_dleaf()
172 h->upper += nbytes; in __rec_dleaf()
177 ip[0] += nbytes; in __rec_dleaf()
179 ip[0] = ip[1] < offset ? ip[1] + nbytes : ip[1]; in __rec_dleaf()
/openbsd/gnu/llvm/libcxx/src/support/solaris/
H A Dwcsnrtombs.inc35 size_t nbytes;
39 nbytes = 0;
47 return (nbytes + nb - 1);
49 nbytes += nb;
51 return (nbytes);
83 return (nbytes + nb - 1);
88 nbytes += nb;
91 return (nbytes);
/openbsd/gnu/usr.bin/binutils/gas/
H A Dread.c3338 && nbytes == 2 in emit_expr()
3361 && nbytes == 2 in emit_expr()
3366 && nbytes == 2 in emit_expr()
3371 && nbytes == 4) in emit_expr()
3374 && nbytes == 2 in emit_expr()
3568 size = nbytes; in emit_expr()
3571 if (nbytes == 1) in emit_expr()
3636 switch (nbytes) in emit_expr()
3758 width, nbytes, (BITS_PER_CHAR * nbytes));
4326 int nbytes; in emit_leb128_expr() local
[all …]
/openbsd/regress/sys/kern/poll/
H A Dpoll_iocond.c314 size_t nbytes; in proc_child() local
349 nbytes = 0; in proc_child()
360 nbytes += ret; in proc_child()
362 ret = write(bfd, &nbytes, sizeof(nbytes)); in proc_child()
363 assert(ret == sizeof(nbytes)); in proc_child()
494 size_t nbytes; in proc_parent() local
564 nbytes = 0; in proc_parent()
565 ret = read(bfd, &nbytes, sizeof(nbytes)); in proc_parent()
585 assert(nbytes > 0); in proc_parent()
588 nbytes -= ret; in proc_parent()
[all …]
/openbsd/gnu/usr.bin/binutils-2.17/gas/
H A Dread.c3535 if (nbytes == 0) in cons_worker()
3618 && nbytes == 2 in emit_expr()
3641 && nbytes == 2 in emit_expr()
3646 && nbytes == 2 in emit_expr()
3651 && nbytes == 4) in emit_expr()
3654 && nbytes == 2 in emit_expr()
3835 size = nbytes; in emit_expr()
3838 if (nbytes == 1) in emit_expr()
3895 switch (nbytes) in emit_expr()
3999 width, nbytes, (BITS_PER_CHAR * nbytes));
[all …]
/openbsd/gnu/usr.bin/gcc/gcc/testsuite/gcc.dg/
H A Dasmreg-1.c48 __getdents64 (int fd, char *buf, unsigned nbytes) in __getdents64() argument
55 skdp = kdp = __builtin_alloca (nbytes); in __getdents64()
56 retval = __syscall_getdents64(fd, (char *)kdp, nbytes); in __getdents64()
61 if ((char *) dp > buf + nbytes) in __getdents64()

12345678910