Operating System - HP-UX
1752798 Members
5962 Online
108789 Solutions
New Discussion юеВ

When pstat_getdynamic( ) function returns -1, What it means

 
nallamolu
Advisor

When pstat_getdynamic( ) function returns -1, What it means

Hi World,

1.)I just want to know what does
pstat_getdynamic()function do.

2.)I have statement
struct pst_dynamic pstat_dyn;

rc=pstat_getdynamic(&pstat_dyn,sizeof(struct
pst_dynamic),1,0);

Here rc is equal to -1 what does it mean.
why it is returing -1 value.

Any help is Appreciated.

Regards,
Gopi
4 REPLIES 4
James R. Ferguson
Acclaimed Contributor

Re: When pstat_getdynamic( ) function returns -1, What it means

Hi Gopi:

A return code of -1 signifies a failure. The reason for the failure can be found in 'errno'. If you report 'errno' you can easily examine the 'pstat()' manpages to gain further insight into the reason for the error. See the "ERRORS" section of the manpages.

http://docs.hp.com/en/B2355-60130/pstat.2.html

Regards!

...JRF...
nallamolu
Advisor

Re: When pstat_getdynamic( ) function returns -1, What it means

JRF, Thanks a lot.

I want to know, what does this pstat_getdynamic( ) function do. Can u provide any link which gives a detail info.

Regards,
Gopi
James R. Ferguson
Acclaimed Contributor

Re: When pstat_getdynamic( ) function returns -1, What it means

Hi (again) Gopi:

> I want to know, what does this pstat_getdynamic( ) function do.

That's described in the manpages (in the link I provided).

http://docs.hp.com/en/B2355-60130/pstat.2.html

You might also find this whitepaper useful:

http://docs.hp.com/en/1216/pstat_whitepaper.pdf

Regards!

...JRF...
Shinji Teragaito_1
Respected Contributor

Re: When pstat_getdynamic( ) function returns -1, What it means

* HP Virtual Server Environment: tips for Application Developers
Optimizing Applications for Virtualized Environments on HP Integrity
and HP9000 servers running HP-UX
http://docs.hp.com/en/9450/vse_tips_for_application_developers.pdf

This whitepaper may help you, too.

Shinji