Home
last modified time | relevance | path

Searched refs:convtime (Results 1 – 11 of 11) sorted by relevance

/external/openssh/regress/unittests/conversion/
Dtests.c29 ASSERT_LONG_EQ(convtime("0"), 0); in tests()
30 ASSERT_LONG_EQ(convtime("1"), 1); in tests()
31 ASSERT_LONG_EQ(convtime("1S"), 1); in tests()
33 ASSERT_LONG_EQ(convtime("90m"), 5400); in tests()
34 ASSERT_LONG_EQ(convtime("1h30m"), 5400); in tests()
35 ASSERT_LONG_EQ(convtime("2d"), 172800); in tests()
36 ASSERT_LONG_EQ(convtime("1w"), 604800); in tests()
39 ASSERT_LONG_EQ(convtime("-7"), -1); in tests()
40 ASSERT_LONG_EQ(convtime("-9d"), -1); in tests()
44 ASSERT_LONG_EQ(convtime(buf), -1); in tests()
[all …]
/external/openssh/
Dmisc.h57 long convtime(const char *);
Dssh-add.c549 if ((lifetime = convtime(optarg)) == -1) { in main()
Dssh-keyscan.c731 timeout = convtime(optarg); in main()
Dmisc.c307 convtime(const char *s) in convtime() function
Dssh-keygen.c1702 if ((secs = convtime(s + 1)) == -1) in parse_relative_time()
1752 if ((secs = convtime(timespec + 1)) == -1) in parse_cert_times()
Dreadconf.c886 else if ((value = convtime(arg)) == -1) in process_config_line_depth()
1431 else if ((value2 = convtime(arg)) >= 0) in process_config_line_depth()
Dssh-agent.c1282 if ((lifetime = convtime(optarg)) == -1) { in main()
Dsshd.c1475 if ((options.login_grace_time = convtime(optarg)) == -1) {
Dservconf.c1044 if ((value = convtime(arg)) == -1) in process_server_config_line()
DChangeLog186 Add unit test for convtime().
206 Fix convtime() overflow test on boundary condition,
218 convtime(). Reported by nicolas.iooss at m4x.org, ok djm@