Home
last modified time | relevance | path

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

/mirbsd/src/gnu/usr.bin/cvs/lib/
Dxreadlink.c61 size_t buf_size = size < MAXSIZE ? size + 1 : MAXSIZE; in xreadlink() local
65 char *buffer = xmalloc (buf_size); in xreadlink()
66 ssize_t r = readlink (file, buffer, buf_size); in xreadlink()
79 if (link_length < buf_size) in xreadlink()
86 if (buf_size <= MAXSIZE / 2) in xreadlink()
87 buf_size *= 2; in xreadlink()
88 else if (buf_size < MAXSIZE) in xreadlink()
89 buf_size = MAXSIZE; in xreadlink()
/mirbsd/src/sys/lib/libsa/
Dufs.c320 size_t buf_size; in search_directory() local
327 rc = buf_read_file(f, &buf, &buf_size); in search_directory()
332 edp = (struct direct *)(buf + buf_size); in search_directory()
351 fp->f_seekp += buf_size; in search_directory()
366 size_t buf_size; in ufs_open() local
381 SBLOCK, SBSIZE, (char *)fs, &buf_size); in ufs_open()
385 if (buf_size != SBSIZE || fs->fs_magic != FS_MAGIC || in ufs_open()
489 size_t buf_size; in ufs_open() local
502 fs->fs_bsize, buf, &buf_size); in ufs_open()
569 size_t csize, buf_size; in ufs_read() local
[all …]
Dcd9660.c135 size_t buf_size, nread, psize, dsize; in cd9660_open() local
143 buf = alloc(buf_size = ISO_DEFAULT_BLOCK_SIZE); in cd9660_open()
173 buf = alloc(buf_size = roundup(psize, ISO_DEFAULT_BLOCK_SIZE)); in cd9660_open()
178 buf_size, buf, &nread); in cd9660_open()
181 if (nread != buf_size) { in cd9660_open()
267 free(buf, buf_size); in cd9660_open()
274 free(buf, buf_size); in cd9660_open()
/mirbsd/src/usr.sbin/httpd/src/modules/ssl/
Dssl_scache_shmcb.c811 unsigned int buf_size, in shmcb_cyclic_increment() argument
816 while (start_pos >= buf_size) in shmcb_cyclic_increment()
817 start_pos -= buf_size; in shmcb_cyclic_increment()
834 unsigned int buf_size, in shmcb_cyclic_space() argument
842 return ((buf_size - start_offset) + next_offset); /* no */ in shmcb_cyclic_space()
850 unsigned int buf_size, in shmcb_cyclic_ntoc_memcpy() argument
856 if (dest_offset + src_len < buf_size) in shmcb_cyclic_ntoc_memcpy()
861 memcpy(data + dest_offset, src, buf_size - dest_offset); in shmcb_cyclic_ntoc_memcpy()
862 memcpy(data, src + buf_size - dest_offset, in shmcb_cyclic_ntoc_memcpy()
863 src_len + dest_offset - buf_size); in shmcb_cyclic_ntoc_memcpy()
[all …]
/mirbsd/src/gnu/usr.bin/cvs/src/
Dexpand_path.c199 size_t buf_size = 0; in expand_path() local
322 expand_string (&buf, &buf_size, p + 1); in expand_path()
325 expand_string (&buf, &buf_size, p + 1); in expand_path()
360 expand_string (&buf, &buf_size, d + p); in expand_path()
366 expand_string (&buf, &buf_size, d + p); in expand_path()
Dfilesubr.c630 size_t buf_size = 8 * 1024; in xcmp() local
634 buf1 = xmalloc (buf_size); in xcmp()
635 buf2 = xmalloc (buf_size); in xcmp()
639 read1 = block_read (fd1, buf1, buf_size); in xcmp()
643 read2 = block_read (fd2, buf2, buf_size); in xcmp()
650 } while (ret == 0 && read1 == buf_size); in xcmp()
/mirbsd/src/gnu/usr.bin/binutils/gdb/
Dscm-valprint.c222 int buf_size; in scm_scmval_print() local
228 for (; done < len; done += buf_size) in scm_scmval_print()
230 buf_size = min (len - done, 64); in scm_scmval_print()
231 read_memory (addr + done, buffer, buf_size); in scm_scmval_print()
233 for (i = 0; i < buf_size; ++i) in scm_scmval_print()
/mirbsd/src/usr.sbin/httpd/src/modules/proxy/
Dproxy_ftp.c274 size_t buf_size; in send_dir() local
288 buf_size = IOBUFSIZE; in send_dir()
289 buf = ap_palloc(r->pool, buf_size); in send_dir()
290 buf2 = ap_palloc(r->pool, buf_size); in send_dir()
318 n = snprintf(buf, buf_size, DOCTYPE_HTML_3_2 in send_dir()
341 snprintf(buf, buf_size, "<a href=\"%s%s/\">%s</a>/", in send_dir()
354 snprintf(buf, buf_size, "</h2>\n<hr /><pre>"); in send_dir()
357 snprintf(buf, buf_size, "</h2>\n(%s)\n<hr /><pre>", in send_dir()
363 n = ap_bgets(buf, buf_size, data); in send_dir()
390 snprintf(buf2, buf_size, "%s <a href=\"%s\">%s %s</a>\n", in send_dir()
[all …]
Dproxy_util.c465 size_t buf_size; in ap_proxy_send_fb() local
478 buf_size = MAX(recv_buffer_size, IOBUFSIZE); in ap_proxy_send_fb()
479 buf = ap_palloc(r->pool, buf_size); in ap_proxy_send_fb()
526 chunk_start = ap_getline(buf, buf_size, f, 0); in ap_proxy_send_fb()
527 … if ((chunk_start <= 0) || ((size_t)chunk_start + 1 >= buf_size) || !ap_isxdigit(*buf)) { in ap_proxy_send_fb()
537 if (NULL == ap_proxy_read_headers(r, buf, buf_size, f)) { in ap_proxy_send_fb()
552 n = ap_bread(f, buf, MIN((int)buf_size, (int)remaining)); in ap_proxy_send_fb()
590 n = ap_bread(f, buf, buf_size); in ap_proxy_send_fb()
593 n = ap_bread(f, buf, MIN((int)buf_size, in ap_proxy_send_fb()
/mirbsd/src/gnu/usr.bin/lynx/src/
DLYShowInfo.c211 int buf_size; in LYShowInfo() local
214 if ((buf_size = (int) readlink(temp, buf, limit)) != -1) { in LYShowInfo()
215 if (buf_size > (int) limit) in LYShowInfo()
216 buf_size = (int) limit; in LYShowInfo()
217 buf[buf_size] = '\0'; in LYShowInfo()
/mirbsd/src/usr.sbin/dhcpd/
Dtree.c69 tc->len = tc->buf_size = 0; in tree_cache()
158 int bc = tree_cache->buf_size; in tree_evaluate()
204 tree_cache->buf_size = bc; in tree_evaluate()
Ddhcp.c513 options[DHO_DHCP_MESSAGE_TYPE]->buf_size = sizeof nak; in nak_lease()
521 options[DHO_DHCP_MESSAGE]->buf_size = strlen(dhcp_message); in nak_lease()
919 state->options[i]->buf_size = state->options[i]->len; in ack_lease()
934 state->options[i]->buf_size = sizeof state->offer; in ack_lease()
946 state->options[i]->buf_size = in ack_lease()
982 state->options[i]->buf_size = sizeof state->expiry; in ack_lease()
996 state->options[i]->buf_size = sizeof state->renewal; in ack_lease()
1012 state->options[i]->buf_size = sizeof state->rebind; in ack_lease()
1027 state->options[i]->buf_size = in ack_lease()
1043 state->options[i]->buf_size = in ack_lease()
[all …]
Dtree.h88 unsigned int buf_size; member
Dbootp.c256 netmask_tree.buf_size = lease->subnet->netmask.len; in bootp()
Dconfpars.c561 host->group->options[DHO_HOST_NAME]->buf_size =
/mirbsd/src/gnu/usr.bin/binutils/bfd/
Dvms-misc.c238 if (PRIV (buf_size) == 0) in _bfd_vms_get_record()
250 PRIV (buf_size) = amt; in _bfd_vms_get_record()
316 PRIV (rec_length) = bfd_bread (vms_buf, (bfd_size_type) PRIV (buf_size), in _bfd_vms_get_record()
349 if (PRIV (rec_length) > PRIV (buf_size)) in _bfd_vms_get_record()
356 PRIV (buf_size) = PRIV (rec_length); in _bfd_vms_get_record()
401 || PRIV (vms_rec) >= (PRIV (vms_buf) + PRIV (buf_size))) in _bfd_vms_next_record()
Dvms.c63 PRIV (buf_size) = 0; in vms_initialize()
501 bfd_size_type buf_size ATTRIBUTE_UNUSED) in vms_get_section_contents()
505 abfd, section->name, buf, offset, (int)buf_size); in vms_get_section_contents()
Dvms.h570 int buf_size; /* Max size of buffer. */ member
/mirbsd/src/usr.sbin/makefs/cd9660/
Dcd9660_write.c438 int buf_size = diskStructure.sectorSize; in cd9660_copy_file() local
441 buf = malloc(buf_size); in cd9660_copy_file()
457 bytes_read = fread(buf,1,buf_size,rf); in cd9660_copy_file()
/mirbsd/src/sys/dev/
Drndioctl.h40 size_t buf_size; member
/mirbsd/src/sys/sys/
Dataio.h40 unsigned int buf_size; /* length of data buffer */ member
/mirbsd/src/sys/dev/ic/
Dadvlib.c1298 AscGetOnePhyAddr(sc, buf_addr, buf_size) in AscGetOnePhyAddr() argument
1301 u_int32_t buf_size;
1306 if (AscGetSGList(sc, buf_addr, buf_size, (ASC_SG_HEAD *) & sg_head) !=
1307 buf_size) {
1324 u_int32_t buf_size; local
1326 buf_size = buf_len;
1329 asc_sg_head_ptr->sg_list[0].bytes = buf_size;
1331 return (buf_size);
Dwdc.c2330 size = agt->buf_size;
/mirbsd/src/lib/libpng/
Dpngwutil.c1781 png_size_t buf_size; in png_write_start_row() local
1785 buf_size = (png_size_t)(PNG_ROWBYTES( in png_write_start_row()
1790 (png_uint_32)buf_size); in png_write_start_row()
1807 (png_uint_32)buf_size); in png_write_start_row()
/mirbsd/src/sbin/atactl/
Datactl.c504 agt.buf_size = sizeof(buf); in device_dump()