2002-02-02 04:17:29 +05:30
|
|
|
#ifndef PROC_VERSION_H
|
|
|
|
#define PROC_VERSION_H
|
|
|
|
|
2002-12-09 12:30:07 +05:30
|
|
|
#include "procps.h"
|
|
|
|
|
2011-06-04 23:10:29 +05:30
|
|
|
/* Suite version information for procps-ng utilities
|
2002-02-02 04:17:29 +05:30
|
|
|
* Copyright (c) 1995 Martin Schulze <joey@infodrom.north.de>
|
2011-06-04 23:10:29 +05:30
|
|
|
* Linux kernel version information for procps-ng utilities
|
2002-02-02 04:17:29 +05:30
|
|
|
* Copyright (c) 1996 Charles Blake <cblake@bbn.com>
|
|
|
|
* Distributable under the terms of the GNU Library General Public License
|
2002-12-15 06:00:17 +05:30
|
|
|
*
|
|
|
|
* Copyright 2002 Albert Cahalan
|
2002-02-02 04:17:29 +05:30
|
|
|
*/
|
|
|
|
|
2002-12-09 12:30:07 +05:30
|
|
|
EXTERN_C_BEGIN
|
|
|
|
|
2011-01-19 17:20:26 +05:30
|
|
|
void init_Linux_version(void); /* Get Linux version */
|
2002-02-02 04:17:29 +05:30
|
|
|
|
|
|
|
extern int linux_version_code; /* runtime version of LINUX_VERSION_CODE
|
|
|
|
in /usr/include/linux/version.h */
|
|
|
|
|
|
|
|
/* Convenience macros for composing/decomposing version codes */
|
|
|
|
#define LINUX_VERSION(x,y,z) (0x10000*(x) + 0x100*(y) + z)
|
|
|
|
#define LINUX_VERSION_MAJOR(x) (((x)>>16) & 0xFF)
|
|
|
|
#define LINUX_VERSION_MINOR(x) (((x)>> 8) & 0xFF)
|
|
|
|
#define LINUX_VERSION_PATCH(x) ( (x) & 0xFF)
|
|
|
|
|
2002-12-09 12:30:07 +05:30
|
|
|
EXTERN_C_END
|
|
|
|
|
2002-02-02 04:17:29 +05:30
|
|
|
#endif /* PROC_VERSION_H */
|