Searched refs:buf_size (Results 1 - 25 of 28) sorted by relevance

12

/haiku-fatelf/src/bin/coreutils/lib/
H A Dareadlink-with-size.c64 size_t buf_size = size < initial_limit ? size + 1 : initial_limit; local
70 char *buffer = malloc (buf_size);
74 r = readlink (file, buffer, buf_size);
87 if (link_length < buf_size)
94 if (buf_size <= MAXSIZE / 2)
95 buf_size *= 2;
96 else if (buf_size < MAXSIZE)
97 buf_size = MAXSIZE;
H A Dareadlink.c59 size_t buf_size = sizeof initial_buf; local
64 ssize_t link_length = readlink (filename, buffer, buf_size);
79 if ((size_t) link_length < buf_size)
95 if ((size_t) link_length < buf_size)
108 buf_size *= 2;
109 if (SSIZE_MAX < buf_size || (SIZE_MAX / 2 < SSIZE_MAX && buf_size == 0))
114 buffer = (char *) malloc (buf_size);
H A Dareadlinkat.c63 size_t buf_size = sizeof initial_buf; local
68 ssize_t link_length = readlinkat (fd, filename, buffer, buf_size);
83 if ((size_t) link_length < buf_size)
99 if ((size_t) link_length < buf_size)
112 buf_size *= 2;
113 if (SSIZE_MAX < buf_size || (SIZE_MAX / 2 < SSIZE_MAX && buf_size == 0))
118 buffer = (char *) malloc (buf_size);
H A Dstdlib.in.h326 int initstate_r (unsigned int seed, char *buf, size_t buf_size,
/haiku-fatelf/src/bin/findutils/gnulib/lib/
H A Dareadlink-with-size.c68 size_t buf_size = size < initial_limit ? size + 1 : initial_limit; local
74 char *buffer = malloc (buf_size);
78 r = readlink (file, buffer, buf_size);
91 if (link_length < buf_size)
98 if (buf_size <= MAXSIZE / 2)
99 buf_size *= 2;
100 else if (buf_size < MAXSIZE)
101 buf_size = MAXSIZE;
/haiku-fatelf/src/bin/network/tcpdump/libpcap/
H A Dfad-gifc.c278 unsigned buf_size; local
304 buf_size = 8192;
306 buf = malloc(buf_size);
314 ifc.ifc_len = buf_size;
316 memset(buf, 0, buf_size);
325 if (ifc.ifc_len < buf_size &&
326 (buf_size - ifc.ifc_len) > sizeof(ifrp->ifr_name) + MAX_SA_LEN)
329 buf_size *= 2;
H A Dfad-glifc.c91 unsigned buf_size; local
138 buf_size = ifn.lifn_count * sizeof (struct lifreq);
139 buf = malloc(buf_size);
151 ifc.lifc_len = buf_size;
155 memset(buf, 0, buf_size);
/haiku-fatelf/src/add-ons/translators/hpgs/lib/
H A Dhpgspjl.c42 static int pjl_read_line (hpgs_reader *reader, char term, char *buf, size_t buf_size) argument
66 if (i<buf_size) buf[i]='\0';
79 if (reader->last_byte != '\r' && i<buf_size)
81 buf[i] = (i < buf_size-1) ? (char)reader->last_byte : '\0';
/haiku-fatelf/src/libs/fluidsynth/src/
H A Dfluid_aufile.c49 int buf_size; member in struct:__anon4767
98 dev->buf_size = 2 * dev->period_size * sizeof(short);
170 for (offset = 0; offset < dev->buf_size; offset += n) {
172 n = fwrite((char*) dev->buf + offset, 1, dev->buf_size - offset, dev->file);
/haiku-fatelf/src/kits/midi2/
H A DMidiLocalProducer.cpp281 size_t buf_size = 20 + length; local
284 buf_size += 2;
287 uint8* buffer = (uint8*)malloc(buf_size);
299 *((uint8*) (buffer + buf_size - 1)) = B_SYS_EX_END;
310 for (uint32 t = 0; t < buf_size; ++t)
317 write_port(cons->fPort, 0, buffer, buf_size);
H A DMidiLocalConsumer.cpp328 ssize_t buf_size = 100; local
329 uint8* buffer = (uint8*) malloc(buf_size);
347 if (msg_size > buf_size) {
349 buf_size = msg_size;
/haiku-fatelf/src/bin/gdb/gdb/
H A Dscm-valprint.c225 int buf_size; local
231 for (; done < len; done += buf_size)
233 buf_size = min (len - done, 64);
234 read_memory (addr + done, buffer, buf_size);
236 for (i = 0; i < buf_size; ++i)
/haiku-fatelf/src/add-ons/translators/webp/libwebp/dec/
H A Dvp8.c186 uint32_t buf_size; local
201 buf_size = io->data_size;
202 if (buf == NULL || buf_size <= 4) {
211 if (buf_size < 20 + 4) {
234 buf_size -= 20;
252 buf_size -= 3;
258 if (buf_size < 7) {
271 buf_size -= 7;
284 VP8Init(br, buf, buf_size);
285 if (frm_hdr->partition_length_ > buf_size) {
[all...]
/haiku-fatelf/src/apps/icon-o-matic/import_export/svg/
H A DSVGParser.h34 enum { buf_size = BUFSIZ }; enumerator in enum:agg::svg::Parser::__anon3032
/haiku-fatelf/src/libs/stdc++/legacy/
H A Deditbuf.cc228 if (buf_size > 1000) k += 2000;
242 p2 = data + buf_size;
259 adjust_markers (s1 << 1, (buf_size << 1) + 1, k, old_data);
260 buf_size += k;
466 if (new_pos >= buffer->data + buffer->buf_size) abort(); // Paranoia.
598 buf_size = /*200;*/ 15; /* for testing! */
599 data = (buf_char*)malloc(buf_size);
608 __gap_end_pos = buf_size;
612 end_mark._pos = 2 * buf_size + 1;
H A Dparsestream.cc139 int buf_size = 128; local
140 char* buffer = (char*)malloc(buf_size);
141 setb(buffer, buffer+buf_size, 1);
/haiku-fatelf/src/bin/diffutils/src/
H A Dcmp.c73 static size_t buf_size;
341 buf_size = buffer_lcm (STAT_BLOCKSIZE (stat_buf[0]),
347 words_per_buffer = (buf_size + 2 * sizeof (word) - 1) / sizeof (word);
409 size_t bytes_to_read = MIN (ig, buf_size);
425 size_t bytes_to_read = buf_size;
553 while (read0 == buf_size);
72 static size_t buf_size; variable
/haiku-fatelf/headers/cpp/
H A Deditbuf.h143 /* int gap; implicit: buf_size - size1 - size2 */
144 int buf_size; member in struct:edit_buffer
158 inline int size2() { return buf_size - gap_end_pos(); }
/haiku-fatelf/src/bin/gdb/bfd/
H A Dvms-misc.c245 set PRIV(buf_size) and return it
295 if (PRIV (buf_size) == 0)
307 PRIV (buf_size) = amt;
375 PRIV (rec_length) = bfd_bread (vms_buf, (bfd_size_type) PRIV (buf_size),
407 if (PRIV (rec_length) > PRIV (buf_size))
415 PRIV (buf_size) = PRIV (rec_length);
464 || PRIV (vms_rec) >= (PRIV (vms_buf) + PRIV (buf_size)))
H A Dvms.c295 PRIV (buf_size) = 0;
743 buf points to a buffer of buf_size bytes to be filled with
747 vms_get_section_contents (abfd, section, buf, offset, buf_size)
752 bfd_size_type buf_size ATTRIBUTE_UNUSED;
756 abfd, section->name, buf, offset, (int)buf_size);
765 buf points to a buffer of buf_size bytes to be filled with
/haiku-fatelf/src/bin/coreutils/src/
H A Dcopy.c751 size_t buf_size = io_blksize (sb); local
782 size_t blcm = buffer_lcm (io_blksize (src_open_sb), buf_size,
787 if (S_ISREG (src_open_sb.st_mode) && src_open_sb.st_size < buf_size)
788 buf_size = src_open_sb.st_size + 1;
793 buf_size += blcm - 1;
794 buf_size -= buf_size % blcm;
795 if (buf_size == 0 || blcm_max < buf_size)
796 buf_size
[all...]
H A Dhead.c180 const size_t buf_size = sizeof (buf); local
185 size_t n_to_read = MIN (buf_size, n_bytes);
/haiku-fatelf/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Dlcnalloc.c249 int err = 0, rlpos, rlsize, buf_size; local
333 buf_size = (int)br << 3;
338 while (lcn < buf_size) {
442 bmp_pos += buf_size;
H A Dwin32_io.c686 unsigned int err, buf_size, part_count; local
695 buf_size = sizeof(DRIVE_LAYOUT_INFORMATION) +
697 drive_layout = malloc(buf_size);
703 0, (BYTE*)drive_layout, buf_size, &i, NULL))
/haiku-fatelf/src/bin/network/wget/lib/
H A Dstdlib.in.h278 int initstate_r (unsigned int seed, char *buf, size_t buf_size,

Completed in 293 milliseconds

12