Home
last modified time | relevance | path

Searched refs:nbyte (Results 1 – 25 of 43) sorted by relevance

12

/freebsd-12.1/usr.sbin/kgzip/
H A Dxio.c52 size_t nbyte, off_t offset) in xcopy() argument
57 while (nbyte) { in xcopy()
58 if ((n = sizeof(buf)) > nbyte) in xcopy()
59 n = nbyte; in xcopy()
63 nbyte -= n; in xcopy()
72 xzero(const struct iodesc * id, size_t nbyte) in xzero() argument
78 while (nbyte) { in xzero()
79 if ((n = sizeof(buf)) > nbyte) in xzero()
80 n = nbyte; in xzero()
82 nbyte -= n; in xzero()
[all …]
/freebsd-12.1/crypto/openssl/crypto/pem/
H A Dpvkfmt.c50 *in += nbyte; in read_lebn()
151 unsigned int nbyte, hnbyte; in blob_length() local
152 nbyte = (bitlen + 7) >> 3; in blob_length()
171 return 4 + nbyte; in blob_length()
251 unsigned int nbyte; in b2i_dss() local
255 nbyte = (bitlen + 7) >> 3; in b2i_dss()
527 nbyte = RSA_size(rsa); in check_bitlen_rsa()
560 int nbyte, hnbyte; in write_rsa() local
563 nbyte = RSA_size(rsa); in write_rsa()
582 int nbyte; in write_dsa() local
[all …]
/freebsd-12.1/tools/tools/kttcp/sys/
H A Dkttcp.c146 static int nbyte = 65536; variable
175 nbyte = MIN(len, (unsigned long long)nbyte); in kttcp_send()
176 aiov.iov_len = nbyte; in kttcp_send()
177 auio.uio_resid = nbyte; in kttcp_send()
223 nbyte = MIN(len, (unsigned long long)nbyte); in kttcp_recv()
224 aiov.iov_len = nbyte; in kttcp_recv()
225 auio.uio_resid = nbyte; in kttcp_recv()
/freebsd-12.1/stand/libsa/
H A Dufsread.c168 fsread_size(ufs_ino_t inode, void *buf, size_t nbyte, size_t *fsizep) in fsread_size() argument
189 if ((buf == NULL && nbyte != 0) || dmadat == NULL) in fsread_size()
258 if (nbyte > n) in fsread_size()
259 nbyte = n; in fsread_size()
260 nb = nbyte; in fsread_size()
317 return nbyte; in fsread_size()
321 fsread(ufs_ino_t inode, void *buf, size_t nbyte) in fsread() argument
324 return fsread_size(inode, buf, nbyte, NULL); in fsread()
H A Ddosfs.c295 nb = (u_int)nbyte; in dos_read()
333 *resid = nbyte - nb + cnt; in dos_read()
768 nbyte = fs->fatsz != 32 ? 2 : 4; in fatget()
773 if (offset + nbyte > FATBLKSZ) in fatget()
828 if ((n = SECSIZ - off) > nbyte) in ioread()
829 n = nbyte; in ioread()
835 nbyte -= n; in ioread()
837 n = nbyte & (SECSIZ - 1); in ioread()
838 if (nbyte -= n) { in ioread()
841 offset += nbyte; in ioread()
[all …]
/freebsd-12.1/usr.sbin/btxld/
H A Dbtxld.c447 copy(int fdi, int fdo, size_t nbyte, off_t offset) in copy() argument
452 while (nbyte) { in copy()
453 if ((n = sizeof(buf)) > nbyte) in copy()
454 n = nbyte; in copy()
458 nbyte -= n; in copy()
467 readx(int fd, void *buf, size_t nbyte, off_t offset) in readx() argument
473 if ((n = read(fd, buf, nbyte)) == -1) in readx()
482 writex(int fd, const void *buf, size_t nbyte) in writex() argument
486 if ((n = write(fd, buf, nbyte)) == -1) in writex()
488 if ((size_t)n != nbyte) in writex()
/freebsd-12.1/sys/kern/
H A Dsys_generic.c187 size_t nbyte; member
200 aiov.iov_len = uap->nbyte; in sys_read()
216 size_t nbyte; member
235 if (nbyte > IOSIZE_MAX) in kern_pread()
238 aiov.iov_len = nbyte; in kern_pread()
241 auio.uio_resid = nbyte; in kern_pread()
388 size_t nbyte; member
417 size_t nbyte; member
437 if (nbyte > IOSIZE_MAX) in kern_pwrite()
440 aiov.iov_len = nbyte; in kern_pwrite()
[all …]
/freebsd-12.1/contrib/apr-util/include/
H A Dapr_buckets.h828 const char *str, apr_size_t nbyte);
1364 apr_size_t nbyte,
1376 apr_size_t nbyte);
1386 apr_size_t nbyte,
1398 apr_size_t nbyte);
1415 apr_size_t nbyte,
1428 apr_size_t nbyte,
/freebsd-12.1/stand/mips/beri/boot2/
H A Dboot2.c155 xfsread(ufs_ino_t inode, void *buf, size_t nbyte) in xfsread() argument
157 if ((size_t)fsread(inode, buf, nbyte) != nbyte) { in xfsread()
200 size_t nbyte; in main() local
229 nbyte = fsread(ino, cmd, sizeof(cmd) - 1); in main()
230 cmd[nbyte] = '\0'; in main()
/freebsd-12.1/stand/powerpc/kboot/
H A Dhost_syscall.h33 ssize_t host_read(int fd, void *buf, size_t nbyte);
34 ssize_t host_write(int fd, const void *buf, size_t nbyte);
/freebsd-12.1/tools/tools/vhba/medium/
H A Dvhba_medium.c126 unsigned int nbyte; in vhbamedium_act() local
250 nbyte = (char *)ptr - &junk[0]; in vhbamedium_act()
251 ptr[0] = nbyte - 4; in vhbamedium_act()
259 data_len = min(data_len, nbyte); in vhbamedium_act()
/freebsd-12.1/tools/tools/vhba/lots/
H A Dvhba_lots.c126 unsigned int nbyte; in vhbalots_act() local
250 nbyte = (char *)ptr - &junk[0]; in vhbalots_act()
251 ptr[0] = nbyte - 4; in vhbalots_act()
259 data_len = min(data_len, nbyte); in vhbalots_act()
/freebsd-12.1/tools/tools/vhba/simple/
H A Dvhba_simple.c126 unsigned int nbyte; in vhbasimple_act() local
250 nbyte = (char *)ptr - &junk[0]; in vhbasimple_act()
251 ptr[0] = nbyte - 4; in vhbasimple_act()
259 data_len = min(data_len, nbyte); in vhbasimple_act()
/freebsd-12.1/stand/i386/boot2/
H A Dboot2.c151 xfsread(ufs_ino_t inode, void *buf, size_t nbyte) in xfsread() argument
154 if ((size_t)fsread(inode, buf, nbyte) != nbyte) { in xfsread()
206 size_t nbyte; in main() local
224 nbyte = fsread(ino, cmd, sizeof(cmd) - 1); in main()
225 cmd[nbyte] = '\0'; in main()
/freebsd-12.1/tools/tools/vhba/faulty/
H A Dvhba_faulty.c140 unsigned int nbyte; in faulty_act() local
264 nbyte = (char *)ptr - &junk[0]; in faulty_act()
265 ptr[0] = nbyte - 4; in faulty_act()
273 data_len = min(data_len, nbyte); in faulty_act()
/freebsd-12.1/tools/tools/vhba/rptluns/
H A Dvhba_rptluns.c155 unsigned int nbyte; in vhbarptluns_act() local
279 nbyte = (char *)ptr - &junk[0]; in vhbarptluns_act()
280 ptr[0] = nbyte - 4; in vhbarptluns_act()
288 data_len = min(data_len, nbyte); in vhbarptluns_act()
/freebsd-12.1/contrib/apr-util/buckets/
H A Dapr_brigade.c432 const char *str, apr_size_t nbyte) in apr_brigade_write() argument
451 if (nbyte > remaining) { in apr_brigade_write()
456 e = apr_bucket_transient_create(str, nbyte, b->bucket_alloc); in apr_brigade_write()
461 e = apr_bucket_heap_create(str, nbyte, NULL, b->bucket_alloc); in apr_brigade_write()
482 memcpy(buf, str, nbyte); in apr_brigade_write()
483 e->length += nbyte; in apr_brigade_write()
/freebsd-12.1/tools/tools/vhba/mptest/
H A Dvhba_mptest.c166 unsigned int nbyte; in mptest_act() local
290 nbyte = (char *)ptr - &junk[0]; in mptest_act()
291 ptr[0] = nbyte - 4; in mptest_act()
299 data_len = min(data_len, nbyte); in mptest_act()
/freebsd-12.1/contrib/tcsh/
H A Dsh.misc.c655 xread(int fildes, void *buf, size_t nbyte) in xread() argument
664 while ((res = read(fildes, buf, nbyte)) == -1 && errno == EINTR); in xread()
683 xwrite(int fildes, const void *buf, size_t nbyte) in xwrite() argument
692 while ((res = write(fildes, buf, nbyte)) == -1 && errno == EINTR); in xwrite()
/freebsd-12.1/stand/i386/isoboot/
H A Disoboot.c112 xfsread(uint64_t inode, void *buf, size_t nbyte) in xfsread() argument
115 if ((size_t)cd9660_fsread(inode, buf, nbyte) != nbyte) { in xfsread()
/freebsd-12.1/stand/i386/gptboot/
H A Dgptboot.c129 xfsread(ufs_ino_t inode, void *buf, size_t nbyte) in xfsread() argument
132 if ((size_t)fsread(inode, buf, nbyte) != nbyte) { in xfsread()
/freebsd-12.1/contrib/compiler-rt/include/sanitizer/
H A Dnetbsd_syscall_hooks.h50 #define __sanitizer_syscall_pre_read(fd, buf, nbyte) \ argument
52 (long long)(nbyte))
53 #define __sanitizer_syscall_post_read(res, fd, buf, nbyte) \ argument
55 (long long)(nbyte))
56 #define __sanitizer_syscall_pre_write(fd, buf, nbyte) \ argument
58 (long long)(nbyte))
61 (long long)(nbyte))
2731 long long nbyte);
2733 long long buf, long long nbyte);
2735 long long nbyte);
[all …]
/freebsd-12.1/sys/dev/bhnd/nvram/
H A Dbhnd_nvram_data_sprom.c1146 size_t nbyte; in bhnd_nvram_sprom_read_var() local
1230 nbyte = iwidth; in bhnd_nvram_sprom_read_var()
1232 intv_type, ptr, &nbyte, var_btype); in bhnd_nvram_sprom_read_var()
/freebsd-12.1/stand/i386/zfsboot/
H A Dzfsboot.c303 xfsread(const dnode_phys_t *dnode, off_t *offp, void *buf, size_t nbyte) in xfsread() argument
305 if ((size_t)zfs_read(spa, dnode, offp, buf, nbyte) != nbyte) { in xfsread()
/freebsd-12.1/sys/sys/
H A Dsyscallsubr.h204 int kern_pread(struct thread *td, int fd, void *buf, size_t nbyte,
211 int kern_pwrite(struct thread *td, int fd, const void *buf, size_t nbyte,

12