Home
last modified time | relevance | path

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

123

/dflybsd-src/contrib/cvs-1.12/lib/
H A 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()
/dflybsd-src/contrib/gdb-7/gdb/
H A Dsparc-ravenscar-thread.c66 int buf_size = register_size (gdbarch, regnum); in supply_register_at_address() local
69 buf = (char *) alloca (buf_size); in supply_register_at_address()
70 read_memory (register_addr, buf, buf_size); in supply_register_at_address()
159 int buf_size = register_size (gdbarch, regnum); in sparc_ravenscar_store_registers() local
160 char buf [buf_size]; in sparc_ravenscar_store_registers()
178 buf_size); in sparc_ravenscar_store_registers()
H A Dppc-ravenscar-thread.c123 int buf_size = register_size (gdbarch, regnum); in supply_register_at_address() local
126 buf = (char *) alloca (buf_size); in supply_register_at_address()
127 read_memory (register_addr, buf, buf_size); in supply_register_at_address()
191 int buf_size = register_size (gdbarch, regnum); in ppc_ravenscar_generic_store_registers() local
192 char buf [buf_size]; in ppc_ravenscar_generic_store_registers()
204 buf_size); in ppc_ravenscar_generic_store_registers()
H A Dremote.c266 long buf_size; member
663 if (rs->buf_size < rsa->remote_packet_size) in init_remote_state()
665 rs->buf_size = 2 * rsa->remote_packet_size; in init_remote_state()
666 rs->buf = xrealloc (rs->buf, rs->buf_size); in init_remote_state()
904 if (rs->buf_size < what_they_get + 1) in get_memory_packet_size()
906 rs->buf_size = 2 * what_they_get; in get_memory_packet_size()
1432 getpkt (&rs->buf, &rs->buf_size, 0); in remote_query_attached()
1662 getpkt (&rs->buf, &rs->buf_size, 0); in remote_pass_signals()
1722 getpkt (&rs->buf, &rs->buf_size, 0); in remote_program_signals()
1758 getpkt (&rs->buf, &rs->buf_size, 0); in set_thread()
[all …]
H A Dravenscar-thread.c157 int buf_size; in get_running_thread_id() local
168 buf_size = object_size; in get_running_thread_id()
169 buf = alloca (buf_size); in get_running_thread_id()
170 read_memory (object_addr, buf, buf_size); in get_running_thread_id()
/dflybsd-src/stand/lib/
H A Dufs.c357 size_t buf_size; in search_directory() local
365 rc = buf_read_file(f, &buf, &buf_size); in search_directory()
370 edp = (struct direct *)(buf + buf_size); in search_directory()
391 fp->f_seekp += buf_size; in search_directory()
408 size_t buf_size; in ufs_open() local
424 SBOFF / DEV_BSIZE, SBSIZE, (char *)fs, &buf_size); in ufs_open()
428 if (buf_size != SBSIZE || fs->fs_magic != FS_MAGIC || in ufs_open()
541 size_t buf_size; in ufs_open() local
554 fs->fs_bsize, buf, &buf_size); in ufs_open()
630 size_t buf_size; in ufs_read() local
[all …]
H A Dext2fs.c330 size_t buf_size; in ext2fs_open() local
351 EXT2_SBLOCK, EXT2_SBSIZE, (char *)fs, &buf_size); in ext2fs_open()
355 if (buf_size != EXT2_SBSIZE || fs->fs_magic != EXT2_MAGIC) { in ext2fs_open()
394 (char *)fp->f_bg, &buf_size); in ext2fs_open()
495 size_t buf_size; in ext2fs_open() local
506 fs->fs_bsize, buf, &buf_size); in ext2fs_open()
755 size_t buf_size; in search_directory() local
762 error = buf_read_file(f, &buf, &buf_size); in search_directory()
766 edp = (struct ext2dirent *)(buf + buf_size); in search_directory()
780 fp->f_seekp += buf_size; in search_directory()
[all …]
H A Dcd9660.c279 size_t buf_size, read, dsize, off; in cd9660_open() local
286 buf = malloc(buf_size = ISO_DEFAULT_BLOCK_SIZE); in cd9660_open()
471 size_t buf_size, csize; in cd9660_read() local
479 rc = buf_read_file(f, &buf, &buf_size); in cd9660_read()
483 csize = size > buf_size ? buf_size : size; in cd9660_read()
500 size_t buf_size, namelen; in cd9660_readdir() local
508 error = buf_read_file(f, &buf, &buf_size); in cd9660_readdir()
/dflybsd-src/sys/dev/drm/amd/amdgpu/
H A Dpsp_gfx_if.h127 …uint32_t buf_size; /* buffer size in bytes (must be multiple of 4 KB and no bi… member
161 uint32_t buf_size; /* buffer size in bytes (must be multiple of 4 KB) */ member
211 uint32_t buf_size; /* Size of the save/restore buffer in bytes */ member
248 uint32_t buf_size; /* +0 total size of the buffer in bytes */ member
/dflybsd-src/contrib/cvs-1.12/src/
H A 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()
H A 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()
645 read2 = block_read (fd2, buf2, buf_size); in xcmp()
652 } while (ret == 0 && read1 == buf_size); in xcmp()
/dflybsd-src/contrib/wpa_supplicant/src/common/
H A Dwpa_helpers.c101 char *buf, size_t buf_size) in get_wpa_cli_event2() argument
131 len = buf_size; in get_wpa_cli_event2()
136 if (len == buf_size) in get_wpa_cli_event2()
157 const char *event, char *buf, size_t buf_size) in get_wpa_cli_event() argument
159 return get_wpa_cli_event2(mon, event, NULL, buf, buf_size); in get_wpa_cli_event()
H A Dwpa_helpers.h22 const char *event, char *buf, size_t buf_size);
25 char *buf, size_t buf_size);
/dflybsd-src/contrib/gmp/printf/
H A Drepl-vsnprintf.c94 __gmp_replacement_vsnprintf (char *buf, size_t buf_size, in __gmp_replacement_vsnprintf() argument
361 if (total_width <= buf_size) in __gmp_replacement_vsnprintf()
373 if (buf_size != 0) in __gmp_replacement_vsnprintf()
375 size_t copylen = MIN (len, buf_size-1); in __gmp_replacement_vsnprintf()
/dflybsd-src/contrib/wpa_supplicant/src/tls/
H A Dtlsv1_record.c151 size_t buf_size, const u8 *payload, size_t payload_len, in tlsv1_record_send() argument
160 if (pos + TLS_RECORD_HEADER_LEN > buf + buf_size) in tlsv1_record_send()
179 if (pos + rl->iv_size > buf + buf_size) in tlsv1_record_send()
196 if (pos + payload_len > buf + buf_size) in tlsv1_record_send()
218 clen = buf + buf_size - pos; in tlsv1_record_send()
240 if (pos + pad + 1 > buf + buf_size) { in tlsv1_record_send()
/dflybsd-src/contrib/wpa_supplicant/src/utils/
H A Dcommon.c292 int wpa_snprintf_hex_sep(char *buf, size_t buf_size, const u8 *data, size_t len, in wpa_snprintf_hex_sep() argument
296 char *pos = buf, *end = buf + buf_size; in wpa_snprintf_hex_sep()
299 if (buf_size == 0) in wpa_snprintf_hex_sep()
316 static inline int _wpa_snprintf_hex(char *buf, size_t buf_size, const u8 *data, in _wpa_snprintf_hex() argument
320 char *pos = buf, *end = buf + buf_size; in _wpa_snprintf_hex()
322 if (buf_size == 0) in _wpa_snprintf_hex()
345 int wpa_snprintf_hex(char *buf, size_t buf_size, const u8 *data, size_t len) in wpa_snprintf_hex() argument
347 return _wpa_snprintf_hex(buf, buf_size, data, len, 0); in wpa_snprintf_hex()
359 int wpa_snprintf_hex_uppercase(char *buf, size_t buf_size, const u8 *data, in wpa_snprintf_hex_uppercase() argument
362 return _wpa_snprintf_hex(buf, buf_size, data, len, 1); in wpa_snprintf_hex_uppercase()
/dflybsd-src/contrib/gcc-8.0/libcpp/
H A Dmkdeps.c400 size_t buf_size = 512; in deps_restore() local
407 buf = XNEWVEC (char, buf_size); in deps_restore()
418 if (buf_size < num_to_read + 1) in deps_restore()
420 buf_size = num_to_read + 1 + 127; in deps_restore()
421 buf = XRESIZEVEC (char, buf, buf_size); in deps_restore()
/dflybsd-src/contrib/gcc-4.7/libcpp/
H A Dmkdeps.c401 size_t buf_size = 512; in deps_restore() local
402 char *buf = XNEWVEC (char, buf_size); in deps_restore()
414 if (buf_size < num_to_read + 1) in deps_restore()
416 buf_size = num_to_read + 1 + 127; in deps_restore()
417 buf = XRESIZEVEC (char, buf, buf_size); in deps_restore()
/dflybsd-src/usr.bin/patch/
H A Dpch.c113 while ((nr = fread(buf, 1, buf_size, stdin)) > 0) { in open_patch_file()
592 strlcpy(buf, " \n", buf_size); in another_hunk()
746 strlcpy(buf + 1, " \n", buf_size - 1); in another_hunk()
951 snprintf(buf, buf_size, "*** %ld,%ld ****\n", p_first, in another_hunk()
959 snprintf(buf, buf_size, "--- %ld,%ld ----\n", p_newfirst, in another_hunk()
977 strlcpy(buf, " \n", buf_size); in another_hunk()
1112 snprintf(buf, buf_size, "*** %ld,%ld\n", p_first, in another_hunk()
1152 snprintf(buf, buf_size, "--- %ld,%ld\n", min, max); in another_hunk()
1228 if (len + 1 > buf_size) { in pgets()
1229 while (len + 1 > buf_size) in pgets()
[all …]
H A Dutil.c68 while ((i = read(fromfd, buf, buf_size)) > 0) in move_file()
176 while ((i = read(fromfd, buf, buf_size)) > 0) in copy_file()
283 if ((nr = read(ttyfd, buf, buf_size)) > 0 && in ask()
/dflybsd-src/gnu/usr.bin/grep/libgreputils/
H A Dstdlib.h1161 (unsigned int seed, char *buf, size_t buf_size)
1164 (unsigned int seed, char *buf, size_t buf_size));
1168 (unsigned int seed, char *buf, size_t buf_size)
1174 (unsigned int seed, char *buf, size_t buf_size));
1272 (unsigned int seed, char *buf, size_t buf_size,
1276 (unsigned int seed, char *buf, size_t buf_size,
1281 (unsigned int seed, char *buf, size_t buf_size,
1288 (unsigned int seed, char *buf, size_t buf_size,
/dflybsd-src/share/examples/scsi_target/
H A Dscsi_target.c65 size_t buf_size; variable
112 buf_size = MAXPHYS; in main()
133 buf_size = atoi(optarg); in main()
134 if (buf_size < 256 || buf_size > MAX_XFER) in main()
813 c_descr->buf = malloc(buf_size); in get_ctio()
/dflybsd-src/contrib/wpa_supplicant/src/wps/
H A Dwps_upnp.c464 int buf_size = 0; in upnp_wps_device_send_event() local
504 buf_size += os_strlen(format_head); in upnp_wps_device_send_event()
505 buf_size += 50 + 2 * os_strlen("WLANEvent"); in upnp_wps_device_send_event()
507 buf_size += os_strlen(sm->wlanevent); in upnp_wps_device_send_event()
508 buf_size += os_strlen(format_tail); in upnp_wps_device_send_event()
510 buf = wpabuf_alloc(buf_size); in upnp_wps_device_send_event()
/dflybsd-src/sys/dev/raid/ciss/
H A Dcissio.h183 u_int16_t buf_size; /* 2 */ member
192 u_int16_t buf_size; /* 2 */ member
/dflybsd-src/usr.sbin/makefs/cd9660/
H A Dcd9660_write.c432 int buf_size = diskStructure->sectorSize; in cd9660_copy_file() local
435 buf = emalloc(buf_size); in cd9660_copy_file()
449 bytes_read = fread(buf,1,buf_size,rf); in cd9660_copy_file()

123