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

1234

/netbsd-6-1-5-RELEASE/external/gpl2/xcvs/dist/lib/
H A Dxreadlink.c61 size_t buf_size = size < MAXSIZE ? size + 1 : MAXSIZE; local
65 char *buffer = xmalloc (buf_size);
66 ssize_t r = readlink (file, buffer, buf_size);
79 if (link_length < buf_size)
86 if (buf_size <= MAXSIZE / 2)
87 buf_size *= 2;
88 else if (buf_size < MAXSIZE)
89 buf_size = MAXSIZE;
/netbsd-6-1-5-RELEASE/gnu/dist/gettext/gettext-tools/lib/
H A Dxreadlink.c78 size_t buf_size = sizeof (initial_buf); local
83 ssize_t link_length = readlink (filename, buffer, buf_size);
96 if ((size_t) link_length < buf_size)
113 if ((size_t) link_length < buf_size)
126 buf_size *= 2;
127 if (SSIZE_MAX < buf_size || (SIZE_MAX / 2 < SSIZE_MAX && buf_size == 0))
133 buffer = (char *) xmalloc (buf_size);
H A Dcopy-file.c61 const size_t buf_size = sizeof (buf); local
78 size_t n_read = safe_read (src_fd, buf, buf_size);
/netbsd-6-1-5-RELEASE/gnu/dist/gettext/gettext-tools/libgrep/
H A Dm-common.c74 check_multibyte_string (const char *buf, size_t buf_size) argument
76 char *mb_properties = (char *) malloc (buf_size);
81 memset (mb_properties, 0, sizeof (char) * buf_size);
82 for (i = 0; i < buf_size ;)
85 mbclen = mbrlen (buf + i, buf_size - i, &cur_state);
H A Dlibgrep.h40 const char *buf, size_t buf_size,
H A Dm-common.h47 check_multibyte_string (const char *buf, size_t buf_size);
H A Dm-fgrep.c71 Fexecute (const void *compiled_pattern, const char *buf, size_t buf_size, argument
82 mb_properties = check_multibyte_string (buf, buf_size);
85 for (beg = buf; beg <= buf + buf_size; ++beg)
88 kwsexec (ckwset->kwset, beg, buf + buf_size - beg, &kwsmatch);
116 if (beg + len < buf + buf_size && beg[len] != eol)
125 if (try + len < buf + buf_size
154 end = memchr (beg + len, eol, (buf + buf_size) - (beg + len));
/netbsd-6-1-5-RELEASE/crypto/external/cpl/trousers/dist/src/include/
H A Drpc_tcstp.h34 int buf_size; member in struct:tcsd_comm_data
/netbsd-6-1-5-RELEASE/crypto/external/bsd/heimdal/dist/lib/krb5/
H A Dbuild_auth.c47 size_t buf_size; local
53 ASN1_MALLOC_ENCODE(EtypeList, buf, buf_size, &etypes, &len, ret);
58 if(buf_size != len)
73 ASN1_MALLOC_ENCODE(AD_IF_RELEVANT, buf, buf_size, &ad, &len, ret);
78 if(buf_size != len)
115 size_t buf_size; local
173 ASN1_MALLOC_ENCODE(Authenticator, buf, buf_size, &auth, &len, ret);
176 if(buf_size != len)
H A Dmk_safe.c48 size_t buf_size; local
104 ASN1_MALLOC_ENCODE(KRB_SAFE, buf, buf_size, &s, &len, ret);
107 if(buf_size != len)
128 ASN1_MALLOC_ENCODE(KRB_SAFE, buf, buf_size, &s, &len, ret);
132 if(buf_size != len)
H A Dmk_priv.c49 size_t buf_size; local
100 ASN1_MALLOC_ENCODE(EncKrbPrivPart, buf, buf_size, &part, &len, ret);
103 if (buf_size != len)
119 buf + buf_size - len,
130 ASN1_MALLOC_ENCODE(KRB_PRIV, buf, buf_size, &s, &len, ret);
133 if (buf_size != len)
138 ret = krb5_data_copy(outbuf, buf + buf_size - len, len);
H A Dmk_rep.c47 size_t buf_size; local
96 ASN1_MALLOC_ENCODE(EncAPRepPart, buf, buf_size, &body, &len, ret);
100 if (buf_size != len)
111 buf + buf_size - len,
H A Drd_safe.c45 size_t buf_size; local
56 ASN1_MALLOC_ENCODE(KRB_SAFE, buf, buf_size, safe, &len, ret);
59 if(buf_size != len)
75 buf + buf_size - len,
/netbsd-6-1-5-RELEASE/usr.bin/sort/
H A Dfiles.c177 static size_t buf_size = DEFLLEN; local
184 buf = malloc(buf_size);
187 buf_size);
190 end = buf + buf_size;
201 buf_size *= 2;
202 new_buf = realloc(buf, buf_size);
205 buf_size);
207 end = new_buf + buf_size;
/netbsd-6-1-5-RELEASE/external/gpl3/gdb/dist/gdb/
H A Dravenscar-sparc-thread.c67 int buf_size = register_size (gdbarch, regnum); local
70 buf = (char *) alloca (buf_size);
71 read_memory (register_addr, buf, buf_size);
156 int buf_size = register_size (gdbarch, regnum); local
157 char buf [buf_size];
175 buf_size);
/netbsd-6-1-5-RELEASE/sys/lib/libsa/
H A Dufs.c482 size_t buf_size; local
488 rc = buf_read_file(f, &buf, &buf_size);
493 edp = (struct direct *)(buf + buf_size);
512 fp->f_seekp += buf_size;
525 size_t buf_size; local
529 sblock_try[i] / DEV_BSIZE, SBLOCKSIZE, fs, &buf_size);
530 if (rc != 0 || buf_size != SBLOCKSIZE)
581 size_t buf_size;
583 SBLOCKOFFSET / DEV_BSIZE, SBLOCKSIZE, fs, &buf_size);
586 if (buf_size !
717 size_t buf_size; local
806 size_t buf_size; local
888 size_t buf_size; local
[all...]
H A Dminixfs3.c414 size_t buf_size; local
421 rc = buf_read_file(f, (void *)&dbuf, &buf_size);
424 if (buf_size == 0)
430 * to truncate buf_size.
432 if (buf_size < fs->mfs_block_size)
433 buf_size = fs->mfs_block_size;
453 fp->f_seekp += buf_size;
462 size_t buf_size; local
472 SUPER_BLOCK_OFF / DEV_BSIZE, MINBSIZE, sbbuf, &buf_size);
476 if (buf_size !
660 size_t buf_size; local
758 size_t buf_size; local
843 size_t buf_size; local
[all...]
H A Dcd9660.c138 size_t buf_size, nread, psize, dsize; local
146 buf_size = ISO_DEFAULT_BLOCK_SIZE;
147 buf = alloc(buf_size);
178 buf = alloc(buf_size = roundup(psize, ISO_DEFAULT_BLOCK_SIZE));
185 buf_size, buf, &nread);
188 if (nread != buf_size) {
280 dealloc(buf, buf_size);
288 dealloc(buf, buf_size);
/netbsd-6-1-5-RELEASE/external/bsd/libpcap/dist/
H A Dfad-gifc.c147 unsigned buf_size; local
173 buf_size = 8192;
175 buf = malloc(buf_size);
183 ifc.ifc_len = buf_size;
185 memset(buf, 0, buf_size);
194 if (ifc.ifc_len < buf_size &&
195 (buf_size - ifc.ifc_len) > sizeof(ifrp->ifr_name) + MAX_SA_LEN)
198 buf_size *= 2;
/netbsd-6-1-5-RELEASE/crypto/external/cpl/trousers/dist/src/tcsd/
H A Dtcsd_threads.c214 if ((data->buf_size = recv(data->sock, buffer, TCSD_TXBUF_SIZE, 0)) < 0) {
224 if (data->buf_size > TCSD_TXBUF_SIZE) {
226 data->sock, data->buf_size);
228 } else if (data->buf_size < (int)((2 * sizeof(UINT32)) + sizeof(UINT16))) {
230 data->sock, data->buf_size);
288 if ((data->buf_size = recv(data->sock, buffer, TCSD_TXBUF_SIZE, 0)) < 0) {
292 } else if (data->buf_size == 0) {
303 data->buf_size = -1;
345 data->comm.buf_size = TCSD_INIT_TXBUF_SIZE;
346 data->comm.buf = calloc(1, data->comm.buf_size);
[all...]
/netbsd-6-1-5-RELEASE/external/bsd/wpa/dist/src/utils/
H A Dcommon.c169 static inline int _wpa_snprintf_hex(char *buf, size_t buf_size, const u8 *data, argument
173 char *pos = buf, *end = buf + buf_size;
175 if (buf_size == 0)
193 * @buf_size: Maximum buffer size in bytes (should be at least 2 * len + 1)
198 int wpa_snprintf_hex(char *buf, size_t buf_size, const u8 *data, size_t len) argument
200 return _wpa_snprintf_hex(buf, buf_size, data, len, 0);
207 * @buf_size: Maximum buffer size in bytes (should be at least 2 * len + 1)
212 int wpa_snprintf_hex_uppercase(char *buf, size_t buf_size, const u8 *data, argument
215 return _wpa_snprintf_hex(buf, buf_size, data, len, 1);
/netbsd-6-1-5-RELEASE/lib/libisns/
H A Disns_pdu.c77 int buf_size; member in struct:isns_buffer_list_s
113 * isns_lookup_buffer_list - locates the pool buffer list for the buf_size
116 * Returns: pointer to list in pool containing buf_size buffers
120 isns_lookup_buffer_list(int buf_size) argument
130 if (list_p->buf_size == buf_size)
142 * If a list containing buf_size buffers already exists in pool, additional
146 isns_add_buffer_pool(int buf_size, int count) argument
152 DBG("isns_add_buffer_pool: buf_size=%d, count=%d\n", buf_size, coun
280 isns_new_buffer(int buf_size) argument
[all...]
/netbsd-6-1-5-RELEASE/sys/arch/xen/include/
H A Dxenio.h73 int buf_size; member in struct:privcmd_blkmsg
/netbsd-6-1-5-RELEASE/external/lgpl3/gmp/dist/printf/
H A Drepl-vsnprintf.c94 __gmp_replacement_vsnprintf (char *buf, size_t buf_size, argument
361 if (total_width <= buf_size)
373 if (buf_size != 0)
375 size_t copylen = MIN (len, buf_size-1);
/netbsd-6-1-5-RELEASE/external/bsd/bind/dist/lib/dns/
H A Dspnego.c417 size_t buf_size, buf_len = 0; local
419 buf_size = 1024;
420 buf = malloc(buf_size);
426 ret = encode_NegTokenResp(buf + buf_size - 1,
427 buf_size,
432 ret = der_put_length_and_tag(buf + buf_size - buf_len - 1,
433 buf_size - buf_len,
446 buf_size *= 2;
447 tmp = realloc(buf, buf_size);
468 memcpy(*outbuf, buf + buf_size
581 size_t buf_size; local
1398 gssapi_spnego_encapsulate(OM_uint32 * minor_status, unsigned char *buf, size_t buf_size, gss_buffer_t output_token, const gss_OID mech) argument
1503 size_t buf_size; local
1628 size_t buf_size; local
[all...]

Completed in 280 milliseconds

1234