/freebsd/contrib/llvm-project/lldb/source/Utility/ |
H A D | ConstString.cpp | 89 const char *GetConstCString(const char *cstr) { in GetConstCString() argument 90 if (cstr != nullptr) in GetConstCString() 91 return GetConstCStringWithLength(cstr, strlen(cstr)); in GetConstCString() 95 const char *GetConstCStringWithLength(const char *cstr, size_t cstr_len) { in GetConstCStringWithLength() argument 96 if (cstr != nullptr) in GetConstCStringWithLength() 97 return GetConstCStringWithStringRef(llvm::StringRef(cstr, cstr_len)); in GetConstCStringWithLength() 156 const char *GetConstTrimmedCStringWithLength(const char *cstr, in GetConstTrimmedCStringWithLength() argument 158 if (cstr != nullptr) { in GetConstTrimmedCStringWithLength() 159 const size_t trimmed_len = strnlen(cstr, cstr_len); in GetConstTrimmedCStringWithLength() 160 return GetConstCStringWithLength(cstr, trimmed_len); in GetConstTrimmedCStringWithLength() [all …]
|
H A D | StringExtractor.cpp | 97 const char *cstr = start + m_index; in GetU32() local 98 uint32_t result = static_cast<uint32_t>(::strtoul(cstr, &end, base)); in GetU32() 100 if (end && end != cstr) { in GetU32() 112 const char *cstr = start + m_index; in GetS32() local 113 int32_t result = static_cast<int32_t>(::strtol(cstr, &end, base)); in GetS32() 115 if (end && end != cstr) { in GetS32() 127 const char *cstr = start + m_index; in GetU64() local 128 uint64_t result = ::strtoull(cstr, &end, base); in GetU64() 130 if (end && end != cstr) { in GetU64() 142 const char *cstr in GetS64() local [all...] |
H A D | DataEncoder.cpp | 127 uint32_t DataEncoder::PutCString(uint32_t offset, const char *cstr) { in PutCString() argument 128 if (cstr != nullptr) in PutCString() 129 return PutData(offset, cstr, strlen(cstr) + 1); in PutCString()
|
/freebsd/crypto/heimdal/lib/hx509/ |
H A D | error.c | 164 const char *cstr; in hx509_get_error_string() local 167 cstr = com_right(context->et_list, error_code); in hx509_get_error_string() 168 if (cstr) in hx509_get_error_string() 169 return strdup(cstr); in hx509_get_error_string() 170 cstr = strerror(error_code); in hx509_get_error_string() 171 if (cstr) in hx509_get_error_string() 172 return strdup(cstr); in hx509_get_error_string()
|
/freebsd/contrib/llvm-project/lldb/source/Host/freebsd/ |
H A D | Host.cpp | 65 const char *cstr; in GetFreeBSDProcessArgs() local 67 cstr = data.GetCStr(&offset); in GetFreeBSDProcessArgs() 68 if (!cstr) in GetFreeBSDProcessArgs() 78 process_info.GetExecutableFile().SetFile(cstr, FileSpec::Style::native); in GetFreeBSDProcessArgs() 86 process_info.SetArg0(cstr); in GetFreeBSDProcessArgs() 97 cstr = data.GetCStr(&offset); in GetFreeBSDProcessArgs() 98 if (!cstr) in GetFreeBSDProcessArgs() 101 proc_args.AppendArgument(llvm::StringRef(cstr)); in GetFreeBSDProcessArgs()
|
/freebsd/contrib/llvm-project/lldb/source/Host/openbsd/ |
H A D | Host.cpp | 70 const char *cstr; in GetOpenBSDProcessArgs() local 72 cstr = data.GetCStr(&offset); in GetOpenBSDProcessArgs() 73 if (cstr) { in GetOpenBSDProcessArgs() 74 process_info.GetExecutableFile().SetFile(cstr, FileSpec::Style::native); in GetOpenBSDProcessArgs() 93 cstr = data.GetCStr(&offset); in GetOpenBSDProcessArgs() 94 if (cstr) in GetOpenBSDProcessArgs() 95 proc_args.AppendArgument(llvm::StringRef(cstr)); in GetOpenBSDProcessArgs()
|
/freebsd/crypto/heimdal/lib/krb5/ |
H A D | error_string.c | 245 const char *cstr = NULL; in krb5_get_error_message() local 280 cstr = com_right_r(context->et_list, code, buf, sizeof(buf)); in krb5_get_error_message() 285 if (cstr) in krb5_get_error_message() 286 return strdup(cstr); in krb5_get_error_message() 288 cstr = error_message(code); in krb5_get_error_message() 289 if (cstr) in krb5_get_error_message() 290 return strdup(cstr); in krb5_get_error_message()
|
H A D | acl.c | 40 const char *cstr; member 91 tmp->u.cstr = va_arg(ap, const char*); in acl_parse_format() 94 tmp->u.cstr = va_arg(ap, const char*); in acl_parse_format() 124 return !strcmp(field->u.cstr, string); in acl_match_field() 126 return !fnmatch(field->u.cstr, string, 0); in acl_match_field()
|
/freebsd/contrib/llvm-project/lldb/source/Host/netbsd/ |
H A D | HostNetBSD.cpp | 68 const char *cstr; in GetNetBSDProcessArgs() local 70 cstr = data.GetCStr(&offset); in GetNetBSDProcessArgs() 71 if (!cstr) in GetNetBSDProcessArgs() 74 process_info.GetExecutableFile().SetFile(cstr, in GetNetBSDProcessArgs() 83 process_info.SetArg0(cstr); in GetNetBSDProcessArgs() 94 cstr = data.GetCStr(&offset); in GetNetBSDProcessArgs() 95 if (!cstr) in GetNetBSDProcessArgs() 98 proc_args.AppendArgument(llvm::StringRef(cstr)); in GetNetBSDProcessArgs()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonInstrFormatsV65.td | 24 list<dag> pattern = [], string cstr = "", 26 : InstHexagon<outs, ins, asmstr, pattern, cstr, itin, TypeCVI_VA>; 29 list<dag> pattern = [], string cstr = "", 31 : InstHexagon<outs, ins, asmstr, pattern, cstr, itin, TypeCVI_GATHER>;
|
H A D | HexagonInstrFormats.td | 51 string cstr, InstrItinClass itin, IType type> 59 let Constraints = cstr; 209 string cstr = "", InstrItinClass itin = LD_tc_ld_SLOT01> 210 : InstHexagon<outs, ins, asmstr, pattern, cstr, itin, TypeLD>, OpcodeHexagon; 213 string cstr = "", InstrItinClass itin = LD_tc_ld_SLOT01> 214 : InstHexagon<outs, ins, asmstr, pattern, cstr, itin, TypeLD>, OpcodeHexagon; 218 string cstr = "", InstrItinClass itin = ST_tc_st_SLOT01> 219 : InstHexagon<outs, ins, asmstr, pattern, cstr, itin, TypeST>, OpcodeHexagon; 223 string cstr = "", InstrItinClass itin = tc_ENDLOOP> 224 : InstHexagon<outs, ins, asmstr, pattern, cstr, itin, TypeENDLOOP>, [all …]
|
H A D | HexagonInstrFormatsV60.td | 18 list<dag> pattern = [], string cstr = "", 20 : InstHexagon<outs, ins, asmstr, pattern, cstr, itin, TypeCVI_VA>,
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | ARMInstrFormats.td | 407 Format f, Domain d, string cstr, InstrItinClass itin> 449 let Constraints = cstr; 466 Format f, Domain d, string cstr, InstrItinClass itin> 467 : InstTemplate<am, sz, im, f, d, cstr, itin>, Encoding { 474 Format f, Domain d, string cstr, InstrItinClass itin> 475 : InstTemplate<am, sz, im, f, d, cstr, itin> { 571 string opc, string asm, string cstr, 573 : InstARM<am, sz, im, f, GenericDomain, cstr, itin> { 586 string opc, string asm, string cstr, 588 : InstARM<am, sz, im, f, GenericDomain, cstr, itin> { [all …]
|
/freebsd/contrib/llvm-project/lldb/include/lldb/Utility/ |
H A D | ConstString.h | 57 explicit ConstString(const char *cstr); 79 explicit ConstString(const char *cstr, size_t max_cstr_len); 324 void SetCString(const char *cstr); 381 void SetCStringWithLength(const char *cstr, size_t cstr_len); 387 void SetTrimmedCStringWithLength(const char *cstr, size_t fixed_cstr_len);
|
H A D | StringExtractor.h | 61 const char *cstr = Peek(); variable 62 if (cstr) 63 return cstr[0];
|
H A D | Stream.h | 196 /// Output a NULL terminated C string \a cstr to the stream \a s. 198 /// \param[in] cstr 204 Stream &operator<<(const char *cstr); 239 /// Print a C string \a cstr to the stream. 241 /// \param[in] cstr 243 size_t PutCString(llvm::StringRef cstr); 362 /// \param[in] cstr 367 void QuotedCString(const char *cstr, const char *format = "\"%s\"");
|
/freebsd/contrib/unbound/smallapp/ |
H A D | unbound-host.c | 267 pretty_rdata(char* q, char* cstr, char* tstr, int t, const char* sec, in pretty_rdata() argument 271 if(strcmp(cstr, "IN") != 0) in pretty_rdata() 272 printf(" in class %s", cstr); in pretty_rdata() 295 char cstr[16]; in pretty_output() local 298 pretty_class(cstr, 16, c); in pretty_output() 326 if(strcmp(cstr, "IN") != 0) in pretty_output() 327 printf(" in class %s", cstr); in pretty_output() 359 cstr, tstr, t, secstatus, result->data[i], in pretty_output()
|
/freebsd/contrib/atf/atf-c/detail/ |
H A D | dynstr_test.c | 284 const char *cstr; in ATF_TC_BODY() local 289 cstr = atf_dynstr_cstring(&str); in ATF_TC_BODY() 292 ATF_REQUIRE_EQ(cstr, cstr2); in ATF_TC_BODY() 308 const char *cstr; in ATF_TC_BODY() local 312 cstr = atf_dynstr_cstring(&str); in ATF_TC_BODY() 313 ATF_REQUIRE(cstr != NULL); in ATF_TC_BODY() 314 ATF_REQUIRE(strcmp(cstr, "Test string 1") == 0); in ATF_TC_BODY() 318 cstr = atf_dynstr_cstring(&str); in ATF_TC_BODY() 319 ATF_REQUIRE(cstr != NULL); in ATF_TC_BODY() 320 ATF_REQUIRE(strcmp(cstr, "Test string 2") == 0); in ATF_TC_BODY()
|
/freebsd/crypto/openssh/ |
H A D | crypto_api.h | 50 int crypto_kem_sntrup761_enc(unsigned char *cstr, unsigned char *k, 53 const unsigned char *cstr, const unsigned char *sk);
|
/freebsd/contrib/tcsh/ |
H A D | ed.defns.c | 1835 CStr cstr; in ed_InitMetaBindings() local 1855 cstr.buf = buf; in ed_InitMetaBindings() 1856 cstr.len = 2; in ed_InitMetaBindings() 1860 AddXkey(&cstr, XmapCmd((int) map[CTL_ESC(i)]), XK_CMD); in ed_InitMetaBindings() 1891 CStr cstr; in ed_InitEmacsMaps() local 1892 cstr.buf = buf; in ed_InitEmacsMaps() 1893 cstr.len = 2; in ed_InitEmacsMaps() 1910 AddXkey(&cstr, XmapCmd(F_EXCHANGE_MARK), XK_CMD); in ed_InitEmacsMaps() 1912 AddXkey(&cstr, XmapCmd(F_EXPAND_GLOB), XK_CMD); in ed_InitEmacsMaps() 1914 AddXkey(&cstr, XmapCmd(F_EXPAND_VARS), XK_CMD); in ed_InitEmacsMaps() [all …]
|
/freebsd/contrib/sendmail/src/ |
H A D | stab.c | 72 char *lower, *cstr; local 75 for (cstr = lower; *cstr != '\0'; cstr++) 76 hfunc = ((hfunc << 1) ^ ((*cstr) & 0377)) % STABSIZE;
|
/freebsd/contrib/llvm-project/lldb/source/API/ |
H A D | SBEvent.cpp | 26 SBEvent::SBEvent(uint32_t event_type, const char *cstr, uint32_t cstr_len) in SBEvent() argument 28 event_type, new EventDataBytes(llvm::StringRef(cstr, cstr_len)))), in SBEvent() 30 LLDB_INSTRUMENT_VA(this, event_type, cstr, cstr_len); in SBEvent()
|
/freebsd/lib/libc/tests/string/ |
H A D | wcscoll_test.c | 66 } cstr; typedef 71 cstr data[NSTRINGS]; in ATF_TC_BODY()
|
/freebsd/usr.bin/sort/ |
H A D | bwstring.h | 53 struct cstr { struct 65 struct cstr cdata; argument
|
/freebsd/contrib/llvm-project/lldb/source/Core/ |
H A D | FormatEntity.cpp | 286 void FormatEntity::Entry::AppendText(const char *cstr) { in AppendText() argument 287 return AppendText(llvm::StringRef(cstr)); in AppendText() 1349 const char *cstr = thread->GetName(); in Format() local 1350 if (cstr && cstr[0]) { in Format() 1351 s.PutCString(cstr); in Format() 1362 const char *cstr = thread->GetQueueName(); in Format() local 1363 if (cstr && cstr[0]) { in Format() 1364 s.PutCString(cstr); in Format() 1723 const char *cstr = sc->function->GetName().AsCString(nullptr); in Format() local 1724 if (cstr) { in Format() [all …]
|