<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: pstat_getproc PROBLEM... in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/pstat-getproc-problem/m-p/2471413#M775409</link>
    <description>Thank you... This lead me in a round about way to find the answer...  If you compile with -D_PSTAT64 it will work on both systems.&lt;BR /&gt;</description>
    <pubDate>Thu, 07 Dec 2000 14:44:05 GMT</pubDate>
    <dc:creator>Andrew Sandoval</dc:creator>
    <dc:date>2000-12-07T14:44:05Z</dc:date>
    <item>
      <title>pstat_getproc PROBLEM...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pstat-getproc-problem/m-p/2471411#M775407</link>
      <description>Has anyone seen problems with, or know of a patch that addresses problems with pstat_getproc on HP11?&lt;BR /&gt;&lt;BR /&gt;The following code works great on one box (HP-UX hostdev B.11.00 A 9000/800 2001889088 two-user license), but not on another (HP-UX hpux-qa B.11.00 U 9000/800 151049638 unlimited-user license)&lt;BR /&gt;&lt;BR /&gt;Code Sample:&lt;BR /&gt;int main(int argc, char *argv[])&lt;BR /&gt;{&lt;BR /&gt; struct pst_status pst;&lt;BR /&gt; int target = (int)getppid();&lt;BR /&gt; &lt;BR /&gt; memset((void*)&amp;amp;pst, 0, sizeof(pst));&lt;BR /&gt; if(argc&amp;gt;1) target = atoi(argv[1]);&lt;BR /&gt; &lt;BR /&gt; if (pstat_getproc(&amp;amp;pst, sizeof(pst), (size_t)0, target) != -1)&lt;BR /&gt; {&lt;BR /&gt;        printf("Parent started at %s", ctime(&amp;amp;pst.pst_start));&lt;BR /&gt;        printf("Basename: '%s'\n", pst.pst_ucomm);&lt;BR /&gt;        printf("Commandline: '%s'\n", pst.pst_cmd);&lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; {&lt;BR /&gt;     printf("errno: %i\n", errno);&lt;BR /&gt;     perror("pstat_getproc");&lt;BR /&gt; }&lt;BR /&gt; return 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;On the U 9000/800 151049638 box I get the following error message:&lt;BR /&gt;errno: 72&lt;BR /&gt;pstat_getproc: Value too large to be stored in data type&lt;BR /&gt;&lt;BR /&gt;It works perfectly on the other HP 11 box, giving me:&lt;BR /&gt;./myps.hp11&lt;BR /&gt;Parent started at Wed Dec  6 17:48:08 2000&lt;BR /&gt;Basename: 'bash'&lt;BR /&gt;Commandline: 'bash'&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for any help you can offer.&lt;BR /&gt;&lt;BR /&gt;P.S. &amp;gt; The header file which defined pst_status has not changed.</description>
      <pubDate>Thu, 07 Dec 2000 00:52:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pstat-getproc-problem/m-p/2471411#M775407</guid>
      <dc:creator>Andrew Sandoval</dc:creator>
      <dc:date>2000-12-07T00:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: pstat_getproc PROBLEM...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pstat-getproc-problem/m-p/2471412#M775408</link>
      <description>Haven't seen it before.&lt;BR /&gt;&lt;BR /&gt;Check if the following can help you further:&lt;BR /&gt;&lt;A href="http://devresource.hp.com/CXX/Forums/hpux-devtools/hpux-devtools.0003/0004.html" target="_blank"&gt;http://devresource.hp.com/CXX/Forums/hpux-devtools/hpux-devtools.0003/0004.html&lt;/A&gt;</description>
      <pubDate>Thu, 07 Dec 2000 10:42:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pstat-getproc-problem/m-p/2471412#M775408</guid>
      <dc:creator>Darrel Louis</dc:creator>
      <dc:date>2000-12-07T10:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: pstat_getproc PROBLEM...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pstat-getproc-problem/m-p/2471413#M775409</link>
      <description>Thank you... This lead me in a round about way to find the answer...  If you compile with -D_PSTAT64 it will work on both systems.&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Dec 2000 14:44:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pstat-getproc-problem/m-p/2471413#M775409</guid>
      <dc:creator>Andrew Sandoval</dc:creator>
      <dc:date>2000-12-07T14:44:05Z</dc:date>
    </item>
  </channel>
</rss>

