/freebsd-current/lib/libsecureboot/openpgp/ |
H A D | dearmor.c | 42 dearmor(char *pem, size_t nbytes, size_t *len) argument 59 memmove(cp, ep, nbytes - (size_t)(ep - pem)); 60 nbytes -= (size_t)(ep - cp); 61 pem[nbytes] = '\0'; 69 memmove(cp, ep, nbytes - (size_t)(ep - pem)); 70 nbytes -= (size_t)(ep - cp); 71 pem[nbytes] = '\0'; 73 if ((po = decode_pem(pem, nbytes, &npo))) { 78 if ((bp = BIO_new_mem_buf(pem, (int)nbytes))) { 79 long llen = (long)nbytes; [all...] |
H A D | decode.h | 53 unsigned char * dearmor(char *pem, size_t nbytes, size_t *len); 54 int decode_packet(int want, unsigned char **pptr, size_t nbytes,
|
/freebsd-current/contrib/expat/xmlwf/ |
H A D | readfilemap.c | 89 size_t nbytes; local 115 nbytes = sb.st_size; 116 /* malloc will return NULL with nbytes == 0, handle files with size 0 */ 117 if (nbytes == 0) { 123 p = malloc(nbytes); 129 n = EXPAT_read(fd, p, (EXPAT_read_req_t)nbytes); 136 if (n != (EXPAT_read_count_t)nbytes) { 142 processor(p, nbytes, name, arg);
|
/freebsd-current/sys/netinet/libalias/ |
H A D | alias_util.c | 74 int nbytes) 80 while (nbytes > 1) { 82 nbytes -= 2; 84 if (nbytes == 1) { 110 int nhdr, ntcp, nbytes; local 120 nbytes = ntcp; 122 while (nbytes > 1) { 124 nbytes -= 2; 126 if (nbytes == 1) { 73 LibAliasInternetChecksum(struct libalias *la __unused, u_short *ptr, int nbytes) argument
|
/freebsd-current/sys/dev/bhnd/nvram/ |
H A D | bhnd_nvram_ioptr.c | 139 size_t nbytes, size_t *navail) 143 /* Verify offset+nbytes fall within the buffer range */ 148 if (avail < nbytes) 162 const void **ptr, size_t nbytes, size_t *navail) 171 error = bhnd_nvram_ioptr_ptr(ioptr, offset, &writep, nbytes, navail); 182 void **ptr, size_t nbytes, size_t *navail) 193 return (bhnd_nvram_ioptr_ptr(ioptr, offset, ptr, nbytes, navail)); 198 size_t nbytes) 203 /* Try to fetch a direct pointer for at least nbytes */ 204 if ((error = bhnd_nvram_io_read_ptr(io, offset, &ptr, nbytes, NUL 138 bhnd_nvram_ioptr_ptr(struct bhnd_nvram_ioptr *ioptr, size_t offset, void **ptr, size_t nbytes, size_t *navail) argument 161 bhnd_nvram_ioptr_read_ptr(struct bhnd_nvram_io *io, size_t offset, const void **ptr, size_t nbytes, size_t *navail) argument 181 bhnd_nvram_ioptr_write_ptr(struct bhnd_nvram_io *io, size_t offset, void **ptr, size_t nbytes, size_t *navail) argument 197 bhnd_nvram_ioptr_read(struct bhnd_nvram_io *io, size_t offset, void *buffer, size_t nbytes) argument 213 bhnd_nvram_ioptr_write(struct bhnd_nvram_io *io, size_t offset, void *buffer, size_t nbytes) argument [all...] |
H A D | bhnd_nvram_io.h | 68 size_t offset, void *buffer, size_t nbytes); 70 size_t offset, const void **ptr, size_t nbytes, 74 size_t offset, void *buffer, size_t nbytes); 76 size_t offset, void **ptr, size_t nbytes,
|
H A D | bhnd_nvram_value_prf.c | 214 size_t limit, nbytes; local 220 nbytes = 0; 227 if (limit > nbytes) \ 228 *(outp + nbytes) = _c; \ 230 if (nbytes == SIZE_MAX) \ 232 nbytes++; \ 544 if (limit > nbytes) 545 nremain = limit - nbytes; 548 memcpy(outp + nbytes, delim, delim_len); 551 if (SIZE_MAX - nbytes < delim_le [all...] |
H A D | bhnd_nvram_value.c | 666 size_t limit, nbytes; local 677 nbytes = 0; 683 nbytes = 0; 691 *olen = nbytes; 710 size_t limit, nbytes, nelem; local 739 nbytes = 0; 747 nbytes = strlen(str) + 1; 748 if (limit > nbytes) 769 *olen = nbytes; 823 size_t limit, nbytes; local 1051 size_t limit, nbytes; local 1517 size_t limit, nelem, nbytes; local [all...] |
H A D | bhnd_nvram_iovar.h | 40 void *buffer, size_t nbytes); 44 const void **ptr, size_t nbytes, size_t *navail); 48 void *buffer, size_t nbytes); 52 void **ptr, size_t nbytes, size_t *navail);
|
H A D | bhnd_nvram_iobuf.c | 254 size_t nbytes, size_t *navail) 258 /* Verify offset+nbytes fall within the buffer range */ 263 if (avail < nbytes) 277 const void **ptr, size_t nbytes, size_t *navail) 286 error = bhnd_nvram_iobuf_ptr(iobuf, offset, &ioptr, nbytes, navail); 297 void **ptr, size_t nbytes, size_t *navail) 304 return (bhnd_nvram_iobuf_ptr(iobuf, offset, ptr, nbytes, navail)); 309 size_t nbytes) 314 /* Try to fetch a direct pointer for at least nbytes */ 315 if ((error = bhnd_nvram_io_read_ptr(io, offset, &ptr, nbytes, NUL 253 bhnd_nvram_iobuf_ptr(struct bhnd_nvram_iobuf *iobuf, size_t offset, void **ptr, size_t nbytes, size_t *navail) argument 276 bhnd_nvram_iobuf_read_ptr(struct bhnd_nvram_io *io, size_t offset, const void **ptr, size_t nbytes, size_t *navail) argument 296 bhnd_nvram_iobuf_write_ptr(struct bhnd_nvram_io *io, size_t offset, void **ptr, size_t nbytes, size_t *navail) argument 308 bhnd_nvram_iobuf_read(struct bhnd_nvram_io *io, size_t offset, void *buffer, size_t nbytes) argument 324 bhnd_nvram_iobuf_write(struct bhnd_nvram_io *io, size_t offset, void *buffer, size_t nbytes) argument [all...] |
/freebsd-current/lib/libsecureboot/ |
H A D | vepcr.c | 143 size_t nbytes; local 148 nbytes = x = 0; 151 nbytes += 1 + strlen(flags ? hip->hi_basename : hip->hi_path); 153 if (nbytes > 1) { 154 hinfo = malloc(nbytes + 2); 158 n = snprintf(&hinfo[x], nbytes - x, "%s,", cp);
|
/freebsd-current/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 | 48 size_t nbytes; local 67 nbytes = l->__wcsnrtombs(buf, &wsp, SIZE_T_MAX, sizeof(buf), 69 if (nbytes == (size_t)-1) 71 uio.uio_resid = iov.iov_len = nbytes;
|
/freebsd-current/usr.sbin/fdread/ |
H A D | fdread.c | 163 unsigned int nbytes, tracksize, mediasize, secsize, n; local 180 for (nbytes = 0; nbytes < mediasize;) { 181 if (lseek(fd, nbytes, SEEK_SET) != nbytes) 186 warnx("premature EOF after %u bytes", nbytes); 191 nbytes += rv; 193 fprintf(stderr, "%5d KB\r", nbytes / 1024); 201 if (lseek(fd, nbytes, SEEK_SET) != nbytes) [all...] |
/freebsd-current/lib/libc/net/ |
H A D | if_nameindex.c | 83 int nbytes; local 95 nbytes = 0; 99 nbytes += strlen(ifa->ifa_name) + 1; 109 cp = malloc((ni + 1) * sizeof(struct if_nameindex) + nbytes);
|
/freebsd-current/sys/dev/random/fenestrasX/ |
H A D | fx_brng.c | 163 size_t nbytes) 169 if (__predict_false(nbytes == 0)) { 175 if (rng->brng_avail_idx + nbytes <= sizeof(rng->brng_buffer)) { 176 memcpy(buf, &rng->brng_buffer[rng->brng_avail_idx], nbytes); 177 explicit_bzero(&rng->brng_buffer[rng->brng_avail_idx], nbytes); 178 rng->brng_avail_idx += nbytes; 184 if (nbytes < sizeof(rng->brng_buffer)) { 190 ASSERT_DEBUG(nbytes > rem, "invariant"); 195 nbytes -= rem; 196 ASSERT_DEBUG(nbytes ! 162 fxrng_brng_getbytes_internal(struct fxrng_buffered_rng *rng, void *buf, size_t nbytes) argument 252 fxrng_brng_read(struct fxrng_buffered_rng *rng, void *buf, size_t nbytes) argument [all...] |
/freebsd-current/lib/libc/db/btree/ |
H A D | bt_split.c | 83 u_int32_t n, nbytes, nksize; local 171 nbytes = NBINTERNAL(bi->ksize); 175 nbytes = NBINTERNAL(bl->ksize); 185 if (n < nbytes) { 187 bt_pfxsaved += nbytes - n; 189 nbytes = n; 197 nbytes = NRINTERNAL; 204 if ((u_int32_t)(h->upper - h->lower) < nbytes + sizeof(indx_t)) { 207 bt_root(t, h, &l, &r, &skip, nbytes) : 208 bt_page(t, h, &l, &r, &skip, nbytes); 516 u_int32_t nbytes; local 599 u_int32_t nbytes; local [all...] |
/freebsd-current/bin/sh/ |
H A D | memalloc.c | 57 ckmalloc(size_t nbytes) argument 63 p = malloc(nbytes); 75 ckrealloc(pointer p, int nbytes) argument 79 p = realloc(p, nbytes); 136 stnewblock(int nbytes) argument 141 if (nbytes < MINSIZE) 142 nbytes = MINSIZE; 144 allocsize = ALIGN(sizeof(struct stack_block)) + ALIGN(nbytes); 158 stalloc(int nbytes) argument 162 nbytes [all...] |
/freebsd-current/lib/libc/db/recno/ |
H A D | rec_delete.c | 147 u_int32_t nbytes; local 164 nbytes = NRLEAF(rl); 171 memmove(from + nbytes, from, (char *)to - from); 172 h->upper += nbytes; 177 ip[0] += nbytes; 179 ip[0] = ip[1] < offset ? ip[1] + nbytes : ip[1];
|
/freebsd-current/sbin/dump/ |
H A D | cache.c | 79 cread(int fd, void *buf, size_t nbytes, off_t offset) argument 94 return(pread(fd, buf, nbytes, offset)); 105 if (nbytes >= BlockSize || 106 ((offset ^ (offset + nbytes - 1)) & mask) != 0) { 107 return(pread(fd, buf, nbytes, offset)); 135 bcopy(blk->b_Data + (offset - blk->b_Offset), buf, nbytes); 139 return(nbytes); 141 return(pread(fd, buf, nbytes, offset));
|
/freebsd-current/contrib/file/src/ |
H A D | encoding.c | 80 size_t nbytes = b->flen; local 96 if (nbytes > ms->encoding_max) 97 nbytes = ms->encoding_max; 99 mlen = (nbytes + 1) * sizeof((*ubuf)[0]); 105 if (looks_ascii(buf, nbytes, *ubuf, ulen)) { 106 if (looks_utf7(buf, nbytes, *ubuf, ulen) > 0) { 115 } else if (looks_utf8_with_BOM(buf, nbytes, *ubuf, ulen) > 0) { 119 } else if (file_looks_utf8(buf, nbytes, *ubuf, ulen) > 1) { 123 } else if ((ucs_type = looks_ucs32(buf, nbytes, *ubuf, ulen)) != 0) { 132 } else if ((ucs_type = looks_ucs16(buf, nbytes, *ubu 350 file_looks_utf8(const unsigned char *buf, size_t nbytes, file_unichar_t *ubuf, size_t *ulen) argument 431 looks_utf8_with_BOM(const unsigned char *buf, size_t nbytes, file_unichar_t *ubuf, size_t *ulen) argument 441 looks_utf7(const unsigned char *buf, size_t nbytes, file_unichar_t *ubuf, size_t *ulen) argument 465 looks_ucs16(const unsigned char *bf, size_t nbytes, file_unichar_t *ubf, size_t *ulen) argument 525 looks_ucs32(const unsigned char *bf, size_t nbytes, file_unichar_t *ubf, size_t *ulen) argument 651 from_ebcdic(const unsigned char *buf, size_t nbytes, unsigned char *out) argument [all...] |
H A D | is_simh.c | 112 uint32_t nbytes, cbytes; local 118 while (ue - uc >= CAST(ptrdiff_t, sizeof(nbytes))) { 119 nbytes = getlen(&uc); 120 if ((nt > 0 || nr > 0) && nbytes == 0xFFFFFFFF) 123 if (nbytes == 0) { 132 uc += nbytes; 133 if (ue - uc < CAST(ptrdiff_t, sizeof(nbytes))) 136 if (nbytes != cbytes)
|
/freebsd-current/lib/libthr/thread/ |
H A D | thr_malloc.c | 111 __thr_malloc(size_t nbytes) argument 118 res = __crt_malloc(nbytes); 124 __thr_realloc(void *cp, size_t nbytes) argument 131 res = __crt_realloc(cp, nbytes);
|
/freebsd-current/contrib/libfido2/fuzz/ |
H A D | preload-fuzz.c | 90 write(int fd, const void *buf, size_t nbytes) argument 102 return (write_f(fd, buf, nbytes)); 104 return (nbytes);
|
/freebsd-current/sys/kern/ |
H A D | vfs_extattr.c | 52 size_t nbytes, int follow); 55 size_t nbytes, int follow); 59 int attrnamespace, void *data, size_t nbytes, int follow); 167 * pointer "data", buffer length "nbytes", thread "td". 174 void *data, size_t nbytes, struct thread *td) 182 if (nbytes > IOSIZE_MAX) 191 aiov.iov_len = nbytes; 195 auio.uio_resid = nbytes; 199 cnt = nbytes; 227 size_t nbytes; member in struct:extattr_set_fd_args 173 extattr_set_vp(struct vnode *vp, int attrnamespace, const char *attrname, void *data, size_t nbytes, struct thread *td) argument 244 kern_extattr_set_fd(struct thread *td, int fd, int attrnamespace, const char *attrname, void *data, size_t nbytes) argument 273 size_t nbytes; member in struct:extattr_set_file_args 290 size_t nbytes; member in struct:extattr_set_link_args 302 user_extattr_set_path(struct thread *td, const char *path, int attrnamespace, const char *uattrname, void *data, size_t nbytes, int follow) argument 316 kern_extattr_set_path(struct thread *td, const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes, int follow, enum uio_seg pathseg) argument 350 extattr_get_vp(struct vnode *vp, int attrnamespace, const char *attrname, void *data, size_t nbytes, struct thread *td) argument 415 size_t nbytes; member in struct:extattr_get_fd_args 432 kern_extattr_get_fd(struct thread *td, int fd, int attrnamespace, const char *attrname, void *data, size_t nbytes) argument 461 size_t nbytes; member in struct:extattr_get_file_args 477 size_t nbytes; member in struct:extattr_get_link_args 488 user_extattr_get_path(struct thread *td, const char *path, int attrnamespace, const char *uattrname, void *data, size_t nbytes, int follow) argument 502 kern_extattr_get_path(struct thread *td, const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes, int follow, enum uio_seg pathseg) argument 729 size_t nbytes; member in struct:extattr_list_fd_args 782 size_t nbytes; member in struct:extattr_list_file_args 798 size_t nbytes; member in struct:extattr_list_link_args 810 user_extattr_list_path(struct thread *td, const char *path, int attrnamespace, void *data, size_t nbytes, int follow) argument [all...] |