Searched refs:nbytes (Results 1 - 25 of 250) sorted by relevance

12345678910

/freebsd-11-stable/crypto/heimdal/lib/roken/
H A Dswab.c40 swab (char *from, char *to, int nbytes) argument
42 while(nbytes >= 2) {
47 nbytes -= 2;
H A Deread.c43 eread (int fd, void *buf, size_t nbytes) argument
47 ret = net_read (fd, buf, nbytes);
H A Dewrite.c43 ewrite (int fd, const void *buf, size_t nbytes) argument
47 ret = net_write (fd, buf, nbytes);
H A Dnet_read.c45 net_read (rk_socket_t fd, void *buf, size_t nbytes) argument
49 size_t rem = nbytes;
64 return nbytes;
70 net_read(rk_socket_t sock, void *buf, size_t nbytes) argument
74 size_t rem = nbytes;
115 return nbytes;
H A Dnet_write.c45 net_write (rk_socket_t fd, const void *buf, size_t nbytes) argument
49 size_t rem = nbytes;
62 return nbytes;
68 net_write(rk_socket_t sock, const void *buf, size_t nbytes) argument
72 size_t rem = nbytes;
104 return nbytes;
/freebsd-11-stable/lib/libcasper/services/cap_random/
H A Dcap_random.h35 int cap_random_buf(cap_channel_t *chan, void *buf, size_t nbytes);
/freebsd-11-stable/usr.sbin/bhyve/
H A Dsockstream.h34 ssize_t stream_read(int fd, void *buf, ssize_t nbytes);
35 ssize_t stream_write(int fd, const void *buf, ssize_t nbytes);
H A Dsockstream.c42 stream_read(int fd, void *buf, ssize_t nbytes) argument
50 while (len < nbytes) {
51 n = read(fd, p + len, nbytes - len);
66 stream_write(int fd, const void *buf, ssize_t nbytes) argument
74 while (len < nbytes) {
75 n = write(fd, p + len, nbytes - len);
/freebsd-11-stable/contrib/ntp/libntp/
H A Dntp_crypto_rnd.c30 arc4random_buf(void *buf, size_t nbytes);
33 evutil_secure_rng_get_bytes(void *buf, size_t nbytes);
36 arc4random_buf(void *buf, size_t nbytes) argument
38 evutil_secure_rng_get_bytes(buf, nbytes);
91 size_t nbytes
97 rc = RAND_bytes(buf, size2int_chk(nbytes));
111 arc4random_buf(buf, nbytes);
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/speculation/
H A Derr.D_ACT_SPEC.SpeculateWithCopyOut.d43 size_t nbytes;
48 nbytes = 10;
57 copyout(buf, addr, nbytes);
/freebsd-11-stable/sys/compat/linuxkpi/common/include/linux/
H A Drandom.h39 get_random_bytes(void *buf, int nbytes) argument
42 if (read_random(buf, nbytes) == 0)
43 arc4rand(buf, nbytes, 0);
/freebsd-11-stable/secure/usr.bin/bdes/
H A Dbdes.c674 int nbytes; /* number of bytes to read */ local
682 nbytes = fbbits / 8;
686 for (bn = 1; (n = READ(ibuf, nbytes)) == nbytes; bn++) {
689 for (n = 0; n < 8 - nbytes; n++)
690 ivec[n] = ivec[n+nbytes];
691 for (n = 0; n < nbytes; n++)
692 ivec[8 - nbytes + n] = ibuf[n] ^ msgbuf[n];
693 WRITE(&ivec[8 - nbytes], nbytes);
717 int nbytes; /* number of bytes to read */ local
763 int nbytes; /* number of bytes to read */ local
809 int nbytes; /* number of bytes to read */ local
857 int nbytes; /* number of bytes to read */ local
903 int nbytes; /* number of bytes to read */ local
952 int nbytes; /* number of bytes to read */ local
[all...]
/freebsd-11-stable/contrib/ntp/include/
H A Dntp_random.h5 int ntp_crypto_random_buf(void *buf, size_t nbytes);
/freebsd-11-stable/lib/libc/sys/
H A Dread.c45 read(int fd, void *buf, size_t nbytes) argument
49 __libc_interposing[INTERPOS_read])(fd, buf, nbytes));
H A Dwrite.c45 write(int fd, const void *buf, size_t nbytes) argument
49 __libc_interposing[INTERPOS_write])(fd, buf, nbytes));
/freebsd-11-stable/contrib/groff/src/libs/libbib/
H A Dmap.c41 char *mapread(int fd, int nbytes) argument
43 char *p = (char *)mmap((void *)0, (size_t)nbytes, PROT_READ,
70 char *mapread(int fd, int nbytes) argument
/freebsd-11-stable/lib/libc/stdio/
H A Dfmemopen.c47 static int fmemopen_read(void *cookie, char *buf, int nbytes);
48 static int fmemopen_write(void *cookie, const char *buf, int nbytes);
165 fmemopen_read(void *cookie, char *buf, int nbytes) argument
169 if (nbytes > ck->len - ck->off)
170 nbytes = ck->len - ck->off;
172 if (nbytes == 0)
175 memcpy(buf, ck->buf + ck->off, nbytes);
177 ck->off += nbytes;
179 return (nbytes);
183 fmemopen_write(void *cookie, const char *buf, int nbytes) argument
[all...]
/freebsd-11-stable/contrib/libarchive/libarchive/
H A Darchive_random_private.h34 int archive_random(void *buf, size_t nbytes);
/freebsd-11-stable/contrib/apr/file_io/unix/
H A Dfullrw.c21 apr_size_t nbytes,
28 apr_size_t amt = nbytes;
32 nbytes -= amt;
34 } while (status == APR_SUCCESS && nbytes > 0);
44 apr_size_t nbytes,
51 apr_size_t amt = nbytes;
55 nbytes -= amt;
57 } while (status == APR_SUCCESS && nbytes > 0);
H A Dreadwrite.c29 apr_size_t *nbytes)
34 apr_uint64_t size = *nbytes;
78 *nbytes = pos - (char *)buf;
79 if (*nbytes) {
85 APR_DECLARE(apr_status_t) apr_file_read(apr_file_t *thefile, void *buf, apr_size_t *nbytes)
90 if (*nbytes <= 0) {
91 *nbytes = 0;
97 rv = file_read_buffered(thefile, buf, nbytes);
107 (*nbytes)--;
109 if (*nbytes
28 file_read_buffered(apr_file_t *thefile, void *buf, apr_size_t *nbytes) argument
286 apr_size_t nbytes = 1; local
299 apr_size_t nbytes = 1; local
406 apr_size_t nbytes; local
[all...]
/freebsd-11-stable/lib/libc/locale/
H A Dwcsnrtombs.c68 size_t nbytes; local
72 nbytes = 0;
80 return (nbytes + nb - 1);
82 nbytes += nb;
84 return (nbytes);
116 return (nbytes + nb - 1);
121 nbytes += nb;
124 return (nbytes);
/freebsd-11-stable/contrib/expat/xmlwf/
H A Dunixfilemap.c60 size_t nbytes; local
84 nbytes = sb.st_size;
86 if (nbytes == 0) {
92 p = (void *)mmap((void *)0, (size_t)nbytes, PROT_READ, MAP_FILE | MAP_PRIVATE,
99 processor(p, nbytes, name, arg);
100 munmap((void *)p, nbytes);
H A Dreadfilemap.c83 size_t nbytes; local
109 nbytes = sb.st_size;
110 /* malloc will return NULL with nbytes == 0, handle files with size 0 */
111 if (nbytes == 0) {
117 p = malloc(nbytes);
123 n = _EXPAT_read(fd, p, (_EXPAT_read_req_t)nbytes);
130 if (n != (_EXPAT_read_count_t)nbytes) {
136 processor(p, nbytes, name, arg);
/freebsd-11-stable/bin/sh/
H A Dmemalloc.c56 ckmalloc(size_t nbytes) argument
61 p = malloc(nbytes);
74 ckrealloc(pointer p, int nbytes) argument
77 p = realloc(p, nbytes);
135 stnewblock(int nbytes) argument
140 if (nbytes < MINSIZE)
141 nbytes = MINSIZE;
143 allocsize = ALIGN(sizeof(struct stack_block)) + ALIGN(nbytes);
157 stalloc(int nbytes) argument
161 nbytes
[all...]
/freebsd-11-stable/sys/netinet/libalias/
H A Dalias_util.c75 int nbytes)
81 while (nbytes > 1) {
83 nbytes -= 2;
85 if (nbytes == 1) {
111 int nhdr, ntcp, nbytes; local
121 nbytes = ntcp;
123 while (nbytes > 1) {
125 nbytes -= 2;
127 if (nbytes == 1) {
74 LibAliasInternetChecksum(struct libalias *la __unused, u_short * ptr, int nbytes) argument

Completed in 299 milliseconds

12345678910