uname enhancement
Dag-Erling Smorgrav
des at ofug.org
Mon Jun 16 03:42:52 PDT 2003
The attached patch fixes two problems in linux_newuname():
- the entire FreeBSD kernel version was being copied into
utsname.version. This string contains newline characters which
Linux apps do not expect, and is often too long to fit anyway.
- on i386, utsname.machine was always set to "i386". Linux normally
reports the precise CPU class it's running on (e.g. "i686" for
Pentium Pro, Pentium II, Celeron, Xeon, Athlon, Duron etc.). This
causes some applications (such as BEA WebLogic Server) to fail
because the developers never expected anyone to run their software
on an i386.
before:
des at meali ~/bea% /compat/linux/bin/uname -a
Linux meali.registrar.no 2.4.2 FreeBSD 5.1-CURRENT #2: Sun Jun 15 17:31:50 CEST 2003
des at me i386 unknown
after:
des at meali ~/bea% /compat/linux/bin/uname -a
Linux meali.registrar.no 2.4.2 FreeBSD 5.1-CURRENT #2: Sun Jun 15 17:31:50 CEST 2003 i686 unknown
DES
--
Dag-Erling Smorgrav - des at ofug.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linux-uname.diff
Type: text/x-patch
Size: 1561 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-emulation/attachments/20030616/ddd20882/linux-uname.bin
More information about the freebsd-emulation
mailing list