---- coreutils-4.5.3/src/uname.c.orig Sat Aug 31 10:52:11 2002
-+++ coreutils-4.5.3/src/uname.c Sun Oct 27 22:21:27 2002
-@@ -78,6 +78,8 @@
+diff -urN coreutils-5.2.1-orig/src/uname.c coreutils-5.2.1/src/uname.c
+--- coreutils-5.2.1-orig/src/uname.c 2005-01-15 19:15:36.193346304 +0100
++++ coreutils-5.2.1/src/uname.c 2005-01-15 19:19:06.918311240 +0100
+@@ -77,6 +77,8 @@
/* Operating system. */
#define PRINT_OPERATING_SYSTEM 128
+void __sysinfo_processor_type(char*);
+
- /* The name this program was run with, for error messages. */
- char *program_name;
-
-@@ -240,13 +242,9 @@
+ static struct option const uname_long_options[] =
+ {
+ {"all", no_argument, NULL, 'a'},
+@@ -243,13 +245,9 @@
if (toprint & PRINT_PROCESSOR)
{
char const *element = unknown;
-#if HAVE_SYSINFO && defined SI_ARCHITECTURE
- {
-- static char processor[257];
-- if (0 <= sysinfo (SI_ARCHITECTURE, processor, sizeof processor))
-- element = processor;
+- static char processor[257];
+- if (0 <= sysinfo (SI_ARCHITECTURE, processor, sizeof processor))
+- element = processor;
- }
-#endif
+ char processor[BUFSIZ];
#ifdef UNAME_PROCESSOR
if (element == unknown)
{
-@@ -291,3 +289,38 @@
+@@ -294,3 +292,38 @@
exit (EXIT_SUCCESS);
}
+ #ifdef __sparc__
+ if (!(strcmp(temp_string, "cpu")))
+ #endif /* __sparc__ */
-+ #ifdef __i386__
++ #if defined(__i386__) || defined(__x86_64__)
+ if (!(strcmp(temp_string, "name")))
+ #endif /* __x86__ */
+ #ifdef __alpha__
-+ if (!(strcmp(temp_string, "string")))
++ if (!(strcmp(temp_string, "model")))
+ #endif /* __alpha__ */
+ {
+ fgets(final_string, 64, ffd);