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

1234567891011>>

/freebsd-10.1-release/crypto/heimdal/lib/roken/
H A Dstrerror_r.c46 rk_strerror_r(int eno, char * strerrbuf, size_t buflen) argument
50 err = strerror_s(strerrbuf, buflen, eno);
53 code = sprintf_s(strerrbuf, buflen, "Error % occurred.", eno);
63 rk_strerror_r(int eno, char *strerrbuf, size_t buflen) argument
68 str = strerror_r(eno, strerrbuf, buflen);
70 if (strlcpy(strerrbuf, str, buflen) >= buflen)
75 ret = strlcpy(strerrbuf, strerror(eno), buflen);
76 if (ret > buflen)
/freebsd-10.1-release/lib/libugidfw/
H A Dugidfw.h39 size_t buflen);
40 int bsde_parse_mode(int argc, char *argv[], mode_t *mode, size_t buflen,
43 struct mac_bsdextended_rule *rule, size_t buflen, char *errstr);
45 struct mac_bsdextended_rule *rule, size_t buflen, char *errstr);
47 int bsde_get_rule_count(size_t buflen, char *errstr);
48 int bsde_get_rule_slots(size_t buflen, char *errstr);
51 int bsde_delete_rule(int rulenum, size_t buflen, char *errstr);
53 size_t buflen, char *errstr);
55 size_t buflen, char *errstr);
/freebsd-10.1-release/contrib/tcpdump/
H A Ddecode_prefix.h36 extern int decode_prefix4(const u_char *pptr, u_int itemlen, char *buf, u_int buflen);
38 extern int decode_prefix6(const u_char *pd, u_int itemlen, char *buf, u_int buflen);
/freebsd-10.1-release/usr.sbin/pw/
H A Dfileupd.c45 extendline(char **buf, int * buflen, int needed) argument
47 if (needed > *buflen) {
52 *buflen = needed;
54 return *buflen;
58 extendarray(char ***buf, int * buflen, int needed) argument
60 if (needed > *buflen) {
65 *buflen = needed;
67 return *buflen;
/freebsd-10.1-release/contrib/wpa/src/ap/
H A Dctrl_iface_ap.h13 char *buf, size_t buflen);
15 char *buf, size_t buflen);
17 char *buf, size_t buflen);
H A Dp2p_hostapd.h15 char *buf, size_t buflen);
26 char *buf, size_t buflen)
24 hostapd_p2p_get_mib_sta(struct hostapd_data *hapd, struct sta_info *sta, char *buf, size_t buflen) argument
H A Dctrl_iface_ap.c25 char *buf, size_t buflen)
36 ret = os_snprintf(buf + len, buflen - len, "connected_time=%u\n",
38 if (ret < 0 || (size_t) ret >= buflen - len)
48 char *buf, size_t buflen)
53 ret = os_snprintf(buf, buflen, "FAIL\n");
54 if (ret < 0 || (size_t) ret >= buflen)
60 ret = os_snprintf(buf + len, buflen - len, MACSTR "\n",
62 if (ret < 0 || (size_t) ret >= buflen - len)
66 res = ieee802_11_get_mib_sta(hapd, sta, buf + len, buflen - len);
69 res = wpa_get_mib_sta(sta->wpa_sm, buf + len, buflen
24 hostapd_get_sta_conn_time(struct sta_info *sta, char *buf, size_t buflen) argument
46 hostapd_ctrl_iface_sta_mib(struct hostapd_data *hapd, struct sta_info *sta, char *buf, size_t buflen) argument
91 hostapd_ctrl_iface_sta_first(struct hostapd_data *hapd, char *buf, size_t buflen) argument
98 hostapd_ctrl_iface_sta(struct hostapd_data *hapd, const char *txtaddr, char *buf, size_t buflen) argument
115 hostapd_ctrl_iface_sta_next(struct hostapd_data *hapd, const char *txtaddr, char *buf, size_t buflen) argument
[all...]
/freebsd-10.1-release/kerberos5/lib/libgssapi_krb5/
H A Dpname_to_uid.c43 size_t buflen; local
57 buflen = buflen_hint;
61 if (buflen > sizeof(buf))
62 bufp = malloc(buflen);
65 error = getpwnam_r(lname, &pwd, bufp, buflen, &pw);
68 if (buflen > sizeof(buf))
70 buflen += 1024;
71 if (buflen > buflen_hint)
72 buflen_hint = buflen;
80 if (bufp != NULL && buflen > sizeo
[all...]
/freebsd-10.1-release/lib/libc/nameser/
H A Dns_print.c59 char **buf, size_t *buflen);
62 char **buf, size_t *buflen);
63 static void addlen(size_t len, char **buf, size_t *buflen);
65 char **buf, size_t *buflen);
67 char **buf, size_t *buflen);
91 char *buf, size_t buflen)
98 name_ctx, origin, buf, buflen);
113 char *buf, size_t buflen)
127 T(addstr("\t\t\t", 3, &buf, &buflen));
133 T(addstr("@\t\t\t", 4, &buf, &buflen));
89 ns_sprintrr(const ns_msg *handle, const ns_rr *rr, const char *name_ctx, const char *origin, char *buf, size_t buflen) argument
109 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
165 addlen(strlen(buf), &buf, &buflen); local
335 addlen(strlen(buf), &buf, &buflen); local
426 addlen(strlen(buf), &buf, &buflen); local
669 addlen(strlen(buf), &buf, &buflen); local
692 addlen(strlen(buf), &buf, &buflen); local
963 addlen(strlen(buf), &buf, &buflen); local
968 addlen(strlen(buf), &buf, &buflen); local
1137 charstr(const u_char *rdata, const u_char *edata, char **buf, size_t *buflen) argument
1171 addname(const u_char *msg, size_t msglen, const u_char **pp, const char *origin, char **buf, size_t *buflen) argument
1215 addlen(size_t len, char **buf, size_t *buflen) argument
1222 addstr(const char *src, size_t len, char **buf, size_t *buflen) argument
1234 addtab(size_t len, size_t target, int spaced, char **buf, size_t *buflen) argument
[all...]
/freebsd-10.1-release/lib/libc/gen/
H A Dgetvfsbyname.c53 size_t buflen; local
56 if (sysctlbyname("vfs.conflist", NULL, &buflen, NULL, 0) < 0)
58 xvfsp = malloc(buflen);
61 if (sysctlbyname("vfs.conflist", xvfsp, &buflen, NULL, 0) < 0) {
65 cnt = buflen / sizeof(struct xvfsconf);
H A Dauxv.c114 _elf_aux_info(int aux, void *buf, int buflen) argument
125 if (canary != NULL && canary_len >= buflen) {
126 memcpy(buf, canary, buflen);
134 if (pagesizes != NULL && pagesizes_len >= buflen) {
135 memcpy(buf, pagesizes, buflen);
142 if (buflen == sizeof(int)) {
152 if (buflen == sizeof(int)) {
162 if (buflen == sizeof(int)) {
172 if (buflen == sizeof(void *)) {
/freebsd-10.1-release/lib/libcrypt/
H A Dcrypt-sha512.c63 crypt_sha512_r(const char *key, const char *salt, char *buffer, int buflen) argument
213 cp = stpncpy(buffer, sha512_salt_prefix, MAX(0, buflen));
214 buflen -= sizeof(sha512_salt_prefix) - 1;
217 n = snprintf(cp, MAX(0, buflen), "%s%zu$",
221 buflen -= n;
224 cp = stpncpy(cp, salt, MIN((size_t)MAX(0, buflen), salt_len));
225 buflen -= MIN((size_t)MAX(0, buflen), salt_len);
227 if (buflen > 0) {
229 --buflen;
290 static int buflen; local
[all...]
H A Dcrypt-sha256.c63 crypt_sha256_r(const char *key, const char *salt, char *buffer, int buflen) argument
213 cp = stpncpy(buffer, sha256_salt_prefix, MAX(0, buflen));
214 buflen -= sizeof(sha256_salt_prefix) - 1;
217 n = snprintf(cp, MAX(0, buflen), "%s%zu$",
221 buflen -= n;
224 cp = stpncpy(cp, salt, MIN((size_t)MAX(0, buflen), salt_len));
225 buflen -= MIN((size_t)MAX(0, buflen), salt_len);
227 if (buflen > 0) {
229 --buflen;
278 static int buflen; local
[all...]
H A Dmisc.c50 b64_from_24bit(uint8_t B2, uint8_t B1, uint8_t B0, int n, int *buflen, char **cp) argument
59 if ((*buflen)-- < 0)
/freebsd-10.1-release/lib/libc/stdlib/
H A Dl64a.c33 l64a_r(long value, char *buffer, int buflen) argument
39 for (; v != 0 && buflen > 1; buffer++, buflen--) {
/freebsd-10.1-release/tools/regression/bpf/bpf_filter/tests/
H A Dtest0002.h21 u_int buflen = sizeof(pkt); variable
H A Dtest0079.h20 u_int buflen = sizeof(pkt); variable
/freebsd-10.1-release/crypto/openssl/crypto/ecdh/
H A Dech_ossl.c119 size_t buflen, len; local
167 buflen = (EC_GROUP_get_degree(group) + 7) / 8;
169 if (len > buflen) {
173 if ((buf = OPENSSL_malloc(buflen)) == NULL) {
178 memset(buf, 0, buflen - len);
179 if (len != (size_t)BN_bn2bin(x, buf + buflen - len)) {
185 if (KDF(buf, buflen, out, &outlen) == NULL) {
192 if (outlen > buflen)
193 outlen = buflen;
/freebsd-10.1-release/usr.sbin/eeprom/
H A Dofw_options.c77 ofwo_printprop(const char *prop, const char* buf, int buflen) argument
80 printf("%s: %.*s\n", prop, buflen, buf);
85 int buflen, const char *val)
111 if (buflen != 0)
115 buflen);
121 int buflen, const char *val)
129 if ((res = ofwo_setstr(fd, buf, buflen, exent->ex_prop,
138 return (ofwo_setstr(fd, buf, buflen, exent->ex_prop,
143 ofwo_printprop(exent->ex_prop, (const char *)buf, buflen);
149 int buflen, cons
84 ofwo_oemlogo(const struct ofwo_extabent *exent, int fd, const void *buf, int buflen, const char *val) argument
120 ofwo_secmode(const struct ofwo_extabent *exent, int fd, const void *buf, int buflen, const char *val) argument
148 ofwo_secpwd(const struct ofwo_extabent *exent, int fd, const void *buf, int buflen, const char *val) argument
201 ofwo_setstr(int fd, const void *buf, int buflen, const char *prop, const char *val) argument
[all...]
/freebsd-10.1-release/contrib/subversion/subversion/svnserve/
H A Dlog-escape.c76 apr_size_t buflen)
81 if (!source || !buflen) { /* be safe */
87 ep = d + buflen - 1;
75 escape_errorlog_item(char *dest, const char *source, apr_size_t buflen) argument
/freebsd-10.1-release/usr.bin/mail/
H A Dv7.local.c55 findmail(char *user, char *buf, int buflen) argument
60 (void)snprintf(buf, buflen, "%s/%s", _PATH_MAILDIR, user);
62 (void)strlcpy(buf, tmp, buflen);
/freebsd-10.1-release/sbin/ddb/
H A Dddb_script.c62 size_t buflen, len; local
66 if (sysctlbyname(SYSCTL_SCRIPTS, NULL, &buflen, NULL, 0) < 0)
68 if (buflen == 0)
70 buffer = malloc(buflen);
73 bzero(buffer, buflen);
74 len = buflen;
/freebsd-10.1-release/contrib/telnet/libtelnet/
H A Dkrb4encpwd.c354 krb4encpwd_printsub(data, cnt, buf, buflen)
356 int cnt, buflen;
361 buf[buflen-1] = '\0'; /* make sure its NULL terminated */
362 buflen -= 1;
366 strncpy((char *)buf, " REJECT ", buflen);
370 strncpy((char *)buf, " ACCEPT ", buflen);
372 BUMP(buf, buflen);
375 ADDC(buf, buflen, '"');
377 ADDC(buf, buflen, data[i]);
378 ADDC(buf, buflen, '"');
[all...]
/freebsd-10.1-release/sbin/dmesg/
H A Ddmesg.c81 size_t buflen, bufpos; local
117 if (sysctlbyname("kern.msgbuf", NULL, &buflen, NULL, 0) == -1)
119 if ((bp = malloc(buflen + 2)) == NULL)
121 if (sysctlbyname("kern.msgbuf", bp, &buflen, NULL, 0) == -1)
153 buflen = cur.msg_size;
160 if (buflen == 0 || bp[buflen - 1] != '\n')
161 bp[buflen++] = '\n';
162 bp[buflen] = '\0';
164 if ((visbp = malloc(4 * buflen
[all...]
/freebsd-10.1-release/games/random/
H A Drandomize_fd.c102 size_t bufc, buflen; local
112 buflen = sizeof(u_char) * MAXBSIZE;
113 buf = (u_char *)malloc(buflen);
120 len = read(fd, buf, buflen);
126 } else if ((size_t)len < buflen)
127 buflen = (size_t)len;
133 for (i = bufc; i <= buflen && bufleft >= 0; i++, bufleft--) {
134 if (i == buflen) {
140 len = read(fd, &buf[i], buflen - i);
146 } else if (len < (ssize_t)(buflen
[all...]

Completed in 225 milliseconds

1234567891011>>