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

123456789

/freebsd-10.0-release/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-10.0-release/sys/ofed/include/linux/
H A Drandom.h35 get_random_bytes(void *buf, int nbytes) argument
37 read_random(buf, nbytes);
/freebsd-10.0-release/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-10.0-release/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-10.0-release/contrib/expat/xmlwf/
H A Dreadfilemap.c48 size_t nbytes; local
69 nbytes = sb.st_size;
70 /* malloc will return NULL with nbytes == 0, handle files with size 0 */
71 if (nbytes == 0) {
77 p = malloc(nbytes);
83 n = read(fd, p, nbytes);
90 if (n != nbytes) {
96 processor(p, nbytes, name, arg);
H A Dunixfilemap.c26 size_t nbytes; local
46 nbytes = sb.st_size;
48 if (nbytes == 0) {
54 p = (void *)mmap((caddr_t)0, (size_t)nbytes, PROT_READ,
61 processor(p, nbytes, name, arg);
62 munmap((caddr_t)p, nbytes);
/freebsd-10.0-release/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-10.0-release/lib/libkse/thread/
H A Dthr_read.c43 ssize_t __read(int fd, void *buf, size_t nbytes);
48 __read(int fd, void *buf, size_t nbytes) argument
54 ret = __sys_read(fd, buf, nbytes);
H A Dthr_write.c40 __ssize_t __write(int fd, const void *buf, size_t nbytes);
45 __write(int fd, const void *buf, size_t nbytes) argument
51 ret = __sys_write(fd, buf, nbytes);
/freebsd-10.0-release/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);
161 fmemopen_read(void *cookie, char *buf, int nbytes) argument
165 if (nbytes > ck->len - ck->off)
166 nbytes = ck->len - ck->off;
168 if (nbytes == 0)
171 memcpy(buf, ck->buf + ck->off, nbytes);
173 ck->off += nbytes;
175 return (nbytes);
179 fmemopen_write(void *cookie, const char *buf, int nbytes) argument
[all...]
H A Dxprintf_str.c60 size_t clen, nbytes; local
66 nbytes = wcsrtombs(NULL, (const wchar_t **)&p, 0, &mbs);
67 if (nbytes == (size_t)-1)
76 nbytes = prec;
78 nbytes = 0;
84 (int)(nbytes + clen) > prec)
86 nbytes += clen;
90 if ((convbuf = malloc(nbytes + 1)) == NULL)
96 if ((nbytes = wcsrtombs(convbuf, (const wchar_t **)&p,
97 nbytes,
[all...]
/freebsd-10.0-release/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
404 apr_size_t nbytes; local
[all...]
/freebsd-10.0-release/lib/libc/locale/
H A Dwcsnrtombs.c65 size_t nbytes; local
70 nbytes = 0;
78 return (nbytes + nb - 1);
80 nbytes += nb;
82 return (nbytes);
114 return (nbytes + nb - 1);
119 nbytes += nb;
122 return (nbytes);
/freebsd-10.0-release/contrib/llvm/lib/Target/NVPTX/
H A DNVPTXutil.cpp36 static int encode_leb128(uint64_t val, int *nbytes, char *space, int splen) { argument
53 *nbytes = a - space;
73 int nbytes; local
75 int retval = encode_leb128(temp64.x, &nbytes, encoded, 16);
80 assert(nbytes <= 8 &&
84 for (int i = 0; i < nbytes; ++i)
/freebsd-10.0-release/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);
133 stnewblock(int nbytes) argument
138 if (nbytes < MINSIZE)
139 nbytes = MINSIZE;
141 allocsize = ALIGN(sizeof(struct stack_block)) + ALIGN(nbytes);
155 stalloc(int nbytes) argument
159 nbytes
[all...]
/freebsd-10.0-release/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
/freebsd-10.0-release/contrib/gcc/config/
H A Dhost-hpux.c123 ssize_t nbytes; local
125 nbytes = read (fd, base, MIN (size, SSIZE_MAX));
126 if (nbytes <= 0)
128 base = (char *) base + nbytes;
129 size -= nbytes;
/freebsd-10.0-release/sys/sparc64/isa/
H A Disa_dma.c69 isa_dmastart(int flags, caddr_t addr, u_int nbytes, int chan) argument
75 isa_dmadone(int flags, caddr_t addr, int nbytes, int chan) argument
/freebsd-10.0-release/usr.sbin/fdread/
H A Dfdread.c163 unsigned int nbytes, tracksize, mediasize, secsize, n; local
180 for (nbytes = 0; nbytes < mediasize;) {
181 if (lseek(fd, nbytes, SEEK_SET) != nbytes)
186 warnx("premature EOF after %u bytes", nbytes);
190 nbytes += rv;
192 fprintf(stderr, "%5d KB\r", nbytes / 1024);
200 if (lseek(fd, nbytes, SEEK_SET) != nbytes)
[all...]
/freebsd-10.0-release/contrib/file/
H A Dis_tar.c63 file_is_tar(struct magic_set *ms, const unsigned char *buf, size_t nbytes) argument
75 tar = is_tar(buf, nbytes);
93 is_tar(const unsigned char *buf, size_t nbytes) argument
100 if (nbytes < sizeof(union record))

Completed in 248 milliseconds

123456789