/freebsd-11-stable/contrib/gcc/config/ |
H A D | host-hpux.c | 123 ssize_t nbytes; local 125 nbytes = read (fd, base, MIN (size, SSIZE_MAX)); 126 if (nbytes <= 0) 128 base = (char *) base + nbytes; 129 size -= nbytes;
|
H A D | host-linux.c | 206 ssize_t nbytes; local 208 nbytes = read (fd, base, MIN (size, SSIZE_MAX)); 209 if (nbytes <= 0) 211 base = (char *) base + nbytes; 212 size -= nbytes;
|
/freebsd-11-stable/contrib/file/src/ |
H A D | encoding.c | 73 size_t nbytes = b->flen; local 90 mlen = (nbytes + 1) * sizeof((*ubuf)[0]); 95 mlen = (nbytes + 1) * sizeof(nbuf[0]); 102 if (looks_ascii(buf, nbytes, *ubuf, ulen)) { 103 if (looks_utf7(buf, nbytes, *ubuf, ulen) > 0) { 112 } else if (looks_utf8_with_BOM(buf, nbytes, *ubuf, ulen) > 0) { 116 } else if (file_looks_utf8(buf, nbytes, *ubuf, ulen) > 1) { 120 } else if ((ucs_type = looks_ucs32(buf, nbytes, *ubuf, ulen)) != 0) { 129 } else if ((ucs_type = looks_ucs16(buf, nbytes, *ubuf, ulen)) != 0) { 138 } else if (looks_latin1(buf, nbytes, *ubu 253 looks_ascii(const unsigned char *buf, size_t nbytes, unichar *ubuf, size_t *ulen) argument 273 looks_latin1(const unsigned char *buf, size_t nbytes, unichar *ubuf, size_t *ulen) argument 292 looks_extended(const unsigned char *buf, size_t nbytes, unichar *ubuf, size_t *ulen) argument 323 file_looks_utf8(const unsigned char *buf, size_t nbytes, unichar *ubuf, size_t *ulen) argument 394 looks_utf8_with_BOM(const unsigned char *buf, size_t nbytes, unichar *ubuf, size_t *ulen) argument 404 looks_utf7(const unsigned char *buf, size_t nbytes, unichar *ubuf, size_t *ulen) argument 423 looks_ucs16(const unsigned char *bf, size_t nbytes, unichar *ubf, size_t *ulen) argument 462 looks_ucs32(const unsigned char *bf, size_t nbytes, unichar *ubf, size_t *ulen) argument 588 from_ebcdic(const unsigned char *buf, size_t nbytes, unsigned char *out) argument [all...] |
H A D | is_tar.c | 66 size_t nbytes = b->flen; local 77 tar = is_tar(buf, nbytes); 99 is_tar(const unsigned char *buf, size_t nbytes) argument 107 if (nbytes < sizeof(*header))
|
/freebsd-11-stable/sys/sparc64/isa/ |
H A D | isa_dma.c | 69 isa_dmastart(int flags, caddr_t addr, u_int nbytes, int chan) argument 75 isa_dmadone(int flags, caddr_t addr, int nbytes, int chan) argument
|
/freebsd-11-stable/lib/libc/stdio/ |
H A D | xprintf_str.c | 60 size_t clen, nbytes; local 66 nbytes = wcsrtombs(NULL, (const wchar_t **)&p, 0, &mbs); 67 if (nbytes == (size_t)-1) 76 nbytes = prec; 78 nbytes = 0; 84 (int)(nbytes + clen) > prec) 86 nbytes += clen; 90 if ((convbuf = malloc(nbytes + 1)) == NULL) 96 if ((nbytes = wcsrtombs(convbuf, (const wchar_t **)&p, 97 nbytes, [all...] |
H A D | fputws.c | 49 size_t nbytes; local 68 nbytes = l->__wcsnrtombs(buf, &wsp, SIZE_T_MAX, sizeof(buf), 70 if (nbytes == (size_t)-1) 72 uio.uio_resid = iov.iov_len = nbytes;
|
/freebsd-11-stable/usr.sbin/fdread/ |
H A D | fdread.c | 165 unsigned int nbytes, tracksize, mediasize, secsize, n; local 182 for (nbytes = 0; nbytes < mediasize;) { 183 if (lseek(fd, nbytes, SEEK_SET) != nbytes) 188 warnx("premature EOF after %u bytes", nbytes); 193 nbytes += rv; 195 fprintf(stderr, "%5d KB\r", nbytes / 1024); 203 if (lseek(fd, nbytes, SEEK_SET) != nbytes) [all...] |
/freebsd-11-stable/lib/libc/net/ |
H A D | if_nameindex.c | 84 int nbytes; local 96 nbytes = 0; 100 nbytes += strlen(ifa->ifa_name) + 1; 110 cp = malloc((ni + 1) * sizeof(struct if_nameindex) + nbytes);
|
/freebsd-11-stable/lib/libc/db/btree/ |
H A D | bt_split.c | 87 u_int32_t n, nbytes, nksize; local 175 nbytes = NBINTERNAL(bi->ksize); 179 nbytes = NBINTERNAL(bl->ksize); 189 if (n < nbytes) { 191 bt_pfxsaved += nbytes - n; 193 nbytes = n; 201 nbytes = NRINTERNAL; 208 if ((u_int32_t)(h->upper - h->lower) < nbytes + sizeof(indx_t)) { 211 bt_root(t, h, &l, &r, &skip, nbytes) : 212 bt_page(t, h, &l, &r, &skip, nbytes); 520 u_int32_t nbytes; local 603 u_int32_t nbytes; local [all...] |
H A D | bt_put.c | 73 u_int32_t nbytes, tmp; local 200 nbytes = NBLEAFDBT(key->size, data->size); 201 if ((u_int32_t)(h->upper - h->lower) < nbytes + sizeof(indx_t)) { 203 data, dflags, nbytes, idx)) != RET_SUCCESS) 213 h->linp[idx] = h->upper -= nbytes; 267 u_int32_t nbytes; local 281 nbytes = NBLEAFDBT(key->size, data->size); 282 if ((u_int32_t)(h->upper - h->lower) < nbytes + sizeof(indx_t))
|
/freebsd-11-stable/lib/libc/db/recno/ |
H A D | rec_delete.c | 151 u_int32_t nbytes; local 168 nbytes = NRLEAF(rl); 175 memmove(from + nbytes, from, (char *)to - from); 176 h->upper += nbytes; 181 ip[0] += nbytes; 183 ip[0] = ip[1] < offset ? ip[1] + nbytes : ip[1];
|
/freebsd-11-stable/sbin/dump/ |
H A D | cache.c | 81 cread(int fd, void *buf, size_t nbytes, off_t offset) argument 96 return(pread(fd, buf, nbytes, offset)); 107 if (nbytes >= BlockSize || 108 ((offset ^ (offset + nbytes - 1)) & mask) != 0) { 109 return(pread(fd, buf, nbytes, offset)); 137 bcopy(blk->b_Data + (offset - blk->b_Offset), buf, nbytes); 141 return(nbytes); 143 return(pread(fd, buf, nbytes, offset));
|
/freebsd-11-stable/contrib/tcsh/ |
H A D | tc.alloc.c | 177 malloc(size_t nbytes) argument 198 nbytes++; 201 nbytes = MEMALIGN(MEMALIGN(sizeof(union overhead)) + nbytes + RSLOP); 202 shiftr = (nbytes - 1) >> 2; 219 xprintf(CGETS(19, 1, "nbytes=%zu: Out of memory\n"), nbytes); 234 p->ov_size = (p->ov_index <= 13) ? (U_short)nbytes - 1 : 0; 236 *((U_int *) (((caddr_t) p) + nbytes - RSLOP)) = RMAGIC; 240 if (nbytes) 386 realloc(ptr_t cp, size_t nbytes) argument [all...] |
/freebsd-11-stable/libexec/rtld-elf/ |
H A D | malloc.c | 151 malloc(nbytes) 152 size_t nbytes; 187 if (nbytes <= (unsigned long)(n = pagesz - sizeof (*op) - RSLOP)) { 200 while (nbytes > amt + n) { 227 op->ov_size = roundup2(nbytes, RSLOP); 340 realloc(cp, nbytes) 342 size_t nbytes; 351 return (malloc(nbytes)); 366 * largest possible (so that all "nbytes" of new 389 if (nbytes < [all...] |
/freebsd-11-stable/contrib/gdb/gdb/ |
H A D | dwarfread.c | 1173 int nbytes; local 1178 nbytes = attribute_size (attribute); 1179 if (nbytes == -1) 1189 fundtype = target_to_host (scan, nbytes, GET_UNSIGNED, 1197 die_ref = target_to_host (scan, nbytes, GET_UNSIGNED, 1273 int nbytes; local 1288 nbytes = TARGET_FT_LONG_SIZE (current_objfile); 1289 lowbound = target_to_host (scan, nbytes, GET_UNSIGNED, current_objfile); 1290 scan += nbytes; 1291 highbound = target_to_host (scan, nbytes, GET_UNSIGNE 1356 int nbytes; local 1655 int nbytes; local 2148 unsigned short nbytes; local 2465 int nbytes; local 3054 int nbytes; local 3100 int nbytes; local 3165 int nbytes; local 3525 int nbytes; /* Size of next field to read */ local 3734 target_to_host(char *from, int nbytes, int signextend, struct objfile *objfile) argument 3786 int nbytes; /* Size of next data for this attribute */ local [all...] |
/freebsd-11-stable/sys/x86/isa/ |
H A D | isa_dma.c | 230 isa_dmastart(int flags, caddr_t addr, u_int nbytes, int chan) argument 237 dma_range_checked = isa_dmarangecheck(addr, nbytes, chan); 243 if ((chan < 4 && nbytes > (1<<16)) 244 || (chan >= 4 && (nbytes > (1<<17) || (uintptr_t)addr & 1))) 268 || dma_bouncebufsize[chan] < nbytes) 275 bcopy(addr, newaddr, nbytes); 316 outb(waport + 1, --nbytes); 317 outb(waport + 1, nbytes>>8); 349 nbytes >>= 1; 350 outb(waport + 2, --nbytes); 360 isa_dmadone(int flags, caddr_t addr, int nbytes, int chan) argument [all...] |
/freebsd-11-stable/crypto/openssl/engines/ |
H A D | e_padlock.c | 678 const unsigned char *in, size_t nbytes); 864 const unsigned char *in_arg, size_t nbytes) 874 padlock_xcrypt_ecb(nbytes / AES_BLOCK_SIZE, cdata, out_arg, in_arg); 879 iv = padlock_xcrypt_cbc(nbytes / AES_BLOCK_SIZE, cdata, out_arg, 886 iv = padlock_xcrypt_cfb(nbytes / AES_BLOCK_SIZE, cdata, out_arg, 893 padlock_xcrypt_ofb(nbytes / AES_BLOCK_SIZE, cdata, out_arg, in_arg); 919 const unsigned char *in_arg, size_t nbytes) 940 while (chunk < AES_BLOCK_SIZE && nbytes != 0) { 942 chunk++, nbytes--; 944 while (chunk < AES_BLOCK_SIZE && nbytes ! 863 padlock_aes_cipher_omnivorous(EVP_CIPHER_CTX *ctx, unsigned char *out_arg, const unsigned char *in_arg, size_t nbytes) argument 918 padlock_aes_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out_arg, const unsigned char *in_arg, size_t nbytes) argument [all...] |
/freebsd-11-stable/contrib/ntp/lib/isc/ |
H A D | netaddr.c | 75 unsigned int nbytes; /* Number of significant whole bytes */ local 107 nbytes = prefixlen / 8; 110 if (nbytes > 0) { 111 if (memcmp(pa, pb, nbytes) != 0) 116 INSIST(nbytes < ipabytes); 118 bytea = pa[nbytes]; 119 byteb = pb[nbytes]; 218 unsigned int nbits, nbytes, ipbytes = 0; local 237 nbytes = prefixlen / 8; 240 if ((p[nbytes] 251 unsigned int nbits = 0, nbytes = 0, ipbytes = 0, i; local [all...] |
/freebsd-11-stable/sys/kern/ |
H A D | vfs_extattr.c | 153 * pointer "data", buffer length "nbytes", thread "td". 160 void *data, size_t nbytes, struct thread *td) 168 if (nbytes > IOSIZE_MAX) 177 aiov.iov_len = nbytes; 181 auio.uio_resid = nbytes; 185 cnt = nbytes; 215 size_t nbytes; 236 attrname, uap->data, uap->nbytes, td); 250 size_t nbytes; 271 uap->data, uap->nbytes, t 159 extattr_set_vp(struct vnode *vp, int attrnamespace, const char *attrname, void *data, size_t nbytes, struct thread *td) argument 323 extattr_get_vp(struct vnode *vp, int attrnamespace, const char *attrname, void *data, size_t nbytes, struct thread *td) argument 631 extattr_list_vp(struct vnode *vp, int attrnamespace, void *data, size_t nbytes, struct thread *td) argument [all...] |
H A D | tty_outq.c | 278 ttyoutq_write(struct ttyoutq *to, const void *buf, size_t nbytes) argument 285 while (nbytes > 0) { 310 l = MIN(nbytes, TTYOUTQ_DATASIZE - boff); 315 nbytes -= l; 323 ttyoutq_write_nofrag(struct ttyoutq *to, const void *buf, size_t nbytes) argument 327 if (ttyoutq_bytesleft(to) < nbytes) 331 ret = ttyoutq_write(to, buf, nbytes); 332 MPASS(ret == nbytes);
|
/freebsd-11-stable/contrib/netbsd-tests/fs/hfs/ |
H A D | t_pathconvert.c | 40 int offset, nbytes; local 60 RL(nbytes = rump_sys_getdents(dirfd, buf, sizeof buf)); 62 for (offset = 0; offset < nbytes; offset += dirent->d_reclen) {
|
/freebsd-11-stable/contrib/apr/network_io/unix/ |
H A D | sendrecv.c | 261 int rv, nbytes = 0, total_hdrbytes, i; local 311 nbytes += hdrbytes; 358 *len = nbytes; 364 nbytes += rv; 367 *len = nbytes; 395 nbytes += trbytes; 397 *len = nbytes; 406 (*len) = nbytes; 417 apr_off_t nbytes = 0; local 471 nbytes 535 off_t nbytes = 0; local 673 apr_size_t nbytes = *len, headerlen, trailerlen; local 982 apr_size_t nbytes; local [all...] |
/freebsd-11-stable/contrib/binutils/bfd/ |
H A D | cache.c | 268 cache_bread (struct bfd *abfd, void *buf, file_ptr nbytes) argument 281 if (nbytes == 0) 291 nread = read (fileno (f), buf, nbytes); 301 nread = fread (buf, 1, nbytes, f); 305 if (nread < nbytes && ferror (f)) 315 cache_bwrite (struct bfd *abfd, const void *where, file_ptr nbytes) argument 321 nwrite = fwrite (where, 1, nbytes, f); 322 if (nwrite < nbytes && ferror (f))
|
/freebsd-11-stable/lib/libcasper/services/cap_random/ |
H A D | cap_random.c | 49 cap_random_buf(cap_channel_t *chan, void *buf, size_t nbytes) argument 56 left = nbytes;
|