Cygwin: timerfd: rename overrun_count to expiration_count

The value returned by reading from a timerfd is not an overrun
count in the same sense as for posix timers, it's an expiry counter.
Reflect that in the name.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen
2019-01-21 12:26:51 +01:00
parent ea99e9fdda
commit 528f4d4938
3 changed files with 35 additions and 35 deletions

View File

@ -218,7 +218,7 @@ int
fhandler_timerfd::ioctl (unsigned int cmd, void *p)
{
int ret = -1;
uint64_t ov_cnt;
uint64_t exp_cnt;
switch (cmd)
{
@ -227,13 +227,13 @@ fhandler_timerfd::ioctl (unsigned int cmd, void *p)
{
timerfd_tracker *tfd = (timerfd_tracker *) timerid;
ov_cnt = *(uint64_t *) p;
if (!ov_cnt)
exp_cnt = *(uint64_t *) p;
if (!exp_cnt)
{
set_errno (EINVAL);
break;
}
tfd->ioctl_set_ticks (ov_cnt);
tfd->ioctl_set_ticks (exp_cnt);
ret = 0;
}
__except (EFAULT) {}