| /openbsd-src/usr.sbin/ntpd/ |
| H A D | constraint.c | 95 constraint_init(struct constraint *cstr) in constraint_init() argument 97 cstr->state = STATE_NONE; in constraint_init() 98 cstr->fd = -1; in constraint_init() 99 cstr->last = getmonotime(); in constraint_init() 100 cstr->constraint = 0; in constraint_init() 101 cstr->senderrors = 0; in constraint_init() 103 return (constraint_addr_init(cstr)); in constraint_init() 107 constraint_addr_init(struct constraint *cstr) in constraint_addr_init() argument 113 if (cstr->state == STATE_DNS_INPROGRESS) in constraint_addr_init() 116 if (cstr in constraint_addr_init() 146 constraint_addr_head_clear(struct constraint * cstr) constraint_addr_head_clear() argument 154 constraint_query(struct constraint * cstr,int synced) constraint_query() argument 236 struct constraint *cstr; priv_constraint_msg() local 293 priv_constraint_readquery(struct constraint * cstr,struct ntp_addr_msg * am,uint8_t ** data) priv_constraint_readquery() argument 342 struct constraint cstr; priv_constraint_child() local 452 struct constraint *cstr; priv_constraint_check_child() local 484 struct constraint *cstr; priv_constraint_kill() local 497 struct constraint *cstr; constraint_byid() local 510 struct constraint *cstr; constraint_byfd() local 523 struct constraint *cstr; constraint_bypid() local 536 struct constraint *cstr; constraint_close() local 562 struct constraint *cstr; priv_constraint_close() local 579 constraint_add(struct constraint * cstr) constraint_add() argument 585 constraint_remove(struct constraint * cstr) constraint_remove() argument 601 struct constraint *cstr, *ncstr; constraint_purge() local 611 struct constraint *cstr; priv_constraint_dispatch() local 661 struct constraint *cstr; constraint_msg_result() local 694 struct constraint *cstr, *tmp; constraint_msg_close() local 735 struct constraint *cstr, *ncstr = NULL; constraint_msg_dns() local 811 struct constraint *cstr; constraint_update() local 854 struct constraint *cstr; constraint_reset() local [all...] |
| /openbsd-src/gnu/llvm/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() 153 const char *GetConstTrimmedCStringWithLength(const char *cstr, in GetConstTrimmedCStringWithLength() argument 155 if (cstr != nullptr) { in GetConstTrimmedCStringWithLength() 156 const size_t trimmed_len = strnlen(cstr, cstr_len); in GetConstTrimmedCStringWithLength() 157 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 = start + m_index; in GetS64() local [all …]
|
| H A D | Event.cpp | 103 EventDataBytes::EventDataBytes(const char *cstr) : m_bytes() { in EventDataBytes() argument 104 SetBytesFromCString(cstr); in EventDataBytes() 149 void EventDataBytes::SetBytesFromCString(const char *cstr) { in SetBytesFromCString() argument 150 if (cstr != nullptr && cstr[0]) in SetBytesFromCString() 151 m_bytes.assign(cstr); in SetBytesFromCString()
|
| 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()
|
| /openbsd-src/usr.bin/sort/ |
| H A D | bwstring.c | 145 fprintf(f, "%s%s%s", prefix, bws->data.cstr, suffix); in bwsprintf() 175 bws->data.cstr[newlen] = '\0'; in bws_setlen() 191 ret->data.cstr[sz] = '\0'; in bwsalloc() 217 memcpy(ret->data.cstr, s->data.cstr, s->len); in bwsdup() 241 ret->data.cstr[i] = (unsigned char) str[i]; in bwssbdup() 261 memcpy(ret->data.cstr, str, len); in bwscsbdup() 330 memcpy(dst->data.cstr, src->data.cstr, nums); in bwscpy() 331 dst->data.cstr[ds in bwscpy() [all...] |
| /openbsd-src/gnu/llvm/lldb/source/API/ |
| H A D | SBFunction.cpp | 57 const char *cstr = nullptr; in GetName() local 59 cstr = m_opaque_ptr->GetName().AsCString(); in GetName() 61 return cstr; in GetName() 67 const char *cstr = nullptr; in GetDisplayName() local 69 cstr = m_opaque_ptr->GetMangled().GetDisplayDemangledName().AsCString(); in GetDisplayName() 71 return cstr; in GetDisplayName() 77 const char *cstr = nullptr; in GetMangledName() local 79 cstr = m_opaque_ptr->GetMangled().GetMangledName().AsCString(); in GetMangledName() 80 return cstr; in GetMangledName()
|
| /openbsd-src/gnu/llvm/lldb/tools/debugserver/source/ |
| H A D | StdStringExtractor.cpp | 90 const char *cstr = start + m_index; in GetU32() local 91 uint32_t result = static_cast<uint32_t>(::strtoul(cstr, &end, base)); in GetU32() 93 if (end && end != cstr) { in GetU32() 105 const char *cstr = start + m_index; in GetS32() local 106 int32_t result = static_cast<int32_t>(::strtol(cstr, &end, base)); in GetS32() 108 if (end && end != cstr) { in GetS32() 120 const char *cstr = start + m_index; in GetU64() local 121 uint64_t result = ::strtoull(cstr, &end, base); in GetU64() 123 if (end && end != cstr) { in GetU64() 135 const char *cstr = start + m_index; in GetS64() local [all …]
|
| H A D | StdStringExtractor.h | 54 const char *cstr = Peek(); variable 55 if (cstr) 56 return cstr[0];
|
| /openbsd-src/usr.sbin/bgpctl/ |
| H A D | bgpctl.c | 912 static char cstr[48]; in fmt_attr() 918 strlcpy(cstr, "Origin", sizeof(cstr)); in fmt_attr() 922 strlcpy(cstr, "AS-Path", sizeof(cstr)); in fmt_attr() 926 strlcpy(cstr, "AS4-Path", sizeof(cstr)); in fmt_attr() 930 strlcpy(cstr, "Nexthop", sizeof(cstr)); in fmt_attr() 934 strlcpy(cstr, "Me in fmt_attr() 907 static char cstr[48]; fmt_attr() local [all...] |
| /openbsd-src/gnu/llvm/lldb/examples/python/ |
| H A D | file_extract.py | 143 cstr, = struct.unpack(self.byte_order + ("%i" % n) + 's', s) 145 cstr = string.strip(cstr, "\0") 147 for c in cstr: 151 return cstr 157 cstr = '' 160 cstr += "%c" % byte 162 return cstr
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/usr.bin/perl/t/op/ |
| H A D | lex_assign.t | 24 $cstr = 'aBcD.eF'; 264 ref $cstr # ref nonref 330 ucfirst ($cstr . "a") # ucfirst padtmp 331 ucfirst $cstr # ucfirst 332 lcfirst $cstr # lcfirst 333 uc $cstr # uc 334 lc $cstr # lc 335 quotemeta $cstr # quotemeta 348 reverse $cstr # reverse - scal
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/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 …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/ARM/ |
| H A D | ARMInstrFormats.td | 395 Format f, Domain d, string cstr, InstrItinClass itin> 437 let Constraints = cstr; 454 Format f, Domain d, string cstr, InstrItinClass itin> 455 : InstTemplate<am, sz, im, f, d, cstr, itin>, Encoding { 462 Format f, Domain d, string cstr, InstrItinClass itin> 463 : InstTemplate<am, sz, im, f, d, cstr, itin> { 559 string opc, string asm, string cstr, 561 : InstARM<am, sz, im, f, GenericDomain, cstr, itin> { 574 string opc, string asm, string cstr, 576 : InstARM<am, sz, im, f, GenericDomain, cstr, itin> { [all …]
|
| /openbsd-src/gnu/llvm/lldb/source/Host/openbsd/ |
| H A D | Host.cpp | 75 const char *cstr; in GetOpenBSDProcessArgs() local 79 cstr = data.GetCStr(&arg_offset); in GetOpenBSDProcessArgs() 81 if (!cstr) in GetOpenBSDProcessArgs() 84 process_info.GetExecutableFile().SetFile(cstr, FileSpec::Style::native); in GetOpenBSDProcessArgs() 101 cstr = data.GetCStr(&arg_offset); in GetOpenBSDProcessArgs() 102 proc_args.AppendArgument(cstr); in GetOpenBSDProcessArgs()
|
| /openbsd-src/gnu/llvm/lldb/include/lldb/Utility/ |
| H A D | ConstString.h | 56 explicit ConstString(const char *cstr); 78 explicit ConstString(const char *cstr, size_t max_cstr_len); 323 void SetCString(const char *cstr); 380 void SetCStringWithLength(const char *cstr, size_t cstr_len); 386 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];
|
| /openbsd-src/usr.sbin/unbound/smallapp/ |
| H A D | unbound-host.c | 265 pretty_rdata(char* q, char* cstr, char* tstr, int t, const char* sec, in pretty_rdata() argument 269 if(strcmp(cstr, "IN") != 0) in pretty_rdata() 270 printf(" in class %s", cstr); in pretty_rdata() 293 char cstr[16]; in pretty_output() local 296 pretty_class(cstr, 16, c); in pretty_output() 324 if(strcmp(cstr, "IN") != 0) in pretty_output() 325 printf(" in class %s", cstr); in pretty_output() 357 cstr, tstr, t, secstatus, result->data[i], in pretty_output()
|
| /openbsd-src/gnu/llvm/lldb/source/Host/macosx/cfcpp/ |
| H A D | CFCString.cpp | 26 CFCString::CFCString(const char *cstr, CFStringEncoding cstr_encoding) in CFCString() argument 28 if (cstr && cstr[0]) { in CFCString() 30 ::CFStringCreateWithCString(kCFAllocatorDefault, cstr, cstr_encoding)); in CFCString()
|
| /openbsd-src/gnu/llvm/lldb/tools/debugserver/source/MacOSX/ |
| H A D | CFString.cpp | 30 CFString::CFString(const char *cstr, CFStringEncoding cstr_encoding) in CFString() argument 32 if (cstr && cstr[0]) { in CFString() 34 ::CFStringCreateWithCString(kCFAllocatorDefault, cstr, cstr_encoding)); in CFString()
|
| /openbsd-src/sbin/iked/ |
| H A D | crypto_api.h | 37 int crypto_kem_sntrup761_enc(unsigned char *cstr, unsigned char *k, 40 const unsigned char *cstr, const unsigned char *sk);
|
| /openbsd-src/usr.bin/ssh/ |
| H A D | crypto_api.h | 46 int crypto_kem_sntrup761_enc(unsigned char *cstr, unsigned char *k, 49 const unsigned char *cstr, const unsigned char *sk);
|