Home
last modified time | relevance | path

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

/freebsd-13.1/crypto/openssh/regress/unittests/misc/
H A Dtest_convtime.c32 ASSERT_INT_EQ(convtime("0"), 0); in test_convtime()
33 ASSERT_INT_EQ(convtime("1"), 1); in test_convtime()
34 ASSERT_INT_EQ(convtime("2s"), 2); in test_convtime()
35 ASSERT_INT_EQ(convtime("3m"), 180); in test_convtime()
36 ASSERT_INT_EQ(convtime("1m30"), 90); in test_convtime()
37 ASSERT_INT_EQ(convtime("1m30s"), 90); in test_convtime()
38 ASSERT_INT_EQ(convtime("1h1s"), 3601); in test_convtime()
45 ASSERT_INT_EQ(convtime("-1"), -1); in test_convtime()
46 ASSERT_INT_EQ(convtime(""), -1); in test_convtime()
48 ASSERT_INT_EQ(convtime("-77"), -1); in test_convtime()
[all …]
/freebsd-13.1/crypto/openssh/regress/unittests/conversion/
H A Dtests.c29 ASSERT_INT_EQ(convtime("0"), 0); in tests()
30 ASSERT_INT_EQ(convtime("1"), 1); in tests()
31 ASSERT_INT_EQ(convtime("1S"), 1); in tests()
33 ASSERT_INT_EQ(convtime("90m"), 5400); in tests()
34 ASSERT_INT_EQ(convtime("1h30m"), 5400); in tests()
35 ASSERT_INT_EQ(convtime("2d"), 172800); in tests()
36 ASSERT_INT_EQ(convtime("1w"), 604800); in tests()
39 ASSERT_INT_EQ(convtime("-7"), -1); in tests()
40 ASSERT_INT_EQ(convtime("-9d"), -1); in tests()
46 ASSERT_INT_EQ(convtime(buf), -1); in tests()
[all …]
/freebsd-13.1/contrib/sendmail/src/
H A Dreadcf.c5097 toval = convtime(val, 'm');
5167 toval = convtime(val, 'h');
5176 toval = convtime(val, 'h');
5181 toval = convtime(val, 'h');
5186 toval = convtime(val, 'h');
5191 toval = convtime(val, 'h');
5196 toval = convtime(val, 'd');
5205 toval = convtime(val, 'd');
5210 toval = convtime(val, 'd');
5215 toval = convtime(val, 'd');
[all …]
H A Dconvtime.c42 convtime(p, units)
H A DMakefile.m49 define(`bldSOURCES', `main.c alias.c arpadate.c bf.c collect.c conf.c control.c convtime.c daemon.c…
H A Dsendmail.h2715 extern time_t convtime __P((char *, int));
H A Dmain.c1096 QueueIntvl = convtime(optarg, 'm');
H A Dmap.c197 map->map_timeout = convtime(p, 's');
1103 map->map_timeout = convtime(p, 's');
H A Ddaemon.c4345 map->map_timeout = convtime(p, 's');
H A Dmilter.c1478 m->mf_timeout[tcode] = convtime(p, 's');
H A Dqueue.c7568 qg->qg_queueintvl = convtime(p, 'm');
H A DREADME1817 convtime.c A routine to sanely process times.
/freebsd-13.1/usr.sbin/sendmail/
H A DMakefile18 convtime.c daemon.c deliver.c domain.c envelope.c err.c headers.c \
/freebsd-13.1/crypto/openssh/
H A Dmisc.h72 int convtime(const char *);
H A Dssh-add.c762 if ((lifetime = convtime(optarg)) == -1 || in main()
H A Dreadconf.c1032 else if ((value = convtime(arg)) == -1) { in process_config_line_depth()
1806 else if ((value2 = convtime(arg)) >= 0) in process_config_line_depth()
2160 if ((value2 = convtime(arg2)) == -1 || in process_config_line_depth()
2167 if ((value2 = convtime(arg)) == -1 || in process_config_line_depth()
H A Dssh-keyscan.c699 timeout = convtime(optarg); in main()
H A Dssh_namespace.h220 #define convtime Fssh_convtime macro
H A Dssh-agent.c1478 if ((lifetime = convtime(optarg)) == -1) { in main()
H A Dssh-keygen.c1906 if ((secs = convtime(s + 1)) == -1) in parse_relative_time()
1922 if ((secs = convtime(timespec + 1)) == -1) in parse_cert_times()
H A Dsshd.c1670 if ((options.login_grace_time = convtime(optarg)) == -1) {
H A Dmisc.c562 convtime(const char *s) in convtime() function
H A DChangeLog4501 upstream: Fix long->int for convtime tests here too. Spotted by
4535 upstream: Change types in convtime() unit test to int to match change
4537 its new type. Add tests for boundary conditions and fix convtime to work up
4557 upstream: Change types in convtime() unit test to int to match
4559 change its new type. Add tests for boundary conditions and fix convtime to
4634 upstream: Change convtime() from returning long to returning int.
4636 On platforms where sizeof(int) != sizeof(long), convtime could accept values
7655 upstream: Unit test for convtime. ok djm@
7761 upstream: Fix multiplier in convtime when handling seconds after
H A Dservconf.c1382 if ((value = convtime(arg)) == -1) in process_server_config_line_depth()