NAME gettid - get thread identification SYNOPSIS #include <sys/types.h> #include <linux/unistd.h> _syscall0(pid_t,gettid) pid_t gettid(void); DESCRIPTION [...] But must be: NAME gettid - get thread identification SYNOPSIS #include <sys/types.h> #include <sys/syscall.h> #include <errno.h> _syscall0(pid_t,gettid) pid_t gettid(void); [...] Difference in headers files! Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 44378 [details, diff] fix
I've contacted with author of man-pages and started discussion with him. Sorry for mess :)