| /dragonfly/crypto/libressl/crypto/pem/ |
| HD | pvkfmt.c | 104 read_lebn(const unsigned char **in, unsigned int nbyte, BIGNUM **r) in read_lebn() argument 110 p = *in + nbyte - 1; in read_lebn() 111 tmpbuf = malloc(nbyte); in read_lebn() 115 for (i = 0; i < nbyte; i++) in read_lebn() 117 *r = BN_bin2bn(tmpbuf, nbyte, NULL); in read_lebn() 120 *in += nbyte; in read_lebn() 221 unsigned int nbyte, hnbyte; in blob_length() local 223 nbyte = (bitlen + 7) >> 3; in blob_length() 231 return 44 + 3 * nbyte; in blob_length() 236 return 64 + 2 * nbyte; in blob_length() [all …]
|
| /dragonfly/stand/boot/common/ |
| HD | ufsread.c | 211 boot2_ufs_read_size(boot2_ino_t boot2_inode, void *buf, size_t nbyte, in boot2_ufs_read_size() argument 276 if (nbyte > n) in boot2_ufs_read_size() 277 nbyte = n; in boot2_ufs_read_size() 278 nb = nbyte; in boot2_ufs_read_size() 330 return nbyte; in boot2_ufs_read_size() 334 boot2_ufs_read(boot2_ino_t boot2_inode, void *buf, size_t nbyte) in boot2_ufs_read() argument 336 return boot2_ufs_read_size(boot2_inode, buf, nbyte, NULL); in boot2_ufs_read()
|
| /dragonfly/stand/boot/pc32/btxld/ |
| HD | btxld.c | 423 copy(int fdi, int fdo, size_t nbyte, off_t offset) in copy() argument 428 while (nbyte) { in copy() 429 if ((n = sizeof(buf)) > nbyte) in copy() 430 n = nbyte; in copy() 434 nbyte -= n; in copy() 443 readx(int fd, void *buf, size_t nbyte, off_t offset) in readx() argument 449 if ((n = read(fd, buf, nbyte)) == -1) in readx() 458 writex(int fd, const void *buf, size_t nbyte) in writex() argument 462 if ((n = write(fd, buf, nbyte)) == -1) in writex() 464 if ((size_t)n != nbyte) in writex()
|
| /dragonfly/sys/kern/ |
| HD | kern_checkpoint.c | 93 read_check(struct file *fp, void *buf, size_t nbyte) in read_check() argument 98 PRINTF(("reading %zd bytes\n", nbyte)); in read_check() 99 error = fp_read(fp, buf, nbyte, &nread, 1, UIO_SYSSPACE); in read_check() 102 } else if (nread != nbyte) { in read_check() 103 PRINTF(("wanted to read %zd - read %zd\n", nbyte, nread)); in read_check() 112 size_t nbyte = sizeof(Elf_Ehdr); in elf_gethdr() local 115 if ((error = read_check(fp, ehdr, nbyte)) != 0) in elf_gethdr() 152 elf_getphdrs(struct file *fp, Elf_Phdr *phdr, size_t nbyte) in elf_getphdrs() argument 156 int nheaders = nbyte/sizeof(Elf_Phdr); in elf_getphdrs() 159 if ((error = read_check(fp, phdr, nbyte)) != 0) in elf_getphdrs() [all …]
|
| HD | sys_generic.c | 130 if ((ssize_t)uap->nbyte < 0) in sys_read() 134 aiov.iov_len = uap->nbyte; in sys_read() 138 auio.uio_resid = uap->nbyte; in sys_read() 161 if ((ssize_t)uap->nbyte < 0) in sys_extpread() 165 aiov.iov_len = uap->nbyte; in sys_extpread() 169 auio.uio_resid = uap->nbyte; in sys_extpread() 336 if ((ssize_t)uap->nbyte < 0) in sys_write() 340 aiov.iov_len = uap->nbyte; in sys_write() 344 auio.uio_resid = uap->nbyte; in sys_write() 368 if ((ssize_t)uap->nbyte < 0) in sys_extpwrite() [all …]
|
| /dragonfly/stand/lib/ |
| HD | dosfs.c | 248 dos_read(struct open_file *fd, void *buf, size_t nbyte, size_t *resid) in dos_read() argument 255 nb = (u_int)nbyte; in dos_read() 294 *resid = nbyte - nb + cnt; in dos_read() 736 ioread(DOS_FS *fs, u_int offset, void *buf, u_int nbyte) in ioread() argument 748 if ((n = SECSIZ - off) > nbyte) in ioread() 749 n = nbyte; in ioread() 752 nbyte -= n; in ioread() 754 n = nbyte & (SECSIZ - 1); in ioread() 755 if (nbyte -= n) { in ioread() 756 if ((err = ioget(fs->fd, bytsec(offset), s, bytsec(nbyte)))) in ioread() [all …]
|
| /dragonfly/lib/libc/sys/ |
| HD | pread.c | 42 pread(int fd, void *buf, size_t nbyte, off_t offset) in pread() argument 44 return (extpread(fd, buf, nbyte, 0, offset)); in pread()
|
| HD | pwrite.c | 42 pwrite(int fd, const void *buf, size_t nbyte, off_t offset) in pwrite() argument 44 return (extpwrite(fd, buf, nbyte, 0, offset)); in pwrite()
|
| /dragonfly/contrib/tcsh-6/ |
| HD | 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()
|
| /dragonfly/stand/boot/pc32/boot2/ |
| HD | boot2.c | 219 xfsread(boot2_ino_t inode, void *buf, size_t nbyte) in xfsread() argument 221 if ((size_t)fsapi->fsread(inode, buf, nbyte) != nbyte) { in xfsread()
|
| /dragonfly/sys/sys/ |
| HD | sysproto.h | 35 size_t nbyte; char nbyte_[PAD_(size_t)]; member 40 size_t nbyte; char nbyte_[PAD_(size_t)]; member 491 size_t nbyte; char nbyte_[PAD_(size_t)]; member 498 size_t nbyte; char nbyte_[PAD_(size_t)]; member 1144 size_t nbyte; char nbyte_[PAD_(size_t)]; member 1151 size_t nbyte; char nbyte_[PAD_(size_t)]; member
|
| /dragonfly/usr.bin/telnet/ |
| HD | commands.c | 252 int nbyte; /* Number of bytes to send this command */ member 335 count += s->nbyte; in sendcmd()
|