vmstat

Pavel Tsekov ptsekov@syntrex.com
Thu Jul 4 08:11:00 GMT 2002


CJ>> uptime reads the /proc files regardless of what options you pass.

PT> int main(int argc, char *argv[]) {
PT>   if(argc == 1) print_uptime();
PT>   if((argc == 2) && (!strcmp(argv[1], "-V"))) display_version();
PT>   return 0;
PT> }

PT> How ?

Ok, to answer my own question - I've noticed the __attribute__ ((constructor))
functions in libproc.a.

Sorry :(



More information about the Cygwin-apps mailing list