On 13/09/12 17:04, Marco van de Voort wrote: > On Thu, Sep 13, 2012 at 09:08:19AM +0000, Mark Morgan Lloyd wrote: >>> So be fair, I don't think I have ever come across a Linux distro that >>> doesn't include the ps binary as standard. And I have used Linux since >>> 1996. Even *BSD and *Solaris include the ps binary as standard too. >> >> Yes, but the ps parameters vary. I'm using this stuff in my FPC build >> script on Linux and Solaris. > >> Can anybody say what the xBSD situation is? What's in /proc/nnn ? > > In BSD /proc/<a pid> contains > > [marcov@dragon ~]$ ls /proc/44539 > cmdline ctl etype file map rlimit status > [marcov@dragon ~]$ > > but afaik BSDs can turn /proc off, and this is commonly done so on servers. > > /proc is only a SysV compatibility feature there, > most BSD-own tools work via other interfaces (like sysctl(3))
It's also possible to do this on linux with sysctl (I've got some c source somewhere), but use of sysctl is strongly discouraged now (in favour of /proc). Henry -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
