/freebsd/tools/tools/kttcp/sys/ |
H A D | kttcp.c | 145 static int nbyte = 65536; variable 174 nbyte = MIN(len, (unsigned long long)nbyte); in kttcp_send() 175 aiov.iov_len = nbyte; in kttcp_send() 176 auio.uio_resid = nbyte; in kttcp_send() 222 nbyte = MIN(len, (unsigned long long)nbyte); in kttcp_recv() 223 aiov.iov_len = nbyte; in kttcp_recv() 224 auio.uio_resid = nbyte; in kttcp_recv()
|
/freebsd/crypto/openssl/crypto/pem/ |
H A D | pvkfmt.c | 53 static int read_lebn(const unsigned char **in, unsigned int nbyte, BIGNUM **r) in read_lebn() argument 55 *r = BN_lebin2bn(*in, nbyte, NULL); in read_lebn() 58 *in += nbyte; in read_lebn() 251 unsigned int nbyte = (bitlen + 7) >> 3; in ossl_blob_length() local 261 return 44 + 3 * nbyte; in ossl_blob_length() 267 return 64 + 2 * nbyte; in ossl_blob_length() 271 return 4 + nbyte; in ossl_blob_length() 277 return 4 + 2 * nbyte + 5 * hnbyte; in ossl_blob_length() 381 unsigned int nbyte = (bitlen + 7) >> 3; in ossl_b2i_DSA_after_header() local 386 if (!read_lebn(&p, nbyte, &pbn)) in ossl_b2i_DSA_after_header() [all …]
|
/freebsd/stand/libsa/ |
H A D | ufsread.c | 165 fsread_size(ufs_ino_t inode, void *buf, size_t nbyte, size_t *fsizep) in fsread_size() argument 186 if ((buf == NULL && nbyte != 0) || dmadat == NULL) in fsread_size() 255 if (nbyte > n) in fsread_size() 256 nbyte = n; in fsread_size() 257 nb = nbyte; in fsread_size() 314 return nbyte; in fsread_size() 318 fsread(ufs_ino_t inode, void *buf, size_t nbyte) in fsread() argument 321 return fsread_size(inode, buf, nbyte, NULL); in fsread()
|
H A D | dosfs.c | 405 dos_read(struct open_file *fd, void *buf, size_t nbyte, size_t *resid) in dos_read() argument 421 nb = nbyte; in dos_read() 463 *resid = nbyte - nb + cnt; in dos_read() 917 u_int val_in, val_out, offset, blknum, nbyte; in fatget() local 928 nbyte = fs->fatsz != 32 ? 2 : 4; in fatget() 929 if (offset + nbyte > secbyt(fs, fs->spf)) in fatget() 933 if (offset + nbyte > FATBLKSZ) in fatget() 978 ioread(DOS_FS *fs, uint64_t offset, void *buf, size_t nbyte) in ioread() argument 989 if ((n = secsiz - off) > nbyte) in ioread() 990 n = nbyte; in ioread() [all …]
|
/freebsd/usr.sbin/btxld/ |
H A D | btxld.c | 442 copy(int fdi, int fdo, size_t nbyte, off_t offset) in copy() argument 447 while (nbyte) { in copy() 448 if ((n = sizeof(buf)) > nbyte) in copy() 449 n = nbyte; in copy() 453 nbyte -= n; in copy() 462 readx(int fd, void *buf, size_t nbyte, off_t offset) in readx() argument 468 if ((n = read(fd, buf, nbyte)) == -1) in readx() 477 writex(int fd, const void *buf, size_t nbyte) in writex() argument 481 if ((n = write(fd, buf, nbyte)) == -1) in writex() 483 if ((size_t)n != nbyte) in writex()
|
/freebsd/stand/kboot/libkboot/ |
H A D | host_syscalls.c | 122 host_read(int fd, void *buf, size_t nbyte) in host_read() argument 124 return host_syscall(SYS_read, fd, (uintptr_t)buf, nbyte); in host_read() 168 host_write(int fd, const void *buf, size_t nbyte) in host_write() argument 170 return host_syscall(SYS_write, fd, (uintptr_t)buf, nbyte); in host_write()
|
/freebsd/sys/kern/ |
H A D | sys_generic.c | 186 size_t nbyte; member 196 if (uap->nbyte > IOSIZE_MAX) in sys_read() 199 aiov.iov_len = uap->nbyte; in sys_read() 202 auio.uio_resid = uap->nbyte; in sys_read() 215 size_t nbyte; member 224 return (kern_pread(td, uap->fd, uap->buf, uap->nbyte, uap->offset)); in sys_pread() 228 kern_pread(struct thread *td, int fd, void *buf, size_t nbyte, off_t offset) in kern_pread() argument 234 if (nbyte > IOSIZE_MAX) in kern_pread() 237 aiov.iov_len = nbyte; in kern_pread() 240 auio.uio_resid = nbyte; in kern_pread() [all …]
|
/freebsd/tools/tools/vhba/lots/ |
H A D | vhba_lots.c | 125 unsigned int nbyte; in vhbalots_act() local 249 nbyte = (char *)ptr - &junk[0]; in vhbalots_act() 250 ptr[0] = nbyte - 4; in vhbalots_act() 258 data_len = min(data_len, nbyte); in vhbalots_act()
|
/freebsd/tools/tools/vhba/medium/ |
H A D | vhba_medium.c | 125 unsigned int nbyte; in vhbamedium_act() local 249 nbyte = (char *)ptr - &junk[0]; in vhbamedium_act() 250 ptr[0] = nbyte - 4; in vhbamedium_act() 258 data_len = min(data_len, nbyte); in vhbamedium_act()
|
/freebsd/tools/tools/vhba/simple/ |
H A D | vhba_simple.c | 125 unsigned int nbyte; in vhbasimple_act() local 249 nbyte = (char *)ptr - &junk[0]; in vhbasimple_act() 250 ptr[0] = nbyte - 4; in vhbasimple_act() 258 data_len = min(data_len, nbyte); in vhbasimple_act()
|
/freebsd/stand/i386/boot2/ |
H A D | boot2.c | 148 xfsread(ufs_ino_t inode, void *buf, size_t nbyte) in xfsread() argument 151 if ((size_t)fsread(inode, buf, nbyte) != nbyte) { in xfsread() 203 size_t nbyte; in main() local 221 nbyte = fsread(ino, cmd, sizeof(cmd) - 1); in main() 222 cmd[nbyte] = '\0'; in main()
|
/freebsd/tools/tools/vhba/rptluns/ |
H A D | vhba_rptluns.c | 154 unsigned int nbyte; in vhbarptluns_act() local 278 nbyte = (char *)ptr - &junk[0]; in vhbarptluns_act() 279 ptr[0] = nbyte - 4; in vhbarptluns_act() 287 data_len = min(data_len, nbyte); in vhbarptluns_act()
|
/freebsd/tools/tools/vhba/faulty/ |
H A D | vhba_faulty.c | 139 unsigned int nbyte; in faulty_act() local 263 nbyte = (char *)ptr - &junk[0]; in faulty_act() 264 ptr[0] = nbyte - 4; in faulty_act() 272 data_len = min(data_len, nbyte); in faulty_act()
|
/freebsd/stand/kboot/include/ |
H A D | host_syscall.h | 177 ssize_t host_read(int fd, void *buf, size_t nbyte); 184 ssize_t host_write(int fd, const void *buf, size_t nbyte);
|
/freebsd/contrib/tcsh/ |
H A D | sh.misc.c | 684 xread(int fildes, void *buf, size_t nbyte) in xread() argument 693 while ((res = read(fildes, buf, nbyte)) == -1 && errno == EINTR); in xread() 712 xwrite(int fildes, const void *buf, size_t nbyte) in xwrite() argument 721 while ((res = write(fildes, buf, nbyte)) == -1 && errno == EINTR); in xwrite()
|
/freebsd/tools/tools/vhba/mptest/ |
H A D | vhba_mptest.c | 165 unsigned int nbyte; in mptest_act() local 289 nbyte = (char *)ptr - &junk[0]; in mptest_act() 290 ptr[0] = nbyte - 4; in mptest_act() 298 data_len = min(data_len, nbyte); in mptest_act()
|
/freebsd/stand/i386/isoboot/ |
H A D | isoboot.c | 109 xfsread(uint64_t inode, void *buf, size_t nbyte) in xfsread() argument 112 if ((size_t)cd9660_fsread(inode, buf, nbyte) != nbyte) { in xfsread()
|
/freebsd/stand/i386/gptboot/ |
H A D | gptboot.c | 126 xfsread(ufs_ino_t inode, void *buf, size_t nbyte) in xfsread() argument 129 if ((size_t)fsread(inode, buf, nbyte) != nbyte) { in xfsread()
|
/freebsd/contrib/llvm-project/compiler-rt/include/sanitizer/ |
H A D | netbsd_syscall_hooks.h | 49 #define __sanitizer_syscall_pre_read(fd, buf, nbyte) \ argument 51 (long long)(nbyte)) 52 #define __sanitizer_syscall_post_read(res, fd, buf, nbyte) \ argument 54 (long long)(nbyte)) 55 #define __sanitizer_syscall_pre_write(fd, buf, nbyte) \ argument 57 (long long)(nbyte)) 58 #define __sanitizer_syscall_post_write(res, fd, buf, nbyte) \ argument 60 (long long)(nbyte)) 919 #define __sanitizer_syscall_pre_pread(fd, buf, nbyte, PAD, offset) \ argument 921 (long long)(nbyte), (long long)(PAD), \ [all …]
|
/freebsd/sys/dev/bhnd/nvram/ |
H A D | bhnd_nvram_data_sprom.c | 1144 size_t nbyte; in bhnd_nvram_sprom_read_var() local 1228 nbyte = iwidth; in bhnd_nvram_sprom_read_var() 1230 intv_type, ptr, &nbyte, var_btype); in bhnd_nvram_sprom_read_var()
|
/freebsd/lib/libsys/ |
H A D | _libsys.h | 471 ssize_t __sys_read(int fd, void * buf, size_t nbyte); 472 ssize_t __sys_write(int fd, const void * buf, size_t nbyte); 761 ssize_t __sys_pread(int fd, void * buf, size_t nbyte, off_t offset); 762 ssize_t __sys_pwrite(int fd, const void * buf, size_t nbyte, off_t offset);
|
/freebsd/sys/compat/linux/ |
H A D | linux_file.c | 983 error = kern_pread(td, uap->fd, uap->buf, uap->nbyte, offset); in linux_pread() 1008 kern_pwrite(td, uap->fd, uap->buf, uap->nbyte, offset))); in linux_pwrite() 1857 .nbyte = args->nbyte, in linux_write()
|
/freebsd/sys/sys/ |
H A D | syscallsubr.h | 287 int kern_pread(struct thread *td, int fd, void *buf, size_t nbyte, 294 int kern_pwrite(struct thread *td, int fd, const void *buf, size_t nbyte,
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | TargetLibraryInfo.def | 550 /// void* __kmpc_alloc_shared(size_t nbyte); 555 /// void __kmpc_free_shared(void *ptr, size_t nbyte); 1870 /// ssize_t pread(int fildes, void *buf, size_t nbyte, off_t offset); 1905 /// ssize_t pwrite(int fildes, const void *buf, size_t nbyte, off_t offset); 1916 /// ssize_t read(int fildes, void *buf, size_t nbyte); 2472 /// ssize_t write(int fildes, const void *buf, size_t nbyte);
|
/freebsd/sys/compat/freebsd32/ |
H A D | freebsd32_proto.h | 416 char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)]; member 426 char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)]; member 964 char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)]; member 972 char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)]; member
|