| Summary: | gettid.2 man pages has wrong information | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Bash <bash83> |
| Component: | Current packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
| Status: | RESOLVED INVALID | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | fix | ||
Created attachment 44378 [details, diff]
fix
I've contacted with author of man-pages and started discussion with him. Sorry for mess :) |
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.