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

123456

/haiku-fatelf/src/add-ons/media/media-add-ons/usb_webcam/
H A DCamStreamingDeframer.cpp42 int bufsize = size; local
65 bufsize = fInputBuff.BufferLength();
66 end = bufsize;
69 if ((fState == ST_FRAME) && (fCurrentFrame->Position() + bufsize < fMinFrameSize)) {
71 fCurrentFrame->Write(buf, bufsize);
80 while ((j = FindSOF(buf+i, bufsize-i, &which)) > -1) {
92 bufsize -= start;
93 end = bufsize;
104 while ((j = FindEOF(buf + k, bufsize - k, &which)) > -1) {
112 if (k >= bufsize)
[all...]
/haiku-fatelf/src/bin/coreutils/lib/
H A Dreadlink.c33 size_t bufsize _GL_UNUSED)
54 rpl_readlink (const char *name, char *buf, size_t bufsize) argument
71 return readlink (name, buf, bufsize);
H A Dmemxfrm.c74 size_t bufsize = destsize - di + 1; local
77 if (sizeof stackbuf < bufsize)
79 buf = malloc (bufsize);
83 strxfrm (buf, src + si, bufsize);
85 if (sizeof stackbuf < bufsize)
H A Dopenat-proc.c100 size_t bufsize = PROC_SELF_FD_NAME_SIZE_BOUND (strlen (file)); local
101 char *result = (bufsize < OPENAT_BUFFER_SIZE ? buf : xmalloc (bufsize));
/haiku-fatelf/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Dbitmap.c118 s64 bufsize, br; local
136 bufsize = ((count - (bit ? 8 - bit : 0) + 7) >> 3) + firstbyte;
137 if (bufsize > 8192)
138 bufsize = 8192;
140 buf = ntfs_malloc(bufsize);
145 memset(buf, value ? 0xff : 0, bufsize);
183 if (lastbyte_pos <= bufsize) {
214 br = ntfs_attr_pwrite(na, tmp, bufsize, buf);
215 if (br != bufsize) {
221 (long long)br, (long long)bufsize);
[all...]
/haiku-fatelf/src/system/libroot/posix/stdio/
H A Dmakebuf.c85 __swhatbuf(fp, bufsize, couldbetty)
87 size_t *bufsize;
94 *bufsize = BUFSIZ;
106 *bufsize = BUFSIZ;
116 *bufsize = st.st_blksize;
/haiku-fatelf/src/bin/findutils/gnulib/lib/
H A Dopenat-proc.c89 size_t bufsize = PROC_SELF_FD_NAME_SIZE_BOUND (strlen (file)); local
90 char *result = (bufsize < OPENAT_BUFFER_SIZE ? buf : xmalloc (bufsize));
H A Dreadlink.c37 readlink (const char *path, char *buf, size_t bufsize) argument
/haiku-fatelf/src/add-ons/input_server/methods/canna/lib/
H A Dparse.c75 static int DISPLAY_to_hostname(char *name, char *buf, int bufsize);
149 DISPLAY_to_hostname(char *name, char *buf, int bufsize)
152 // gethostname(buf, bufsize);
156 for (i = 0 ; i < len && i < bufsize ; i++) {
163 if (i < bufsize) {
/haiku-fatelf/src/libs/print/libgutenprint/src/main/
H A Dmxml-file.c49 int *bufsize);
255 * required for the string but only copies (bufsize - 1) characters
262 int bufsize, /* I - Size of string buffer */
275 ptr[1] = buffer + bufsize;
288 buffer[bufsize - 1] = '\0';
308 int *bufsize) /* IO - Current buffer size */
313 if (*bufptr >= (*buffer + *bufsize - 1))
319 if (*bufsize < 1024)
320 (*bufsize) *= 2;
322 (*bufsize)
260 stp_mxmlSaveString(stp_mxml_node_t *node, char *buffer, int bufsize, int (*cb)(stp_mxml_node_t *, int)) argument
305 mxml_add_char(int ch, char **bufptr, char **buffer, int *bufsize) argument
385 int bufsize; /* Size of buffer */ local
[all...]
/haiku-fatelf/src/bin/gdb/opcodes/
H A Ds390-dis.c122 int status, opsize, bufsize; local
136 for (bufsize = 0; bufsize < 6; bufsize++)
137 if ((*info->read_memory_func) (memaddr, buffer, bufsize + 1, info) != 0)
139 if (bufsize <= 0)
148 status = opsize > bufsize;
152 bufsize = 6;
239 if (bufsize >= 4)
248 else if (bufsize >
[all...]
/haiku-fatelf/src/bin/network/wget/src/
H A Dgnutls.c84 wgnutls_read (int fd, char *buf, int bufsize, void *arg) argument
92 int copysize = MIN (bufsize, ctx->peeklen);
103 ret = gnutls_record_recv (ctx->session, buf, bufsize);
112 wgnutls_write (int fd, char *buf, int bufsize, void *arg) argument
117 ret = gnutls_record_send (ctx->session, buf, bufsize);
131 wgnutls_peek (int fd, char *buf, int bufsize, void *arg) argument
139 if (bufsize > sizeof ctx->peekbuf)
140 bufsize = sizeof ctx->peekbuf;
143 ret = gnutls_record_recv (ctx->session, buf, bufsize);
H A Dconnect.c329 int bufsize = opt.limit_rate;
330 if (bufsize < 512)
331 bufsize = 512; /* avoid pathologically small values */
334 (void *)&bufsize, (socklen_t)sizeof (bufsize));
721 sock_read (int fd, char *buf, int bufsize)
725 res = read (fd, buf, bufsize);
731 sock_write (int fd, char *buf, int bufsize)
735 res = write (fd, buf, bufsize);
747 sock_peek (int fd, char *buf, int bufsize)
326 int bufsize = opt.limit_rate; local
716 sock_read(int fd, char *buf, int bufsize) argument
726 sock_write(int fd, char *buf, int bufsize) argument
742 sock_peek(int fd, char *buf, int bufsize) argument
866 fd_read(int fd, char *buf, int bufsize, double timeout) argument
891 fd_peek(int fd, char *buf, int bufsize, double timeout) argument
909 fd_write(int fd, char *buf, int bufsize, double timeout) argument
[all...]
H A Dretr.c147 write_data (FILE *out, const char *buf, int bufsize, wgint *skip,
152 if (*skip > bufsize)
154 *skip -= bufsize;
160 bufsize -= *skip;
162 if (bufsize == 0)
166 fwrite (buf, 1, bufsize, out);
167 *written += bufsize;
408 long bufsize = sizehint;
409 char *hunk = xmalloc (bufsize);
412 assert (!maxsize || maxsize >= bufsize);
146 write_data(FILE *out, const char *buf, int bufsize, wgint *skip, wgint *written) argument
406 long bufsize = sizehint; local
[all...]
/haiku-fatelf/src/bin/diffutils/src/
H A Dio.c106 current->bufsize = sizeof (word);
107 current->buffer = xmalloc (current->bufsize);
111 current->bufsize = buffer_lcm (sizeof (word),
114 current->buffer = xmalloc (current->bufsize);
122 file_block_read (current, current->bufsize);
174 if (current->bufsize < cc)
176 current->bufsize = cc;
195 file_block_read (current, current->bufsize - current->buffered);
199 while (current->buffered == current->bufsize)
201 if (PTRDIFF_MAX / 2 - sizeof (word) < current->bufsize)
[all...]
/haiku-fatelf/src/add-ons/kernel/file_systems/ntfs/
H A Dntfsdir.h46 struct dirent *buf, size_t bufsize, uint32 *num );
/haiku-fatelf/src/kits/network/libbind/resolv/
H A Dres_sendsigned.c36 int newmsglen, bufsize, siglen; local
52 bufsize = msglen + 1024;
53 newmsg = (u_char *) malloc(bufsize);
78 ret = ns_sign(newmsg, &newmsglen, bufsize, NOERROR, dstkey, NULL, 0,
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/dos/r5/
H A Dattr.h15 struct dirent *buf, size_t bufsize);
H A Ddir.h28 int dosfs_readlink(void *_vol, void *_node, char *buf, size_t *bufsize);
31 long *num, struct dirent *buf, size_t bufsize);
/haiku-fatelf/src/add-ons/kernel/file_systems/fat/
H A Ddir.h34 size_t *bufsize);
37 struct dirent *buf, size_t bufsize, uint32 *num);
/haiku-fatelf/src/add-ons/kernel/file_systems/ntfs/utils/
H A Dutils.h47 int utils_inode_get_name(ntfs_inode *inode, char *buffer, int bufsize);
48 int utils_attr_get_name(ntfs_volume *vol, ATTR_RECORD *attr, char *buffer, int bufsize);
/haiku-fatelf/src/libs/print/libgutenprint/test/
H A Dunprint.c108 unsigned bufsize; variable
827 bufsize = bandsize;
828 getn(bufsize,"Error reading raster data!\n");
829 update_page(buf, bufsize, m, n, currentcolor, density);
838 bufsize = ch + 1;
839 getnoff(bufsize, i, "Error reading RLE raster data!\n");
843 bufsize = 257 - (unsigned int) ch;
845 memset(buf + i, ch, bufsize);
847 i += bufsize;
852 fprintf(stderr, "Total bufsize
[all...]
/haiku-fatelf/src/libs/libfdt/
H A Dfdt_sw.c88 int fdt_create(void *buf, int bufsize) argument
92 if (bufsize < sizeof(struct fdt_header))
95 memset(buf, 0, bufsize);
100 fdt_set_totalsize(fdt, bufsize);
105 fdt_set_off_dt_strings(fdt, bufsize);
/haiku-fatelf/src/bin/coreutils/src/
H A Dsplit.c222 bytes_split (uintmax_t n_bytes, char *buf, size_t bufsize)
232 n_read = full_read (STDIN_FILENO, buf, bufsize);
260 while (n_read == bufsize);
267 lines_split (uintmax_t n_lines, char *buf, size_t bufsize)
276 n_read = full_read (STDIN_FILENO, buf, bufsize);
306 while (n_read == bufsize);
221 bytes_split(uintmax_t n_bytes, char *buf, size_t bufsize) argument
266 lines_split(uintmax_t n_lines, char *buf, size_t bufsize) argument
/haiku-fatelf/src/bin/gawk/
H A Dansi2knr.c238 #define bufsize 5000 /* arbitrary size */ macro
302 buf = malloc(bufsize);
309 while ( fgets(line, (unsigned)(buf + bufsize - line), in) != NULL )
320 f: if ( line >= buf + (bufsize - 1) ) /* overflow check */
322 if ( fgets(line, (unsigned)(buf + bufsize - line), in) == NULL )
346 if ( line != buf + (bufsize - 1) ) /* overflow check */

Completed in 174 milliseconds

123456