/freebsd/crypto/heimdal/lib/hx509/ |
H A D | error.c | 165 char *str; in hx509_get_error_string() local 173 if (asprintf(&str, "<unknown error: %d>", error_code) == -1) in hx509_get_error_string() 175 return str; in hx509_get_error_string() 194 hx509_free_error_string(char *str) in hx509_free_error_string() argument 196 free(str); in hx509_free_error_string() 217 char *str; in hx509_err() local 220 vasprintf(&str, fmt, ap); in hx509_err() 226 errx(exit_code, "%s: %s", str, msg); in hx509_err()
|
/freebsd/contrib/ofed/librdmacm/examples/ |
H A D | common.c | 76 void size_str(char *str, size_t ssize, long long size) in size_str() argument 98 snprintf(str, ssize, "%lld.%lld%c", size / base, fraction, mag); in size_str() 100 snprintf(str, ssize, "%lld%c", size / base, mag); in size_str() 104 void cnt_str(char *str, size_t ssize, long long cnt) in cnt_str() argument 107 snprintf(str, ssize, "%lldb", cnt / 1000000000); in cnt_str() 109 snprintf(str, ssize, "%lldm", cnt / 1000000); in cnt_str() 111 snprintf(str, ssize, "%lldk", cnt / 1000); in cnt_str() 113 snprintf(str, ssize, "%lld", cnt); in cnt_str()
|
/freebsd/sys/cam/ctl/ |
H A D | ctl_scsi_all.c | 151 struct scsi_inquiry_data *inq_data, char *str, in ctl_scsi_sense_string() argument 156 sbuf_new(&sb, str, str_len, 0); in ctl_scsi_sense_string() 171 char str[512]; in ctl_scsi_sense_print() local 173 sbuf_new(&sb, str, sizeof(str), 0); in ctl_scsi_sense_print() 188 char str[512]; in ctl_scsi_sense_print() local 193 sbuf_new(&sb, str, sizeof(str), 0); in ctl_scsi_sense_print()
|
/freebsd/contrib/libarchive/tar/ |
H A D | subst.c | 179 if (*str == NULL) in realloc_strncat() 182 old_len = strlen(*str); in realloc_strncat() 187 if (*str != NULL) in realloc_strncat() 188 memcpy(new_str, *str, old_len); in realloc_strncat() 191 free(*str); in realloc_strncat() 192 *str = new_str; in realloc_strncat() 201 if (*str == NULL) in realloc_strcat() 204 old_len = strlen(*str); in realloc_strcat() 209 if (*str != NULL) in realloc_strcat() 212 free(*str); in realloc_strcat() [all …]
|
/freebsd/lib/libc/stdio/ |
H A D | vasprintf.c | 44 vasprintf_l(char **str, locale_t locale, const char *fmt, __va_list ap) in vasprintf_l() argument 53 *str = NULL; in vasprintf_l() 61 *str = NULL; in vasprintf_l() 66 *str = (char *)f._bf._base; in vasprintf_l() 70 vasprintf(char **str, const char *fmt, __va_list ap) in vasprintf() argument 72 return vasprintf_l(str, __get_locale(), fmt, ap); in vasprintf()
|
/freebsd/sys/cam/ |
H A D | cam.c | 216 str++; in cam_strmatch() 226 sc = *str++; in cam_strmatch() 252 str++; in cam_strmatch() 255 if (*str != *pattern) in cam_strmatch() 258 str++; in cam_strmatch() 274 str++; in cam_strmatch() 330 || (str == NULL) in cam_error_string() 514 char str[512]; in cam_error_print() local 516 printf("%s", cam_error_string(ccb, str, sizeof(str), flags, in cam_error_print() 527 char str[512]; in cam_error_print() local [all …]
|
/freebsd/sbin/ipf/libipf/ |
H A D | printdstlistnode.c | 18 const char *str; in printdstlistnode() local 45 str = inet_ntop(AF_INET6, &np->ipfd_dest.fd_ip6, in printdstlistnode() 47 if (str != NULL) in printdstlistnode() 48 PRINTF("%s", str); in printdstlistnode() 56 str = inet_ntop(np->ipfd_dest.fd_addr.adf_family, in printdstlistnode() 58 if (str != NULL) { in printdstlistnode() 59 PRINTF("\tAddress: %s\n", str); in printdstlistnode()
|
/freebsd/crypto/openssh/ |
H A D | utf8.c | 211 *str = dst; in vasnmprintf() 231 *str = src; in vasnmprintf() 234 *str = NULL; in vasnmprintf() 240 snmprintf(char *str, size_t sz, int *wp, const char *fmt, ...) in snmprintf() argument 250 (void)strlcpy(str, cp, sz); in snmprintf() 253 *str = '\0'; in snmprintf() 279 char *str = NULL; in vfmprintf() local 282 if ((ret = vasnmprintf(&str, INT_MAX, NULL, fmt, ap)) < 0) { in vfmprintf() 283 free(str); in vfmprintf() 286 if (fputs(str, stream) == EOF) in vfmprintf() [all …]
|
/freebsd/crypto/heimdal/lib/krb5/ |
H A D | config_file.c | 67 str[l] = '\0'; in config_fgets() 70 return str; in config_fgets() 250 char *str; in cfstring2cstring() local 253 if (str) in cfstring2cstring() 254 return strdup(str); in cfstring2cstring() 259 if (str == NULL) in cfstring2cstring() 263 free (str); in cfstring2cstring() 266 return str; in cfstring2cstring() 417 const char *str; in krb5_config_parse_file_multi() local 1041 if(str == NULL) in krb5_config_vget_bool_default() [all …]
|
/freebsd/contrib/lua/src/ |
H A D | lstring.c | 43 unsigned int luaS_hash (const char *str, size_t l, unsigned int seed) { in luaS_hash() argument 46 h ^= ((h<<5) + (h>>2) + cast_byte(str[l - 1])); in luaS_hash() 192 unsigned int h = luaS_hash(str, l, g->seed); in internshrstr() 209 memcpy(getstr(ts), str, l * sizeof(char)); in internshrstr() 221 TString *luaS_newlstr (lua_State *L, const char *str, size_t l) { in luaS_newlstr() argument 223 return internshrstr(L, str, l); in luaS_newlstr() 229 memcpy(getstr(ts), str, l * sizeof(char)); in luaS_newlstr() 241 TString *luaS_new (lua_State *L, const char *str) { in luaS_new() argument 242 unsigned int i = point2uint(str) % STRCACHE_N; /* hash */ in luaS_new() 246 if (strcmp(str, getstr(p[j])) == 0) /* hit? */ in luaS_new() [all …]
|
/freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/ |
H A D | dt_error.c | 123 const char *str; in dtrace_errmsg() local 127 str = dtp->dt_errmsg; in dtrace_errmsg() 129 str = ctf_errmsg(dtp->dt_ctferr); in dtrace_errmsg() 135 str = NULL; in dtrace_errmsg() 137 str = strerror(error); in dtrace_errmsg() 139 return (str ? str : "Unknown error"); in dtrace_errmsg() 220 const char *str; in dtrace_faultstr() member 235 for (i = 0; faults[i].str != NULL; i++) { in dtrace_faultstr() 237 return (faults[i].str); in dtrace_faultstr()
|
/freebsd/tests/sys/net/routing/ |
H A D | test_routing_l3.py | 35 first_iface.setup_addr(str(first_addr)) 36 second_iface.setup_addr(str(second_addr)) 40 px = [r for r in routes if r["destination"] == str(first_addr.network)][0] 47 px = [r for r in routes if r["destination"] == str(first_addr.network)][0] 70 first_iface.setup_addr(str(first_addr)) 71 first_iface.setup_addr(str(second_addr)) 75 px = [r for r in routes if r["destination"] == str(first_addr.network)][0] 79 first_iface.delete_addr(str(first_addr.ip)) 82 px = [r for r in routes if r["destination"] == str(first_addr.network)][0] 87 assert nh["ifa"] == str(second_addr.ip)
|
/freebsd/contrib/ncurses/ncurses/base/ |
H A D | lib_instr.c | 48 winnstr(WINDOW *win, char *str, int n) in NCURSES_EXPORT() 52 T((T_CALLED("winnstr(%p,%p,%d)"), (void *) win, str, n)); in NCURSES_EXPORT() 54 if (!win || !str) { in NCURSES_EXPORT() 101 str[i++] = tmp[i3]; in NCURSES_EXPORT() 112 str[i++] = (char) CharOf(text[col]); in NCURSES_EXPORT() 118 str[i] = '\0'; /* SVr4 does not seem to count the null */ in NCURSES_EXPORT() 120 T(("winnstr returns %s", _nc_visbuf(str))); in NCURSES_EXPORT()
|
/freebsd/usr.bin/bc/ |
H A D | scan.l | 106 yylval.str = strbuf; 121 yylval.str = strbuf; 160 "=" yylval.str = ""; return ASSIGN_OP; 161 "+=" yylval.str = "+"; return ASSIGN_OP; 162 "-=" yylval.str = "-"; return ASSIGN_OP; 163 "*=" yylval.str = "*"; return ASSIGN_OP; 164 "/=" yylval.str = "/"; return ASSIGN_OP; 165 "%=" yylval.str = "%"; return ASSIGN_OP; 219 add_str(const char *str) 223 arglen = strlen(str); [all …]
|
/freebsd/contrib/llvm-project/lld/MachO/ |
H A D | MapFile.cpp | 52 StringRef str; member 143 sym->getName().str().data()); in printStubsEntries() 155 target->wordSize, sym->getName().str().data()); in printNonLazyPointerSection() 172 os << format("# Path: %s\n", config->outputFile.str().c_str()); in writeMapFile() 174 getArchitectureName(config->arch()).str().c_str()); in writeMapFile() 197 seg->name.str().c_str(), osec->name.str().c_str()); in writeMapFile() 210 sym->getName().str().data()); in writeMapFile() 223 os.write_escaped(info.str) << "\n"; in writeMapFile() 252 sym->getName().str().data()); in writeMapFile() 256 cstrInfo.str.size() + 1, cstrInfo.fileIndex); in writeMapFile() [all …]
|
/freebsd/sys/contrib/openzfs/module/os/linux/spl/ |
H A D | spl-kmem.c | 107 __strdup(const char *str, int flags) in __strdup() argument 112 n = strlen(str); in __strdup() 115 memcpy(ptr, str, n + 1); in __strdup() 121 kmem_strdup(const char *str) in kmem_strdup() argument 123 return (__strdup(str, KM_SLEEP)); in kmem_strdup() 128 kmem_strfree(char *str) in kmem_strfree() argument 130 kfree(str); in kmem_strfree() 522 memset(str, 0, len); 530 if (isprint(str[i])) { 557 return (str); [all …]
|
/freebsd/crypto/openssl/crypto/asn1/ |
H A D | asn1_parse.c | 25 char str[128]; in asn1_print_info() local 37 if (BIO_snprintf(str, sizeof(str), "%5ld:d=%-2d hl=%ld l=%4ld %s", in asn1_print_info() 41 if (BIO_snprintf(str, sizeof(str), "%5ld:d=%-2d hl=%ld l=inf %s", in asn1_print_info() 46 if (BIO_set_prefix(bp, str) <= 0) { in asn1_print_info() 53 if (BIO_set_prefix(bp, str) <= 0 || BIO_set_indent(bp, indent) <= 0) in asn1_print_info() 61 p = str; in asn1_print_info() 63 BIO_snprintf(str, sizeof(str), "priv [ %d ] ", tag); in asn1_print_info() 65 BIO_snprintf(str, sizeof(str), "cont [ %d ]", tag); in asn1_print_info() 67 BIO_snprintf(str, sizeof(str), "appl [ %d ]", tag); in asn1_print_info() 69 BIO_snprintf(str, sizeof(str), "<ASN1 %d>", tag); in asn1_print_info()
|
/freebsd/contrib/less/ |
H A D | less.h | 203 #define SNPRINTF1(str, size, fmt, v1) snprintf((str), (size), (fmt), (v1)) argument 204 #define SNPRINTF2(str, size, fmt, v1, v2) snprintf((str), (size), (fmt), (v1), (v2)) argument 205 #define SNPRINTF3(str, size, fmt, v1, v2, v3) snprintf((str), (size), (fmt), (v1), (v2), (v3)) argument 206 #define SNPRINTF4(str, size, fmt, v1, v2, v3, v4) snprintf((str), (size), (fmt), (v1), (v2), (v3), … argument 209 #define SNPRINTF1(str, size, fmt, v1) sprintf((str), (fmt), (v1)) argument 210 #define SNPRINTF2(str, size, fmt, v1, v2) sprintf((str), (fmt), (v1), (v2)) argument 211 #define SNPRINTF3(str, size, fmt, v1, v2, v3) sprintf((str), (fmt), (v1), (v2), (v3)) argument 212 #define SNPRINTF4(str, size, fmt, v1, v2, v3, v4) sprintf((str), (fmt), (v1), (v2), (v3), (v4)) argument
|
/freebsd/lib/libc/amd64/string/ |
H A D | memchr.S | 64 xor %rsi, %rax # str ^ c (0x00 where str[i] == c) 75 0: lea (%rax, %r8, 1), %rcx # (str ^ c) - 0x01..01 76 not %rax # ~(str ^ c) 77 and %r9, %rax # ((str^c) - 0x01..01) & ~(str^c) 83 xor %rsi, %rax # str ^ c 87 lea (%rax, %r8, 1), %rcx # (str ^ c) - 0x01..01 88 not %rax # ~(str ^ c) 89 and %r9, %rax # ((str^c) - 0x01..01) & ~(str^c) 95 xor %rsi, %rax # str ^ c 100 not %rax # ~(str ^ c) [all …]
|
/freebsd/cddl/contrib/opensolaris/common/ctf/ |
H A D | ctf_error.c | 86 const char *str; in ctf_errmsg() local 89 str = _ctf_errlist[error - ECTF_BASE]; in ctf_errmsg() 91 str = ctf_strerror(error); in ctf_errmsg() 93 return (str ? str : "Unknown error"); in ctf_errmsg()
|
/freebsd/crypto/heimdal/appl/ftp/ftpd/ |
H A D | klist.c | 41 char t1[128], t2[128], *str; in print_cred() local 57 ret = krb5_unparse_name (context, cred->server, &str); in print_cred() 63 lreply(200, "%-20s %-20s %s", t1, t2, str); in print_cred() 64 free(str); in print_cred() 76 char *str; in print_tickets() local 78 ret = krb5_unparse_name (context, principal, &str); in print_tickets() 88 lreply(200, "%17s: %s", "Principal", str); in print_tickets() 89 free (str); in print_tickets()
|
/freebsd/libexec/nuageinit/ |
H A D | yaml.lua | 81 local context = function (str) 82 if type(str) ~= "string" then 86 str = str:sub(0,25):gsub("\n","\\n"):gsub("\"","\\\""); 145 exports.tokenize = function (str) 154 str = str:gsub("\r\n","\010") 156 while #str > 0 do 168 token.raw = str:sub(1, #str - #str2) 169 str = str2 175 str = token[2][2] .. str 179 str = token[2][2] .. str [all …]
|
/freebsd/crypto/openssl/test/recipes/ |
H A D | 25-test_crl.t | 55 my ($cmdarray, $str) = @_; 58 return 1 if $lines[0] =~ m|^\Q${str}\E\R$|; 60 note "Expected ", $str; 65 my ($cmdarray, $infile, $str) = @_; 68 return 1 if $lines[0] =~ m|^\Q${str}\E\R$|; 70 note "Expected ", $str;
|
/freebsd/contrib/xz/src/xz/ |
H A D | options.c | 59 parse_options(const char *str, const option_map *opts, in parse_options() argument 64 if (str == NULL || str[0] == '\0') in parse_options() 67 char *s = xstrdup(str); in parse_options() 86 "pairs separated with commas"), str); in parse_options() 164 options_delta(const char *str) in options_delta() argument 179 parse_options(str, opts, &set_delta, options); in options_delta() 208 options_bcj(const char *str) in options_bcj() argument 220 parse_options(str, opts, &set_bcj, options); in options_bcj() 317 options_lzma(const char *str) in options_lzma() argument 352 parse_options(str, opts, &set_lzma, options); in options_lzma()
|
/freebsd/lib/libefivar/ |
H A D | uefi-dplib.h | 516 #define StrnLenS(str, max) strlen(str) argument 570 if (!isxdigit(str[i]) || !isxdigit(str[i + 1])) in StrHexToBytes() 572 hex[0] = str[i]; in StrHexToBytes() 573 hex[1] = str[i + 1]; in StrHexToBytes() 581 StrToGuid(const char *str, GUID *guid) in StrToGuid() argument 585 uuid_from_string(str, (uuid_t *)guid, &status); in StrToGuid() 605 char *str = NULL; in guid_str() local 608 uuid_to_string((const uuid_t *)g, &str, &ignored_status); in guid_str() 609 if (str != NULL) in guid_str() 610 strlcpy(buf, str, sizeof(buf)); in guid_str() [all …]
|