/freebsd-9.3-release/contrib/wpa/src/ap/ |
H A D | ctrl_iface_ap.c | 29 char *buf, size_t buflen) 34 ret = os_snprintf(buf, buflen, "FAIL\n"); 35 if (ret < 0 || (size_t) ret >= buflen) 41 ret = os_snprintf(buf + len, buflen - len, MACSTR "\n", 43 if (ret < 0 || (size_t) ret >= buflen - len) 47 res = ieee802_11_get_mib_sta(hapd, sta, buf + len, buflen - len); 50 res = wpa_get_mib_sta(sta->wpa_sm, buf + len, buflen - len); 53 res = ieee802_1x_get_mib_sta(hapd, sta, buf + len, buflen - len); 57 buflen - len); 66 char *buf, size_t buflen) 27 hostapd_ctrl_iface_sta_mib(struct hostapd_data *hapd, struct sta_info *sta, char *buf, size_t buflen) argument 65 hostapd_ctrl_iface_sta_first(struct hostapd_data *hapd, char *buf, size_t buflen) argument 72 hostapd_ctrl_iface_sta(struct hostapd_data *hapd, const char *txtaddr, char *buf, size_t buflen) argument 89 hostapd_ctrl_iface_sta_next(struct hostapd_data *hapd, const char *txtaddr, char *buf, size_t buflen) argument [all...] |
H A D | ctrl_iface_ap.h | 19 char *buf, size_t buflen); 21 char *buf, size_t buflen); 23 char *buf, size_t buflen);
|
/freebsd-9.3-release/lib/libugidfw/ |
H A D | ugidfw.h | 39 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-9.3-release/contrib/tcpdump/ |
H A D | decode_prefix.h | 36 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-9.3-release/kerberos5/lib/libgssapi_krb5/ |
H A D | pname_to_uid.c | 43 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-9.3-release/lib/libc/nameser/ |
H A D | ns_print.c | 59 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); 88 char *buf, size_t buflen) 95 name_ctx, origin, buf, buflen); 110 char *buf, size_t buflen) 124 T(addstr("\t\t\t", 3, &buf, &buflen)); 130 T(addstr("@\t\t\t", 4, &buf, &buflen)); 86 ns_sprintrr(const ns_msg *handle, const ns_rr *rr, const char *name_ctx, const char *origin, char *buf, size_t buflen) argument 106 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 162 addlen(strlen(buf), &buf, &buflen); local 330 addlen(strlen(buf), &buf, &buflen); local 421 addlen(strlen(buf), &buf, &buflen); local 662 addlen(strlen(buf), &buf, &buflen); local 685 addlen(strlen(buf), &buf, &buflen); local 791 charstr(const u_char *rdata, const u_char *edata, char **buf, size_t *buflen) argument 825 addname(const u_char *msg, size_t msglen, const u_char **pp, const char *origin, char **buf, size_t *buflen) argument 869 addlen(size_t len, char **buf, size_t *buflen) argument 876 addstr(const char *src, size_t len, char **buf, size_t *buflen) argument 888 addtab(size_t len, size_t target, int spaced, char **buf, size_t *buflen) argument [all...] |
/freebsd-9.3-release/lib/libc/gen/ |
H A D | getvfsbyname.c | 53 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 D | aux.c | 114 _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-9.3-release/lib/libcrypt/ |
H A D | crypt-sha512.c | 63 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 D | crypt-sha256.c | 63 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 D | misc.c | 50 b64_from_24bit(uint8_t B2, uint8_t B1, uint8_t B0, int n, int *buflen, char **cp) argument 59 if ((*buflen)-- < 0)
|
/freebsd-9.3-release/lib/libc/stdlib/ |
H A D | l64a.c | 33 l64a_r(long value, char *buffer, int buflen) argument 39 for (; v != 0 && buflen > 1; buffer++, buflen--) {
|
/freebsd-9.3-release/tools/regression/bpf/bpf_filter/tests/ |
H A D | test0002.h | 21 u_int buflen = sizeof(pkt); variable
|
H A D | test0079.h | 20 u_int buflen = sizeof(pkt); variable
|
/freebsd-9.3-release/crypto/openssl/crypto/ecdh/ |
H A D | ech_ossl.c | 119 size_t buflen, len; local 164 buflen = (EC_GROUP_get_degree(group) + 7) / 8; 166 if (len > buflen) { 170 if ((buf = OPENSSL_malloc(buflen)) == NULL) { 175 memset(buf, 0, buflen - len); 176 if (len != (size_t)BN_bn2bin(x, buf + buflen - len)) { 182 if (KDF(buf, buflen, out, &outlen) == NULL) { 189 if (outlen > buflen) 190 outlen = buflen;
|
/freebsd-9.3-release/contrib/wpa/wpa_supplicant/ |
H A D | ap.h | 26 const char *pin, char *buf, size_t buflen); 28 char *buf, size_t buflen); 30 char *buf, size_t buflen); 32 char *buf, size_t buflen); 34 size_t buflen, int verbose);
|
/freebsd-9.3-release/usr.sbin/eeprom/ |
H A D | ofw_options.c | 77 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-9.3-release/usr.bin/mail/ |
H A D | v7.local.c | 55 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-9.3-release/sbin/ddb/ |
H A D | ddb_script.c | 62 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-9.3-release/contrib/telnet/libtelnet/ |
H A D | krb4encpwd.c | 354 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-9.3-release/sbin/dmesg/ |
H A D | dmesg.c | 82 size_t buflen, bufpos; local 113 if (sysctlbyname("kern.msgbuf", NULL, &buflen, NULL, 0) == -1) 115 if ((bp = malloc(buflen + 2)) == NULL) 117 if (sysctlbyname("kern.msgbuf", bp, &buflen, NULL, 0) == -1) 146 buflen = cur.msg_size; 153 if (buflen == 0 || bp[buflen - 1] != '\n') 154 bp[buflen++] = '\n'; 155 bp[buflen] = '\0'; 157 if ((visbp = malloc(4 * buflen [all...] |
/freebsd-9.3-release/games/random/ |
H A D | randomize_fd.c | 102 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...] |
/freebsd-9.3-release/contrib/wpa/src/utils/ |
H A D | ip_addr.c | 21 size_t buflen) 23 if (buflen == 0 || addr == NULL) 27 os_strlcpy(buf, inet_ntoa(addr->u.v4), buflen); 33 if (inet_ntop(AF_INET6, &addr->u.v6, buf, buflen) == NULL) 20 hostapd_ip_txt(const struct hostapd_ip_addr *addr, char *buf, size_t buflen) argument
|
H A D | ip_addr.h | 30 size_t buflen);
|
/freebsd-9.3-release/lib/libc/string/ |
H A D | strerror.c | 81 strerror_r(int errnum, char *strerrbuf, size_t buflen) argument 97 strerrbuf, buflen); 106 buflen) >= buflen)
|