Home
last modified time | relevance | path

Searched refs:parse (Results 1 – 25 of 648) sorted by relevance

12345678910>>...26

/freebsd/contrib/ntp/ntpd/
H A Drefclock_parse.c305 #define ERR(_X_) if (list_err(parse, (_X_)))
1536 …ine PARSE_STATETIME(parse, i) ((parse->generic->currentstatus == i) ? parse->statetime[i] + curren… argument
1549 struct parseunit *parse, in clear_err() argument
1559 parse->errors[i].err_stage = err_tbl[i]; in clear_err()
1560 parse->errors[i].err_cnt = 0; in clear_err()
1561 parse->errors[i].err_last = 0; in clear_err()
1562 parse->errors[i].err_started = 0; in clear_err()
1563 parse->errors[i].err_suppressed = 0; in clear_err()
1568 parse->errors[lstate].err_stage = err_tbl[lstate]; in clear_err()
1569 parse->errors[lstate].err_cnt = 0; in clear_err()
[all …]
/freebsd/contrib/kyua/utils/
H A Dunits_test.cpp97 ATF_REQUIRE_EQ(0, units::bytes::parse("0T")); in ATF_TEST_CASE_BODY()
98 ATF_REQUIRE_EQ(units::bytes(TB), units::bytes::parse("1T")); in ATF_TEST_CASE_BODY()
99 ATF_REQUIRE_EQ(units::bytes(TB), units::bytes::parse("1t")); in ATF_TEST_CASE_BODY()
100 ATF_REQUIRE_EQ(13567973486755LL, units::bytes::parse("12.340000T")); in ATF_TEST_CASE_BODY()
110 ATF_REQUIRE_EQ(0, units::bytes::parse("0G")); in ATF_TEST_CASE_BODY()
111 ATF_REQUIRE_EQ(units::bytes(GB), units::bytes::parse("1G")); in ATF_TEST_CASE_BODY()
112 ATF_REQUIRE_EQ(units::bytes(GB), units::bytes::parse("1g")); in ATF_TEST_CASE_BODY()
113 ATF_REQUIRE_EQ(13249974108LL, units::bytes::parse("12.340G")); in ATF_TEST_CASE_BODY()
123 ATF_REQUIRE_EQ(0, units::bytes::parse("0M")); in ATF_TEST_CASE_BODY()
124 ATF_REQUIRE_EQ(units::bytes(MB), units::bytes::parse("1M")); in ATF_TEST_CASE_BODY()
[all …]
/freebsd/contrib/wpa/src/rsn_supp/
H A Dwpa_ft.c590 struct wpa_ft_ies parse; in wpa_ft_process_response() local
598 os_memset(&parse, 0, sizeof(parse)); in wpa_ft_process_response()
624 if (wpa_ft_parse_ies(ies, ies_len, &parse, sm->key_mgmt, in wpa_ft_process_response()
630 mdie = (struct rsn_mdie *) parse.mdie; in wpa_ft_process_response()
631 if (mdie == NULL || parse.mdie_len < sizeof(*mdie) || in wpa_ft_process_response()
638 if (!parse.ftie || !parse.fte_anonce || !parse.fte_snonce) { in wpa_ft_process_response()
643 if (os_memcmp(parse.fte_snonce, sm->snonce, WPA_NONCE_LEN) != 0) { in wpa_ft_process_response()
646 parse.fte_snonce, WPA_NONCE_LEN); in wpa_ft_process_response()
652 if (parse.r0kh_id == NULL) { in wpa_ft_process_response()
657 if (parse.r0kh_id_len != sm->r0kh_id_len || in wpa_ft_process_response()
[all …]
/freebsd/contrib/ntp/libparse/
H A Dparse.c2 * /src/NTP/ntp4-dev/libparse/parse.c,v 4.20 2005/08/06 17:39:40 kardel RELEASE_20050806_A
4 * parse.c,v 4.20 2005/08/06 17:39:40 kardel RELEASE_20050806_A
50 static char rcsid[] = "parse.c,v 4.20 2005/08/06 17:39:40 kardel RELEASE_20050806_A";
60 #include "parse.h"
140 parseprintf(DD_PARSE, ("parse: timedout: TRUE\n")); in parse_timedout()
145 parseprintf(DD_PARSE, ("parse: timedout: FALSE\n")); in parse_timedout()
214 parseprintf(DD_PARSE, ("parse: parse_restart: buffer start (updated = %x)\n", updated)); in parse_restart()
232 parseprintf(DD_PARSE, ("parse: parse_addchar: buffer[%d] = 0x%x\n", parseio->parse_index, ch)); in parse_addchar()
255 parseprintf(DD_PARSE, ("parse: parse_end: buffer end\n")); in parse_end()
718 msyslog(LOG_WARNING, "parse in timepacket()
748 parse_timecode(parsectl_t * dct,parse_t * parse) parse_timecode() argument
779 parse_setfmt(parsectl_t * dct,parse_t * parse) parse_setfmt() argument
849 parse_getfmt(parsectl_t * dct,parse_t * parse) parse_getfmt() argument
869 parse_setcs(parsectl_t * dct,parse_t * parse) parse_setcs() argument
[all...]
H A Dparsesolaris.c326 register parsestream_t *parse; in parseopen() local
353 parse = (parsestream_t *) q->q_ptr; in parseopen()
354 bzero((caddr_t)parse, sizeof(*parse)); in parseopen()
355 parse->parse_queue = q; in parseopen()
356 parse->parse_status = PARSE_ENABLE; in parseopen()
357 parse->parse_ppsclockev.tv.tv_sec = 0; in parseopen()
358 parse->parse_ppsclockev.tv.tv_usec = 0; in parseopen()
359 parse->parse_ppsclockev.serial = 0; in parseopen()
365 if (!parse_ioinit(&parse->parse_io)) in parseopen()
372 kmem_free((caddr_t)parse, sizeof(parsestream_t)); in parseopen()
[all …]
H A Dparsestreams.c477 register parsestream_t *parse; in parseopen() local
510 parse = (parsestream_t *)(void *)q->q_ptr; in parseopen()
511 bzero((caddr_t)parse, sizeof(*parse)); in parseopen()
512 parse->parse_queue = q; in parseopen()
513 parse->parse_status = PARSE_ENABLE; in parseopen()
514 parse->parse_ppsclockev.tv.tv_sec = 0; in parseopen()
515 parse->parse_ppsclockev.tv.tv_usec = 0; in parseopen()
516 parse->parse_ppsclockev.serial = 0; in parseopen()
518 if (!parse_ioinit(&parse->parse_io)) in parseopen()
523 kmem_free((caddr_t)parse, sizeof(parsestream_t)); in parseopen()
[all …]
H A DREADME4 the parse refclock driver. For reasonably sane clocks this refclock
7 support can run as low a 3k code with the parse refclock driver.
15 of the parse driver is that it only supports SYSV type ttys and that kernel
22 parsestreams.loadable_module.o - standard parse module for SunOS 4
27 parse - auto loadable streams module
29 To install just drop "parse" into /kernel/strmod and
32 The structure of the parse reference clock driver is as follows:
53 The abstract reference clock is generated by the parse*
54 routines. They parse the incoming data stream from the
81 parse.c These are the general routines to parse the incoming data
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A Dregcomp.c192 struct parse { struct
206 static void p_ere(struct parse *, int); argument
207 static void p_ere_exp(struct parse *);
208 static void p_str(struct parse *);
209 static void p_bre(struct parse *, int, int);
210 static int p_simp_re(struct parse *, int);
211 static int p_count(struct parse *);
212 static void p_bracket(struct parse *);
213 static void p_b_term(struct parse *, cset *);
214 static void p_b_cclass(struct parse *, cset *);
[all …]
/freebsd/contrib/wpa/src/eap_server/
H A Deap_server_ttls.c178 static int eap_ttls_avp_parse(struct wpabuf *buf, struct eap_ttls_avp *parse) in eap_ttls_avp_parse() argument
186 os_memset(parse, 0, sizeof(*parse)); in eap_ttls_avp_parse()
230 if (parse->eap == NULL) { in eap_ttls_avp_parse()
231 parse->eap = os_memdup(dpos, dlen); in eap_ttls_avp_parse()
232 if (parse->eap == NULL) { in eap_ttls_avp_parse()
238 parse->eap_len = dlen; in eap_ttls_avp_parse()
240 u8 *neweap = os_realloc(parse->eap, in eap_ttls_avp_parse()
241 parse->eap_len + dlen); in eap_ttls_avp_parse()
248 os_memcpy(neweap + parse->eap_len, dpos, dlen); in eap_ttls_avp_parse()
249 parse->eap = neweap; in eap_ttls_avp_parse()
[all …]
/freebsd/lib/libc/regex/
H A Dregcomp.c83 struct parse { struct
99 bool (*parse_expr)(struct parse *, struct branchc *); argument
100 void (*pre_parse)(struct parse *, struct branchc *); argument
101 void (*post_parse)(struct parse *, struct branchc *); argument
112 static bool p_ere_exp(struct parse *p, struct branchc *bc);
113 static void p_str(struct parse *p);
114 static int p_branch_eat_delim(struct parse *p, struct branchc *bc);
115 static void p_branch_ins_offset(struct parse *p, struct branchc *bc);
116 static void p_branch_fix_tail(struct parse *p, struct branchc *bc);
117 static bool p_branch_empty(struct parse *p, struct branchc *bc);
[all …]
/freebsd/contrib/ntp/html/hints/
H A Dparse11 parse/parse.c
13 parse/parse_conf.c
15 parse/clk_meinberg.c
17 parse/clk_schmid.c
19 parse/clk_rawdcf.c
21 parse/clk_dcf7000.c
23 parse/clk_trimble.c
32 parse/Makefile.kernel
36 parse/parsestreams.c
40 parse/parsesolaris.c
[all …]
/freebsd/contrib/nvi/regex/
H A Dregcomp.c60 struct parse { struct
81 static void p_ere(struct parse *p, int stop, size_t reclimit); argument
82 static void p_ere_exp(struct parse *p, size_t reclimit);
83 static void p_str(struct parse *p);
84 static void p_bre(struct parse *p, int end1, int end2, size_t reclimit);
85 static int p_simp_re(struct parse *p, int starordinary, size_t reclimit);
86 static int p_count(struct parse *p);
87 static void p_bracket(struct parse *p);
88 static void p_b_term(struct parse *p, cset *cs);
89 static void p_b_cclass(struct parse *p, cset *cs);
[all …]
/freebsd/contrib/kyua/utils/config/
H A Dparser_test.cpp93 mock_parser(tree).parse(fs::path("output.lua")); in ATF_TEST_CASE_BODY()
109 mock_parser(tree).parse(fs::path("output.lua"))); in ATF_TEST_CASE_BODY()
125 mock_parser(tree).parse(fs::path("output.lua")); in ATF_TEST_CASE_BODY()
146 mock_parser(tree).parse(fs::path("output.lua")); in ATF_TEST_CASE_BODY()
162 mock_parser(tree1).parse(fs::path("output.lua"))); in ATF_TEST_CASE_BODY()
171 mock_parser(tree2).parse(fs::path("output.lua"))); in ATF_TEST_CASE_BODY()
183 mock_parser(tree).parse(fs::path("output.lua"))); in ATF_TEST_CASE_BODY()
193 (void)mock_parser(tree).parse(fs::path("output.lua")); in ATF_TEST_CASE_BODY()
197 mock_parser(tree).parse(fs::path("output.lua"))); in ATF_TEST_CASE_BODY()
201 mock_parser(tree).parse(fs::path("output.lua"))); in ATF_TEST_CASE_BODY()
[all …]
/freebsd/contrib/bmake/unit-tests/
H A Dmoderrs.mk21 all: mod-ts-parse
22 all: mod-t-parse
23 all: mod-ifelse-parse
24 all: mod-remember-parse
25 all: mod-sysv-parse
133 mod-ts-parse: print-header print-footer
143 mod-t-parse: print-header print-footer
153 mod-ifelse-parse: print-footer
164 mod-remember-parse: print-footer
169 mod-sysv-parse: print-footer
H A Dvar-eval-short.exp5 Var_Parse: ${0:?${FAIL}then:${FAIL}else} (parse)
7 Var_Parse: ${FAIL}then:${FAIL}else} (parse)
9 Var_Parse: ${FAIL}else} (parse)
16 Var_Parse: ${DEFINED:L:?${FAIL}then:${FAIL}else} (parse)
20 Var_Parse: ${FAIL}then:${FAIL}else} (parse)
22 Var_Parse: ${FAIL}else} (parse)
H A Dcond-late.mk18 all: parse-time cond-literal
20 parse-time: .PHONY
21 @${MAKE} -f ${MAKEFILE} do-parse-time || true
35 .if make(do-parse-time)
/freebsd/contrib/ntp/ntpdc/
H A Dntpdc_ops.c41 static void peerlist (struct parse *, FILE *);
42 static void peers (struct parse *, FILE *);
43 static void doconfig (struct parse *pcmd, FILE *fp, int mode, int refc);
44 static void dmpeers (struct parse *, FILE *);
45 static void dopeers (struct parse *, FILE *, int);
47 static void showpeer (struct parse *, FILE *);
48 static void peerstats (struct parse *, FILE *);
49 static void loopinfo (struct parse *, FILE *);
50 static void sysinfo (struct parse *, FILE *);
51 static void sysstats (struct parse *, FILE *);
[all …]
/freebsd/contrib/unbound/libunbound/
H A Dlibunbound.c1148 char* parse, *addr; in ub_ctx_resolvconf() local
1198 parse=buf; in ub_ctx_resolvconf()
1199 while(*parse == ' ' || *parse == '\t') in ub_ctx_resolvconf()
1200 parse++; in ub_ctx_resolvconf()
1201 if(strncmp(parse, "nameserver", 10) == 0) { in ub_ctx_resolvconf()
1203 parse += 10; /* skip 'nameserver' */ in ub_ctx_resolvconf()
1205 while(*parse == ' ' || *parse == '\t') in ub_ctx_resolvconf()
1206 parse++; in ub_ctx_resolvconf()
1207 addr = parse; in ub_ctx_resolvconf()
1209 while(isxdigit((unsigned char)*parse) || *parse=='.' || *parse==':') in ub_ctx_resolvconf()
[all …]
/freebsd/usr.sbin/newsyslog/
H A Dnewsyslog.c1137 char line[BUFSIZ], *parse, *q; in parse_file() local
1166 q = parse = missing_field(sob(line), errline); in parse_file()
1167 parse = son(line); in parse_file()
1168 if (!*parse) { in parse_file()
1173 *parse = '\0'; in parse_file()
1181 q = parse = missing_field(sob(parse + 1), errline); in parse_file()
1182 parse = son(parse); in parse_file()
1183 if (!*parse) in parse_file()
1187 *parse = '\0'; in parse_file()
1194 q = parse = missing_field(sob(parse + 1), errline); in parse_file()
[all …]
/freebsd/contrib/kyua/utils/cmdline/
H A Dparser_test.cpp60 using cmdline::parse;
241 const parsed_cmdline cmdline = parse(argc, argv, options); in ATF_TEST_CASE_BODY()
261 const parsed_cmdline cmdline = parse(argc, argv, options); in ATF_TEST_CASE_BODY()
275 const parsed_cmdline cmdline = parse(argc, argv, options); in ATF_TEST_CASE_BODY()
295 const parsed_cmdline cmdline = parse(argc, argv, options); in ATF_TEST_CASE_BODY()
346 const parsed_cmdline cmdline = parse(argc, argv, options); in ATF_TEST_CASE_BODY()
383 const parsed_cmdline cmdline = parse(argc, argv, options); in ATF_TEST_CASE_BODY()
416 const parsed_cmdline cmdline = parse(argc, argv, options); in ATF_TEST_CASE_BODY()
428 const parsed_cmdline cmdline2 = parse(cmdline.arguments(), options2); in ATF_TEST_CASE_BODY()
449 parse(argc, argv, options); in ATF_TEST_CASE_BODY()
[all …]
/freebsd/contrib/wpa/src/eap_peer/
H A Deap_ttls.c941 struct ttls_parse_avp *parse) in eap_ttls_parse_attr_eap() argument
944 if (parse->eapdata == NULL) { in eap_ttls_parse_attr_eap()
945 parse->eapdata = os_memdup(dpos, dlen); in eap_ttls_parse_attr_eap()
946 if (parse->eapdata == NULL) { in eap_ttls_parse_attr_eap()
951 parse->eap_len = dlen; in eap_ttls_parse_attr_eap()
953 u8 *neweap = os_realloc(parse->eapdata, parse->eap_len + dlen); in eap_ttls_parse_attr_eap()
959 os_memcpy(neweap + parse->eap_len, dpos, dlen); in eap_ttls_parse_attr_eap()
960 parse->eapdata = neweap; in eap_ttls_parse_attr_eap()
961 parse->eap_len += dlen; in eap_ttls_parse_attr_eap()
969 struct ttls_parse_avp *parse) in eap_ttls_parse_avp() argument
[all …]
/freebsd/contrib/ntp/ntpq/
H A Dntpq-subs.c29 static void addvars (struct parse *, FILE *);
30 static void rmvars (struct parse *, FILE *);
31 static void clearvars (struct parse *, FILE *);
32 static void showvars (struct parse *, FILE *);
35 static void readlist (struct parse *, FILE *);
36 static void writelist (struct parse *, FILE *);
37 static void readvar (struct parse *, FILE *);
38 static void writevar (struct parse *, FILE *);
39 static void clocklist (struct parse *, FILE *);
40 static void clockvar (struct parse *, FIL
[all...]
/freebsd/contrib/libucl/include/
H A Ducl++.h456 …static Ucl parse (const std::string &in, std::string &err, enum ucl_duplicate_strategy duplicate_s…
458 return parse (in, std::map<std::string, std::string>(), err, duplicate_strategy);
461 static Ucl parse (const std::string &in, const std::map<std::string, std::string> &vars,
465 return parse ( in, vars, emptyVector, err, duplicate_strategy );
469 static Ucl parse (const std::string &in,
473 return parse (in, std::map<std::string, std::string>(), macros, err, duplicate_strategy);
477 static Ucl parse (const std::string &in, const std::map<std::string, std::string> &vars,
517 static Ucl parse (const std::string &in, const variable_replacer &replacer,
521 return parse ( in, replacer, emptyVector, err, duplicate_strategy );
525 static Ucl parse (const std::string &in, const variable_replacer &replacer,
[all …]
/freebsd/contrib/wpa/src/common/
H A Dwpa_common.c1029 struct wpa_ft_ies *parse, const u8 *opt) in wpa_ft_parse_ftie() argument
1056 parse->r1kh_id = pos; in wpa_ft_parse_ftie()
1058 parse->r1kh_id, FT_R1KH_ID_LEN); in wpa_ft_parse_ftie()
1062 parse->gtk = pos; in wpa_ft_parse_ftie()
1063 parse->gtk_len = len; in wpa_ft_parse_ftie()
1072 parse->r0kh_id = pos; in wpa_ft_parse_ftie()
1073 parse->r0kh_id_len = len; in wpa_ft_parse_ftie()
1075 parse->r0kh_id, parse->r0kh_id_len); in wpa_ft_parse_ftie()
1079 parse->igtk = pos; in wpa_ft_parse_ftie()
1080 parse->igtk_len = len; in wpa_ft_parse_ftie()
[all …]
/freebsd/contrib/wpa/src/ap/
H A Dwpa_auth_ft.c2431 struct ieee802_11_elems parse; in wpa_ft_process_rdie() local
2452 if (ieee802_11_parse_elems((u8 *) ies, ies_len, &parse, 1) == in wpa_ft_process_rdie()
2460 if (parse.wmm_tspec) { in wpa_ft_process_rdie()
2463 if (parse.wmm_tspec_len + 2 < (int) sizeof(*tspec)) { in wpa_ft_process_rdie()
2465 "(%d)", (int) parse.wmm_tspec_len); in wpa_ft_process_rdie()
2478 os_memcpy(tspec, parse.wmm_tspec - 2, sizeof(*tspec)); in wpa_ft_process_rdie()
2482 if (parse.wmm_tspec && sm->wpa_auth->conf.ap_mlme) { in wpa_ft_process_rdie()
2502 if (parse.wmm_tspec && !sm->wpa_auth->conf.ap_mlme) { in wpa_ft_process_rdie()
2571 struct wpa_ft_ies parse; in wpa_sm_write_assoc_resp_ies() local
2808 if (wpa_ft_parse_ies(req_ies, req_ies_len, &parse, in wpa_sm_write_assoc_resp_ies()
[all …]

12345678910>>...26