| /netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/pem/ |
| H A D | pvkfmt.c | 45 static int read_lebn(const unsigned char **in, unsigned int nbyte, BIGNUM **r) in read_lebn() argument 47 *r = BN_lebin2bn(*in, nbyte, NULL); in read_lebn() 50 *in += nbyte; in read_lebn() 151 unsigned int nbyte, hnbyte; in blob_length() local 152 nbyte = (bitlen + 7) >> 3; in blob_length() 161 return 44 + 3 * nbyte; in blob_length() 167 return 64 + 2 * nbyte; in blob_length() 171 return 4 + nbyte; in blob_length() 177 return 4 + 2 * nbyte + 5 * hnbyte; in blob_length() 251 unsigned int nbyte; in b2i_dss() local [all …]
|
| /netbsd-src/sys/arch/atari/dev/ |
| H A D | md_root.c | 266 cpy_uncompressed(void * buf, int nbyte, struct read_info *rsp) in cpy_uncompressed() argument 269 if ((rsp->bufp + nbyte) >= rsp->ebufp) in cpy_uncompressed() 271 memcpy(rsp->bufp, buf, nbyte); in cpy_uncompressed() 272 rsp->bufp += nbyte; in cpy_uncompressed() 280 md_compressed(void * buf, int nbyte, struct read_info *rsp) in md_compressed() argument 290 nbyte &= ~(DEV_BSIZE - 1); in md_compressed() 292 while (nbyte > 0) { in md_compressed() 297 bp->b_bcount = uimin(rsp->chunk, nbyte); in md_compressed() 315 nbyte -= done; in md_compressed() 322 if ((rsp->offset == rsp->media_sz) && (nbyte != 0)) { in md_compressed()
|
| /netbsd-src/crypto/external/bsd/openssl/dist/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 …]
|
| /netbsd-src/lib/librmt/ |
| H A D | rmtlib.c | 411 _rmt_read(int fildes, void *buf, size_t nbyte) in _rmt_read() argument 421 (void)snprintf(buffer, sizeof buffer, "R%zu\n", nbyte); in _rmt_read() 425 if (rv > (int)nbyte) in _rmt_read() 426 rv = (int)nbyte; in _rmt_read() 444 _rmt_write(int fildes, const void *buf, size_t nbyte) in _rmt_write() argument 451 (void)snprintf(buffer, sizeof buffer, "W%zu\n", nbyte); in _rmt_write() 456 if ((size_t)write(WRITE(fildes), buf, nbyte) == nbyte) { in _rmt_write() 684 rmtread(int fildes, void *buf, size_t nbyte) in rmtread() argument 690 return _rmt_read(fildes - REM_BIAS, buf, nbyte); in rmtread() 692 return read(fildes, buf, nbyte); in rmtread() [all …]
|
| /netbsd-src/external/gpl3/binutils.old/dist/gprofng/libcollector/ |
| H A D | iotrace.c | 55 Size_type nbyte; /* number of bytes */ member 120 static ssize_t (*__real_read)(int fildes, void *buf, size_t nbyte) = NULL; 121 static ssize_t (*__real_write)(int fildes, const void *buf, size_t nbyte) = NULL; 126 static ssize_t (*__real_pread)(int fildes, void *buf, size_t nbyte, off_t offset) = NULL; 127 static ssize_t (*__real_pwrite)(int fildes, const void *buf, size_t nbyte, off_t offset) = NULL; 128 static ssize_t (*__real_pwrite64)(int fildes, const void *buf, size_t nbyte, off64_t offset) = NULL; 140 static int (*__real_getdents)(int fildes, struct dirent *buf, size_t nbyte) = NULL; 168 static ssize_t (*__real_pread_2_2)(int fildes, void *buf, size_t nbyte, off_t offset) = NULL; 169 static ssize_t (*__real_pwrite_2_2)(int fildes, const void *buf, size_t nbyte, off_t offset) = NULL; 170 static ssize_t (*__real_pwrite64_2_2)(int fildes, const void *buf, size_t nbyte, off64_t offset) = … [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/libgfortran/io/ |
| H A D | unix.c | 312 raw_read (unix_stream *s, void *buf, ssize_t nbyte) in raw_read() argument 320 if (nbyte <= MAX_CHUNK) in raw_read() 324 ssize_t trans = read (s->fd, buf, nbyte); in raw_read() 332 ssize_t bytes_left = nbyte; in raw_read() 348 return nbyte - bytes_left; in raw_read() 353 raw_write (unix_stream *s, const void *buf, ssize_t nbyte) in raw_write() argument 358 bytes_left = nbyte; in raw_write() 380 return nbyte - bytes_left; in raw_write() 557 buf_read (unix_stream *s, void *buf, ssize_t nbyte) in buf_read() argument 563 if (s->logical_offset + nbyte <= s->buffer_offset + s->active in buf_read() [all …]
|
| H A D | unix.h | 51 sread (stream *s, void *buf, ssize_t nbyte) in sread() argument 53 return s->vptr->read (s, buf, nbyte); in sread() 57 swrite (stream *s, const void *buf, ssize_t nbyte) in swrite() argument 59 return s->vptr->write (s, buf, nbyte); in swrite()
|
| /netbsd-src/external/gpl3/gcc.old/dist/libgfortran/io/ |
| H A D | unix.c | 312 raw_read (unix_stream *s, void *buf, ssize_t nbyte) in raw_read() argument 320 if (nbyte <= MAX_CHUNK) in raw_read() 324 ssize_t trans = read (s->fd, buf, nbyte); in raw_read() 332 ssize_t bytes_left = nbyte; in raw_read() 348 return nbyte - bytes_left; in raw_read() 353 raw_write (unix_stream *s, const void *buf, ssize_t nbyte) in raw_write() argument 358 bytes_left = nbyte; in raw_write() 380 return nbyte - bytes_left; in raw_write() 557 buf_read (unix_stream *s, void *buf, ssize_t nbyte) in buf_read() argument 563 if (s->logical_offset + nbyte <= s->buffer_offset + s->active in buf_read() [all …]
|
| H A D | unix.h | 51 sread (stream *s, void *buf, ssize_t nbyte) in sread() argument 53 return s->vptr->read (s, buf, nbyte); in sread() 57 swrite (stream *s, const void *buf, ssize_t nbyte) in swrite() argument 59 return s->vptr->write (s, buf, nbyte); in swrite()
|
| /netbsd-src/external/gpl3/binutils/dist/gprofng/libcollector/ |
| H A D | iotrace.c | 49 Size_type nbyte; /* number of bytes */ member 103 static ssize_t (*__real_read)(int fildes, void *buf, size_t nbyte) = NULL; 104 static ssize_t (*__real_write)(int fildes, const void *buf, size_t nbyte) = NULL; 109 static ssize_t (*__real_pread)(int fildes, void *buf, size_t nbyte, off_t offset) = NULL; 110 static ssize_t (*__real_pwrite)(int fildes, const void *buf, size_t nbyte, off_t offset) = NULL; 111 static ssize_t (*__real_pwrite64)(int fildes, const void *buf, size_t nbyte, off64_t offset) = NULL; 123 static int (*__real_getdents)(int fildes, struct dirent *buf, size_t nbyte) = NULL; 160 static ssize_t (*__real_pread_2_2)(int fildes, void *buf, size_t nbyte, off_t offset) = NULL; 161 static ssize_t (*__real_pwrite_2_2)(int fildes, const void *buf, size_t nbyte, off_t offset) = NULL; 170 static ssize_t (*__real_pwrite64_2_2)(int fildes, const void *buf, size_t nbyte, off64_t offset) = … [all …]
|
| /netbsd-src/sys/lib/libsa/ |
| H A D | dosfs.c | 280 dosfs_read(struct open_file *fd, void *vbuf, size_t nbyte, size_t *resid) in dosfs_read() argument 288 nb = (u_int) nbyte; in dosfs_read() 329 *resid = nbyte - nb + cnt; in dosfs_read() 742 ioread(DOS_FS *fs, BYTE_OFF_T offset, void *buf, u_int nbyte) in ioread() argument 754 if ((n = SECSIZ - off) > nbyte) in ioread() 755 n = nbyte; in ioread() 758 nbyte -= n; in ioread() 760 n = nbyte & (SECSIZ - 1); in ioread() 761 if (nbyte -= n) { in ioread() 762 if ((err = ioget(fs->fd, bytsec(offset), s, bytsec(nbyte)))) in ioread() [all …]
|
| /netbsd-src/sys/arch/zaurus/stand/zboot/ |
| H A D | pathfs.c | 45 pathfs_read(struct open_file *fd, void *vbuf, size_t nbyte, size_t *resid) in pathfs_read() argument 51 while (off < nbyte) { in pathfs_read() 52 rsz = uread((int)fd->f_devdata, buf + off, nbyte - off); in pathfs_read()
|
| /netbsd-src/sys/kern/ |
| H A D | sys_generic.c | 121 return (dofileread(fd, fp, SCARG(uap, buf), SCARG(uap, nbyte), in sys_read() 126 dofileread(int fd, struct file *fp, void *buf, size_t nbyte, in dofileread() argument 138 aiov.iov_len = nbyte; in dofileread() 141 auio.uio_resid = nbyte; in dofileread() 320 return (dofilewrite(fd, fp, SCARG(uap, buf), SCARG(uap, nbyte), in sys_write() 326 size_t nbyte, off_t *offset, int flags, register_t *retval) in dofilewrite() argument 334 aiov.iov_len = nbyte; in dofilewrite() 337 auio.uio_resid = nbyte; in dofilewrite()
|
| /netbsd-src/lib/libc/sys/ |
| H A D | pwrite.c | 58 _sys_pwrite(int fd, const void *buf, size_t nbyte, off_t offset) in _sys_pwrite() argument 61 return __pwrite(fd, buf, nbyte, 0, offset); in _sys_pwrite()
|
| H A D | pread.c | 58 _sys_pread(int fd, void *buf, size_t nbyte, off_t offset) in _sys_pread() argument 61 return __pread(fd, buf, nbyte, 0, offset); in _sys_pread()
|
| /netbsd-src/sys/compat/linux32/common/ |
| H A D | linux32_unistd.c | 787 SCARG(&pra, nbyte) = SCARG(uap, nbyte); in linux32_sys_pread() 811 SCARG(&pra, nbyte) = SCARG(uap, nbyte); in linux32_sys_pwrite()
|
| /netbsd-src/sys/compat/netbsd32/ |
| H A D | netbsd32_netbsd.c | 184 if (SCARG(uap, nbyte) > NETBSD32_SSIZE_MAX) in netbsd32_read() 189 NETBSD32TOX_UAP(nbyte, size_t); in netbsd32_read() 203 if (SCARG(uap, nbyte) > NETBSD32_SSIZE_MAX) in netbsd32_write() 208 NETBSD32TOX_UAP(nbyte, size_t); in netbsd32_write() 1189 if (SCARG(uap, nbyte) > NETBSD32_SSIZE_MAX) in netbsd32_pread() 1194 NETBSD32TOX_UAP(nbyte, size_t); in netbsd32_pread() 1213 if (SCARG(uap, nbyte) > NETBSD32_SSIZE_MAX) in netbsd32_pwrite() 1218 NETBSD32TOX_UAP(nbyte, size_t); in netbsd32_pwrite()
|
| /netbsd-src/sys/compat/linux/common/ |
| H A D | linux_file.c | 806 syscallarg(size_t) nbyte; in linux_sys_pwrite() 813 SCARG(&pra, nbyte) = SCARG(uap, nbyte); in linux_sys_pwrite() 830 syscallarg(size_t) nbyte; in linux_sys_preadv() 837 SCARG(&pra, nbyte) = SCARG(uap, nbyte); in linux_sys_preadv()
|
| /netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/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 …]
|
| /netbsd-src/sys/external/bsd/compiler_rt/dist/include/sanitizer/ |
| H A D | netbsd_syscall_hooks.h | 50 #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)) 59 #define __sanitizer_syscall_post_write(res, fd, buf, nbyte) \ argument 61 (long long)(nbyte)) 893 #define __sanitizer_syscall_pre_pread(fd, buf, nbyte, PAD, offset) \ argument 895 (long long)(nbyte), (long long)(PAD), \ [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/libsanitizer/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 …]
|
| /netbsd-src/external/gpl3/binutils/dist/gprofng/src/ |
| H A D | util.cc | 1393 read_from_file (int fd, void *buffer, int64_t nbyte) in read_from_file() argument 1397 while (nbyte > 0) in read_from_file() 1399 ssize_t n = read (fd, (void *) (buf + cnt), (size_t) nbyte); in read_from_file() 1402 nbyte -= n; in read_from_file()
|
| H A D | util.h | 186 int64_t read_from_file (int fd, void *buffer, int64_t nbyte);
|
| /netbsd-src/external/gpl3/binutils.old/dist/gprofng/src/ |
| H A D | util.cc | 1393 read_from_file (int fd, void *buffer, int64_t nbyte) in read_from_file() argument 1397 while (nbyte > 0) in read_from_file() 1399 ssize_t n = read (fd, (void *) (buf + cnt), (size_t) nbyte); in read_from_file() 1402 nbyte -= n; in read_from_file()
|
| H A D | util.h | 176 int64_t read_from_file (int fd, void *buffer, int64_t nbyte);
|