|Subject:||Proc-ProcessTable fails with EOVERFLOW in HPUX 11.11|
I installed Proc-ProcessTable 0.40 on a HP-UX 11.11 machine with a 64- bit kernel. The module could only return the first 60 processes in the process table. Investigation showed that pstat_getproc was failing on its third iteration with EOVERFLOW. Some googling shows that this is a known problem, which can be fixed by defining _PSTAT64 to ensure that a wide interface and appropriate structures are used. This macro is indeed defined in HPUX.c, but only after all include files have been read. Thus it is not in force when the structure definitions are read. If the line #define _PSTAT64 /* For David Good's 64-bit HPUX 11.0 patch */ is moved to before the include statments, the problem is fixed.