Thanks for your replies ...
That's what I'm looking for .. system calls to get those statistics .. it seems all I can find is shell commands but none of system calls ...
also it seems that /proc directory contains only process statistics .. no server info
I'm desperate ... please kill me