| /freebsd-11-stable/usr.sbin/kgzip/ |
| HD | xio.c | 52 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-11-stable/crypto/openssl/crypto/pem/ |
| HD | pvkfmt.c | 94 static int read_lebn(const unsigned char **in, unsigned int nbyte, BIGNUM **r) in read_lebn() argument 99 p = *in + nbyte - 1; in read_lebn() 100 tmpbuf = OPENSSL_malloc(nbyte); in read_lebn() 104 for (i = 0; i < nbyte; i++) in read_lebn() 106 *r = BN_bin2bn(tmpbuf, nbyte, NULL); in read_lebn() 109 *in += nbyte; in read_lebn() 210 unsigned int nbyte, hnbyte; in blob_length() local 211 nbyte = (bitlen + 7) >> 3; in blob_length() 220 return 44 + 3 * nbyte; in blob_length() 226 return 64 + 2 * nbyte; in blob_length() [all …]
|
| /freebsd-11-stable/tools/tools/kttcp/sys/ |
| HD | kttcp.c | 146 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-11-stable/stand/libsa/ |
| HD | ufsread.c | 168 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()
|
| HD | dosfs.c | 282 dos_read(struct open_file *fd, void *buf, size_t nbyte, size_t *resid) in dos_read() argument 295 nb = (u_int)nbyte; in dos_read() 333 *resid = nbyte - nb + cnt; in dos_read() 757 u_int val_in, val_out, offset, blknum, nbyte; in fatget() local 768 nbyte = fs->fatsz != 32 ? 2 : 4; in fatget() 769 if (offset + nbyte > secbyt(fs->spf)) in fatget() 773 if (offset + nbyte > FATBLKSZ) in fatget() 818 ioread(DOS_FS *fs, u_int offset, void *buf, size_t nbyte) in ioread() argument 828 if ((n = SECSIZ - off) > nbyte) in ioread() 829 n = nbyte; in ioread() [all …]
|
| /freebsd-11-stable/sys/compat/svr4/ |
| HD | svr4_filio.c | 117 ra.nbyte = uap->nbyte; 140 uap->fd, uap->buf, uap->nbyte, rv)); 182 wa.nbyte = uap->nbyte; 187 uap->fd, uap->buf, uap->nbyte, rv));
|
| HD | svr4_fcntl.c | 518 pra.nbyte = uap->nbyte; 542 pra.nbyte = uap->nbyte; 563 pwa.nbyte = uap->nbyte; 586 pwa.nbyte = uap->nbyte;
|
| /freebsd-11-stable/usr.sbin/btxld/ |
| HD | btxld.c | 446 copy(int fdi, int fdo, size_t nbyte, off_t offset) in copy() argument 451 while (nbyte) { in copy() 452 if ((n = sizeof(buf)) > nbyte) in copy() 453 n = nbyte; in copy() 457 nbyte -= n; in copy() 466 readx(int fd, void *buf, size_t nbyte, off_t offset) in readx() argument 472 if ((n = read(fd, buf, nbyte)) == -1) in readx() 481 writex(int fd, const void *buf, size_t nbyte) in writex() argument 485 if ((n = write(fd, buf, nbyte)) == -1) in writex() 487 if ((size_t)n != nbyte) in writex()
|
| /freebsd-11-stable/sys/kern/ |
| HD | sys_generic.c | 186 size_t nbyte; member 198 if (uap->nbyte > IOSIZE_MAX) 201 aiov.iov_len = uap->nbyte; 204 auio.uio_resid = uap->nbyte; 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 …]
|
| /freebsd-11-stable/contrib/apr-util/include/ |
| HD | apr_buckets.h | 830 const char *str, apr_size_t nbyte); 1378 apr_size_t nbyte, 1390 apr_size_t nbyte); 1400 apr_size_t nbyte, 1412 apr_size_t nbyte); 1429 apr_size_t nbyte, 1442 apr_size_t nbyte,
|
| /freebsd-11-stable/stand/mips/beri/boot2/ |
| HD | boot2.c | 155 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-11-stable/stand/powerpc/kboot/ |
| HD | host_syscall.h | 33 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-11-stable/tools/tools/vhba/simple/ |
| HD | vhba_simple.c | 126 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-11-stable/tools/tools/vhba/lots/ |
| HD | vhba_lots.c | 126 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-11-stable/tools/tools/vhba/medium/ |
| HD | vhba_medium.c | 126 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-11-stable/stand/i386/boot2/ |
| HD | boot2.c | 151 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-11-stable/tools/tools/vhba/faulty/ |
| HD | vhba_faulty.c | 140 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-11-stable/tools/tools/vhba/rptluns/ |
| HD | vhba_rptluns.c | 155 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-11-stable/stand/pc98/boot2/ |
| HD | boot2.c | 150 xfsread(ufs_ino_t inode, void *buf, size_t nbyte) in xfsread() argument 153 if ((size_t)fsread(inode, buf, nbyte) != nbyte) { in xfsread() 331 size_t nbyte; in main() local 359 nbyte = fsread(ino, cmd, sizeof(cmd) - 1); in main() 360 cmd[nbyte] = '\0'; in main()
|
| /freebsd-11-stable/contrib/apr-util/buckets/ |
| HD | apr_brigade.c | 432 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-11-stable/contrib/tcsh/ |
| HD | sh.misc.c | 665 xread(int fildes, void *buf, size_t nbyte) in xread() argument 674 while ((res = read(fildes, buf, nbyte)) == -1 && errno == EINTR); in xread() 693 xwrite(int fildes, const void *buf, size_t nbyte) in xwrite() argument 702 while ((res = write(fildes, buf, nbyte)) == -1 && errno == EINTR); in xwrite()
|
| /freebsd-11-stable/tools/tools/vhba/mptest/ |
| HD | vhba_mptest.c | 166 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-11-stable/stand/i386/isoboot/ |
| HD | isoboot.c | 112 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-11-stable/stand/i386/gptboot/ |
| HD | gptboot.c | 129 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-11-stable/contrib/llvm-project/compiler-rt/include/sanitizer/ |
| HD | 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)) 892 #define __sanitizer_syscall_pre_pread(fd, buf, nbyte, PAD, offset) \ argument 894 (long long)(nbyte), (long long)(PAD), \ [all …]
|