Changeset 2725 in MondoRescue for branches/2.2.9/mindi-busybox/libbb/kernel_version.c
- Timestamp:
- Feb 25, 2011, 9:26:54 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mindi-busybox/libbb/kernel_version.c
r1765 r2725 5 5 * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> 6 6 * 7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.7 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 8 8 */ 9 9 10 #include <sys/utsname.h> /* for uname(2) */ 10 #include "libbb.h" 11 /* After libbb.h, since it needs sys/types.h on some systems */ 12 #include <sys/utsname.h> /* for uname(2) */ 11 13 12 #include "libbb.h"13 14 14 15 /* Returns current kernel version encoded as major*65536 + minor*256 + patch, … … 17 18 * if (get_linux_version_code() > KERNEL_VERSION(2,2,11)) { <stuff> } 18 19 */ 19 int get_linux_version_code(void)20 int FAST_FUNC get_linux_version_code(void) 20 21 { 21 22 struct utsname name; … … 24 25 25 26 if (uname(&name) == -1) { 26 bb_perror_msg("can not get system information");27 bb_perror_msg("can't get system information"); 27 28 return 0; 28 29 }
Note:
See TracChangeset
for help on using the changeset viewer.