Searched refs:bufsize (Results 1 - 25 of 323) sorted by relevance

1234567891011>>

/external/libvncserver/libvncserver/
H A Drfbssl.h9 int rfbssl_peek(rfbClientPtr cl, char *buf, int bufsize);
10 int rfbssl_read(rfbClientPtr cl, char *buf, int bufsize);
11 int rfbssl_write(rfbClientPtr cl, const char *buf, int bufsize);
H A Drfbssl_none.c36 int rfbssl_write(rfbClientPtr cl, const char *buf, int bufsize) argument
41 int rfbssl_peek(rfbClientPtr cl, char *buf, int bufsize) argument
46 int rfbssl_read(rfbClientPtr cl, char *buf, int bufsize) argument
H A Drfbssl_gnutls.c148 static int rfbssl_do_read(rfbClientPtr cl, char *buf, int bufsize) argument
153 while ((ret = gnutls_record_recv(ctx->session, buf, bufsize)) < 0) {
172 int rfbssl_write(rfbClientPtr cl, const char *buf, int bufsize) argument
177 while ((ret = gnutls_record_send(ctx->session, buf, bufsize)) < 0) {
193 static void rfbssl_gc_peekbuf(struct rfbssl_ctx *ctx, int bufsize) argument
197 if (spaceleft < bufsize) {
204 static int __rfbssl_read(rfbClientPtr cl, char *buf, int bufsize, int peek) argument
209 rfbssl_gc_peekbuf(ctx, bufsize);
213 ret = bufsize < ctx->peeklen ? bufsize
241 rfbssl_read(rfbClientPtr cl, char *buf, int bufsize) argument
246 rfbssl_peek(rfbClientPtr cl, char *buf, int bufsize) argument
[all...]
H A Drfbssl_openssl.c86 int rfbssl_write(rfbClientPtr cl, const char *buf, int bufsize) argument
91 while ((ret = SSL_write(ctx->ssl, buf, bufsize)) <= 0) {
98 int rfbssl_peek(rfbClientPtr cl, char *buf, int bufsize) argument
103 while ((ret = SSL_peek(ctx->ssl, buf, bufsize)) <= 0) {
110 int rfbssl_read(rfbClientPtr cl, char *buf, int bufsize) argument
115 while ((ret = SSL_read(ctx->ssl, buf, bufsize)) <= 0) {
/external/c-ares/
H A Dares__read_line.c28 * ares__read_line multiple times with the same buf and bufsize
29 * pointers; *buf will be reallocated and *bufsize adjusted as
33 int ares__read_line(FILE *fp, char **buf, size_t *bufsize) argument
44 *bufsize = 128;
49 int bytestoread = aresx_uztosi(*bufsize - offset);
60 if(len < *bufsize - 1)
64 newbuf = realloc(*buf, *bufsize * 2);
68 *bufsize *= 2;
/external/dtc/libfdt/
H A Dfdt_empty_tree.c58 int fdt_create_empty_tree(void *buf, int bufsize) argument
62 err = fdt_create(buf, bufsize);
82 return fdt_open_into(buf, buf, bufsize);
/external/vboot_reference/utility/include/
H A Dimage_types.h17 ImageFormat identify_image_type(const void *buf, uint32_t bufsize,
/external/ltp/testcases/kernel/fs/mongo/
H A Dmongo_read.c22 int bufsize = 4096; local
30 buf = malloc(bufsize);
32 printf("Malloc failed on %d\n", bufsize);
47 while ((rd = read(fd, buf, bufsize)) == bufsize) ;
/external/python/cpython2/Lib/
H A Dpopen2.py40 def __init__(self, cmd, capturestderr=False, bufsize=-1):
47 process. The default is false. If the 'bufsize' parameter is
65 self.tochild = os.fdopen(p2cwrite, 'w', bufsize)
67 self.fromchild = os.fdopen(c2pread, 'r', bufsize)
70 self.childerr = os.fdopen(errout, 'r', bufsize)
119 def __init__(self, cmd, bufsize=-1):
132 self.tochild = os.fdopen(p2cwrite, 'w', bufsize)
134 self.fromchild = os.fdopen(c2pread, 'r', bufsize)
141 def popen2(cmd, bufsize=-1, mode='t'):
146 'bufsize' i
[all...]
/external/libcups/cups/
H A Dppd-attr.c144 size_t bufsize) /* I - Size of string buffer */
149 if (!make_and_model || !buffer || bufsize < 1)
170 strlcpy(buffer, make_and_model + 1, bufsize);
181 snprintf(buffer, bufsize, "Xerox %s", make_and_model);
189 snprintf(buffer, bufsize, "Kodak %s", make_and_model + 7);
197 snprintf(buffer, bufsize, "Apple LaserWriter%s", make_and_model + 11);
205 snprintf(buffer, bufsize, "Seiko %s", make_and_model);
213 snprintf(buffer, bufsize, "EFI %s", make_and_model);
222 snprintf(buffer, bufsize, "Canon %s", make_and_model);
231 snprintf(buffer, bufsize, "H
141 _ppdNormalizeMakeAndModel( const char *make_and_model, char *buffer, size_t bufsize) argument
[all...]
H A Dtls.c81 httpCredentialsString(cups_array_t *credentials, char *buffer, size_t bufsize) argument
84 (void)bufsize;
/external/syslinux/core/fs/
H A Dchdir.c21 static size_t copy_string(char *buf, size_t ix, size_t bufsize, const char *src) argument
26 if (ix+1 < bufsize)
31 if (ix < bufsize)
37 static size_t generic_inode_to_path(struct inode *inode, char *dst, size_t bufsize) argument
47 s = generic_inode_to_path(inode->parent, dst, bufsize);
51 s = copy_string(dst, s, bufsize, "/");
52 s = copy_string(dst, s, bufsize, inode->name);
58 __export size_t realpath(char *dst, const char *src, size_t bufsize) argument
67 s = this_fs->fs_ops->realpath(this_fs, dst, src, bufsize);
76 s = generic_inode_to_path(file->inode, dst, bufsize);
[all...]
/external/dtc/tests/
H A Dmove_and_save.c37 int bufsize; local
47 bufsize = fdt_totalsize(fdt) + shuntsize;
48 buf = xmalloc(bufsize);
51 err = fdt_move(fdt, fdt1, bufsize);
59 err = fdt_move(fdt1, fdt2, bufsize-shuntsize);
67 err = fdt_move(fdt2, fdt3, bufsize);
H A Dopen_pack.c36 int oldsize, bufsize, packsize; local
47 bufsize = oldsize * 2;
49 buf = xmalloc(bufsize);
51 memset(buf, 0, bufsize);
54 err = fdt_open_into(fdt, fdt1, bufsize);
68 verbose_printf("oldsize = %d, bufsize = %d, packsize = %d\n",
69 oldsize, bufsize, packsize);
/external/fec/
H A Dsumsq_test.c30 int bufsize = 2048; local
61 bufsize = atoi(optarg);
75 buf = (signed short *)calloc(bufsize,sizeof(signed short));
78 (void)sumsq(buf,bufsize);
85 length = (random() % bufsize) - offset;
88 for(i=0;i<bufsize;i++)
/external/ltp/utils/sctp/lib/
H A Daddrs.c42 size_t bufsize = 4096; /*enough for most cases*/ local
44 struct sctp_getaddrs *getaddrs = (struct sctp_getaddrs*)malloc(bufsize);
51 len = bufsize;
64 if (bufsize > 128*1024) {
70 new_buf = realloc(getaddrs, bufsize+4096);
75 bufsize += 4096;
/external/vboot_reference/firmware/lib/
H A Dutility_string.c13 uint32_t Uint64ToString(char *buf, uint32_t bufsize, uint64_t value, argument
38 if (++usedsize > bufsize)
45 if (++usedsize > bufsize)
/external/python/cpython2/Python/
H A Dgetargs.c425 int *levels, char *msgbuf, size_t bufsize, int toplevel,
453 PyOS_snprintf(msgbuf, bufsize,
463 PyOS_snprintf(msgbuf, bufsize,
479 strncpy(msgbuf, "is not retrievable", bufsize);
483 msgbuf, bufsize, freelist);
501 int *levels, char *msgbuf, size_t bufsize, PyObject **freelist)
509 bufsize, 0, freelist);
515 msgbuf, bufsize, freelist);
532 converterr(const char *expected, PyObject *arg, char *msgbuf, size_t bufsize) argument
537 PyOS_snprintf(msgbuf, bufsize,
424 converttuple(PyObject *arg, const char **p_format, va_list *p_va, int flags, int *levels, char *msgbuf, size_t bufsize, int toplevel, PyObject **freelist) argument
500 convertitem(PyObject *arg, const char **p_format, va_list *p_va, int flags, int *levels, char *msgbuf, size_t bufsize, PyObject **freelist) argument
600 convertsimple(PyObject *arg, const char **p_format, va_list *p_va, int flags, char *msgbuf, size_t bufsize, PyObject **freelist) argument
[all...]
/external/ltp/testcases/kernel/io/direct_io/
H A Ddiotest1.c20 * and direct write. The input file size is numblks*bufsize.
21 * The read and write calls use bufsize to perform IO. Input and output
26 * diotest1 [-b bufsize] [-n numblks] [-i infile] [-o outfile]
65 "Usage: diotest1 [-b bufsize] [-n numblks] [-i infile] [-o outfile]\n");
81 int bufsize = BUFSIZE; /* Buffer size. Default 8k */ local
92 if ((bufsize = atoi(optarg)) <= 0) {
93 fprintf(stderr, "bufsize must be > 0\n");
96 if (bufsize % 4096 != 0) {
98 "bufsize must be multiple of 4k\n");
133 buf = valloc(bufsize);
[all...]
H A Ddiotest2.c26 * The bufsize should be in n*4k size for direct read, write. The offset
37 * diotest2 [-b bufsize] [-o offset] [-i iterations] [-f filename]
74 int bufsize = BUFSIZE; variable
78 * For each iteration, write data starting at offse+iter*bufsize
88 if ((buf1 = valloc(bufsize)) == 0) {
92 if ((buf2 = valloc(bufsize)) == 0) {
97 /* seek bufsize*iteration and write. seek and read. verify. */
99 fillbuf(buf1, bufsize, i);
100 if (lseek(fd_w, offset + iter * bufsize, SEEK_SET) < 0) {
105 if (write(fd_w, buf1, bufsize) < bufsiz
[all...]
/external/python/cpython2/Tools/freeze/
H A Dbkfile.py4 def __init__(self, file, mode, bufsize):
16 self.__file = _orig_open(file, mode, bufsize)
44 def open(file, mode = 'r', bufsize = -1):
46 return _orig_open(file, mode, bufsize)
47 return _BkFile(file, mode, bufsize)
/external/libjpeg-turbo/
H A Djdatadst-tj.c44 size_t bufsize; member in struct:__anon10861
96 nextsize = dest->bufsize * 2;
102 MEMCOPY(nextbuffer, dest->buffer, dest->bufsize);
109 dest->pub.next_output_byte = nextbuffer + dest->bufsize;
110 dest->pub.free_in_buffer = dest->bufsize;
113 dest->bufsize = nextsize;
134 *dest->outsize = (unsigned long)(dest->bufsize - dest->pub.free_in_buffer);
200 dest->bufsize = *outsize;
201 dest->pub.free_in_buffer = dest->bufsize;
/external/ltp/testcases/kernel/io/aio/aio01/
H A Daio01.c79 size_t bufsize; /* Size of I/O, 8k default */ variable
116 bufsize = (bflag ? atoi(optb) : 8192);
129 io_prep_pwrite(iocbs[0], fd, srcbuf, bufsize, pos);
160 io_prep_pread(iocbs[0], fd, dstbuf, bufsize, pos);
192 io_prep_pwrite(iocbs[0], fd, srcbuf, bufsize, pos);
223 io_prep_pread(iocbs[0], fd, dstbuf, bufsize, pos);
254 io_prep_pwrite(iocbs[0], fd, srcbuf, bufsize, pos);
268 io_prep_pread(iocbs[0], fd, dstbuf, bufsize, pos);
300 io_prep_pwrite(iocbs[0], fd, srcbuf, bufsize, pos);
314 io_prep_pread(iocbs[0], fd, dstbuf, bufsize, po
[all...]
/external/vboot_reference/tests/
H A Dvb21_host_key_tests.c44 uint32_t bufsize; local
93 TEST_SUCC(vb2_read_file(testfile, &buf, &bufsize), "Read key raw");
97 buf2 = malloc(bufsize);
98 memcpy(buf2, buf, bufsize);
100 TEST_SUCC(vb2_private_key_unpack(&k2, buf, bufsize),
104 memcpy(buf, buf2, bufsize);
106 TEST_EQ(vb2_private_key_unpack(&k2, buf, bufsize),
111 memcpy(buf, buf2, bufsize);
113 TEST_EQ(vb2_private_key_unpack(&k2, buf, bufsize),
117 memcpy(buf, buf2, bufsize);
178 uint32_t bufsize; local
[all...]
/external/elfutils/libcpu/
H A Di386_data.h124 if (*d->bufcntp + 4 > d->bufsize)
125 return *d->bufcntp + 4 - d->bufsize;
167 size_t bufsize = d->bufsize; local
204 if (*bufcntp + n + 1 > bufsize)
205 return *bufcntp + n + 1 - bufsize;
278 if (*bufcntp + n + 1 > bufsize)
279 return *bufcntp + n + 1 - bufsize;
376 if (*bufcntp + (cp - tmpbuf) > bufsize)
377 return *bufcntp + (cp - tmpbuf) - bufsize;
509 size_t bufsize = d->bufsize; local
536 size_t bufsize = d->bufsize; local
[all...]

Completed in 808 milliseconds

1234567891011>>