Re: Kernel bits

Matti Aarnio
2000-11-22T10:00:30Z

On Wed, Nov 22, 2000 at 09:25:46AM +0100, 64738 wrote:
> Hi.
>
> Is there a syscall or something that can tell me whether I'm working on a 32-
> or a 64-bit kernel?

uname(2)

It gives out various strings from which you must then deduce,
what kind of kernel is needed to run at what kind of machine.

And even though the machine is running with 64-bit kernel
(e.g. alpha/sparc64/mips64/ia64), your userspace code might
be running in 32-bit mode.

> Greeting,
> Alain