| /freebsd-13.1/crypto/openssh/regress/unittests/misc/ |
| H A D | test_convtime.c | 32 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 D | tests.c | 29 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 D | readcf.c | 5097 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 D | convtime.c | 42 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 | 2715 extern time_t convtime __P((char *, int));
|
| H A D | main.c | 1096 QueueIntvl = convtime(optarg, 'm');
|
| H A D | map.c | 197 map->map_timeout = convtime(p, 's'); 1103 map->map_timeout = convtime(p, 's');
|
| H A D | daemon.c | 4345 map->map_timeout = convtime(p, 's');
|
| H A D | milter.c | 1478 m->mf_timeout[tcode] = convtime(p, 's');
|
| H A D | queue.c | 7568 qg->qg_queueintvl = convtime(p, 'm');
|
| H A D | README | 1817 convtime.c A routine to sanely process times.
|
| /freebsd-13.1/usr.sbin/sendmail/ |
| H A D | Makefile | 18 convtime.c daemon.c deliver.c domain.c envelope.c err.c headers.c \
|
| /freebsd-13.1/crypto/openssh/ |
| H A D | misc.h | 72 int convtime(const char *);
|
| H A D | ssh-add.c | 762 if ((lifetime = convtime(optarg)) == -1 || in main()
|
| H A D | readconf.c | 1032 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 D | ssh-keyscan.c | 699 timeout = convtime(optarg); in main()
|
| H A D | ssh_namespace.h | 220 #define convtime Fssh_convtime macro
|
| H A D | ssh-agent.c | 1478 if ((lifetime = convtime(optarg)) == -1) { in main()
|
| H A D | ssh-keygen.c | 1906 if ((secs = convtime(s + 1)) == -1) in parse_relative_time() 1922 if ((secs = convtime(timespec + 1)) == -1) in parse_cert_times()
|
| H A D | sshd.c | 1670 if ((options.login_grace_time = convtime(optarg)) == -1) {
|
| H A D | misc.c | 562 convtime(const char *s) in convtime() function
|
| H A D | ChangeLog | 4501 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 D | servconf.c | 1382 if ((value = convtime(arg)) == -1) in process_server_config_line_depth()
|