Home
last modified time | relevance | path

Searched refs:nbyte (Results 1 – 25 of 43) sorted by relevance

12

/freebsd-10-stable/usr.sbin/kgzip/
Dxio.c50 size_t nbyte, off_t offset) in xcopy() argument
55 while (nbyte) { in xcopy()
56 if ((n = sizeof(buf)) > nbyte) in xcopy()
57 n = nbyte; in xcopy()
61 nbyte -= n; in xcopy()
70 xzero(const struct iodesc * id, size_t nbyte) in xzero() argument
76 while (nbyte) { in xzero()
77 if ((n = sizeof(buf)) > nbyte) in xzero()
78 n = nbyte; in xzero()
80 nbyte -= n; in xzero()
[all …]
/freebsd-10-stable/crypto/openssl/crypto/pem/
Dpvkfmt.c94 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-10-stable/tools/tools/kttcp/sys/
Dkttcp.c146 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-10-stable/lib/libc/sys/
Dpwrite.c46 pwrite(fd, buf, nbyte, offset) in pwrite() argument
49 size_t nbyte;
53 return (__sys_pwrite(fd, buf, nbyte, offset));
55 return (__sys_freebsd6_pwrite(fd, buf, nbyte, 0, offset));
Dpread.c46 pread(fd, buf, nbyte, offset) in pread() argument
49 size_t nbyte;
54 return (__sys_pread(fd, buf, nbyte, offset));
56 return (__sys_freebsd6_pread(fd, buf, nbyte, 0, offset));
/freebsd-10-stable/sys/boot/common/
Dufsread.c168 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()
/freebsd-10-stable/sys/compat/svr4/
Dsvr4_filio.c116 ra.nbyte = uap->nbyte;
139 uap->fd, uap->buf, uap->nbyte, rv));
181 wa.nbyte = uap->nbyte;
186 uap->fd, uap->buf, uap->nbyte, rv));
Dsvr4_fcntl.c516 pra.nbyte = uap->nbyte;
540 pra.nbyte = uap->nbyte;
561 pwa.nbyte = uap->nbyte;
584 pwa.nbyte = uap->nbyte;
/freebsd-10-stable/usr.sbin/btxld/
Dbtxld.c446 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-10-stable/lib/libstand/
Ddosfs.c240 dos_read(struct open_file *fd, void *buf, size_t nbyte, size_t *resid) in dos_read() argument
247 nb = (u_int)nbyte; in dos_read()
286 *resid = nbyte - nb + cnt; in dos_read()
714 ioread(DOS_FS *fs, u_int offset, void *buf, u_int nbyte) in ioread() argument
726 if ((n = SECSIZ - off) > nbyte) in ioread()
727 n = nbyte; in ioread()
730 nbyte -= n; in ioread()
732 n = nbyte & (SECSIZ - 1); in ioread()
733 if (nbyte -= n) { in ioread()
734 if ((err = ioget(fs->fd, bytsec(offset), s, bytsec(nbyte)))) in ioread()
[all …]
/freebsd-10-stable/sys/kern/
Dsys_generic.c165 size_t nbyte; member
177 if (uap->nbyte > IOSIZE_MAX)
180 aiov.iov_len = uap->nbyte;
183 auio.uio_resid = uap->nbyte;
196 size_t nbyte; member
210 if (uap->nbyte > IOSIZE_MAX)
213 aiov.iov_len = uap->nbyte;
216 auio.uio_resid = uap->nbyte;
231 oargs.nbyte = uap->nbyte;
377 size_t nbyte; member
[all …]
/freebsd-10-stable/contrib/apr-util/include/
Dapr_buckets.h828 const char *str, apr_size_t nbyte);
1364 apr_size_t nbyte,
1376 apr_size_t nbyte);
1386 apr_size_t nbyte,
1398 apr_size_t nbyte);
1415 apr_size_t nbyte,
1428 apr_size_t nbyte,
/freebsd-10-stable/tools/tools/vhba/lots/
Dvhba_lots.c126 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-10-stable/tools/tools/vhba/medium/
Dvhba_medium.c126 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-10-stable/tools/tools/vhba/simple/
Dvhba_simple.c126 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-10-stable/sys/boot/i386/boot2/
Dboot2.c146 xfsread(ufs_ino_t inode, void *buf, size_t nbyte) in xfsread() argument
148 if ((size_t)fsread(inode, buf, nbyte) != nbyte) { in xfsread()
199 size_t nbyte; in main() local
217 nbyte = fsread(ino, cmd, sizeof(cmd) - 1); in main()
218 cmd[nbyte] = '\0'; in main()
/freebsd-10-stable/tools/tools/vhba/rptluns/
Dvhba_rptluns.c155 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-10-stable/tools/tools/vhba/faulty/
Dvhba_faulty.c140 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-10-stable/sys/boot/arm/at91/boot2/
Dboot2.c77 xfsread(ufs_ino_t inode, void *buf, size_t nbyte) in xfsread() argument
79 if ((size_t)fsread(inode, buf, nbyte) != nbyte) in xfsread()
/freebsd-10-stable/sys/boot/pc98/boot2/
Dboot2.c148 xfsread(ufs_ino_t inode, void *buf, size_t nbyte) in xfsread() argument
150 if ((size_t)fsread(inode, buf, nbyte) != nbyte) { in xfsread()
328 size_t nbyte; in main() local
356 nbyte = fsread(ino, cmd, sizeof(cmd) - 1); in main()
357 cmd[nbyte] = '\0'; in main()
/freebsd-10-stable/contrib/apr-util/buckets/
Dapr_brigade.c432 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-10-stable/contrib/tcsh/
Dsh.misc.c655 xread(int fildes, void *buf, size_t nbyte) in xread() argument
664 while ((res = read(fildes, buf, nbyte)) == -1 && errno == EINTR); in xread()
683 xwrite(int fildes, const void *buf, size_t nbyte) in xwrite() argument
692 while ((res = write(fildes, buf, nbyte)) == -1 && errno == EINTR); in xwrite()
/freebsd-10-stable/tools/tools/vhba/mptest/
Dvhba_mptest.c166 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-10-stable/sys/boot/arm/ixp425/boot2/
Dboot2.c78 xfsread(ufs_ino_t inode, void *buf, size_t nbyte) in xfsread() argument
80 if ((size_t)fsread(inode, buf, nbyte) != nbyte) in xfsread()
/freebsd-10-stable/sys/boot/i386/gptboot/
Dgptboot.c95 xfsread(ufs_ino_t inode, void *buf, size_t nbyte) in xfsread() argument
98 if ((size_t)fsread(inode, buf, nbyte) != nbyte) { in xfsread()

12