Lines 1-11
Link Here
|
1 |
--- cpuid.c.orig Sat Nov 26 20:51:01 2005 |
1 |
--- cpuid.c.orig Wed Aug 9 22:54:05 2006 |
2 |
+++ cpuid.c Sat Nov 26 20:51:24 2005 |
2 |
+++ cpuid.c Wed Aug 9 22:54:20 2006 |
3 |
@@ -40,7 +40,7 @@ |
3 |
@@ -42,7 +42,7 @@ |
4 |
snprintf (cpuname,18, "/dev/cpu/%d/cpuid", CPU_number); |
4 |
fh = open(cpuname, O_RDONLY); |
5 |
fh = open (cpuname, O_RDONLY); |
|
|
6 |
if (fh != -1) { |
5 |
if (fh != -1) { |
7 |
- lseek64 (fh, (off64_t)idx, SEEK_CUR); |
6 |
#ifndef S_SPLINT_S |
8 |
+ lseek (fh, (off_t)idx, SEEK_CUR); |
7 |
- lseek64(fh, (off64_t)idx, SEEK_CUR); |
9 |
read (fh, &buffer[0], 16); |
8 |
+ lseek(fh, (off_t)idx, SEEK_CUR); |
10 |
if (eax!=0) *eax = (*(unsigned *)(buffer )); |
9 |
#endif |
11 |
if (ebx!=0) *ebx = (*(unsigned *)(buffer+ 4)); |
10 |
if (read(fh, &buffer[0], 16) == -1) { |
|
|
11 |
perror(cpuname); |