devork

E pur si muove

Closed source frustration

Thursday, February 26, 2009

Developing against a closed source libraries is jut painful and wastes your time. Function definitions are missing from the header files, so you get to declare them yourself from the manpages. Then you get random error messages even though you do everything just like the manpage tells you. Some dark corners of the internet then suggest one of the parameters is actually the 32-bit variant of the type instead of the generic one. Still no luck.

Just let me look inside the code to figure out why it's not working, thank you very much.

This post was brought to you by the joys of the getprocs64(3) call on AIX 5.3. Any hints on it's usage would be appreciated.

Update: It finally works!

Thursday, February 26, 2009 |

2 comments:

HansH said...

So what was the solution for it...

I am about to make a small c program to get out of AIX the cumulative cpu time of each process.
So probably I have to use getprocs64

Any info on getprocs64 is welcome...

Floris Bruynooghe said...

The code I was working on is here: http://bitbucket.org/chrismiles/psi/src/tip/src/arch/aix_process.c

It's not plain example code but it works very well now and is pretty clean.

New comments are not allowed.

Subscribe to: Post Comments (Atom)