This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
Re: Re[4]: vmstat
- From: "Chris January" <chris at atomice dot net>
- To: "Pavel Tsekov" <cygwin-apps at cygwin dot com>
- Date: Thu, 4 Jul 2002 15:18:07 +0100
- Subject: Re: Re[4]: vmstat
- 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 < <00be01c22359$b9e7c170$0100a8c0@advent02> <3614372586.20020704155730@syntrex.com>
> Hello Chris,
>
> Thursday, July 04, 2002, 2:52:59 PM, you wrote:
>
> CJ> This is caused by the default alignment changing from 4 bytes to 8
bytes, as
> CJ> far as i can tell. Basically the size of structure passed to the NT
system
> CJ> calls is not the size of structure the call expects, so it fails and
the
> CJ> program (top, uptime, etc.) gets stuck in a loop trying to read data.
> CJ> I did add macros to ntdll.h to make sure the structures were aligned
> CJ> correctly, but then Chris changed the alignment back so I removed
them. I
> CJ> shall let Chris comment on this.
>
> Well there is definitely more then NT calls failing. uptime -V should
> print the version and exit - but it doesn't. The strace ouput seems very
> close to the one produced without the -V option. The same happens even
> if an unrecognized options is passed.
uptime reads the /proc files regardless of what options you pass.
Chris