|PUPANIC(3PROC)||Process Control Library Functions||PUPANIC(3PROC)|
Pupanic(struct ps_prochandle *P,
Pupanic() function copies the contents of the
NT_UPANICelf note from the process handle P that corresponds to a core file into prup.
The library will allocate the memory needed for a
prupanic_t and it is the caller's responsibility to
release it by calling the
with the returned data when they are done with the data.
The allocated data stored in prup has a lifetime independent of the underlying process handle P. That is, it is safe to continue using it whether the process handle is still valid or has been released with Pfree(3PROC).
If the process handle doesn't correspond to a core file or this
note is not present in the core file, then the
Pupanic() function will fail.
Pupanic() function returns 0 and stores the allocated prupanic_t structure in prup. Otherwise -1 is returned and errno is set to indicate the error.
Pupanic() function will fail if:
|March 30, 2022||OmniOS|