Home
last modified time | relevance | path

Searched refs:buflen (Results 151 – 175 of 1171) sorted by relevance

12345678910>>...47

/netbsd/sys/ddb/
H A Ddb_sym.c308 db_symstr(char *buf, size_t buflen, db_expr_t off, db_strategy_t strategy) in db_symstr() argument
328 strlcpy(buf, name, buflen); in db_symstr()
330 strlcat(buf, "+", buflen); in db_symstr()
337 snprintf(buf + len, buflen - len, in db_symstr()
343 strlcpy(buf, db_num_to_str(off), buflen); in db_symstr()
359 snprintf(buf, buflen, "%s:%s", mod, name); in db_symstr()
361 strlcat(buf, "+", buflen); in db_symstr()
369 buflen - strlen(buf), in db_symstr()
377 db_num_to_strbuf(off, buf, buflen); in db_symstr()
/netbsd/usr.sbin/altq/altqstat/
H A Dquip_client.c180 int code, resid, len, buflen; in quip_recvresponse() local
187 buflen = RES_MAXSIZE; in quip_recvresponse()
197 len = strlcpy(header, buf, buflen); in quip_recvresponse()
198 if (len >= buflen) { in quip_recvresponse()
204 buflen -= len; in quip_recvresponse()
227 buflen = BODY_MAXSIZE; in quip_recvresponse()
248 len = strlcpy(body, buf, buflen); in quip_recvresponse()
249 if (len >= buflen) { in quip_recvresponse()
255 buflen -= len; in quip_recvresponse()
/netbsd/external/bsd/wpa/dist/src/tls/
H A Dtlsv1_common.c422 size_t buflen; in tls_verify_signature() local
447 buflen = end - pos; in tls_verify_signature()
453 if (crypto_public_key_decrypt_pkcs1(pk, pos, end - pos, buf, &buflen) < in tls_verify_signature()
463 decrypted, buflen); in tls_verify_signature()
481 if (buflen >= 19 + 32 && in tls_verify_signature()
487 buflen -= 19; in tls_verify_signature()
488 } else if (buflen >= 19 + 48 && in tls_verify_signature()
494 buflen -= 19; in tls_verify_signature()
495 } else if (buflen >= 19 + 64 && in tls_verify_signature()
501 buflen -= 19; in tls_verify_signature()
[all …]
/netbsd/external/gpl2/gettext/dist/gettext-tools/src/
H A Dx-librep.c413 static size_t buflen; variable
418 buflen = 0; in comment_start()
424 if (buflen >= bufmax) in comment_add()
429 buffer[buflen++] = c; in comment_add()
435 buflen -= chars_to_remove; in comment_line_end()
436 while (buflen >= 1 in comment_line_end()
437 && (buffer[buflen - 1] == ' ' || buffer[buflen - 1] == '\t')) in comment_line_end()
438 --buflen; in comment_line_end()
439 if (chars_to_remove == 0 && buflen >= bufmax) in comment_line_end()
444 buffer[buflen] = '\0'; in comment_line_end()
[all …]
H A Dx-php.c536 static size_t buflen; variable
541 buflen = 0; in comment_start()
547 if (buflen >= bufmax) in comment_add()
552 buffer[buflen++] = c; in comment_add()
558 buflen -= chars_to_remove; in comment_line_end()
559 while (buflen >= 1 in comment_line_end()
560 && (buffer[buflen - 1] == ' ' || buffer[buflen - 1] == '\t')) in comment_line_end()
561 --buflen; in comment_line_end()
562 if (chars_to_remove == 0 && buflen >= bufmax) in comment_line_end()
567 buffer[buflen] = '\0'; in comment_line_end()
[all …]
/netbsd/external/bsd/pcc/dist/pcc/driver/
H A Dlist.c47 size_t buflen; member
85 l->buflen = 0; in list_alloc()
145 s = l->buflen - l->bufused; in list_add()
157 l->buflen += BLOCK; in list_add()
158 l->buf = xrealloc(l->buf, l->buflen); in list_add()
/netbsd/tests/net/bpfjit/
H A Dt_cop.c82 return args->buflen; in retBL()
159 .buflen = sizeof(pkt), in ATF_TC_BODY()
198 .buflen = sizeof(pkt), in ATF_TC_BODY()
237 .buflen = sizeof(pkt), in ATF_TC_BODY()
276 .buflen = sizeof(pkt), in ATF_TC_BODY()
318 .buflen = sizeof(pkt), in ATF_TC_BODY()
366 .buflen = sizeof(pkt), in ATF_TC_BODY()
460 .buflen = sizeof(pkt), in ATF_TC_BODY()
500 .buflen = sizeof(pkt), in ATF_TC_BODY()
540 .buflen = sizeof(pkt), in ATF_TC_BODY()
[all …]
/netbsd/external/bsd/ntp/dist/lib/isc/unix/
H A Dfile.c167 isc_file_mktemplate(const char *path, char *buf, size_t buflen) { in isc_file_mktemplate() argument
168 return (isc_file_template(path, TEMPLATE, buf, buflen)); in isc_file_mktemplate()
173 size_t buflen) { in isc_file_template() argument
187 if ((s - path + 1 + strlen(templet) + 1) > buflen) in isc_file_template()
190 strlcpy(buf, path, buflen); in isc_file_template()
192 strlcat(buf, templet, buflen); in isc_file_template()
194 if ((strlen(templet) + 1) > buflen) in isc_file_template()
197 strlcpy(buf, templet, buflen); in isc_file_template()
407 isc_file_progname(const char *filename, char *buf, size_t buflen) { in isc_file_progname() argument
417 if (len > buflen) in isc_file_progname()
/netbsd/sys/arch/playstation2/playstation2/
H A Dbus_dma.c140 _bus_dmamap_load_buffer(bus_dmamap_t map, void *buf, bus_size_t buflen, in _bus_dmamap_load_buffer() argument
151 for (seg = *segp; buflen > 0 ; ) { in _bus_dmamap_load_buffer()
165 if (buflen < sgsize) in _bus_dmamap_load_buffer()
166 sgsize = buflen; in _bus_dmamap_load_buffer()
205 buflen -= sgsize; in _bus_dmamap_load_buffer()
214 if (buflen != 0) in _bus_dmamap_load_buffer()
226 bus_size_t buflen, struct proc *p, int flags) in _bus_dmamap_load() argument
239 if (buflen > map->_dm_size) in _bus_dmamap_load()
249 error = _bus_dmamap_load_buffer(map, buf, buflen, in _bus_dmamap_load()
252 map->dm_mapsize = buflen; in _bus_dmamap_load()
/netbsd/sys/compat/common/
H A Dvfs_syscalls_12.c130 int buflen, error, eofflag, nbytes; in compat_12_sys_getdirentries() local
159 buflen = uimin(MAXBSIZE, nbytes); in compat_12_sys_getdirentries()
160 if (buflen < va.va_blocksize) in compat_12_sys_getdirentries()
161 buflen = va.va_blocksize; in compat_12_sys_getdirentries()
162 tbuf = malloc(buflen, M_TEMP, M_WAITOK); in compat_12_sys_getdirentries()
168 aiov.iov_len = buflen; in compat_12_sys_getdirentries()
172 auio.uio_resid = buflen; in compat_12_sys_getdirentries()
187 if ((len = buflen - auio.uio_resid) == 0) in compat_12_sys_getdirentries()
/netbsd/sys/arch/evbmips/adm5120/
H A Dmachdep.c169 size_t buflen, rc; in copy_args() local
172 buflen = sizeof(admc->args); in copy_args()
177 for (i = 0; buflen > 0 && i < argc && argv[i] != NULL; i++) { in copy_args()
179 if ((rc = strlcpy(buf, argv[i], buflen)) >= buflen) in copy_args()
183 buflen -= rc; in copy_args()
185 buflen--; in copy_args()
/netbsd/sys/dev/fdt/
H A Dfdt_openfirm.c169 OF_getprop(int phandle, const char *prop, void *buf, int buflen) in OF_getprop() argument
195 if (val == NULL || len > buflen) { in OF_getprop()
219 if (val == NULL || len > buflen) { in OF_getprop()
282 OF_setprop(int phandle, const char *prop, const void *buf, int buflen) in OF_setprop() argument
306 OF_package_to_path(int phandle, char *buf, int buflen) in OF_package_to_path() argument
320 if (fdt_get_path(fdt_data, off, buf, buflen) != 0) in OF_package_to_path()
/netbsd/external/gpl2/xcvs/dist/lib/
H A Dmd5.c83 ctx->buflen = 0; in md5_init_ctx()
111 md5_uint32 bytes = ctx->buflen; in md5_finish_ctx()
224 if (ctx->buflen != 0) in md5_process_bytes()
226 size_t left_over = ctx->buflen; in md5_process_bytes()
230 ctx->buflen += add; in md5_process_bytes()
232 if (ctx->buflen > 64) in md5_process_bytes()
234 md5_process_block (ctx->buffer, ctx->buflen & ~63, ctx); in md5_process_bytes()
236 ctx->buflen &= 63; in md5_process_bytes()
239 ctx->buflen); in md5_process_bytes()
271 size_t left_over = ctx->buflen; in md5_process_bytes()
[all …]
/netbsd/lib/libtelnet/
H A Denc_des.c445 int buflen, const unsigned char *type) in fb64_printsub() argument
451 buf[buflen-1] = '\0'; /* make sure it's NULL terminated */ in fb64_printsub()
452 buflen -= 1; in fb64_printsub()
474 for (; (buflen > 0) && (*buf = *cp++); buf++) in fb64_printsub()
475 buflen--; in fb64_printsub()
478 for (cp = lbuf; (buflen > 0) && (*buf = *cp++); buf++) in fb64_printsub()
479 buflen--; in fb64_printsub()
486 cfb64_printsub(unsigned char *data, int cnt, unsigned char *buf, int buflen) in cfb64_printsub() argument
488 fb64_printsub(data, cnt, buf, buflen, "CFB64"); in cfb64_printsub()
492 ofb64_printsub(unsigned char *data, int cnt, unsigned char *buf, int buflen) in ofb64_printsub() argument
[all …]
/netbsd/sys/arch/alpha/common/
H A Dbus_dma.c134 void *buf, size_t buflen, struct vmspace *vm, int flags, paddr_t *lastaddrp, in _bus_dmamap_load_buffer_direct() argument
146 for (seg = *segp; buflen > 0 ; ) { in _bus_dmamap_load_buffer_direct()
167 if (buflen < sgsize) in _bus_dmamap_load_buffer_direct()
168 sgsize = buflen; in _bus_dmamap_load_buffer_direct()
208 buflen -= sgsize; in _bus_dmamap_load_buffer_direct()
217 if (buflen != 0) { in _bus_dmamap_load_buffer_direct()
239 bus_size_t buflen, struct proc *p, int flags) in _bus_dmamap_load_direct() argument
253 if (buflen > map->_dm_size) in _bus_dmamap_load_direct()
262 error = _bus_dmamap_load_buffer_direct(t, map, buf, buflen, in _bus_dmamap_load_direct()
266 map->dm_mapsize = buflen; in _bus_dmamap_load_direct()
[all …]
/netbsd/external/ibm-public/postfix/dist/src/tls/
H A Dtls_certkey.c188 long buflen) in load_cert() argument
191 X509 *cert = d2i_X509(0, &p, buflen); in load_cert()
210 if (p - buf != buflen) { in load_cert()
248 unsigned char *buf, long buflen) in load_pkey() argument
261 pkey = d2i_PrivateKey(pkey_type, 0, &p, buflen); in load_pkey()
263 p8 = d2i_PKCS8_PRIV_KEY_INFO(NULL, &p, buflen); in load_pkey()
302 if (p - buf != buflen) { in load_pkey()
351 long buflen; in load_pem_object() local
354 if (!PEM_read_bio(st->pembio, &name, &header, &buf, &buflen)) { in load_pem_object()
364 load_cert(st, buf, buflen); in load_pem_object()
[all …]
/netbsd/external/bsd/pam-u2f/dist/fuzz/
H A Dwrap.c100 size_t buflen, struct passwd **result) { in __wrap_getpwuid_r() argument
115 if ((offset = snprintf(buf, buflen, "/home/")) < 0 || in __wrap_getpwuid_r()
116 (size_t) offset >= buflen) in __wrap_getpwuid_r()
121 buflen -= offset; in __wrap_getpwuid_r()
123 if ((offset = snprintf(buf, buflen, "%s", user)) < 0 || in __wrap_getpwuid_r()
124 (size_t) offset >= buflen) in __wrap_getpwuid_r()
138 size_t buflen, struct passwd **result) { in __wrap_getpwnam_r() argument
140 return __wrap_getpwuid_r(1008, pwd, buf, buflen, result); in __wrap_getpwnam_r()
/netbsd/external/mpl/bind/dist/lib/isc/
H A Drandom.c106 isc_random_buf(void *buf, size_t buflen) { in isc_random_buf() argument
111 REQUIRE(buflen > 0); in isc_random_buf()
116 for (i = 0; i + sizeof(r) <= buflen; i += sizeof(r)) { in isc_random_buf()
121 memmove((uint8_t *)buf + i, &r, buflen % sizeof(r)); in isc_random_buf()
/netbsd/crypto/external/bsd/libsaslc/dist/src/
H A Dbuffer.c120 size_t buflen; in saslc__buffer_create() local
122 buflen = sizeof(*ctx) - sizeof(ctx->buf) + maxbuf; in saslc__buffer_create()
123 ctx = malloc(buflen); in saslc__buffer_create()
220 size_t buflen; in saslc__buffer32_create() local
222 buflen = sizeof(*ctx) - sizeof(ctx->buf) + maxbuf; in saslc__buffer32_create()
223 ctx = malloc(buflen); in saslc__buffer32_create()
/netbsd/sys/rump/dev/lib/libpci/
H A Drumpdev_bus_dma.c155 void *buf, bus_size_t buflen, struct vmspace *vm, int flags, in _bus_dmamap_load_buffer() argument
169 for (seg = *segp; buflen > 0 ; ) { in _bus_dmamap_load_buffer()
191 if (buflen < sgsize) in _bus_dmamap_load_buffer()
192 sgsize = buflen; in _bus_dmamap_load_buffer()
232 buflen -= sgsize; in _bus_dmamap_load_buffer()
241 if (buflen != 0) in _bus_dmamap_load_buffer()
253 void *buf, bus_size_t buflen, struct proc *p, int flags) in bus_dmamap_load() argument
266 if (buflen > map->_dm_size) in bus_dmamap_load()
276 error = _bus_dmamap_load_buffer(t, map, buf, buflen, vm, flags, in bus_dmamap_load()
279 map->dm_mapsize = buflen; in bus_dmamap_load()
/netbsd/external/bsd/wpa/dist/src/utils/
H A Djson.c511 size_t buflen; in json_get_member_base64url() local
518 os_strlen(token->string), &buflen); in json_get_member_base64url()
521 ret = wpabuf_alloc_ext_data(buf, buflen); in json_get_member_base64url()
552 char *buf, size_t buflen) in json_print_token() argument
560 ret = os_snprintf(buf + len, buflen - len, "[%d:%s:%s]", in json_print_token()
563 if (os_snprintf_error(buflen - len, ret)) { in json_print_token()
567 json_print_token(token->child, depth + 1, buf, buflen); in json_print_token()
568 json_print_token(token->sibling, depth, buf, buflen); in json_print_token()
572 void json_print_tree(struct json_token *root, char *buf, size_t buflen) in json_print_tree() argument
575 json_print_token(root, 1, buf, buflen); in json_print_tree()
/netbsd/sys/arch/mips/alchemy/dev/
H A Dausmbus_psc.c85 size_t buflen, int flags);
215 size_t cmdlen, void *vbuf, size_t buflen, int flags) in ausmbus_exec() argument
223 if ((I2C_OP_READ_P(op)) && (cmdlen == 0) && (buflen == 1)) { in ausmbus_exec()
228 if ((I2C_OP_READ_P(op)) && (cmdlen == 1) && (buflen == 1)) { in ausmbus_exec()
233 if ((I2C_OP_READ_P(op)) && (cmdlen == 1) && (buflen == 2)) { in ausmbus_exec()
238 if ((I2C_OP_READ_P(op)) && (cmdlen == 0) && (buflen == 0)) { in ausmbus_exec()
243 if ((I2C_OP_WRITE_P(op)) && (cmdlen == 0) && (buflen == 1)) { in ausmbus_exec()
248 if ((I2C_OP_WRITE_P(op)) && (cmdlen == 1) && (buflen == 1)) { in ausmbus_exec()
253 if ((I2C_OP_WRITE_P(op)) && (cmdlen == 1) && (buflen == 2)) { in ausmbus_exec()
258 if ((I2C_OP_WRITE_P(op)) && (cmdlen == 0) && (buflen == 0)) { in ausmbus_exec()
/netbsd/sys/arch/ews4800mips/ews4800mips/
H A Dbus_dma.c143 _bus_dmamap_load_buffer(bus_dmamap_t map, void *buf, bus_size_t buflen, in _bus_dmamap_load_buffer() argument
154 for (seg = *segp; buflen > 0 ; ) { in _bus_dmamap_load_buffer()
168 if (buflen < sgsize) in _bus_dmamap_load_buffer()
169 sgsize = buflen; in _bus_dmamap_load_buffer()
208 buflen -= sgsize; in _bus_dmamap_load_buffer()
217 if (buflen != 0) in _bus_dmamap_load_buffer()
229 bus_size_t buflen, struct proc *p, int flags) in _bus_dmamap_load() argument
242 if (buflen > map->_dm_size) in _bus_dmamap_load()
252 error = _bus_dmamap_load_buffer(map, buf, buflen, in _bus_dmamap_load()
255 map->dm_mapsize = buflen; in _bus_dmamap_load()
/netbsd/sys/arch/mipsco/mipsco/
H A Dbus_dma.c144 _bus_dmamap_load_buffer(bus_dma_tag_t t, bus_dmamap_t map, void *buf, bus_size_t buflen, struct vms… in _bus_dmamap_load_buffer() argument
155 for (seg = *segp; buflen > 0 ; ) { in _bus_dmamap_load_buffer()
169 if (buflen < sgsize) in _bus_dmamap_load_buffer()
170 sgsize = buflen; in _bus_dmamap_load_buffer()
212 buflen -= sgsize; in _bus_dmamap_load_buffer()
221 if (buflen != 0) in _bus_dmamap_load_buffer()
232 _bus_dmamap_load(bus_dma_tag_t t, bus_dmamap_t map, void *buf, bus_size_t buflen, struct proc *p, i… in _bus_dmamap_load() argument
245 if (buflen > map->_dm_size) in _bus_dmamap_load()
255 error = _bus_dmamap_load_buffer(t, map, buf, buflen, in _bus_dmamap_load()
258 map->dm_mapsize = buflen; in _bus_dmamap_load()
/netbsd/sys/arch/x68k/x68k/
H A Dbus.c143 bus_size_t buflen, struct proc *p, int flags) in x68k_bus_dmamap_load() argument
155 if (buflen > map->x68k_dm_size) in x68k_bus_dmamap_load()
159 error = x68k_bus_dmamap_load_buffer(map, buf, buflen, p, flags, in x68k_bus_dmamap_load()
162 map->dm_mapsize = buflen; in x68k_bus_dmamap_load()
480 x68k_bus_dmamap_load_buffer(bus_dmamap_t map, void *buf, bus_size_t buflen, in x68k_bus_dmamap_load_buffer() argument
497 for (seg = *segp; buflen > 0 ; ) { in x68k_bus_dmamap_load_buffer()
515 if (buflen < sgsize) in x68k_bus_dmamap_load_buffer()
516 sgsize = buflen; in x68k_bus_dmamap_load_buffer()
553 buflen -= sgsize; in x68k_bus_dmamap_load_buffer()
562 if (buflen != 0) in x68k_bus_dmamap_load_buffer()

12345678910>>...47