Lines Matching refs:end_ms
41 unsigned end_ms; /* -t TIMEOUT */ in shell_builtin_read() local
76 end_ms = 0; in shell_builtin_read()
78 end_ms = bb_strtou(params->opt_t, NULL, 10); in shell_builtin_read()
81 if (end_ms > UINT_MAX / 2048) /* be safely away from overflow */ in shell_builtin_read()
82 end_ms = UINT_MAX / 2048; in shell_builtin_read()
83 end_ms *= 1000; in shell_builtin_read()
91 end_ms = bb_strtou(params->opt_t, &p, 10); in shell_builtin_read()
92 if (end_ms > UINT_MAX / 2048) /* be safely away from overflow */ in shell_builtin_read()
93 end_ms = UINT_MAX / 2048; in shell_builtin_read()
101 end_ms *= 10; in shell_builtin_read()
102 end_ms += (*p - '0'); in shell_builtin_read()
108 end_ms *= 10; in shell_builtin_read()
119 if (params->opt_t && end_ms == 0) { in shell_builtin_read()
169 end_ms += (unsigned)monotonic_ms(); in shell_builtin_read()
182 timeout = end_ms - (unsigned)monotonic_ms(); in shell_builtin_read()