Symbol: convtime
regress/usr.bin/ssh/unittests/conversion/tests.c
25
ASSERT_INT_EQ(convtime("0"), 0);
regress/usr.bin/ssh/unittests/conversion/tests.c
26
ASSERT_INT_EQ(convtime("1"), 1);
regress/usr.bin/ssh/unittests/conversion/tests.c
27
ASSERT_INT_EQ(convtime("1S"), 1);
regress/usr.bin/ssh/unittests/conversion/tests.c
29
ASSERT_INT_EQ(convtime("90m"), 5400);
regress/usr.bin/ssh/unittests/conversion/tests.c
30
ASSERT_INT_EQ(convtime("1h30m"), 5400);
regress/usr.bin/ssh/unittests/conversion/tests.c
31
ASSERT_INT_EQ(convtime("2d"), 172800);
regress/usr.bin/ssh/unittests/conversion/tests.c
32
ASSERT_INT_EQ(convtime("1w"), 604800);
regress/usr.bin/ssh/unittests/conversion/tests.c
35
ASSERT_INT_EQ(convtime("-7"), -1);
regress/usr.bin/ssh/unittests/conversion/tests.c
36
ASSERT_INT_EQ(convtime("-9d"), -1);
regress/usr.bin/ssh/unittests/conversion/tests.c
40
ASSERT_INT_EQ(convtime(buf), INT_MAX);
regress/usr.bin/ssh/unittests/conversion/tests.c
42
ASSERT_INT_EQ(convtime(buf), -1);
regress/usr.bin/ssh/unittests/conversion/tests.c
46
ASSERT_INT_EQ(convtime(buf), -1);
regress/usr.bin/ssh/unittests/conversion/tests.c
47
ASSERT_INT_EQ(convtime("1000000000000000000000w"), -1);
regress/usr.bin/ssh/unittests/misc/test_convtime.c
30
ASSERT_INT_EQ(convtime("0"), 0);
regress/usr.bin/ssh/unittests/misc/test_convtime.c
31
ASSERT_INT_EQ(convtime("1"), 1);
regress/usr.bin/ssh/unittests/misc/test_convtime.c
32
ASSERT_INT_EQ(convtime("2s"), 2);
regress/usr.bin/ssh/unittests/misc/test_convtime.c
33
ASSERT_INT_EQ(convtime("3m"), 180);
regress/usr.bin/ssh/unittests/misc/test_convtime.c
34
ASSERT_INT_EQ(convtime("1m30"), 90);
regress/usr.bin/ssh/unittests/misc/test_convtime.c
35
ASSERT_INT_EQ(convtime("1m30s"), 90);
regress/usr.bin/ssh/unittests/misc/test_convtime.c
36
ASSERT_INT_EQ(convtime("1h1s"), 3601);
regress/usr.bin/ssh/unittests/misc/test_convtime.c
37
ASSERT_INT_EQ(convtime("1h30m"), 90 * 60);
regress/usr.bin/ssh/unittests/misc/test_convtime.c
38
ASSERT_INT_EQ(convtime("1d"), 24 * 60 * 60);
regress/usr.bin/ssh/unittests/misc/test_convtime.c
39
ASSERT_INT_EQ(convtime("1w"), 7 * 24 * 60 * 60);
regress/usr.bin/ssh/unittests/misc/test_convtime.c
40
ASSERT_INT_EQ(convtime("1w2d3h4m5"), 788645);
regress/usr.bin/ssh/unittests/misc/test_convtime.c
41
ASSERT_INT_EQ(convtime("1w2d3h4m5s"), 788645);
regress/usr.bin/ssh/unittests/misc/test_convtime.c
43
ASSERT_INT_EQ(convtime("-1"), -1);
regress/usr.bin/ssh/unittests/misc/test_convtime.c
44
ASSERT_INT_EQ(convtime(""), -1);
regress/usr.bin/ssh/unittests/misc/test_convtime.c
45
ASSERT_INT_EQ(convtime("trout"), -1);
regress/usr.bin/ssh/unittests/misc/test_convtime.c
46
ASSERT_INT_EQ(convtime("-77"), -1);
regress/usr.bin/ssh/unittests/misc/test_convtime.c
49
ASSERT_INT_EQ(convtime(buf), INT_MAX);
regress/usr.bin/ssh/unittests/misc/test_convtime.c
51
ASSERT_INT_EQ(convtime(buf), -1);
regress/usr.bin/ssh/unittests/misc/test_convtime.c
52
ASSERT_INT_EQ(convtime("3550w5d3h14m7s"), 2147483647);
regress/usr.bin/ssh/unittests/misc/test_convtime.c
54
ASSERT_INT_EQ(convtime("3550w5d3h14m8s"), -1);
usr.bin/ssh/misc.c
2540
if ((secs = convtime(cp)) < 0) {
usr.bin/ssh/misc.h
85
int convtime(const char *);
usr.bin/ssh/readconf.c
1214
else if ((value = convtime(arg)) == -1) {
usr.bin/ssh/readconf.c
1993
else if ((value2 = convtime(arg)) >= 0)
usr.bin/ssh/readconf.c
2384
if ((value2 = convtime(arg2)) == -1) {
usr.bin/ssh/readconf.c
2390
if ((value2 = convtime(arg)) == -1) {
usr.bin/ssh/servconf.c
1366
if ((value = convtime(arg)) == -1)
usr.bin/ssh/ssh-add.c
910
if ((lifetime = convtime(optarg)) == -1 ||
usr.bin/ssh/ssh-agent.c
2308
if ((lifetime = convtime(optarg)) == -1) {
usr.bin/ssh/ssh-keygen.c
1865
if ((secs = convtime(s + 1)) == -1)
usr.bin/ssh/ssh-keygen.c
1896
if ((secs = convtime(timespec + 1)) == -1)
usr.bin/ssh/ssh-keyscan.c
669
timeout = convtime(optarg);
usr.bin/ssh/sshd-auth.c
510
if ((options.login_grace_time = convtime(optarg)) == -1) {
usr.bin/ssh/sshd-session.c
826
if ((options.login_grace_time = convtime(optarg)) == -1) {
usr.bin/ssh/sshd.c
1361
if ((options.login_grace_time = convtime(optarg)) == -1) {