Home
last modified time | relevance | path

Searched refs:str (Results 1 – 25 of 2542) sorted by relevance

12345678910>>...102

/freebsd/sys/dev/ice/
H A Dice_strings.c69 struct ice_str_buf buf = { .str = "" }; in _ice_aq_str()
70 const char *str = NULL; in _ice_aq_str() local
74 str = "OK"; in _ice_aq_str()
77 str = "AQ_RC_EPERM"; in _ice_aq_str()
80 str = "AQ_RC_ENOENT"; in _ice_aq_str()
83 str = "AQ_RC_ESRCH"; in _ice_aq_str()
86 str = "AQ_RC_EINTR"; in _ice_aq_str()
89 str = "AQ_RC_EIO"; in _ice_aq_str()
92 str = "AQ_RC_ENXIO"; in _ice_aq_str()
95 str in _ice_aq_str()
185 const char *str = NULL; _ice_status_str() local
301 const char *str = NULL; _ice_err_str() local
679 const char *str = NULL; _ice_fltr_flag_str() local
714 const char *str = NULL; _ice_log_sev_str() local
789 const char *str = NULL; _ice_mdd_tx_tclan_str() local
878 const char *str = NULL; _ice_mdd_tx_pqm_str() local
980 const char *str = NULL; _ice_mdd_rx_str() local
1151 const char *str = NULL; _ice_fw_lldp_status() local
[all...]
/freebsd/contrib/unbound/util/
H A Dconfigparser.c3152 OUTYY(("P(server_local_zone_tag:%s)\n", (yyvsp[0].str))); in yyparse()
3153 bitlist = config_parse_taglist(cfg_parser->cfg, (yyvsp[0].str), in yyparse()
3155 free((yyvsp[0].str)); in yyparse()
3171 OUTYY(("P(rpz_action_override:%s)\n", (yyvsp[0].str))); in yyparse()
3172 if(strcmp((yyvsp[0].str), "nxdomain")!=0 && strcmp((yyvsp[0].str), "nodata")!=0 && in yyparse()
3173 strcmp((yyvsp[0].str), "passthru")!=0 && strcmp((yyvsp[0].str), "drop")!=0 && in yyparse()
3174 strcmp((yyvsp[0].str), "cname")!=0 && strcmp((yyvsp[0].str), "disabled")!=0) { in yyparse()
3177 free((yyvsp[0].str)); in yyparse()
3181 cfg_parser->cfg->auths->rpz_action_override = (yyvsp[0].str); in yyparse()
3190 OUTYY(("P(rpz_cname_override:%s)\n", (yyvsp[0].str))); in yyparse()
[all …]
/freebsd/contrib/atf/atf-c/detail/
H A Ddynstr_test.c53 atf_dynstr_t str; in ATF_TC_BODY() local
55 RE(atf_dynstr_init(&str)); in ATF_TC_BODY()
56 ATF_REQUIRE_EQ(atf_dynstr_length(&str), 0); in ATF_TC_BODY()
57 ATF_REQUIRE(strcmp(atf_dynstr_cstring(&str), "") == 0); in ATF_TC_BODY()
58 atf_dynstr_fini(&str); in ATF_TC_BODY()
63 init_fmt(atf_dynstr_t *str, const char *fmt, ...) in init_fmt() argument
68 RE(atf_dynstr_init_ap(str, fmt, ap)); in init_fmt()
80 atf_dynstr_t str; in ATF_TC_BODY() local
82 init_fmt(&str, "String 1"); in ATF_TC_BODY()
83 ATF_REQUIRE(strcmp(atf_dynstr_cstring(&str), "String 1") == 0); in ATF_TC_BODY()
[all …]
/freebsd/stand/common/
H A Dinterp_backslash.c28 backslash(const char *str) in backslash() argument
42 if ((new_str = strdup(str)) == NULL) in backslash()
45 while (*str) { in backslash()
48 switch (*str) { in backslash()
51 str++; in backslash()
59 new_str[i++] = *str++; in backslash()
64 str++; in backslash()
69 str++; in backslash()
74 str++; in backslash()
79 str++; in backslash()
[all …]
/freebsd/crypto/openssh/regress/unittests/misc/
H A Dtest_strdelim.c29 char *orig, *str, *cp; in test_strdelim() local
31 #define START_STRING(x) orig = str = xstrdup(x) in test_strdelim()
36 cp = strdelim(&str); in test_strdelim()
38 cp = strdelim(&str); in test_strdelim()
45 cp = strdelim(&str); in test_strdelim()
47 ASSERT_STRING_EQ(str, ""); in test_strdelim()
53 cp = strdelim(&str); in test_strdelim()
55 cp = strdelim(&str); in test_strdelim()
57 ASSERT_PTR_EQ(str, NULL); in test_strdelim()
63 cp = strdelim(&str); in test_strdelim()
[all …]
/freebsd/crypto/openssl/crypto/buffer/
H A Dbuffer.c58 static char *sec_alloc_realloc(BUF_MEM *str, size_t len) in sec_alloc_realloc() argument
63 if (str->data != NULL) { in sec_alloc_realloc()
65 memcpy(ret, str->data, str->length); in sec_alloc_realloc()
66 OPENSSL_secure_clear_free(str->data, str->length); in sec_alloc_realloc()
67 str->data = NULL; in sec_alloc_realloc()
73 size_t BUF_MEM_grow(BUF_MEM *str, size_t len) in BUF_MEM_grow() argument
78 if (str->length >= len) { in BUF_MEM_grow()
79 str->length = len; in BUF_MEM_grow()
82 if (str->max >= len) { in BUF_MEM_grow()
83 if (str->data != NULL) in BUF_MEM_grow()
[all …]
/freebsd/bin/pax/
H A Dgen_subs.c201 asc_ul(char *str, int len, int base) in asc_ul() argument
206 stop = str + len; in asc_ul()
211 while ((str < stop) && ((*str == ' ') || (*str == '0'))) in asc_ul()
212 ++str; in asc_ul()
219 while (str < stop) { in asc_ul()
220 if ((*str >= '0') && (*str <= '9')) in asc_ul()
221 tval = (tval << 4) + (*str++ - '0'); in asc_ul()
222 else if ((*str >= 'A') && (*str <= 'F')) in asc_ul()
223 tval = (tval << 4) + 10 + (*str++ - 'A'); in asc_ul()
224 else if ((*str >= 'a') && (*str <= 'f')) in asc_ul()
[all …]
/freebsd/contrib/ncurses/include/
H A DCaps-ncurses49 #memory_lock meml str ml - - ----K lock memory above cursor
50 #memory_unlock memu str mu - - ----K unlock memory
51 #plab_norm pln str pn - - ----- program label #1 to show string #2
52 #label_on smln str LO - - ----- turn on soft labels
53 #label_off rmln str LF - - ----- turn off soft labels
54 #key_f11 kf11 str F1 - - ----- F11 function key
55 #key_f12 kf12 str F2 - - ----- F12 function key
56 #key_f13 kf13 str F3 - - ----- F13 function key
57 #key_f14 kf14 str F4 - - ----- F14 function key
58 #key_f15 kf15 str F5 - - ----- F15 function key
[all …]
H A DCaps.osf1r5345 back_tab cbt str bt - - YBCGE back tab (P)
346 bell bel str bl - - YB-GE audible signal (bell) (P)
347 carriage_return cr str cr - - YBCGE carriage return (P*) (P*)
348 change_scroll_region csr str cs - - YBCGE change region to line #1 to line #2 (P)
349 clear_all_tabs tbc str ct - - YB-G- clear all tab stops (P)
350 clear_screen clear str cl - - YBCGE clear screen and home cursor (P*)
351 clr_eol el str ce - - YBCGE clear to end of line (P)
352 clr_eos ed str cd - - YBCGE clear to end of screen (P*)
353 column_address hpa str ch - - -B-GE* horizontal position #1, absolute (P)
354 command_character cmdch str CC - - YB-G- terminal settable cmd character in prototype !?
[all …]
H A DCaps.keys365 back_tab cbt str bt - - YBCGE back tab (P)
366 bell bel str bl - - YB-GE audible signal (bell) (P)
367 carriage_return cr str cr - - YBCGE carriage return (P*) (P*)
368 change_scroll_region csr str cs - - YBCGE change region to line #1 to line #2 (P)
369 clear_all_tabs tbc str ct - - YB-G- clear all tab stops (P)
370 clear_screen clear str cl - - YBCGE clear screen and home cursor (P*)
371 clr_eol el str ce - - YBCGE clear to end of line (P)
372 clr_eos ed str cd - - YBCGE clear to end of screen (P*)
373 column_address hpa str ch - - -B-GE* horizontal position #1, absolute (P)
374 command_character cmdch str CC - - YB-G- terminal settable cmd character in prototype !?
[all …]
H A DCaps.aix4362 back_tab cbt str bt - - YBCGE back tab (P)
363 bell bel str bl - - YB-GE audible signal (bell) (P)
364 carriage_return cr str cr - - YBCGE carriage return (P*) (P*)
365 change_scroll_region csr str cs - - YBCGE change region to line #1 to line #2 (P)
366 clear_all_tabs tbc str ct - - YB-G- clear all tab stops (P)
367 clear_screen clear str cl - - YBCGE clear screen and home cursor (P*)
368 clr_eol el str ce - - YBCGE clear to end of line (P)
369 clr_eos ed str cd - - YBCGE clear to end of screen (P*)
370 column_address hpa str ch - - -B-GE* horizontal position #1, absolute (P)
371 command_character cmdch str CC - - YB-G- terminal settable cmd character in prototype !?
[all …]
/freebsd/lib/libc/posix1e/
H A Dacl_from_text_nfs4.c52 parse_tag(const char *str, acl_entry_t entry, int *need_qualifier) in parse_tag() argument
58 if (strcmp(str, "owner@") == 0) in parse_tag()
60 if (strcmp(str, "group@") == 0) in parse_tag()
62 if (strcmp(str, "everyone@") == 0) in parse_tag()
67 if (strcmp(str, "user") == 0 || strcmp(str, "u") == 0) in parse_tag()
69 if (strcmp(str, "group") == 0 || strcmp(str, "g") == 0) in parse_tag()
84 parse_qualifier(char *str, acl_entry_t entry, int *need_qualifier) in parse_qualifier() argument
93 qualifier_length = strlen(str); in parse_qualifier()
104 error = _acl_name_to_id(tag, str, &id); in parse_qualifier()
114 parse_access_mask(char *str, acl_entry_t entry) in parse_access_mask() argument
[all …]
/freebsd/lib/libc/isc/
H A Dev_streams.c43 static int copyvec(evStream *str, const struct iovec *iov, int iocnt);
44 static void consume(evStream *str, size_t bytes);
45 static void done(evContext opaqueCtx, evStream *str);
131 evStream *str = id.opaque; in evTimeRW() local
135 str->timer = timer; in evTimeRW()
136 str->flags |= EV_STR_TIMEROK; in evTimeRW()
142 evStream *str = id.opaque; in evUntimeRW() local
146 str->flags &= ~EV_STR_TIMEROK; in evUntimeRW()
206 copyvec(evStream *str, const struct iovec *iov, int iocnt) { in copyvec() argument
209 str->iovOrig = (struct iovec *)memget(sizeof(struct iovec) * iocnt); in copyvec()
[all …]
/freebsd/contrib/unbound/sldns/
H A Dwire2str.h100 int sldns_str_vprint(char** str, size_t* slen, const char* format, va_list args);
109 int sldns_str_print(char** str, size_t* slen, const char* format, ...)
127 int sldns_wire2str_pkt_buf(uint8_t* data, size_t data_len, char* str,
149 int sldns_wire2str_pkt_scan(uint8_t** data, size_t* data_len, char** str,
164 int sldns_wire2str_rr_scan(uint8_t** data, size_t* data_len, char** str,
179 int sldns_wire2str_rrquestion_scan(uint8_t** data, size_t* data_len, char** str,
194 int sldns_wire2str_rr_unknown_scan(uint8_t** data, size_t* data_len, char** str,
209 int sldns_wire2str_rr_comment_print(char** str, size_t* str_len, uint8_t* rr,
221 int sldns_wire2str_header_scan(uint8_t** data, size_t* data_len, char** str,
239 int sldns_wire2str_rdata_scan(uint8_t** data, size_t* data_len, char** str,
[all …]
H A Dstr2wire.h62 int sldns_str2wire_dname_buf(const char* str, uint8_t* buf, size_t* len);
74 int sldns_str2wire_dname_buf_origin(const char* str, uint8_t* buf, size_t* len,
83 uint8_t* sldns_str2wire_dname(const char* str, size_t* len);
104 int sldns_str2wire_rr_buf(const char* str, uint8_t* rr, size_t* len,
124 int sldns_str2wire_rr_question_buf(const char* str, uint8_t* rr, size_t* len,
298 int sldns_str2wire_rdf_buf(const char* str, uint8_t* rd, size_t* len,
308 int sldns_str2wire_int8_buf(const char* str, uint8_t* rd, size_t* len);
317 int sldns_str2wire_int16_buf(const char* str, uint8_t* rd, size_t* len);
326 int sldns_str2wire_int32_buf(const char* str, uint8_t* rd, size_t* len);
335 int sldns_str2wire_a_buf(const char* str, uint8_t* rd, size_t* len);
[all …]
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/funcs/
H A Dtst.strstr.d33 str = "foobarbarbazbarbop";
36 c = str;
37 printf("strstr(\"%s\", \"%s\") = \"%s\"\n", str, c, strstr(str, c));
40 printf("strstr(\"%s\", \"%s\") = \"%s\"\n", str, c, strstr(str, c));
43 printf("strstr(\"%s\", \"%s\") = \"%s\"\n", str, c, strstr(str, c));
46 printf("strstr(\"%s\", \"%s\") = \"%s\"\n", str, c, strstr(str, c));
49 printf("strstr(\"%s\", \"%s\") = \"%s\"\n", str, c, strstr(str, c));
52 strstr(str, "baz"), strstr(str, "zba"),
53 strstr(strstr(str, "baz"), strstr(str, "zba")));
56 printf("strstr(\"%s\", \"%s\") = \"%s\"\n", str, c, strstr(str, c));
[all …]
H A Dtst.index.d32 string str; member
42 command[i].str = "foobarbaz";
46 command[i].str = "foofoofoo";
50 command[i].str = "boofoofoo";
54 command[i].str = "foobarbaz";
58 command[i].str = "foobar";
62 command[i].str = "foobar";
66 command[i].str = "";
70 command[i].str = "foobar";
74 command[i].str = "";
[all …]
/freebsd/contrib/ncurses/ncurses/tinfo/
H A Dcaptoinfo.c536 bcd_expression(const char *str) in bcd_expression() argument
543 if (sscanf(str, fmt, &ch1, &ch2) == 2 in bcd_expression()
619 _nc_infotocap(const char *cap GCC_UNUSED, const char *str, int const parameterized) in _nc_infotocap() argument
640 _nc_visbuf(str))); in _nc_infotocap()
643 padding = str + strlen(str) - 1; in _nc_infotocap()
644 if (padding > str && *padding == '>') { in _nc_infotocap()
645 if (padding > (str + 1) && *--padding == '/') in _nc_infotocap()
649 if (padding > str && *padding == '<' && *--padding == '$') in _nc_infotocap()
658 *str && in _nc_infotocap()
659 ((trimmed == 0) || (str < trimmed)); str++) { in _nc_infotocap()
[all …]
/freebsd/contrib/ldns/ldns/
H A Dstr2host.h77 ldns_status ldns_str2rdf_period(ldns_rdf **rd, const char *str);
85 ldns_status ldns_str2rdf_a(ldns_rdf **rd, const char *str);
93 ldns_status ldns_str2rdf_aaaa(ldns_rdf **rd, const char *str);
101 ldns_status ldns_str2rdf_str(ldns_rdf **rd, const char *str);
109 ldns_status ldns_str2rdf_apl(ldns_rdf **rd, const char *str);
117 ldns_status ldns_str2rdf_b64(ldns_rdf **rd, const char *str);
125 ldns_status ldns_str2rdf_b32_ext(ldns_rdf **rd, const char *str);
133 ldns_status ldns_str2rdf_hex(ldns_rdf **rd, const char *str);
141 ldns_status ldns_str2rdf_nsec(ldns_rdf **rd, const char *str);
149 ldns_status ldns_str2rdf_type(ldns_rdf **rd, const char *str);
[all …]
/freebsd/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_str.cpp34 // Use buffer contents. buffer.str is a pointer to data, buffer.used is a
36 write( fd, buffer.str, buffer.used );
43 return buffer.str; // That memory should be freed eventually.
47 * Buffer users may use buffer.str and buffer.used. Users should not change
49 * buffer.str is never NULL. If buffer is empty, buffer.str points to empty
61 KMP_DEBUG_ASSERT((b)->str != NULL); \
66 (b)->size == sizeof((b)->bulk) ? (b)->str == &(b)->bulk[0] : 1); \
67 KMP_DEBUG_ASSERT((b)->size > sizeof((b)->bulk) ? (b)->str != &(b)->bulk[0] \
75 buffer->str[ in __kmp_str_buf_clear()
134 __kmp_str_buf_cat(kmp_str_buf_t * buffer,char const * str,size_t len) __kmp_str_buf_cat() argument
357 char *str = NULL; __kmp_str_loc_init() local
494 __kmp_str_free(char ** str) __kmp_str_free() argument
561 __kmp_str_replace(char * str,char search_for,char replace_with) __kmp_str_replace() argument
571 __kmp_str_split(char * str,char delim,char ** head,char ** tail) __kmp_str_split() argument
596 __kmp_str_token(char * str,char const * delim,char ** buf) __kmp_str_token() argument
622 __kmp_str_to_int(char const * str,char sentinel) __kmp_str_to_int() argument
676 __kmp_str_to_size(char const * str,size_t * out,size_t dfactor,char const ** error) __kmp_str_to_size() argument
777 __kmp_str_to_uint(char const * str,kmp_uint64 * out,char const ** error) __kmp_str_to_uint() argument
[all...]
/freebsd/usr.bin/top/
H A Dcommands.c44 static int str_adderr(char *str, int len, int err);
45 static int str_addarg(char *str, int len, char *arg, bool first);
131 next_field(char *str) in next_field() argument
133 if ((str = strchr(str, ' ')) == NULL) in next_field()
137 *str = '\0'; in next_field()
138 while (*++str == ' ') /* loop */; in next_field()
142 return(*str == '\0' ? NULL : str); in next_field()
146 scanint(char *str, int *intp) in scanint() argument
153 if (*str == '\0') in scanint()
158 while ((ch = *str++) != '\0') in scanint()
[all …]
/freebsd/bin/ps/
H A Dprint.c111 char *vis_args, *vis_env, *str; in command() local
116 asprintf(&str, "%s%s%s%s%s", in command()
123 str = strdup(k->ki_p->ki_comm); in command()
125 return (str); in command()
143 asprintf(&str, "%s%s%s%s", in command()
154 str = vis_args; in command()
156 if (strlen(str) > COMMAND_WIDTH) in command()
157 str[COMMAND_WIDTH] = '\0'; in command()
160 return (str); in command()
166 char *str; in ucomm() local
[all …]
/freebsd/lib/libc/rpc/
H A Dclnt_perror.c75 char *str; in clnt_sperror() local
82 str = _buf(); /* side effect: sets CLNT_PERROR_BUFLEN */ in clnt_sperror()
83 if (str == NULL) in clnt_sperror()
86 strstart = str; in clnt_sperror()
89 if ((i = snprintf(str, len, "%s: ", s)) > 0) { in clnt_sperror()
90 str += i; in clnt_sperror()
94 (void)strncpy(str, clnt_sperrno(e.re_status), len - 1); in clnt_sperror()
95 i = strlen(str); in clnt_sperror()
96 str += i; in clnt_sperror()
117 i = snprintf(str, len, "; errno = %s", strerror(e.re_errno)); in clnt_sperror()
[all …]
/freebsd/contrib/bsnmp/tests/
H A Dsnmp_parse_server.cc15 try_parse(struct snmp_client *sc, const char *str) in try_parse() argument
17 const int r = snmp_parse_server(sc, str); in try_parse()
41 const auto str = "somehost"s; variable
42 REQUIRE(try_parse(&sc, str.c_str()) == 0);
44 REQUIRE(sc.chost == str);
50 const auto str = "some.host.domain"s; variable
51 REQUIRE(try_parse(&sc, str.c_str()) == 0);
53 REQUIRE(sc.chost == str);
59 const auto str = "some-mul.host-32.domain."s; variable
60 REQUIRE(try_parse(&sc, str.c_str()) == 0);
[all …]
/freebsd/contrib/atf/atf-c++/detail/
H A Dtext.cpp46 impl::duplicate(const char* str) in duplicate() argument
48 char* copy = new char[std::strlen(str) + 1]; in duplicate()
49 std::strcpy(copy, str); in duplicate()
54 impl::match(const std::string& str, const std::string& regex) in match() argument
60 found = str.empty(); in match()
68 const int res = ::regexec(&preg, str.c_str(), 0, NULL, 0); in match()
80 impl::to_lower(const std::string& str) in to_lower() argument
83 for (std::string::const_iterator iter = str.begin(); iter != str.end(); in to_lower()
90 impl::split(const std::string& str, const std::string& delim) in split() argument
95 while (pos < str.length() && newpos != std::string::npos) { in split()
[all …]

12345678910>>...102