Home
last modified time | relevance | path

Searched refs:sscanf (Results 1 – 25 of 429) sorted by relevance

12345678910>>...18

/freebsd/lib/libc/tests/stdio/
H A Dscanfloat_test.c62 sscanf("3.141592", "%e", &f); in ATF_TC_BODY()
65 sscanf("3.141592653589793", "%lf", &d); in ATF_TC_BODY()
68 sscanf("1.234568e+06", "%E", &f); in ATF_TC_BODY()
71 sscanf("-1.234568e6", "%lF", &d); in ATF_TC_BODY()
74 sscanf("+1.234568e-52", "%LG", &ld); in ATF_TC_BODY()
77 sscanf("0.1", "%la", &d); in ATF_TC_BODY()
80 sscanf("00.2", "%lA", &d); in ATF_TC_BODY()
83 sscanf("123456", "%5le%s", &d, buf); in ATF_TC_BODY()
87 sscanf("1.0Q", "%*5le%s", buf); in ATF_TC_BODY()
90 sscanf("-1.23e", "%e%s", &f, buf); in ATF_TC_BODY()
[all …]
H A Dsscanf_test.c153 ret = sscanf(string, format "%n", &val, &len); \
252 ATF_CHECK_EQ(1, sscanf(x00, "%w" #N "i", &i)); \ in ATF_TC_BODY()
254 ATF_CHECK_EQ(1, sscanf(x7f, "%w" #N "i", &i)); \ in ATF_TC_BODY()
256 ATF_CHECK_EQ(1, sscanf(x00, "%w" #N "x", &u)); \ in ATF_TC_BODY()
258 ATF_CHECK_EQ(1, sscanf(xff, "%w" #N "x", &u)); \ in ATF_TC_BODY()
267 ATF_CHECK_EQ(0, sscanf(x00, "%wi", (int *)NULL)); in ATF_TC_BODY()
268 ATF_CHECK_EQ(0, sscanf(x00, "%w1i", (int *)NULL)); in ATF_TC_BODY()
269 ATF_CHECK_EQ(0, sscanf(x00, "%w128i", (int *)NULL)); in ATF_TC_BODY()
283 ATF_CHECK_EQ(1, sscanf(x00, "%wf" #N "i", &i)); \ in ATF_TC_BODY()
285 ATF_CHECK_EQ(1, sscanf(x7f, "%wf" #N "i", &i)); \ in ATF_TC_BODY()
[all …]
/freebsd/contrib/netbsd-tests/lib/libcurses/slave/
H A Dcurses_commands.c58 if (sscanf(args[1], "%d", &count) == 0) { in cmd_addbytes()
91 if (sscanf(args[1], "%d", &count) == 0) { in cmd_addchnstr()
121 if (sscanf(args[1], "%d", &count) == 0) { in cmd_addnstr()
171 if (sscanf(args[0], "%d", &attrib) == 0) { in cmd_attr_off()
190 if (sscanf(args[0], "%d", &attrib) == 0) { in cmd_attr_on()
210 if (sscanf(args[0], "%d", &attrib) == 0) { in cmd_attr_set()
216 if (sscanf(args[1], "%hd", &pair) == 0) { in cmd_attr_set()
235 if (sscanf(args[0], "%d", &attrib) == 0) { in cmd_attroff()
254 if (sscanf(args[0], "%d", &attrib) == 0) { in cmd_attron()
273 if (sscanf(args[0], "%d", &attrib) == 0) { in cmd_attrset()
[all …]
H A Dslave.c165 sscanf(argv[1], "%d", &cmdpipe[0]); in main()
166 sscanf(argv[2], "%d", &cmdpipe[1]); in main()
167 sscanf(argv[3], "%d", &slvpipe[0]); in main()
168 sscanf(argv[4], "%d", &slvpipe[1]); in main()
/freebsd/tools/test/stress2/lib/
H A Doptions.c68 r = sscanf(string, "%d%c", &s, &modifier); in time2sec()
101 if (sscanf(cp, "%d", &op->incarnations) != 1) in environment()
105 if (sscanf(cp, "%d", &op->load) != 1) in environment()
127 if (sscanf(cp, "%d", &op->verbose) != 1) in environment()
131 if (sscanf(cp, "%jd", &op->kblocks) != 1) in environment()
135 if (sscanf(cp, "%jd", &op->inodes) != 1) in environment()
167 if (sscanf(optarg, "%d", &op->load) != 1) in options()
171 if (sscanf(optarg, "%d", &op->incarnations) != 1) in options()
265 if (sscanf(buf, "%ld", &val) != 1) in getval()
/freebsd/usr.sbin/bluetooth/hccontrol/
H A Dlink_control.c62 if (sscanf(argv[2], "%d", &n0) != 1 || n0 < 0 || n0 > 0xff) in hci_inquiry()
69 if (sscanf(argv[1], "%d", &n0) != 1 || n0 < 0x1 || n0 > 0x30) in hci_inquiry()
76 if (sscanf(argv[0], "%x:%x:%x", &n2, &n1, &n0) != 3) in hci_inquiry()
192 if (sscanf(argv[5], "%d", &n0) != 1) in hci_create_connection()
199 if (sscanf(argv[4], "%d", &n0) != 1) in hci_create_connection()
207 if (sscanf(argv[3], "%d", &n0) != 1 || n0 < 0 || n0 > 3) in hci_create_connection()
214 if (sscanf(argv[2], "%d", &n0) != 1 || n0 < 0 || n0 > 2) in hci_create_connection()
221 if (sscanf(argv[1], "%x", &n0) != 1) in hci_create_connection()
307 if (sscanf(argv[1], "%d", &n) != 1 || n <= 0x00 || n > 0xff) in hci_disconnect()
314 if (sscanf(argv[0], "%d", &n) != 1 || n <= 0 || n > 0x0eff) in hci_disconnect()
[all …]
H A Dhost_controller_baseband.c147 if (sscanf(argv[0], "%d", &n) != 1 || n < 0 || n > 1) in hci_write_pin_type()
491 if (sscanf(argv[0], "%d", &n) != 1 || n < 1 || n > 0xb540) in hci_write_connection_accept_timeout()
556 if (sscanf(argv[0], "%d", &n) != 1 || n < 1 || n > 0xffff) in hci_write_page_timeout()
620 if (sscanf(argv[0], "%d", &n) != 1 || n < 0 || n > 3) in hci_write_scan_enable()
688 if (sscanf(argv[0], "%d", &n) != 1 || n < 0x12 || n > 0x1000) in hci_write_page_scan_activity()
694 if (sscanf(argv[1], "%d", &n) != 1 || n < 0x12 || n > 0x1000) in hci_write_page_scan_activity()
769 if (sscanf(argv[0], "%d", &n) != 1 || n < 0x12 || n > 0x1000) in hci_write_inquiry_scan_activity()
775 if (sscanf(argv[1], "%d", &n) != 1 || n < 0x12 || n > 0x1000) in hci_write_inquiry_scan_activity()
845 if (sscanf(argv[0], "%d", &n) != 1 || n < 0 || n > 1) in hci_write_authentication_enable()
908 if (sscanf(argv[0], "%d", &n) != 1 || n < 0 || n > 2) in hci_write_encryption_mode()
[all …]
H A Dlink_policy.c52 if (sscanf(argv[0], "%d", &n) != 1 || n <= 0 || n > 0x0eff) in hci_role_discovery()
107 if (sscanf(argv[1], "%d", &n0) != 1) in hci_switch_role()
168 if (sscanf(argv[0], "%d", &n) != 1 || n <= 0 || n > 0x0eff) in hci_read_link_policy_settings()
211 if (sscanf(argv[0], "%d", &n) != 1 || n <= 0 || n > 0x0eff) in hci_write_link_policy_settings()
218 if (sscanf(argv[1], "%x", &n) != 1) in hci_write_link_policy_settings()
H A Dstatus.c51 if (sscanf(argv[0], "%d", &n) != 1 || n <= 0 || n > 0x0eff) in hci_read_failed_contact_counter()
93 if (sscanf(argv[0], "%d", &n) != 1 || n <= 0 || n > 0x0eff) in hci_reset_failed_contact_counter()
132 if (sscanf(argv[0], "%d", &n) != 1 || n <= 0 || n > 0x0eff) in hci_get_link_quality()
174 if (sscanf(argv[0], "%d", &n) != 1 || n <= 0 || n > 0x0eff) in hci_read_rssi()
/freebsd/usr.sbin/cdcontrol/
H A Dcdcontrol.c439 count = sscanf (arg, "%d %d", &l, &r); in run()
502 if (2 != sscanf (arg, "#%d%d", &blk, &len) && in play()
503 1 != sscanf (arg, "#%d", &blk)) in play()
531 if (8 == sscanf (arg, "%d %d:%d.%d %d %d:%d.%d", in play()
536 if (7 == sscanf (arg, "%d %d:%d %d %d:%d.%d", in play()
541 if (7 == sscanf (arg, "%d %d:%d.%d %d %d:%d", in play()
546 if (7 == sscanf (arg, "%d %d:%d.%d %d:%d.%d", in play()
551 if (6 == sscanf (arg, "%d %d:%d.%d %d:%d", in play()
556 if (6 == sscanf (arg, "%d %d:%d %d:%d.%d", in play()
561 if (6 == sscanf (arg, "%d %d:%d.%d %d %d", in play()
[all …]
/freebsd/sys/contrib/dev/iwlwifi/mvm/
H A Ddebugfs-vif.c84 if (sscanf(buf + 11, "%d", &val) != 1) in iwl_dbgfs_pm_params_write()
88 if (sscanf(buf + 15, "%d", &val) != 1) in iwl_dbgfs_pm_params_write()
92 if (sscanf(buf + 18, "%d", &val) != 1) in iwl_dbgfs_pm_params_write()
96 if (sscanf(buf + 16, "%d", &val) != 1) in iwl_dbgfs_pm_params_write()
100 if (sscanf(buf + 16, "%d", &val) != 1) in iwl_dbgfs_pm_params_write()
104 if (sscanf(buf + 5, "%d", &val) != 1) in iwl_dbgfs_pm_params_write()
108 if (sscanf(buf + 20, "%d", &val) != 1) in iwl_dbgfs_pm_params_write()
115 if (sscanf(buf + 14, "%d", &val) != 1) in iwl_dbgfs_pm_params_write()
119 if (sscanf(buf + 18, "%d", &val) != 1) in iwl_dbgfs_pm_params_write()
123 if (sscanf(bu in iwl_dbgfs_pm_params_write()
[all...]
/freebsd/contrib/netbsd-tests/lib/libc/stdio/
H A Dt_scanf.c48 sscanf(STRNUM, "%i", &i); in ATF_TC_BODY()
51 sscanf(STRNUM, "%x", &i); in ATF_TC_BODY()
73 (void)sscanf(str, "%%%c", &c); in ATF_TC_BODY()
/freebsd/sys/contrib/openzfs/lib/libnvpair/
H A Dlibnvpair.c1033 sr = sscanf(value, "%c", &val_arg); in nvpair_value_match_regex()
1044 sr = sscanf(value, "%c", &val_arg); in nvpair_value_match_regex()
1056 sr = sscanf(value, "%"SCNi8, &val_arg); in nvpair_value_match_regex()
1067 sr = sscanf(value, "%"SCNi8, &val_arg); in nvpair_value_match_regex()
1079 sr = sscanf(value, "%"SCNi8, (int8_t *)&val_arg); in nvpair_value_match_regex()
1090 sr = sscanf(value, "%"SCNi8, (int8_t *)&val_arg); in nvpair_value_match_regex()
1102 sr = sscanf(value, "%"SCNi16, &val_arg); in nvpair_value_match_regex()
1113 sr = sscanf(value, "%"SCNi16, &val_arg); in nvpair_value_match_regex()
1125 sr = sscanf(value, "%"SCNi16, (int16_t *)&val_arg); in nvpair_value_match_regex()
1136 sr = sscanf(value, "%"SCNi16, (int16_t *)&val_arg); in nvpair_value_match_regex()
[all …]
/freebsd/crypto/heimdal/kadmin/
H A Dload.c79 if(sscanf(s, "%04d%02d%02d%02d%02d%02d", in parse_time_string()
123 if (sscanf(s, "%u", u) != 1) in parse_integer()
159 if (sscanf(p, "%d", &tmp) != 1) in parse_keys()
173 if(sscanf(p, "%d", &tmp) == 1) { in parse_keys()
179 if (sscanf(p, "%d", &tmp) != 1) in parse_keys()
187 if(sscanf(p + i, "%02x", &tmp) != 1) in parse_keys()
196 if(sscanf(p, "%u/", &type) != 1) in parse_keys()
220 if (sscanf(p + i, "%02x", &tmp) != 1) in parse_keys()
301 if(sscanf(p, "%d", &v) != 1) in parse_generation()
305 if(sscanf(p, "%d", &v) != 1) in parse_generation()
/freebsd/lib/libc/net/
H A Deui64.c149 i = sscanf(a, "%x-%x-%x-%x-%x-%x-%x-%x", in eui64_aton()
154 i = sscanf(a, "%x:%x:%x:%x:%x:%x:%x:%x", in eui64_aton()
159 i = sscanf(a, "0x%2x%2x%2x%2x%2x%2x%2x%2x", in eui64_aton()
164 i = sscanf(a, "%x-%x-%x-%x-%x-%x", in eui64_aton()
172 i = sscanf(a, "%x:%x:%x:%x:%x:%x", in eui64_aton()
/freebsd/contrib/ofed/opensm/libvendor/
H A Dosm_vendor_mlx_hca_pfs.c179 if (sscanf(p_ch, "name: %s", pfs_ca_info->name) != 1) { in __parse_ca_info_file()
194 if (sscanf(p_ch, "node GUID: %x:%x:%x:%x", &g1, &g2, &g3, &g4) != 4) { in __parse_ca_info_file()
211 if (sscanf(p_ch, "ports: %d", &num_ports) != 1) { in __parse_ca_info_file()
311 if (sscanf(p_ch, "state: %s", state) != 1) { in __parse_port_info_file()
337 if (sscanf(p_ch, "LID: %x", &lid) != 1) { in __parse_port_info_file()
352 if (sscanf(p_ch, "LMC: %x", &lmc) != 1) { in __parse_port_info_file()
368 if (sscanf(p_ch, "SM LID: %x", &sm_lid) != 1) { in __parse_port_info_file()
384 if (sscanf(p_ch, "SM SL: %x", &sm_sl) != 1) { in __parse_port_info_file()
458 if (sscanf(p_ch + 6, "%x:%x:%x:%x:%x:%x:%x:%x", in __get_port_guid_from_port_gid_tbl()
H A Dosm_vendor_mlx_hca_sim.c225 if (sscanf(p_ch, "name: %s", sim_ca_info->name) != 1) { in __parse_ca_info_file()
240 if (sscanf(p_ch, "node GUID: %x:%x:%x:%x", &g1, &g2, &g3, &g4) != 4) { in __parse_ca_info_file()
257 if (sscanf(p_ch, "ports: %d", &num_ports) != 1) { in __parse_ca_info_file()
357 if (sscanf(p_ch, "state: %s", state) != 1) { in __parse_port_info_file()
383 if (sscanf(p_ch, "LID: %x", &lid) != 1) { in __parse_port_info_file()
398 if (sscanf(p_ch, "LMC: %x", &lmc) != 1) { in __parse_port_info_file()
414 if (sscanf(p_ch, "SM LID: %x", &sm_lid) != 1) { in __parse_port_info_file()
430 if (sscanf(p_ch, "SM SL: %x", &sm_sl) != 1) { in __parse_port_info_file()
504 if (sscanf(p_ch + 6, "%x:%x:%x:%x:%x:%x:%x:%x", in __get_port_guid_from_port_gid_tbl()
/freebsd/lib/msun/tests/
H A Dnan_test.c69 ATF_REQUIRE(sscanf(nan_str, "%e", &af[2]) == 1); in testnan()
82 ATF_REQUIRE(sscanf(nan_str, "%le", &ad[2]) == 1); in testnan()
95 ATF_REQUIRE(sscanf(nan_str, "%Le", &ald[2]) == 1); in testnan()
/freebsd/tools/test/stress2/misc/
H A Dsignal.sh98 sscanf(argv[1], "%d", &numThreads);
181 sscanf(argv[1], "%d", &pid);
184 sscanf(argv[2], "%ld", &id);
187 sscanf(argv[3], "%d", &sig);
H A Dburnin.sh147 if (sscanf(optarg, "%d", &bufsize) != 1)
154 if (sscanf(optarg, "%d", &files) != 1)
158 if (sscanf(optarg, "%d", &parallel) != 1)
162 if (sscanf(optarg, "%d", &runtime) != 1)
/freebsd/usr.sbin/kbdcontrol/
H A Dlex.l133 sscanf(yytext+4, "%d", &number);
137 sscanf(yytext+3, "%d", &number);
142 0x{X}({X}*) { sscanf(yytext, "%x", &number); return TNUM; }
143 {D}({D}*) { sscanf(yytext, "%d", &number); return TNUM; }
/freebsd/contrib/ntp/ntpq/
H A Dntpq-subs.c2326 if (1 == sscanf(resp, "column %d syntax error", &col) in config()
2782 } else if (1 != sscanf(tag, "addr.%d", &si) in collect_mru_list()
2829 } else if (1 != sscanf(tag, "last.%d", &si) || in collect_mru_list()
2847 if (1 != sscanf(tag, "first.%d", &si) || in collect_mru_list()
2869 if (1 != sscanf(tag, "ct.%d", &si) || in collect_mru_list()
2871 1 != sscanf(val, "%d", &mon->count) in collect_mru_list()
2878 if (1 != sscanf(tag, "mv.%d", &si) || in collect_mru_list()
2880 1 != sscanf(val, "%d", &mv)) in collect_mru_list()
2888 if (1 != sscanf(tag, "rs.%d", &si) || in collect_mru_list()
2890 1 != sscanf(va in collect_mru_list()
[all...]
/freebsd/tools/test/stress2/tools/
H A Dswap.c189 if (sscanf(optarg, "%d", &utime) != 1) in main()
193 if (sscanf(optarg, "%d", &pct) != 1) in main()
197 if (sscanf(optarg, "%d", &runtime) != 1) in main()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dmkfiles.c43 if (sscanf(argv[2], "%u", &numfiles) != 1) in main()
46 if (argc == 4 && sscanf(argv[3], "%u", &first_file) != 1) in main()
/freebsd/contrib/ntp/ntpd/
H A Drefclock_ulink.c249 if (sscanf(pp->a_lastcode, "%c%*31c", in ulink_receive()
290 if (sscanf(pp->a_lastcode, in ulink_receive()
362 if (sscanf(pp->a_lastcode, in ulink_receive()
423 if (sscanf(pp->a_lastcode, "%c%1d%c%4d%3d%*c%2d:%2d:%2d.%2ld%c", in ulink_receive()

12345678910>>...18