[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnucap-devel] Interoperability of WIP 'sysinfo' command

From: Kevin Zheng
Subject: [Gnucap-devel] Interoperability of WIP 'sysinfo' command
Date: Sat, 27 Jul 2013 13:41:49 +0800
User-agent: Mozilla/5.0 (X11; FreeBSD i386; rv:17.0) Gecko/20130628 Thunderbird/17.0.7

Hi there,

I know it's work-in-progress, but I'd like to point out that the current
implementation of the 'sysinfo' command will only work on machines
running some sort of Linux.

Putting aside Windows, POSIX doesn't specify any sort of procfs. This
means that the command won't run on *BSD, Solaris, etc. Maybe one
solution would be to divide the code up into platform-specific parts
(e.g. one function per OS)?

I know that FreeBSD puts system info in a sysctl interface (accessable
through a sysctl(3) system call). Linux implements sysctl(3) as calls to
procfs, maybe use that instead of calling the shell.

Kevin Zheng

reply via email to

[Prev in Thread] Current Thread [Next in Thread]