NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | RETURN VALUE | ATTRIBUTES | SEE ALSO
#include <chorus/astat.h>int astat(astatEntry *entries, int maxEntries);
The function or functions documented here may not be used safely in all application contexts with all APIs provided in the ChorusOS 5.0 product.
See API(5FEA) for details.
The astat() call fills an entry defined by the entries array for each process present. The maximum number of entries is defined by maxEntries.
The entries array is a structure containing the following members:
int astatFlags; /* process status */ int astatAid; /* process ID */ int astatUid; /* process user ID */ char astatName[]; /* process name */
The status information astatFlags is bit-encoded using the following bits:
ASTAT_DEBUGGED_CACTOR the process is being debugged
Upon successful completion, astat returns the number of active processes; otherwise it returns -1 and sets errno to indicate the following error condition:
entries points outside the allocated address space of the process.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Deprecated : Replaced by pstat(2POSIX) |
NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | RETURN VALUE | ATTRIBUTES | SEE ALSO