prototypes/macros for gettgid