Date: Fri, 29 May 2009 06:27:30 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r193017 - head/sys/compat/svr4 Message-ID: <200905290627.n4T6RUjd061942@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: delphij Date: Fri May 29 06:27:30 2009 New Revision: 193017 URL: http://svn.freebsd.org/changeset/base/193017 Log: Implement SI_ISALIST. PR: kern/91293 Submitted by: "Pedro f. Giffuni" <giffunip asme org> Obtained from: NetBSD Modified: head/sys/compat/svr4/svr4_stat.c Modified: head/sys/compat/svr4/svr4_stat.c ============================================================================== --- head/sys/compat/svr4/svr4_stat.c Fri May 29 06:19:37 2009 (r193016) +++ head/sys/compat/svr4/svr4_stat.c Fri May 29 06:27:30 2009 (r193017) @@ -448,6 +448,18 @@ svr4_sys_systeminfo(td, uap) str = machine; break; + case SVR4_SI_ISALIST: +#if defined(__sparc__) + str = "sparcv9 sparcv9-fsmuld sparcv8 sparcv8-fsmuld sparcv7 sparc"; +#elif defined(__i386__) + str = "i386"; +#elif defined(__amd64__) + str = "amd64"; +#else + str = "unknown"; +#endif + break; + case SVR4_SI_HW_SERIAL: snprintf(buf, sizeof(buf), "%lu", hostid); str = buf; @@ -463,7 +475,7 @@ svr4_sys_systeminfo(td, uap) break; case SVR4_SI_PLATFORM: -#ifdef __i386__ +#if defined(__i386__) str = "i86pc"; #else str = "unknown";
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905290627.n4T6RUjd061942>