Home
last modified time | relevance | path

Searched refs:convtime_double (Results 1 – 6 of 6) sorted by relevance

/freebsd/crypto/openssh/regress/unittests/misc/
H A Dtest_convtime.c61 ASSERT_DOUBLE_EQ(convtime_double("0"), 0); in test_convtime()
62 ASSERT_DOUBLE_EQ(convtime_double("1"), 1.0); in test_convtime()
63 ASSERT_DOUBLE_EQ(convtime_double("2s"), 2.0); in test_convtime()
64 ASSERT_DOUBLE_EQ(convtime_double("3m"), 180.0); in test_convtime()
65 ASSERT_DOUBLE_EQ(convtime_double("1m30s"), 90.0); in test_convtime()
66 ASSERT_DOUBLE_EQ(convtime_double("1.5s"), 1.5); in test_convtime()
67 ASSERT_DOUBLE_EQ(convtime_double(".5s"), 0.5); in test_convtime()
68 ASSERT_DOUBLE_EQ(convtime_double("0.5s"), 0.5); in test_convtime()
69 ASSERT_DOUBLE_EQ(convtime_double("1.123456s"), 1.123456); in test_convtime()
70 ASSERT_DOUBLE_EQ(convtime_double("1.1234567s"), 1.1234567); in test_convtime()
[all …]
/freebsd/crypto/openssh/
H A Dmisc.h84 double convtime_double(const char *);
86 double convtime_double(const char *);
H A Dmisc.c658 convtime_double(const char *s) in convtime_double() function
737 if ((sec_val = convtime_double(s)) < 0.0) in convtime()
H A Dssh_namespace.h225 #define convtime_double Fssh_convtime_double macro
H A Dservconf.c2166 if ((dvalue = convtime_double(q)) < 0) { in process_server_config_line_depth()
H A DChangeLog1872 upstream: unit tests for convtime_double()
1893 upstream: Add convtime_double() that converts a string interval,
1897 Reimplement the existing convtime() function using convtime_double()