| /mirbsd/src/lib/libc/db/btree/ |
| D | bt_split.c | 84 u_int32_t n, nbytes, nksize = 0; in __bt_split() local 172 nbytes = NBINTERNAL(bi->ksize); in __bt_split() 176 nbytes = NBINTERNAL(bl->ksize); in __bt_split() 186 if (n < nbytes) { in __bt_split() 188 bt_pfxsaved += nbytes - n; in __bt_split() 190 nbytes = n; in __bt_split() 198 nbytes = NRINTERNAL; in __bt_split() 205 if ((size_t)h->upper - h->lower < nbytes + sizeof(indx_t)) { in __bt_split() 208 bt_root(t, h, &l, &r, &skip, nbytes) : in __bt_split() 209 bt_page(t, h, &l, &r, &skip, nbytes); in __bt_split() [all …]
|
| D | bt_put.c | 73 u_int32_t nbytes, size32; in __bt_put() local 199 nbytes = NBLEAFDBT(key->size, data->size); in __bt_put() 200 if ((size_t)(h->upper - h->lower) < nbytes + sizeof(indx_t)) { in __bt_put() 202 data, dflags, nbytes, idx)) != RET_SUCCESS) in __bt_put() 212 h->linp[idx] = h->upper -= nbytes; in __bt_put() 266 u_int32_t nbytes; in bt_fast() local 280 nbytes = NBLEAFDBT(key->size, data->size); in bt_fast() 281 if ((size_t)(h->upper - h->lower) < nbytes + sizeof(indx_t)) in bt_fast()
|
| /mirbsd/src/usr.bin/file/ |
| D | ascmagic.c | 70 file_ascmagic(struct magic_set *ms, const unsigned char *buf, size_t nbytes) in file_ascmagic() argument 100 while (nbytes > 1 && buf[nbytes - 1] == '\0') in file_ascmagic() 101 nbytes--; in file_ascmagic() 104 if (nbytes > HOWMANY) in file_ascmagic() 105 nbytes = HOWMANY; in file_ascmagic() 113 if (looks_ascii(buf, nbytes, ubuf, &ulen)) { in file_ascmagic() 117 } else if (looks_utf8(buf, nbytes, ubuf, &ulen)) { in file_ascmagic() 121 } else if ((i = looks_unicode(buf, nbytes, ubuf, &ulen)) != 0) { in file_ascmagic() 129 } else if (looks_latin1(buf, nbytes, ubuf, &ulen)) { in file_ascmagic() 133 } else if (looks_extended(buf, nbytes, ubuf, &ulen)) { in file_ascmagic() [all …]
|
| D | magic.c | 216 ssize_t nbytes = 0; /* number of bytes read from a datafile */ in magic_file() local 254 if ((nbytes = read(fd, (char *)buf, HOWMANY)) == -1) { in magic_file() 259 if (nbytes == 0) { in magic_file() 264 } else if (nbytes == 1) { in magic_file() 269 buf[nbytes] = '\0'; /* null-terminate it */ in magic_file() 271 switch (file_os2_apptype(ms, inname, buf, nbytes)) { in magic_file() 280 if (file_buffer(ms, buf, (size_t)nbytes) == -1) in magic_file() 283 if (nbytes > 5) { in magic_file() 292 file_tryelf(ms, fd, buf, (size_t)nbytes); in magic_file()
|
| D | is_tar.c | 58 file_is_tar(struct magic_set *ms, const unsigned char *buf, size_t nbytes) in file_is_tar() argument 64 switch (is_tar(buf, nbytes)) { in file_is_tar() 87 is_tar(const unsigned char *buf, size_t nbytes) in is_tar() argument 94 if (nbytes < sizeof(union record)) in is_tar()
|
| /mirbsd/src/gnu/usr.bin/cvs/src/ |
| D | socket-client.c | 66 int nbytes; in socket_buffer_input() local 92 nbytes = recv (sb->socket, data + *got, size - *got, 0); in socket_buffer_input() 93 if (nbytes < 0) in socket_buffer_input() 96 if (nbytes == 0) in socket_buffer_input() 107 *got += nbytes; in socket_buffer_input() 139 int nbytes; in socket_buffer_output() local 141 nbytes = send (sb->socket, data, have, 0); in socket_buffer_output() 142 if (nbytes < 0) in socket_buffer_output() 146 have -= nbytes; in socket_buffer_output() 147 data += nbytes; in socket_buffer_output()
|
| D | buffer.c | 286 size_t nbytes; in buf_send_output() local 289 &nbytes); in buf_send_output() 297 if (nbytes != data->size) in buf_send_output() 305 data->size -= nbytes; in buf_send_output() 306 data->bufp += nbytes; in buf_send_output() 740 size_t get, nbytes; in buf_input_data() local 771 0, get, &nbytes); in buf_input_data() 775 buf->last->size += nbytes; in buf_input_data() 777 *countp += nbytes; in buf_input_data() 779 if (nbytes < get) in buf_input_data() [all …]
|
| /mirbsd/src/gnu/usr.bin/perl/ |
| D | malloc.c | 932 # define POW2_OPTIMIZE_ADJUST(nbytes) \ argument 933 ((nbytes >= FIRST_BIG_BOUND) ? nbytes -= PERL_PAGESIZE : 0) 938 # define POW2_OPTIMIZE_ADJUST(nbytes) argument 943 # define BARK_64K_LIMIT(what,nbytes,size) \ argument 944 if (nbytes > 0xffff) { \ 950 # define BARK_64K_LIMIT(what,nbytes,size) argument 1335 fill_pat_4bytes(unsigned char *s, size_t nbytes, const unsigned char *fill) in fill_pat_4bytes() argument 1337 unsigned char *e = s + nbytes; in fill_pat_4bytes() 1376 cmp_pat_4bytes(unsigned char *s, size_t nbytes, const unsigned char *fill) in cmp_pat_4bytes() argument 1378 unsigned char *e = s + nbytes; in cmp_pat_4bytes() [all …]
|
| /mirbsd/src/gnu/usr.bin/binutils/gdb/ |
| D | dwarfread.c | 1184 int nbytes; in decode_array_element_type() local 1189 nbytes = attribute_size (attribute); in decode_array_element_type() 1190 if (nbytes == -1) in decode_array_element_type() 1200 fundtype = target_to_host (scan, nbytes, GET_UNSIGNED, in decode_array_element_type() 1208 die_ref = target_to_host (scan, nbytes, GET_UNSIGNED, in decode_array_element_type() 1284 int nbytes; in decode_subscript_data_item() local 1299 nbytes = TARGET_FT_LONG_SIZE (current_objfile); in decode_subscript_data_item() 1300 lowbound = target_to_host (scan, nbytes, GET_UNSIGNED, current_objfile); in decode_subscript_data_item() 1301 scan += nbytes; in decode_subscript_data_item() 1302 highbound = target_to_host (scan, nbytes, GET_UNSIGNED, current_objfile); in decode_subscript_data_item() [all …]
|
| D | bsd-kvm.c | 111 ssize_t nbytes = len; in bsd_kvm_xfer_memory() local 114 nbytes = kvm_read (core_kd, addr, readbuf, nbytes); in bsd_kvm_xfer_memory() 115 if (writebuf && nbytes > 0) in bsd_kvm_xfer_memory() 116 nbytes = kvm_write (core_kd, addr, writebuf, nbytes); in bsd_kvm_xfer_memory() 117 return nbytes; in bsd_kvm_xfer_memory()
|
| /mirbsd/src/usr.sbin/ppp/ppp/ |
| D | alias_util.c | 61 PacketAliasInternetChecksum(u_short *ptr, int nbytes) in PacketAliasInternetChecksum() argument 66 while (nbytes > 1) in PacketAliasInternetChecksum() 69 nbytes -= 2; in PacketAliasInternetChecksum() 71 if (nbytes == 1) in PacketAliasInternetChecksum() 96 int nhdr, ntcp, nbytes; in TcpChecksum() local 106 nbytes = ntcp; in TcpChecksum() 108 while (nbytes > 1) in TcpChecksum() 111 nbytes -= 2; in TcpChecksum() 113 if (nbytes == 1) in TcpChecksum()
|
| /mirbsd/src/sys/dev/isa/ |
| D | isadma.c | 289 isa_dmastart(isadev, chan, addr, nbytes, p, flags, busdmaflags) in isa_dmastart() argument 293 bus_size_t nbytes; 318 chan, addr, nbytes, p, flags, busdmaflags); 322 if (nbytes > (1 << 17) || nbytes & 1 || (u_long)addr & 1) { 324 sc->sc_dev.dv_xname, chan, nbytes, addr); 328 if (nbytes > (1 << 16)) { 330 sc->sc_dev.dv_xname, chan, nbytes); 345 error = bus_dmamap_load(sc->sc_dmat, dmam, addr, nbytes, p, 374 sc->sc_dmalength[chan] = nbytes; 395 (--nbytes) & 0xff); [all …]
|
| /mirbsd/src/lib/libc/net/ |
| D | if_nameindex.c | 82 size_t nbytes; in if_nameindex() local 94 nbytes = 0; in if_nameindex() 98 nbytes += strlen(ifa->ifa_name) + 1; in if_nameindex() 108 cp = malloc((ni + 1) * sizeof(struct if_nameindex) + nbytes); in if_nameindex() 126 nbytes = strlen(ifa->ifa_name) + 1; in if_nameindex() 127 memcpy(cp, ifa->ifa_name, nbytes); in if_nameindex() 129 cp += nbytes; in if_nameindex()
|
| /mirbsd/src/usr.bin/hexdump/ |
| D | odsyntax.c | 209 int x, y, nbytes; in posixtypes() local 255 nbytes = sizeof(char); in posixtypes() 258 nbytes = sizeof(short); in posixtypes() 261 nbytes = sizeof(int); in posixtypes() 264 nbytes = sizeof(long); in posixtypes() 273 nbytes = strtol(type_string, &type_string, 10); in posixtypes() 275 switch (nbytes) { in posixtypes() 290 "supported", nbytes); in posixtypes()
|
| /mirbsd/src/lib/libexpat/xmlwf/ |
| D | unixfilemap.c | 26 size_t nbytes; in filemap() local 46 nbytes = sb.st_size; in filemap() 47 p = (void *)mmap((caddr_t)0, (size_t)nbytes, PROT_READ, in filemap() 54 processor(p, nbytes, name, arg); in filemap() 55 munmap((caddr_t)p, nbytes); in filemap()
|
| /mirbsd/src/lib/libssl/src/crypto/engine/ |
| D | hw_cswift.c | 510 sw_param.up.exp.modulus.nbytes = BN_bn2bin(m, in cswift_mod_exp() 513 sw_param.up.exp.exponent.nbytes = BN_bn2bin(p, in cswift_mod_exp() 535 arg.nbytes = BN_bn2bin(a, (unsigned char *)argument->d); in cswift_mod_exp() 537 res.nbytes = BN_num_bytes(m); in cswift_mod_exp() 538 memset(result->d, 0, res.nbytes); in cswift_mod_exp() 551 BN_bin2bn((unsigned char *)result->d, res.nbytes, r); in cswift_mod_exp() 567 while( ((out->nbytes = (numbytes+mod)) % 32) ) in cswift_bn_32copy() 571 out->value = (unsigned char*)OPENSSL_malloc(out->nbytes); in cswift_bn_32copy() 677 arg.nbytes = BN_bn2bin(a, (unsigned char *)argument->d); in cswift_mod_exp_crt() 679 res.nbytes = 2 * BN_num_bytes(p); in cswift_mod_exp_crt() [all …]
|
| /mirbsd/src/gnu/usr.bin/binutils/opcodes/ |
| D | cris-dis.c | 891 int nbytes; in print_with_operands() local 894 nbytes = 4; in print_with_operands() 905 nbytes = 42; in print_with_operands() 910 nbytes = disdata->distype == cris_dis_v32 in print_with_operands() 918 nbytes = 2; in print_with_operands() 920 nbytes = mode_size; in print_with_operands() 923 switch (nbytes) in print_with_operands() 951 && (nbytes <= 2 || buffer[1 + nbytes] == 0))) in print_with_operands() 962 if (nbytes == 4 in print_with_operands() 1130 unsigned int nbytes; in print_with_operands() local [all …]
|
| /mirbsd/src/sys/arch/sparc/include/ |
| D | bsd_openprom.h | 78 int (*v0_wnet)(int d, int nbytes, void *addr); 79 int (*v0_rnet)(int d, int nbytes, void *addr); 80 int (*v0_rcdev)(int d, int nbytes, int, void *addr); 81 int (*v0_wcdev)(int d, int nbytes, int, void *addr); 113 int (*v2_read)(int d, void *buf, int nbytes); 114 int (*v2_write)(int d, void *buf, int nbytes); 129 u_int nbytes; member
|
| /mirbsd/src/gnu/usr.bin/binutils/gas/ |
| D | read.c | 3323 parse_mri_cons (expressionS *exp, unsigned int nbytes); 3330 parse_bitfield_cons (expressionS *exp, unsigned int nbytes); 3335 parse_repeat_cons (expressionS *exp, unsigned int nbytes); 3346 int nbytes ATTRIBUTE_UNUSED) in do_parse_cons_expression() 3348 TC_PARSE_CONS_EXPRESSION (exp, nbytes); in do_parse_cons_expression() 3356 cons_worker (register int nbytes, /* 1=.byte, 2=.word, 4=.long. */ in cons_worker() argument 3380 if (nbytes == 0) in cons_worker() 3381 nbytes = TC_ADDRESS_BYTES (); in cons_worker() 3385 md_cons_align (nbytes); in cons_worker() 3393 parse_mri_cons (&exp, (unsigned int) nbytes); in cons_worker() [all …]
|
| /mirbsd/src/lib/libpthread/uthread/ |
| D | uthread_write.c | 46 write(int fd, const void *buf, size_t nbytes) in write() argument 59 if (nbytes == 0) in write() 85 nbytes - num); in write() 102 errno == EAGAIN)) || (n > 0 && num < nbytes))) { in write() 149 } else if (num >= nbytes) in write()
|
| /mirbsd/src/lib/libc/db/recno/ |
| D | rec_delete.c | 147 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()
|
| /mirbsd/src/usr.sbin/httpd/src/modules/proxy/ |
| D | proxy_connect.c | 120 int nbytes, i; in ap_proxy_connect_handler() local 298 if ((nbytes = recv(sock, buffer, HUGE_STRING_LEN, 0)) != 0) { in ap_proxy_connect_handler() 299 if (nbytes == -1) in ap_proxy_connect_handler() 302 nbytes, 0) == EOF) in ap_proxy_connect_handler() 305 r->server, "Wrote %d bytes to client", nbytes); in ap_proxy_connect_handler() 313 if ((nbytes = recv(ap_bfileno(r->connection->client, B_WR), in ap_proxy_connect_handler() 315 if (nbytes == -1) in ap_proxy_connect_handler() 317 if (send(sock, buffer, nbytes, 0) == EOF) in ap_proxy_connect_handler() 320 r->server, "Wrote %d bytes to server", nbytes); in ap_proxy_connect_handler()
|
| /mirbsd/src/gnu/usr.bin/binutils/bfd/ |
| D | cache.c | 69 cache_bread (struct bfd *abfd, void *buf, file_ptr nbytes) in cache_bread() argument 81 if (nbytes == 0) in cache_bread() 87 nread = read (fileno (bfd_cache_lookup (abfd)), buf, nbytes); in cache_bread() 97 nread = fread (buf, 1, nbytes, bfd_cache_lookup (abfd)); in cache_bread() 101 if (nread < nbytes && ferror (bfd_cache_lookup (abfd))) in cache_bread() 111 cache_bwrite (struct bfd *abfd, const void *where, file_ptr nbytes) in cache_bwrite() argument 113 file_ptr nwrite = fwrite (where, 1, nbytes, bfd_cache_lookup (abfd)); in cache_bwrite() 114 if (nwrite < nbytes && ferror (bfd_cache_lookup (abfd))) in cache_bwrite()
|
| /mirbsd/src/gnu/usr.sbin/sendmail/sendmail/ |
| D | bf.c | 341 sm_bfread(fp, buf, nbytes) in sm_bfread() argument 344 size_t nbytes; 356 count = nbytes; 363 if ((bfp->bf_offset + nbytes) > bfp->bf_buffilled) 398 while (count < nbytes) 402 nbytes - count); 486 sm_bfwrite(fp, buf, nbytes) in sm_bfwrite() argument 489 size_t nbytes; 516 count = write(bfp->bf_disk_fd, buf, nbytes); 528 count = nbytes; [all …]
|
| /mirbsd/src/gnu/usr.bin/binutils/libiberty/ |
| D | strsignal.c | 294 int nbytes; in init_signal_tables() local 315 nbytes = num_signal_names * sizeof (char *); in init_signal_tables() 316 if ((signal_names = (const char **) malloc (nbytes)) != NULL) in init_signal_tables() 318 memset (signal_names, 0, nbytes); in init_signal_tables() 333 nbytes = num_signal_names * sizeof (char *); in init_signal_tables() 334 if ((sys_siglist = (const char **) malloc (nbytes)) != NULL) in init_signal_tables() 336 memset (sys_siglist, 0, nbytes); in init_signal_tables()
|