getpid64()
QNX SDP8.0C Library ReferenceAPIDeveloper
Get the 64-bit process ID associated with a process
Synopsis:
#include <unistd.h>
pid64_t getpid64( const pid_t pid );
Arguments:
- pid
- The process ID (PID) of the process.
Library:
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
Description:
The getpid64() function returns the 64-bit PID associated with a process. Because a process's 64-bit PID cannot be reused (unlike its 32-bit PID), it is useful for uniquely identifying a process.
Returns:
The 64-bit PID or -1 if an error occurred (errno is set).
Errors:
- ESRCH
- No process has the specified PID.
Classification:
Safety: | |
---|---|
Cancellation point | No |
Signal handler | Yes |
Thread | Yes |
Page updated: