detecting kernel version via API or system call

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi folks, 
 
 I would like to check the kernel version, getting 
the same result as :

uname -r

but inside a C program.
Is there an API function or system call I can use ?
Otherwise I could always look into :

/usr/include/linux/version.h

but, perhaps there is shorter way ?
Thank you,

Michelangelo


---------------------------------------------------------------------------------------------------------------
ing. Michelangelo Calatino


If only God would give me some clear sign ! 
Like making a large deposit in my name in a Swiss bank.

Woody Allen, 1935- 
-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subjecthttps://www.redhat.com/mailman/listinfo/redhat-list


[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux