In following the above error, the following is noticed:
C library on Linux, specifically file /usr/include/sys/procfs.h has an incomplete struct of:
On Solaris, file /usr/indlue/sys/old_procfs.h has a complete stuct of:
My application needs to access the psinfo, how can i solve this problem? also, my application needs to be able to port across the two OS. I have no clue on how to do this. Any suggestions would be greatly appreciated. I'm trying to develop an app. to monitor cpu usage of active processes, if there's an easier way to do this in C please please direct me to it. I think i'm beating myself up with trying to use the library.
By saying a structure is incomplete simply b/c it says so right in the middle of the struct:
In comparision to the equivalent struct of Solaris, there are many fields that supposed to be in this stuct.
i'll look into the top program as you suggested. however, i have already written a shell script to use top, but i wanted to further create a C app. Can i access top's functions in my app? i'll investigate on this. Again, thanks for your suggestion.
[B]
Hello,
I met a problem when running a java program. When I did the debugging:
srna/ExeFiles/linux$ ldd patman
linux-gate.so.1 => (0xf77b5000)
libpopt.so.0 => not found
libstdc++.so.6 => not found
libm.so.6 => /lib32/libm.so.6 (0xf7778000)
libgcc_s.so.1 => not found
... (5 Replies)
Hi,
this is my first experience with Solaris.
For work, I must configured an applicacion (oracle EPM, this include Datadirect odbc drivers) in solaris.
Additionally, we must connect to Sybase IQ Database (I installed odbc drivers to do this).
The problem is, I can't get those two odbc... (1 Reply)
I'm a rookie to C and i'm looking for some libraries to learn,something likes the C++ STL or Boost ,does any1 can tell me some of them?Thanks a lot:)
Eric (3 Replies)
I am slowly ploughing my way through the list of links to on-line tutorials you provided to newbies. I for one am grateful for such a comprehensive list, so first of all thank you for that.
What i cannot seem to find, is information on C++ libraries:
The two links on libraries in your list... (0 Replies)
I am a bit confused about the use of _v2 standard libraries on HP. I am working on HP11.11 risk machine and HP 11.23 Itanium machine.
I am building a C++ shared library which is linked by a JNI shared library and other non-java related libraries. Eveything is compiled with -AA flag. When I... (0 Replies)
Hey,
I'm trying to install fluxbox. Currently i'm running Mandrake 10.1 with KDE. When i ./configure fluxbox it returns an error saying
configure: error: Fluxbox requires the X Window System libraries and headers.
Where do i download the X window System libraries and headers from? I... (3 Replies)
How do i make a library shared
say i have a library a.so which i have just compiled.
I want to make it shared how do i make it
Next Queation is what is the difference between a.so.0 a.so.1 a.so.2 & a.so :rolleyes: (1 Reply)
How is Libnet and libpcap are useful in sending a packet through DLL layer
and sniff network layer?
and how sinffers are used to track ip adresses provided Mac adresses? (1 Reply)