/freebsd-11-stable/cddl/contrib/opensolaris/lib/libctf/common/ |
H A D | ctf_lib.c | 222 ssize_t nbytes; local 238 if ((nbytes = pread64(fd, &hdr.ctf, sizeof (hdr), 0)) <= 0) 239 return (ctf_set_open_errno(errp, nbytes < 0? errno : ECTF_FMT)); 245 if (nbytes >= (ssize_t) sizeof (ctf_preamble_t) && 275 if (nbytes >= (ssize_t) sizeof (Elf32_Ehdr) && 294 if (nbytes < (ssize_t) sizeof (GElf_Ehdr)) 332 nbytes = sizeof (GElf_Shdr) * shnum; 334 if ((sp = malloc(nbytes)) == NULL) 344 nbytes = sizeof (Elf32_Shdr) * shnum; 346 if ((sp32 = malloc(nbytes)) [all...] |
/freebsd-11-stable/sys/pc98/cbus/ |
H A D | cbus_dma.c | 192 isa_dmastart(int flags, caddr_t addr, u_int nbytes, int chan) argument 201 dma_range_checked = isa_dmarangecheck(addr, nbytes, chan); 207 if ((chan < 4 && nbytes > (1<<16)) 208 || (chan >= 4 && (nbytes > (1<<17) || (u_int)addr & 1))) 232 || dma_bouncebufsize[chan] < nbytes) 239 bcopy(addr, newaddr, nbytes); 275 outb(waport + 2, --nbytes); 276 outb(waport + 2, nbytes>>8); 285 isa_dmadone(int flags, caddr_t addr, int nbytes, int chan) argument 313 bcopy(dma_bouncebuf[chan], addr, nbytes); [all...] |
/freebsd-11-stable/contrib/file/src/ |
H A D | ascmagic.c | 61 trim_nuls(const unsigned char *buf, size_t nbytes) argument 63 while (nbytes > 1 && buf[nbytes - 1] == '\0') 64 nbytes--; 66 return nbytes; 110 size_t nbytes = b->flen; local 132 nbytes = trim_nuls(buf, nbytes); 135 if (nbytes <= 1) { 206 if (seen_cr && nbytes < m [all...] |
H A D | softmagic.c | 115 /*ARGSUSED1*/ /* nbytes passed for regularity, maybe need later */ 868 size_t nbytes = b->flen; local 977 o = der_offs(ms, m, nbytes); 978 if (o == -1 || CAST(size_t, o) > nbytes) { 981 "Bad DER offset %d nbytes=%" 982 SIZE_T_FORMAT "u", o, nbytes); 998 if (CAST(size_t, o) > nbytes) { 1001 "u > %" SIZE_T_FORMAT "u", (size_t)o, nbytes); 1339 const unsigned char *s, uint32_t offset, size_t nbytes, struct magic *m) 1349 if (offset > nbytes) 1338 mcopy(struct magic_set *ms, union VALUETYPE *p, int type, int indir, const unsigned char *s, uint32_t offset, size_t nbytes, struct magic *m) argument 1560 mget(struct magic_set *ms, struct magic *m, const struct buffer *b, const unsigned char *s, size_t nbytes, size_t o, unsigned int cont_level, int mode, int text, int flip, uint16_t *indir_count, uint16_t *name_count, int *printed_something, int *need_separator, int *returnval, int *found_match) argument [all...] |
/freebsd-11-stable/contrib/sendmail/src/ |
H A D | bf.c | 330 ** nbytes -- how many bytes to read 341 sm_bfread(fp, buf, nbytes) 344 size_t nbytes; 356 count = nbytes; 363 if ((bfp->bf_offset + nbytes) > bfp->bf_buffilled) 398 while (count < nbytes) 402 nbytes - count); 475 ** nbytes -- how many bytes to write 486 sm_bfwrite(fp, buf, nbytes) 489 size_t nbytes; [all...] |
/freebsd-11-stable/contrib/gcclibs/libiberty/ |
H A D | strsignal.c | 290 int nbytes; local 311 nbytes = num_signal_names * sizeof (char *); 312 if ((signal_names = (const char **) malloc (nbytes)) != NULL) 314 memset (signal_names, 0, nbytes); 329 nbytes = num_signal_names * sizeof (char *); 330 if ((sys_siglist = (const char **) malloc (nbytes)) != NULL) 332 memset (sys_siglist, 0, nbytes);
|
H A D | strerror.c | 509 int nbytes; local 530 nbytes = num_error_names * sizeof (char *); 531 if ((error_names = (const char **) malloc (nbytes)) != NULL) 533 memset (error_names, 0, nbytes); 548 nbytes = num_error_names * sizeof (char *); 549 if ((sys_errlist = (const char **) malloc (nbytes)) != NULL) 551 memset (sys_errlist, 0, nbytes);
|
/freebsd-11-stable/contrib/binutils/libiberty/ |
H A D | strsignal.c | 290 int nbytes; local 311 nbytes = num_signal_names * sizeof (char *); 312 if ((signal_names = (const char **) malloc (nbytes)) != NULL) 314 memset (signal_names, 0, nbytes); 329 nbytes = num_signal_names * sizeof (char *); 330 if ((sys_siglist = (const char **) malloc (nbytes)) != NULL) 332 memset (sys_siglist, 0, nbytes);
|
H A D | strerror.c | 509 int nbytes; local 530 nbytes = num_error_names * sizeof (char *); 531 if ((error_names = (const char **) malloc (nbytes)) != NULL) 533 memset (error_names, 0, nbytes); 548 nbytes = num_error_names * sizeof (char *); 549 if ((sys_errlist = (const char **) malloc (nbytes)) != NULL) 551 memset (sys_errlist, 0, nbytes);
|
/freebsd-11-stable/contrib/subversion/subversion/libsvn_subr/ |
H A D | utf_width.c | 232 int nbytes; local 239 nbytes = 1; 244 nbytes = 2; 249 nbytes = 3; 254 nbytes = 4; 267 for (i = 1; i < nbytes; i++) 273 cstr += nbytes;
|
/freebsd-11-stable/crypto/openssl/engines/ |
H A D | e_cswift.c | 531 sw_param.up.exp.modulus.nbytes = BN_bn2bin(m, 534 sw_param.up.exp.exponent.nbytes = BN_bn2bin(p, 555 arg.nbytes = BN_bn2bin(a, (unsigned char *)argument->d); 557 res.nbytes = BN_num_bytes(m); 558 memset(result->d, 0, res.nbytes); 570 BN_bin2bn((unsigned char *)result->d, res.nbytes, r); 586 while (((out->nbytes = (numbytes + mod)) % 32)) { 589 out->value = (unsigned char *)OPENSSL_malloc(out->nbytes); 692 arg.nbytes = BN_bn2bin(a, (unsigned char *)argument->d); 694 res.nbytes [all...] |
/freebsd-11-stable/lib/libc/gen/ |
H A D | wordexp.c | 129 long nwords, nbytes; /* Number of words, bytes from child */ local 224 nbytes = strtol(buf + 18, NULL, 16) + nwords; 236 we->we_nbytes += nbytes; 253 if (we_read_fully(pdes[0], we->we_strings + sofs, nbytes) != nbytes) { 283 if ((np = memchr(p, '\0', nbytes)) == NULL) 285 nbytes -= np - p + 1;
|
/freebsd-11-stable/usr.sbin/pmcannotate/ |
H A D | pmcannotate.c | 122 int nbytes; local 124 if (sscanf(str, " %p%n", &ptr, &nbytes) != 1) 126 if (str[nbytes] != ':' || isspace(str[nbytes + 1]) == 0) 140 int nbytes; local 144 if (sscanf(str, "%p <%[^>:]>:%n", &ptr, fname, &nbytes) != 2) 146 return (nbytes); 522 int nbytes; local 526 if ((nbytes = newfunction(buffer)) != 0) { 527 fseek(fp, nbytes * 582 int done, nbytes, sentinel; local [all...] |
/freebsd-11-stable/contrib/binutils/gas/ |
H A D | read.c | 3677 parse_mri_cons (expressionS *exp, unsigned int nbytes); 3684 parse_bitfield_cons (expressionS *exp, unsigned int nbytes); 3689 parse_repeat_cons (expressionS *exp, unsigned int nbytes); 3700 int nbytes ATTRIBUTE_UNUSED) 3702 TC_PARSE_CONS_EXPRESSION (exp, nbytes); 3710 cons_worker (register int nbytes, /* 1=.byte, 2=.word, 4=.long. */ 3734 if (nbytes == 0) 3735 nbytes = TC_ADDRESS_BYTES (); 3739 md_cons_align (nbytes); 3747 parse_mri_cons (&exp, (unsigned int) nbytes); 3705 cons_worker(register int nbytes, int rva) argument 3896 emit_expr(expressionS *exp, unsigned int nbytes) argument 4880 unsigned int nbytes; local [all...] |
/freebsd-11-stable/contrib/apr-util/include/ |
H A D | apr_md5.h | 137 * @param nbytes The size of the result buffer 140 char *result, apr_size_t nbytes);
|
/freebsd-11-stable/lib/libprocstat/ |
H A D | common_kvm.c | 67 kvm_read_all(kvm_t *kd, unsigned long addr, void *buf, size_t nbytes) argument 71 if (nbytes >= SSIZE_MAX) 73 error = kvm_read(kd, addr, buf, nbytes); 74 return (error == (ssize_t)(nbytes));
|
/freebsd-11-stable/contrib/diff/lib/ |
H A D | cmpbuf.c | 84 block_read (int fd, char *buf, size_t nbytes) argument 87 char const *buflim = buf + nbytes;
|
/freebsd-11-stable/contrib/binutils/gas/config/ |
H A D | tc-alpha.h | 107 #define md_cons_align(nbytes) alpha_cons_align (nbytes)
|
/freebsd-11-stable/lib/libc/locale/ |
H A D | utf8.c | 359 size_t nbytes; local 370 nbytes = 0; 382 return (nbytes + nb - 1); 384 nbytes += nb; 386 return (nbytes); 415 return (nbytes + nb - 1); 420 nbytes += nb; 423 return (nbytes);
|
/freebsd-11-stable/contrib/nvi/common/ |
H A D | encoding.c | 60 looks_utf8(const char *ibuf, size_t nbytes) argument 67 for (i = 0; i < nbytes; i++) { 96 if (i >= nbytes) 121 looks_utf16(const char *ibuf, size_t nbytes) argument 130 if (nbytes < 2) 141 for (i = 2; i + 1 < nbytes; i += 2) {
|
/freebsd-11-stable/contrib/gcclibs/libcpp/ |
H A D | charset.c | 177 size_t nbytes, i; local 193 for (nbytes = 2; nbytes < 7; nbytes++) 194 if ((c & ~masks[nbytes-1]) == patns[nbytes-1]) 199 if (*inbytesleftp < nbytes) 202 c = (c & masks[nbytes-1]); 204 for (i = 1; i < nbytes; i++) 213 if (c <= 0x7F && nbytes > 233 size_t nbytes; local [all...] |
/freebsd-11-stable/sys/isa/ |
H A D | vga_isa.c | 66 int nbytes; local 73 nbytes = vidd_save_state(sc->adp, NULL, 0); 74 if (nbytes <= 0) 76 sc->state_buf = malloc(nbytes, M_TEMP, M_NOWAIT); 80 device_printf(dev, "saving %d bytes of video state\n", nbytes); 81 if (vidd_save_state(sc->adp, sc->state_buf, nbytes) != 0) { 82 device_printf(dev, "failed to save state (nbytes=%d)\n", 83 nbytes);
|
/freebsd-11-stable/lib/libc/db/recno/ |
H A D | rec_put.c | 195 u_int32_t nbytes; local 252 nbytes = NRLEAFDBT(data->size); 253 if ((u_int32_t)(h->upper - h->lower) < nbytes + sizeof(indx_t)) { 254 status = __bt_split(t, h, NULL, data, dflags, nbytes, idx); 265 h->linp[idx] = h->upper -= nbytes;
|
/freebsd-11-stable/sys/kern/ |
H A D | kern_ctf.c | 70 int nbytes; local 137 nbytes = hdr->e_shnum * hdr->e_shentsize; 138 if (nbytes == 0 || hdr->e_shoff == 0 || 145 shdr = malloc(nbytes, M_LINKER, M_WAITOK); 148 if ((error = vn_rdwr(UIO_READ, nd.ni_vp, (caddr_t)shdr, nbytes,
|
/freebsd-11-stable/sbin/dhclient/ |
H A D | privsep.c | 77 buf_read(int sock, void *buf, size_t nbytes) argument 84 n = read(sock, p, nbytes); 90 nbytes -= n; 97 if (r < nbytes) 99 (unsigned long)nbytes, (long)r);
|