File: kernel-ver.c

package info (click to toggle)
sl-modem 2.9.9d%2Be-pre2-12
  • links: PTS
  • area: non-free
  • in suites: lenny
  • size: 2,468 kB
  • ctags: 1,720
  • sloc: ansic: 10,804; sh: 564; makefile: 253; perl: 11
file content (17 lines) | stat: -rw-r--r-- 284 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 *    kernel-ver.c - prints Linux kernel version to stdout and exit.
 *
 */

#include <stdio.h>
#include <linux/version.h>
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,18)
#include <linux/utsrelease.h>
#endif

int main()
{
        printf ("%s\n",UTS_RELEASE);
        return 0;
}