Bug 15088 – timer_t should be void*, not int

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2015-09-20T09:28:00Z
Last change time
2016-09-13T22:06:52Z
Assigned to
nobody
Creator
tomer

Comments

Comment #0 by tomer — 2015-09-20T09:28:26Z
`timer_t` in `core.sys.posix.time` is defined as int on all platforms, but it should be void* at least on glibc: https://sourceware.org/git/?p=glibc.git&a=search&h=b0b64e1b5ea394f2a0bcff201ac2a4af206d738a&st=grep&s=__TIMER_T_TYPE
Comment #1 by tomer — 2015-09-20T09:59:52Z
I guess it was confused with /* Type of timers in the kernel. */ typedef int kernel_timer_t;
Comment #2 by tomer — 2016-09-05T20:14:18Z
Comment #3 by github-bugzilla — 2016-09-13T22:06:32Z
Commits pushed to master at https://github.com/dlang/druntime https://github.com/dlang/druntime/commit/2c910837f8f3f6a247e252780be2bf2d67df7e03 Bug 15088: timer_t should be void* on glibc https://issues.dlang.org/show_bug.cgi?id=15088 https://github.com/dlang/druntime/commit/561e520f041fe96e29247f81d6e5013ada10092b Merge pull request #1645 from tomerfiliba/patch-3 Bug 15088: timer_t should be void* on glibc