/freebsd-11-stable/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-11-stable/crypto/heimdal/lib/roken/ |
H A D | strerror_r.c | 46 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-11-stable/cddl/contrib/opensolaris/lib/libcmdutils/common/ |
H A D | nicenum.c | 40 nicenum_scale(uint64_t n, size_t units, char *buf, size_t buflen, argument 87 rc = snprintf(buf, buflen, "%llu", n); 93 rc = snprintf(buf, buflen, "%llu%c", n / divisor, u); 107 if ((rc = snprintf(buf, buflen, "%.*f%c", i, 113 if (rc + 1 > buflen || rc < 0) 120 if (buflen > 10) 121 (void) strlcpy(buf, "<overflow>", buflen); 123 (void) strlcpy(buf, "??", buflen); 127 nicenum(uint64_t num, char *buf, size_t buflen) argument 129 nicenum_scale(num, 1, buf, buflen, [all...] |
/freebsd-11-stable/kerberos5/lib/libgssapi_krb5/ |
H A D | pname_to_uid.c | 45 size_t buflen; local 59 buflen = buflen_hint; 63 if (buflen > sizeof(buf)) 64 bufp = malloc(buflen); 67 error = getpwnam_r(lname, &pwd, bufp, buflen, &pw); 70 if (buflen > sizeof(buf)) 72 buflen += 1024; 73 if (buflen > buflen_hint) 74 buflen_hint = buflen; 82 if (bufp != NULL && buflen > sizeo [all...] |
/freebsd-11-stable/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); 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-11-stable/contrib/wpa/src/fst/ |
H A D | fst_ctrl_iface.h | 17 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,
|
H A D | fst_ctrl_iface.c | 171 static int session_get(const char *session_id, char *buf, size_t buflen) argument 183 return os_snprintf(buf, buflen, "FAIL\n"); 191 return os_snprintf(buf, buflen, 210 static int session_set(const char *session_id, char *buf, size_t buflen) argument 222 return os_snprintf(buf, buflen, "FAIL\n"); 226 return os_snprintf(buf, buflen, "FAIL\n"); 241 return os_snprintf(buf, buflen, "FAIL\n"); 244 return os_snprintf(buf, buflen, "%s\n", ret ? "FAIL" : "OK"); 249 static int session_add(const char *group_id, char *buf, size_t buflen) argument 258 return os_snprintf(buf, buflen, "FAI 273 session_remove(const char *session_id, char *buf, size_t buflen) argument 297 session_initiate(const char *session_id, char *buf, size_t buflen) argument 320 session_respond(const char *session_id, char *buf, size_t buflen) argument 363 session_transfer(const char *session_id, char *buf, size_t buflen) argument 387 session_teardown(const char *session_id, char *buf, size_t buflen) argument 412 test_request(const char *request, char *buf, size_t buflen) argument 464 size_t buflen; member in struct:list_sessions_cb_ctx 483 list_sessions(const char *group_id, char *buf, size_t buflen) argument 508 iface_peers(const char *group_id, char *buf, size_t buflen) argument 557 get_peer_mbies(const char *params, char *buf, size_t buflen) argument 596 list_ifaces(const char *group_id, char *buf, size_t buflen) argument 629 list_groups(const char *cmd, char *buf, size_t buflen) argument 660 print_band(unsigned num, struct fst_iface *iface, const u8 *addr, char *buf, size_t buflen) argument 743 fst_ctrl_iface_mb_info(const u8 *addr, char *buf, size_t buflen) argument 839 fst_read_next_text_param(const char *params, char *buf, size_t buflen, char **endp) argument [all...] |
/freebsd-11-stable/sys/sys/ |
H A D | auxv.h | 35 int elf_aux_info(int aux, void *buf, int buflen);
|
/freebsd-11-stable/contrib/netbsd-tests/usr.bin/nbperf/ |
H A D | hash_driver.c | 43 size_t buflen; local 46 while ((len = getline(&line, &buflen, stdin)) > 0) {
|
/freebsd-11-stable/lib/libc/gen/ |
H A D | getvfsbyname.c | 51 size_t buflen; local 54 if (sysctlbyname("vfs.conflist", NULL, &buflen, NULL, 0) < 0) 56 xvfsp = malloc(buflen); 59 if (sysctlbyname("vfs.conflist", xvfsp, &buflen, NULL, 0) < 0) { 63 cnt = buflen / sizeof(struct xvfsconf);
|
/freebsd-11-stable/usr.bin/yes/ |
H A D | yes.c | 56 size_t buflen = 0; local 71 while (buflen < sizeof(buf) - explen) { 72 memcpy(buf + buflen, exp, explen); 73 buflen += explen; 76 explen = buflen;
|
/freebsd-11-stable/contrib/wpa/src/ap/ |
H A D | ctrl_iface_ap.h | 13 char *buf, size_t buflen); 15 char *buf, size_t buflen); 17 char *buf, size_t buflen); 24 char *buf, size_t buflen); 28 size_t buflen);
|
H A D | ctrl_iface_ap.c | 29 static size_t hostapd_write_ht_mcs_bitmask(char *buf, size_t buflen, argument 35 ret = os_snprintf(buf + len, buflen - len, 37 if (os_snprintf_error(buflen - len, ret)) 42 len += wpa_snprintf_hex(buf + len, buflen - len, mcs_set, 10); 44 ret = os_snprintf(buf + len, buflen - len, "\n"); 45 if (os_snprintf_error(buflen - len, ret)) 55 char *buf, size_t buflen) 64 ret = os_snprintf(buf, buflen, "rx_packets=%lu\ntx_packets=%lu\n" 70 if (os_snprintf_error(buflen, ret)) 74 ret = os_snprintf(buf + len, buflen 53 hostapd_get_sta_tx_rx(struct hostapd_data *hapd, struct sta_info *sta, char *buf, size_t buflen) argument 167 hostapd_get_sta_conn_time(struct sta_info *sta, char *buf, size_t buflen) argument 205 hostapd_ctrl_iface_sta_mib(struct hostapd_data *hapd, struct sta_info *sta, char *buf, size_t buflen) argument 356 hostapd_ctrl_iface_sta_first(struct hostapd_data *hapd, char *buf, size_t buflen) argument 363 hostapd_ctrl_iface_sta(struct hostapd_data *hapd, const char *txtaddr, char *buf, size_t buflen) argument 405 hostapd_ctrl_iface_sta_next(struct hostapd_data *hapd, const char *txtaddr, char *buf, size_t buflen) argument 607 hostapd_ctrl_iface_signature(struct hostapd_data *hapd, const char *txtaddr, char *buf, size_t buflen) argument 649 hostapd_ctrl_iface_status(struct hostapd_data *hapd, char *buf, size_t buflen) argument [all...] |
H A D | p2p_hostapd.h | 15 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
|
/freebsd-11-stable/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...] |
/freebsd-11-stable/contrib/wpa/src/utils/ |
H A D | ip_addr.c | 15 size_t buflen) 17 if (buflen == 0 || addr == NULL) 21 os_strlcpy(buf, inet_ntoa(addr->u.v4), buflen); 27 if (inet_ntop(AF_INET6, &addr->u.v6, buf, buflen) == NULL) 14 hostapd_ip_txt(const struct hostapd_ip_addr *addr, char *buf, size_t buflen) argument
|
/freebsd-11-stable/sbin/dmesg/ |
H A D | dmesg.c | 81 size_t buflen, bufpos; local 119 if (sysctlbyname("kern.msgbuf", NULL, &buflen, NULL, 0) == -1) 122 buflen += buflen/8; 124 if ((bp = malloc(buflen + 2)) == NULL) 126 if (sysctlbyname("kern.msgbuf", bp, &buflen, NULL, 0) == -1) 128 if (buflen > 0 && bp[buflen - 1] == '\0') 129 buflen--; 160 buflen [all...] |
/freebsd-11-stable/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-11-stable/lib/libc/stdlib/ |
H A D | ptsname.c | 77 __ptsname_r(int fildes, char *buffer, size_t buflen) argument 80 if (buflen <= sizeof(_PATH_DEV)) { 91 buflen -= sizeof(_PATH_DEV) - 1; 93 if (fdevname_r(fildes, buffer, buflen) == NULL) {
|
H A D | l64a.c | 28 l64a_r(long value, char *buffer, int buflen) argument 35 while (buflen-- > 0) {
|
/freebsd-11-stable/sbin/nvmecontrol/ |
H A D | util.c | 34 uint128_to_str(uint128_t u, char *buf, size_t buflen) argument 36 char *end = buf + buflen - 1;
|
/freebsd-11-stable/contrib/bmake/ |
H A D | dirname.c | 57 xdirname_r(const char *path, char *buf, size_t buflen) argument 93 if (buf != NULL && buflen != 0) { 94 buflen = MIN(len, buflen - 1); 95 memcpy(buf, path, buflen); 96 buf[buflen] = '\0';
|
/freebsd-11-stable/usr.sbin/eeprom/ |
H A D | ofw_options.c | 79 ofwo_printprop(const char *prop, const char* buf, int buflen) argument 82 printf("%s: %.*s\n", prop, buflen, buf); 87 int buflen, const char *val) 113 if (buflen != 0) 117 buflen); 123 int buflen, const char *val) 131 if ((res = ofwo_setstr(fd, buf, buflen, exent->ex_prop, 140 return (ofwo_setstr(fd, buf, buflen, exent->ex_prop, 145 ofwo_printprop(exent->ex_prop, (const char *)buf, buflen); 151 int buflen, cons 86 ofwo_oemlogo(const struct ofwo_extabent *exent, int fd, const void *buf, int buflen, const char *val) argument 122 ofwo_secmode(const struct ofwo_extabent *exent, int fd, const void *buf, int buflen, const char *val) argument 150 ofwo_secpwd(const struct ofwo_extabent *exent, int fd, const void *buf, int buflen, const char *val) argument 203 ofwo_setstr(int fd, const void *buf, int buflen, const char *prop, const char *val) argument [all...] |