This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re[7]: vmstat


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 :(


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]