-
Notifications
You must be signed in to change notification settings - Fork 89
Open
Labels
questionFurther information is requestedFurther information is requested
Description
The type should be pid_t, e.g., see:
- Linux: https://man7.org/linux/man-pages/man2/getpid.2.html https://linux.die.net/man/2/getpid
- POSIX: https://pubs.opengroup.org/onlinepubs/009696699/functions/getpid.html
- zOS: https://www.ibm.com/docs/en/zos/2.4.0?topic=functions-getpid-get-process-id
- FreeBSD: https://man.freebsd.org/cgi/man.cgi?query=getpid&sektion=2
Some popular libc documentation:
- https://www.gnu.org/software/libc/manual/html_node/Process-Identification.html "The pid_t data type is a signed integer type which is capable of representing a process ID. In the GNU library, this is an int."
- https://github.com/llvm/llvm-project/blob/4f1474d/libc/include/llvm-libc-types/pid_t.h
typedef __INT32_TYPE__ pid_t; - http://git.musl-libc.org/cgit/musl/tree/include/alltypes.h.in
TYPEDEF int pid_t;
Can you get the NVIDIA folk to change the type to match PIDs on all platforms? - As unsigned int seems to never be the right option.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested