Searched refs:buflen (Results 1 - 25 of 1130) sorted by relevance

1234567891011>>

/netbsd-current/external/mpl/bind/dist/lib/isc/
H A Dnonce.c21 isc_nonce_buf(void *buf, size_t buflen) { argument
22 isc_entropy_get(buf, buflen);
H A Dentropy_private.h34 isc_entropy_get(void *buf, size_t buflen);
/netbsd-current/external/mpl/dhcp/bind/dist/lib/isc/
H A Dnonce.c21 isc_nonce_buf(void *buf, size_t buflen) { argument
22 isc_entropy_get(buf, buflen);
H A Dentropy.c25 isc_entropy_get(void *buf, size_t buflen) { argument
26 if (RAND_bytes(buf, buflen) < 1) {
H A Dentropy_private.h34 isc_entropy_get(void *buf, size_t buflen);
/netbsd-current/crypto/external/bsd/heimdal/dist/lib/roken/
H A Dstrerror_r.c48 rk_strerror_r(int eno, char * strerrbuf, size_t buflen) argument
52 err = strerror_s(strerrbuf, buflen, eno);
55 code = sprintf_s(strerrbuf, buflen, "Error % occurred.", eno);
65 rk_strerror_r(int eno, char *strerrbuf, size_t buflen) argument
70 str = strerror_r(eno, strerrbuf, buflen);
72 if (strlcpy(strerrbuf, str, buflen) >= buflen)
77 ret = strlcpy(strerrbuf, strerror(eno), buflen);
78 if (ret > buflen)
/netbsd-current/external/mit/libuv/dist/src/
H A Drandom.c31 static int uv__random(void* buf, size_t buflen) { argument
35 rc = uv__random_readpath("/dev/urandom", buf, buflen);
37 rc = uv__random_readpath("/dev/random", buf, buflen);
40 rc = uv__random_getentropy(buf, buflen);
42 rc = uv__random_devurandom(buf, buflen);
44 rc = uv__random_sysctl(buf, buflen);
46 rc = uv__random_getrandom(buf, buflen);
48 rc = uv__random_devurandom(buf, buflen);
58 rc = uv__random_sysctl(buf, buflen);
64 rc = uv__random_rtlgenrandom(buf, buflen);
94 uv_random(uv_loop_t* loop, uv_random_t* req, void *buf, size_t buflen, unsigned flags, uv_random_cb cb) argument
[all...]
/netbsd-current/crypto/external/bsd/openssl/dist/providers/implementations/ciphers/
H A Dciphercommon_local.h12 void ossl_cipher_padblock(unsigned char *buf, size_t *buflen, size_t blocksize);
13 int ossl_cipher_unpadblock(unsigned char *buf, size_t *buflen, size_t blocksize);
15 unsigned char *buf, size_t *buflen, size_t blocksize,
H A Dciphercommon_block.c43 * buflen: contains the amount of data already in buf on entry. Updated with the
44 * amount of data in buf at the end. On entry *buflen must always be
51 * *buflen is updated containing the amount of data in buf. *in is updated to
56 size_t ossl_cipher_fillblock(unsigned char *buf, size_t *buflen, argument
61 size_t bufremain = blocksize - *buflen;
63 assert(*buflen <= blocksize);
68 memcpy(buf + *buflen, *in, bufremain);
71 *buflen += bufremain;
80 int ossl_cipher_trailingdata(unsigned char *buf, size_t *buflen, size_t blocksize, argument
86 if (*buflen
99 ossl_cipher_padblock(unsigned char *buf, size_t *buflen, size_t blocksize) argument
108 ossl_cipher_unpadblock(unsigned char *buf, size_t *buflen, size_t blocksize) argument
158 ossl_cipher_tlsunpadblock(OSSL_LIB_CTX *libctx, unsigned int tlsversion, unsigned char *buf, size_t *buflen, size_t blocksize, unsigned char **mac, int *alloced, size_t macsize, int aead) argument
[all...]
/netbsd-current/lib/librumpuser/
H A Drumpuser_random.c76 rumpuser_getrandom(void *buf, size_t buflen, int flags, size_t *retp) argument
81 rv = read(random_fd, buf, buflen > random_maxread ? random_maxread : buflen);
87 buflen = buflen > random_maxread ? random_maxread : buflen;
88 arc4random_buf(buf, buflen);
89 *retp = buflen;
/netbsd-current/external/mpl/dhcp/dist/includes/
H A Dns_name.h45 int MRns_name_uncompress_list(const unsigned char*, int buflen, char*, size_t);
46 int MRns_name_compress_list(const char*, int buflen, unsigned char*, size_t);
/netbsd-current/external/gpl2/dtc/dist/tests/
H A Dget_path.c21 static void check_path_buf(void *fdt, const char *path, int pathlen, int buflen) argument
24 char buf[buflen+1];
33 len = fdt_get_path(fdt, offset, buf, buflen);
37 if (buflen <= pathlen) {
40 "insufficient buffer space", buflen, len);
43 FAIL("fdt_get_path([%d bytes]): %s", buflen,
47 "instead of 0", buflen, len);
50 "instead of \"%s\"", buflen, buf, path);
53 if (buf[buflen] != POISON)
54 FAIL("fdt_get_path([%d bytes]) overran buffer", buflen);
[all...]
/netbsd-current/external/bsd/libbind/dist/nameser/
H A Dns_print.c54 char **buf, size_t *buflen);
57 char **buf, size_t *buflen);
58 static void addlen(size_t len, char **buf, size_t *buflen);
60 char **buf, size_t *buflen);
62 char **buf, size_t *buflen);
86 char *buf, size_t buflen)
93 name_ctx, origin, buf, buflen);
108 char *buf, size_t buflen)
122 T(addstr("\t\t\t", 3, &buf, &buflen));
128 T(addstr("@\t\t\t", 4, &buf, &buflen));
84 ns_sprintrr(const ns_msg *handle, const ns_rr *rr, const char *name_ctx, const char *origin, char *buf, size_t buflen) argument
104 ns_sprintrrf(const u_char *msg, size_t msglen, const char *name, ns_class class, ns_type type, u_long ttl, const u_char *rdata, size_t rdlen, const char *name_ctx, const char *origin, char *buf, size_t buflen) argument
160 addlen(strlen(buf), &buf, &buflen); local
330 addlen(strlen(buf), &buf, &buflen); local
421 addlen(strlen(buf), &buf, &buflen); local
660 addlen(strlen(buf), &buf, &buflen); local
683 addlen(strlen(buf), &buf, &buflen); local
953 addlen(strlen(buf), &buf, &buflen); local
958 addlen(strlen(buf), &buf, &buflen); local
1127 charstr(const u_char *rdata, const u_char *edata, char **buf, size_t *buflen) argument
1161 addname(const u_char *msg, size_t msglen, const u_char **pp, const char *origin, char **buf, size_t *buflen) argument
1205 addlen(size_t len, char **buf, size_t *buflen) argument
1212 addstr(const char *src, size_t len, char **buf, size_t *buflen) argument
1224 addtab(size_t len, size_t target, int spaced, char **buf, size_t *buflen) argument
[all...]
/netbsd-current/lib/libc/nameser/
H A Dns_print.c61 char **buf, size_t *buflen);
64 char **buf, size_t *buflen);
65 static void addlen(size_t len, char **buf, size_t *buflen);
67 char **buf, size_t *buflen);
69 char **buf, size_t *buflen);
93 char *buf, size_t buflen)
100 name_ctx, origin, buf, buflen);
115 char *buf, size_t buflen)
129 T(addstr("\t\t\t", (size_t)3, &buf, &buflen));
135 T(addstr("@\t\t\t", (size_t)4, &buf, &buflen));
91 ns_sprintrr(const ns_msg *handle, const ns_rr *rr, const char *name_ctx, const char *origin, char *buf, size_t buflen) argument
111 ns_sprintrrf(const u_char *msg, size_t msglen, const char *name, ns_class class, ns_type type, u_long ttl, const u_char *rdata, size_t rdlen, const char *name_ctx, const char *origin, char *buf, size_t buflen) argument
167 addlen(strlen(buf), &buf, &buflen); local
337 addlen(strlen(buf), &buf, &buflen); local
428 addlen(strlen(buf), &buf, &buflen); local
672 addlen(strlen(buf), &buf, &buflen); local
695 addlen(strlen(buf), &buf, &buflen); local
967 addlen(strlen(buf), &buf, &buflen); local
972 addlen(strlen(buf), &buf, &buflen); local
1145 charstr(const u_char *rdata, const u_char *edata, char **buf, size_t *buflen) argument
1180 addname(const u_char *msg, size_t msglen, const u_char **pp, const char *origin, char **buf, size_t *buflen) argument
1225 addlen(size_t len, char **buf, size_t *buflen) argument
1232 addstr(const char *src, size_t len, char **buf, size_t *buflen) argument
1244 addtab(size_t len, size_t target, int spaced, char **buf, size_t *buflen) argument
[all...]
/netbsd-current/external/bsd/wpa/dist/src/fst/
H A Dfst_ctrl_iface.h17 int fst_ctrl_iface_mb_info(const u8 *addr, char *buf, size_t buflen);
19 int fst_ctrl_iface_receive(const char *txtaddr, char *buf, size_t buflen);
26 fst_ctrl_iface_mb_info(const u8 *addr, char *buf, size_t buflen) argument
34 int fst_read_next_text_param(const char *params, char *buf, size_t buflen,
/netbsd-current/lib/libc/string/
H A Dstrerror_r.c54 _strerror_lr(int num, char *buf, size_t buflen, locale_t loc)
70 sys_errlist[errnum]), buflen);
72 slen = strlcpy(buf, sys_errlist[errnum], buflen);
76 slen = snprintf_l(buf, buflen, loc,
79 slen = snprintf(buf, buflen, UPREFIX, num);
84 if (slen >= buflen)
96 strerror_r(int num, char *buf, size_t buflen) argument
99 return _strerror_lr(num, buf, buflen, _current_locale());
101 return _strerror_lr(num, buf, buflen, NULL);
/netbsd-current/lib/libc/gen/
H A Dgetentropy.c51 getentropy(void *buf, size_t buflen)
53 size_t len = buflen;
56 if (buf == NULL && buflen > 0) {
61 if (buflen > 256) {
/netbsd-current/sys/arch/ia64/disasm/
H A Ddisasm_format.c116 asm_completer(const struct asm_cmpltr *c, char *buf, size_t buflen) argument
118 strlcpy(buf, asm_completers[c->c_type], buflen);
122 asm_mnemonic(enum asm_op op, char *buf, size_t buflen) argument
125 buflen);
129 asm_operand(const struct asm_oper *o, char *buf, size_t buflen, uint64_t ip) argument
166 snprintf(buf, buflen, "ar%d", (int)o->o_value);
169 snprintf(buf, buflen, "ar.%s", n);
173 snprintf(buf, buflen, "b%d", (int)o->o_value);
175 strlcpy(buf, "rp", buflen);
209 snprintf(buf, buflen, "c
[all...]
/netbsd-current/external/gpl3/gdb.old/dist/gnulib/import/
H A Dstrerror_r.c44 int __xpg_strerror_r (int errnum, char *buf, size_t buflen);
111 local_snprintf (char *buf, size_t buflen, const char *format, ...) argument
117 result = _vsnprintf (buf, buflen, format, args);
119 if (buflen > 0 && (result < 0 || result >= buflen))
120 buf[buflen - 1] = '\0';
129 safe_copy (char *buf, size_t buflen, const char *msg) argument
132 size_t moved = len < buflen ? len : buflen - 1;
138 return len < buflen
143 strerror_r(int errnum, char *buf, size_t buflen) argument
[all...]
/netbsd-current/crypto/external/bsd/openssl/dist/crypto/
H A Do_str.c138 static int hexstr2buf_sep(unsigned char *buf, size_t buf_n, size_t *buflen, argument
173 if (buflen != NULL)
174 *buflen = cnt;
181 int OPENSSL_hexstr2buf_ex(unsigned char *buf, size_t buf_n, size_t *buflen, argument
184 return hexstr2buf_sep(buf, buf_n, buflen, str, sep);
187 unsigned char *ossl_hexstr2buf_sep(const char *str, long *buflen, argument
204 if (buflen != NULL)
205 *buflen = 0;
208 if (buflen != NULL)
209 *buflen
216 OPENSSL_hexstr2buf(const char *str, long *buflen) argument
221 buf2hexstr_sep(char *str, size_t str_n, size_t *strlength, const unsigned char *buf, size_t buflen, const char sep) argument
259 OPENSSL_buf2hexstr_ex(char *str, size_t str_n, size_t *strlength, const unsigned char *buf, size_t buflen, const char sep) argument
266 ossl_buf2hexstr_sep(const unsigned char *buf, long buflen, char sep) argument
292 OPENSSL_buf2hexstr(const unsigned char *buf, long buflen) argument
297 openssl_strerror_r(int errnum, char *buf, size_t buflen) argument
[all...]
/netbsd-current/external/gpl3/gdb/dist/gnulib/import/
H A Dstrerror_r.c40 _GL_EXTERN_C int __xpg_strerror_r (int errnum, char *buf, size_t buflen);
104 local_snprintf (char *buf, size_t buflen, const char *format, ...) argument
110 result = _vsnprintf (buf, buflen, format, args);
112 if (buflen > 0 && (result < 0 || result >= buflen))
113 buf[buflen - 1] = '\0';
123 safe_copy (char *buf, size_t buflen, const char *msg) argument
126 size_t moved = len < buflen ? len : buflen - 1;
132 return len < buflen
137 strerror_r(int errnum, char *buf, size_t buflen) argument
[all...]
/netbsd-current/lib/libc/stdio/
H A Dgetline.c42 getline(char **__restrict buf, size_t *__restrict buflen, FILE *__restrict fp)
44 return getdelim(buf, buflen, '\n', fp);
/netbsd-current/tests/usr.bin/nbperf/
H A Dhash_driver.c43 size_t buflen; local
46 while ((len = getline(&line, &buflen, stdin)) > 0) {
/netbsd-current/external/mpl/bind/dist/lib/isc/include/isc/
H A Dnonce.h29 isc_nonce_buf(void *buf, size_t buflen);
31 * Fill 'buf', up to 'buflen' bytes, with random data from the
/netbsd-current/external/mpl/dhcp/bind/dist/lib/isc/include/isc/
H A Dnonce.h29 isc_nonce_buf(void *buf, size_t buflen);
31 * Fill 'buf', up to 'buflen' bytes, with random data from the

Completed in 276 milliseconds

1234567891011>>