Re: Kernel version

Richard B. Johnson (root@analogic.com)
Wed, 26 Mar 1997 08:31:26 -0500 (EST)


On Tue, 25 Mar 1997, =?ISO-8859-1?Q?Tom=E1s_Restrepo?= wrote:

> Hi.
>
> Can someone tell me if there is an easy way to get the kernel release and
> the nodename from within a C program?
>
> I know that in include/utsname.h there's an structure used for that, but I
> really don't know how to get to it.
>
> I'd appreciated if someone could help me out.
>

#include <sys/utsname.h>

uname(&struct utsname)

Cheers,
Dick Johnson
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Richard B. Johnson
Project Engineer
Analogic Corporation
Voice : (508) 977-3000 ext. 3754
Fax : (508) 532-6097
Modem : (508) 977-6870
Ftp : ftp@boneserver.analogic.com
Email : rjohnson@analogic.com, johnson@analogic.com
Penguin : Linux version 2.1.29 on an i586 machine (66.15 BogoMips).
Warning : I read unsolicited mail for $350.00 per hour. Supply billing address.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-