[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Regarding equivalent "pstat" functions on Solaris 8 box
From: |
suresh kumar |
Subject: |
Regarding equivalent "pstat" functions on Solaris 8 box |
Date: |
Tue, 19 Mar 2002 05:46:52 -0800 |
Hi,
I am getting some errors while porting my code from HP UX 10 to
Solaris 8.Its related to "pstat".I request kindly to help me in this regard if
anyone had faced similar kind of problem.Please find the functions mentioned
below which are supported on
HP UX 10 .I'd like to know is there any equivalent functions available
on Solaris 8 and if so, which header file . The functions mentioned
are some of the HP UX supported "pstat" functions..
Here is the list
defined in <sys/pstat.h>
. pstat_getstaic()
Returns static information about the system. This data
does not vary while the system is running. There is one
global instance of this context. Data, up to a maximum of elemsize
bytes, are returned in the struct pst_static pointed to by buf.
The elemcount parameter must be 1. The index parameter must be 0.
. pstat_getproc()
Returns information specific to a particular process.There is
one instance of this context for each active process on the system.
For each instance requested,data, up to a maximum of elemsize bytes,
are returned in the structs pst_status pointed to by buf. The
elemcount parameter specifies the number of structs
pst_status that are available at buf to be filled in.
The index parameter specifies the starting index within the context
of processes. As a shortcut, information for a single process may
be obtained by setting elemcount to zero and setting index to the PID of that
process.
. pstat_getfile()
Returns information specific to a particular open file
for a specified process. For the specified process,there is
one instance of this context for each open file descriptor. For
each instance requested, data, upto a maximum of elemsize bytes,
are returned in the structs pst_fileinfo pointed to by buf. The elemcount
parameter specifies the number of structs pst_fileinfo that are
available at buf to be filled in. The index parameter specifies
the starting index within the context of open files for the specified
process: it is a 32-bit quantity constructed of the pst_idx field of
the 'owning' process, obtained via pstat_getproc(),described above,
as the most significant 16 bits, and the index of open files within
the process as the least significant 16 bits.
Please kindly let me know if any equivalent functions are available.
Thanks and Regards,
Suresh
2,000,000,000 Web Pages--you only need 1. Save time with My Lycos.
http://my.lycos.com
From address@hidden Tue Mar 19 10:48:12 2002
Received: from ads5.ads.active.net.il ([192.117.127.213] helo=skeeve.com)
by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian))
id 16nLqL-0005W1-00
for <address@hidden>; Tue, 19 Mar 2002 10:48:09 -0500
Received: (from address@hidden)
by skeeve.com (8.11.6/8.11.6) id g2IBCob13440;
Mon, 18 Mar 2002 13:12:50 +0200
Date: Mon, 18 Mar 2002 13:12:50 +0200
From: Aharon Robbins <address@hidden>
Message-Id: <address@hidden>
To: address@hidden, address@hidden
Subject: Re: gawk -f buffer overflow
Sender: address@hidden
Errors-To: address@hidden
X-BeenThere: address@hidden
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:address@hidden>
List-Post: <mailto:address@hidden>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-gnu-utils>,
<mailto:address@hidden>
List-Id: Bug reports for the GNU utilities <bug-gnu-utils.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-gnu-utils>,
<mailto:address@hidden>
List-Archive: <http://mail.gnu.org/pipermail/bug-gnu-utils/>
Thanks for the patch. I just submitted one for the same bug yesterdday
that is a little simpler. See the bug-gnu-utils archives, or I can
mail you the patch if you like.
Thanks,
Arnold Robbins
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Regarding equivalent "pstat" functions on Solaris 8 box,
suresh kumar <=