_NutIsNuTCProcess()

determine if process is a NuTCRACKER Platform application 

Function


SYNOPSIS

#include <nutc.h>

int _NutIsNuTCProcess(pid_t pid, int *result);


DESCRIPTION

The _NutIsNuTCProcess() function determines whether or not the process with the specified ID is a NuTCRACKER Platform application.


PARAMETERS

pid 

Specifies the process ID to query.

result 

Specifies the location where the boolean result of the query is returned if the process ID is valid.


RETURN VALUES

If successful, _NutIsNuTCProcess() returns a value of zero, and stores the boolean result of the query in result. On failure, it returns a value of -1, and sets errno to one of the following values:

EFAULT 

result points to an invalid location.

ESRCH 

No process can be found that corresponds to the one that pid specifies.


CONFORMANCE

PTC MKS Toolkit UNIX APIs extension.


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


PTC MKS Toolkit 10.3 Documentation Build 39.