| /src/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()
|
| /src/crypto/openssl/crypto/pem/ |
| H A D | pvkfmt.c | 55 static int read_lebn(const unsigned char **in, unsigned int nbyte, BIGNUM **r) in read_lebn() argument 57 *r = BN_lebin2bn(*in, nbyte, NULL); in read_lebn() 60 *in += nbyte; in read_lebn() 256 unsigned int nbyte = (bitlen + 7) >> 3; in ossl_blob_length() local 266 return 44 + 3 * nbyte; in ossl_blob_length() 272 return 64 + 2 * nbyte; in ossl_blob_length() 276 return 4 + nbyte; in ossl_blob_length() 282 return 4 + 2 * nbyte + 5 * hnbyte; in ossl_blob_length() 383 unsigned int nbyte = (bitlen + 7) >> 3; in ossl_b2i_DSA_after_header() local 388 if (!read_lebn(&p, nbyte, &pbn)) in ossl_b2i_DSA_after_header() [all …]
|
| /src/crypto/krb5/src/appl/gss-sample/ |
| H A D | gss-misc.c | 89 write_all(int fildes, const void *data, unsigned int nbyte) in write_all() argument 94 for (ptr = buf; nbyte; ptr += ret, nbyte -= ret) { in write_all() 95 ret = send(fildes, ptr, nbyte, 0); in write_all() 109 read_all(int fildes, void *data, unsigned int nbyte) in read_all() argument 121 for (ptr = buf; nbyte; ptr += ret, nbyte -= ret) { in read_all() 125 ret = recv(fildes, ptr, nbyte, 0); in read_all()
|
| /src/stand/libsa/ |
| H A D | ufsread.c | 172 fsread_size(ufs_ino_t inode, void *buf, size_t nbyte, size_t *fsizep) in fsread_size() argument 193 if ((buf == NULL && nbyte != 0) || dmadat == NULL) in fsread_size() 262 if (nbyte > n) in fsread_size() 263 nbyte = n; in fsread_size() 264 nb = nbyte; in fsread_size() 321 return nbyte; in fsread_size() 325 fsread(ufs_ino_t inode, void *buf, size_t nbyte) in fsread() argument 328 return fsread_size(inode, buf, nbyte, NULL); in fsread()
|
| H A D | dosfs.c | 406 dos_read(struct open_file *fd, void *buf, size_t nbyte, size_t *resid) in dos_read() argument 422 nb = nbyte; in dos_read() 464 *resid = nbyte - nb + cnt; in dos_read() 918 u_int val_in, val_out, offset, blknum, nbyte; in fatget() local 929 nbyte = fs->fatsz != 32 ? 2 : 4; in fatget() 930 if (offset + nbyte > secbyt(fs, fs->spf)) in fatget() 934 if (offset + nbyte > FATBLKSZ) in fatget() 979 ioread(DOS_FS *fs, uint64_t offset, void *buf, size_t nbyte) in ioread() argument 990 if ((n = secsiz - off) > nbyte) in ioread() 991 n = nbyte; in ioread() [all …]
|
| /src/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()
|
| /src/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()
|
| /src/sys/kern/ |
| H A D | sys_generic.c | 188 size_t nbyte; member 198 if (uap->nbyte > IOSIZE_MAX) in sys_read() 201 aiov.iov_len = uap->nbyte; in sys_read() 204 auio.uio_resid = uap->nbyte; in sys_read() 217 size_t nbyte; member 226 return (kern_pread(td, uap->fd, uap->buf, uap->nbyte, uap->offset)); in sys_pread() 230 kern_pread(struct thread *td, int fd, void *buf, size_t nbyte, off_t offset) in kern_pread() argument 236 if (nbyte > IOSIZE_MAX) in kern_pread() 239 aiov.iov_len = nbyte; in kern_pread() 242 auio.uio_resid = nbyte; in kern_pread() [all …]
|
| /src/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()
|
| /src/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()
|
| /src/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()
|
| /src/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()
|
| /src/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()
|
| /src/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()
|
| /src/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);
|
| /src/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()
|
| /src/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()
|
| /src/sys/contrib/dev/broadcom/brcm80211/include/ |
| H A D | brcmu_utils.h | 47 #define MAXNBVAL(nbyte) MAXBITVAL((nbyte) * 8) argument
|
| /src/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()
|
| /src/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()
|
| /src/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 …]
|
| /src/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()
|
| /src/lib/libsys/ |
| H A D | _libsys.h | 481 ssize_t __sys_read(int fd, void * buf, size_t nbyte); 482 ssize_t __sys_write(int fd, const void * buf, size_t nbyte); 769 ssize_t __sys_pread(int fd, void * buf, size_t nbyte, off_t offset); 770 ssize_t __sys_pwrite(int fd, const void * buf, size_t nbyte, off_t offset);
|
| /src/sys/sys/ |
| H A D | syscallsubr.h | 292 int kern_pread(struct thread *td, int fd, void *buf, size_t nbyte, 299 int kern_pwrite(struct thread *td, int fd, const void *buf, size_t nbyte,
|
| /src/sys/compat/linux/ |
| H A D | linux_file.c | 1038 error = kern_pread(td, uap->fd, uap->buf, uap->nbyte, offset); in linux_pread() 1063 kern_pwrite(td, uap->fd, uap->buf, uap->nbyte, offset))); in linux_pwrite() 1920 .nbyte = args->nbyte, in linux_write()
|