This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
Re[7]: vmstat
- From: Pavel Tsekov <ptsekov at syntrex dot com>
- To: cygwin-apps at cygwin dot com
- Date: Thu, 4 Jul 2002 17:10:59 +0200
- Subject: Re[7]: vmstat
- Organization: Syntrex, Inc.
- References: <OF9302AC86.0EB950DE-ON85256BE4.005579C2@isn.instinet.com><00b901c21df9$1c9e3df0$0100a8c0@advent02> <20020627163750.GA27819@redhat.com><010901c21dfa$de6d74e0$0100a8c0@advent02> <3D1B5A59.7090609@ece.gatech.edu><3D1B92A6.4020707@ece.gatech < <001601c22365$9e42eb50$0100a8c0@advent02><14716164963.20020704162722@syntrex.com>
- Reply-to: Pavel Tsekov <cygwin-apps at cygwin dot com>
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 :(