/freebsd/crypto/openssh/regress/unittests/misc/ |
H A D | test_convtime.c | 34 ASSERT_INT_EQ(convtime("0"), 0); in test_convtime() 35 ASSERT_INT_EQ(convtime("1"), 1); in test_convtime() 36 ASSERT_INT_EQ(convtime("2s"), 2); in test_convtime() 37 ASSERT_INT_EQ(convtime("3m"), 180); in test_convtime() 38 ASSERT_INT_EQ(convtime("1m30"), 90); in test_convtime() 39 ASSERT_INT_EQ(convtime("1m30s"), 90); in test_convtime() 40 ASSERT_INT_EQ(convtime("1h1s"), 3601); in test_convtime() 41 ASSERT_INT_EQ(convtime("1h30m"), 90 * 60); in test_convtime() 42 ASSERT_INT_EQ(convtime("1d"), 24 * 60 * 60); in test_convtime() 43 ASSERT_INT_EQ(convtime("1w"), 7 * 24 * 60 * 60); in test_convtime() [all …]
|
/freebsd/crypto/openssh/regress/unittests/conversion/ |
H A D | tests.c | 28 ASSERT_INT_EQ(convtime("0"), 0); in tests() 29 ASSERT_INT_EQ(convtime("1"), 1); in tests() 30 ASSERT_INT_EQ(convtime("1S"), 1); in tests() 32 ASSERT_INT_EQ(convtime("90m"), 5400); in tests() 33 ASSERT_INT_EQ(convtime("1h30m"), 5400); in tests() 34 ASSERT_INT_EQ(convtime("2d"), 172800); in tests() 35 ASSERT_INT_EQ(convtime("1w"), 604800); in tests() 38 ASSERT_INT_EQ(convtime("-7"), -1); in tests() 39 ASSERT_INT_EQ(convtime("-9d"), -1); in tests() 43 ASSERT_INT_EQ(convtime(buf), INT_MAX); in tests() [all …]
|
/freebsd/contrib/sendmail/src/ |
H A D | readcf.c | 1819 m->m_wait = convtime(p, 's'); 3455 SafeAlias = convtime(val, 'm'); 3653 MciCacheTimeout = convtime(val, 'm'); 3958 MinQueueAge = convtime(val, 'm'); 3962 MaxQueueAge = convtime(val, 'm'); 3975 DialDelay = convtime(val, 's'); 4764 DeliverByMin = convtime(val, 's'); 4796 RejectLogInterval = convtime(val, 'h'); 4808 ConnectionRateWindowSize = convtime(val, 's'); 5399 toval = convtime(val, 'm'); [all …]
|
H A D | convtime.c | 43 convtime(p, units)
|
H A D | Makefile.m4 | 9 define(`bldSOURCES', `main.c alias.c arpadate.c bf.c collect.c conf.c control.c convtime.c daemon.c…
|
H A D | sendmail.h | 2879 extern time_t convtime __P((char *, int));
|
H A D | map.c | 369 map->map_timeout = convtime(p, 's'); 1335 map->map_timeout = convtime(p, 's');
|
H A D | daemon.c | 4453 map->map_timeout = convtime(p, 's');
|
H A D | main.c | 1124 QueueIntvl = convtime(optarg, 'm');
|
H A D | milter.c | 1479 m->mf_timeout[tcode] = convtime(p, 's');
|
H A D | queue.c | 7631 qg->qg_queueintvl = convtime(p, 'm');
|
H A D | README | 1811 convtime.c A routine to sanely process times.
|
/freebsd/usr.sbin/sendmail/ |
H A D | Makefile | 15 convtime.c daemon.c deliver.c domain.c envelope.c err.c headers.c \
|
/freebsd/crypto/openssh/ |
H A D | misc.h | 73 int convtime(const char *);
|
H A D | ssh-keyscan.c | 758 timeout = convtime(optarg); in main()
|
H A D | readconf.c | 1134 else if ((value = convtime(arg)) == -1) { in process_config_line_depth() 1923 else if ((value2 = convtime(arg)) >= 0) in process_config_line_depth() 2260 if ((value2 = convtime(arg2)) == -1) { in process_config_line_depth() 2266 if ((value2 = convtime(arg)) == -1) { in process_config_line_depth()
|
H A D | ssh-add.c | 925 if ((lifetime = convtime(optarg)) == -1 || in main()
|
H A D | misc.c | 588 convtime(const char *s) in convtime() function 2520 if ((secs = convtime(cp)) < 0) { in parse_pattern_interval()
|
H A D | ssh_namespace.h | 229 #define convtime Fssh_convtime macro
|
H A D | ssh-keygen.c | 1937 if ((secs = convtime(s + 1)) == -1) in parse_relative_time() 1968 if ((secs = convtime(timespec + 1)) == -1) in parse_cert_times()
|
H A D | sshd.c | 1724 if ((options.login_grace_time = convtime(optarg)) == -1) {
|
H A D | ssh-agent.c | 2300 if ((lifetime = convtime(optarg)) == -1) { in main()
|
H A D | servconf.c | 1417 if ((value = convtime(arg)) == -1) in process_server_config_line_depth()
|