| /mirbsd/src/gnu/usr.bin/cvs/lib/ |
| D | xreadlink.c | 61 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/ |
| D | ufs.c | 320 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 …]
|
| D | cd9660.c | 135 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/ |
| D | ssl_scache_shmcb.c | 811 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/ |
| D | expand_path.c | 199 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()
|
| D | filesubr.c | 630 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/ |
| D | scm-valprint.c | 222 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/ |
| D | proxy_ftp.c | 274 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 …]
|
| D | proxy_util.c | 465 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/ |
| D | LYShowInfo.c | 211 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/ |
| D | tree.c | 69 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()
|
| D | dhcp.c | 513 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 …]
|
| D | tree.h | 88 unsigned int buf_size; member
|
| D | bootp.c | 256 netmask_tree.buf_size = lease->subnet->netmask.len; in bootp()
|
| D | confpars.c | 561 host->group->options[DHO_HOST_NAME]->buf_size =
|
| /mirbsd/src/gnu/usr.bin/binutils/bfd/ |
| D | vms-misc.c | 238 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()
|
| D | vms.c | 63 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()
|
| D | vms.h | 570 int buf_size; /* Max size of buffer. */ member
|
| /mirbsd/src/usr.sbin/makefs/cd9660/ |
| D | cd9660_write.c | 438 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/ |
| D | rndioctl.h | 40 size_t buf_size; member
|
| /mirbsd/src/sys/sys/ |
| D | ataio.h | 40 unsigned int buf_size; /* length of data buffer */ member
|
| /mirbsd/src/sys/dev/ic/ |
| D | advlib.c | 1298 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);
|
| D | wdc.c | 2330 size = agt->buf_size;
|
| /mirbsd/src/lib/libpng/ |
| D | pngwutil.c | 1781 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/ |
| D | atactl.c | 504 agt.buf_size = sizeof(buf); in device_dump()
|