HelenOS sources

root/uspace/app/hbench/syscall/

[..]
taskgetid.c
[..]
HelenOS homepage, sources at GitHub