Re: Porting from Linux to FreeBSD (procfs question)

2008-01-05 Thread Robert Watson
On Fri, 4 Jan 2008, [EMAIL PROTECTED] wrote: Also, have you considered procstat ? (as i read here: http://ivoras.sharanet.org/freebsd/freebsd8.html it is destined to replace procfs in a way, am I wrong ?) Depending on how short term your application must be available (and how long it will ta

Re: Porting from Linux to FreeBSD (procfs question)

2008-01-04 Thread gregoryd . freebsd
Quoting Fernando Apesteguía <[EMAIL PROTECTED]>: > Maybe a mix of both could be good: use the linxprocfs when it is > almost straightforward (in fact I could run the app, just changing few > lines) and sysctl when the linprocfs doesn't provide the information > that I need. And I just made a fool

Re: Porting from Linux to FreeBSD (procfs question)

2008-01-04 Thread gregoryd . freebsd
Quoting Fernando Apesteguía <[EMAIL PROTECTED]>: > Maybe a mix of both could be good: use the linxprocfs when it is > almost straightforward (in fact I could run the app, just changing few > lines) and sysctl when the linprocfs doesn't provide the information > that I need. Wouldn't the opposite

Re: Porting from Linux to FreeBSD (procfs question)

2008-01-04 Thread Dag-Erling Smørgrav
"Fernando Apesteguía" <[EMAIL PROTECTED]> writes: > Dag-Erling Smørgrav <[EMAIL PROTECTED]> writes: > > "Fernando Apesteguía" <[EMAIL PROTECTED]> writes: > > > I have an application written in C + Gtk + Glib that gathers > > > information from procfs under Linux. Now, I'm trying to port this > > >

Re: Porting from Linux to FreeBSD (procfs question)

2008-01-03 Thread Fernando Apesteguía
On Jan 3, 2008 9:53 PM, Ivan Voras <[EMAIL PROTECTED]> wrote: > Fernando Apesteguía wrote: > > > Maybe a mix of both could be good: use the linxprocfs when it is > > almost straightforward (in fact I could run the app, just changing few > > lines) and sysctl when the linprocfs doesn't provide the i

Re: Porting from Linux to FreeBSD (procfs question)

2008-01-03 Thread Ivan Voras
Fernando Apesteguía wrote: > Maybe a mix of both could be good: use the linxprocfs when it is > almost straightforward (in fact I could run the app, just changing few > lines) and sysctl when the linprocfs doesn't provide the information > that I need. Also, linprocfs is never mounted by default

Re: Porting from Linux to FreeBSD (procfs question)

2008-01-03 Thread Fernando Apesteguía
On Jan 3, 2008 8:50 PM, Dag-Erling Smørgrav <[EMAIL PROTECTED]> wrote: > "Fernando Apesteguía" <[EMAIL PROTECTED]> writes: > > I have an application written in C + Gtk + Glib that gathers > > information from procfs under Linux. Now, I'm trying to port this > > application to FreeBSD (I'm working w

Re: Porting from Linux to FreeBSD (procfs question)

2008-01-03 Thread Dag-Erling Smørgrav
"Fernando Apesteguía" <[EMAIL PROTECTED]> writes: > I have an application written in C + Gtk + Glib that gathers > information from procfs under Linux. Now, I'm trying to port this > application to FreeBSD (I'm working with 7.0 RC1). man linprocfs DES -- Dag-Erling Smørgrav - [EMAIL PROTECTED] _

Re: Porting from Linux to FreeBSD (procfs question)

2008-01-03 Thread Brooks Davis
On Thu, Jan 03, 2008 at 06:26:21PM +0100, Fernando Apestegu?a wrote: > Hi all, > > I post my question in this list cause Ivan Voras ([EMAIL PROTECTED]) > suggested that here I could find more help. > > I have an application written in C + Gtk + Glib that gathers > information from procfs under Li

Porting from Linux to FreeBSD (procfs question)

2008-01-03 Thread Fernando Apesteguía
Hi all, I post my question in this list cause Ivan Voras ([EMAIL PROTECTED]) suggested that here I could find more help. I have an application written in C + Gtk + Glib that gathers information from procfs under Linux. Now, I'm trying to port this application to FreeBSD (I'm working with 7.0 RC1)

Re: Porting from linux to FreeBSD (procfs question)

2008-01-03 Thread Jeremy Chadwick
On Thu, Jan 03, 2008 at 05:16:42PM +0100, Ivan Voras wrote: > On 03/01/2008, Fernando Apesteguía <[EMAIL PROTECTED]> wrote: > > > Yes, that's my problem. In Linux I can get from /proc/cpuinfo for > > example: name, model, stepping, cache size, clock speed, supported > > extensions, etc... > > But

Re: Porting from linux to FreeBSD (procfs question)

2008-01-03 Thread Ivan Voras
On 03/01/2008, Fernando Apesteguía <[EMAIL PROTECTED]> wrote: > Yes, that's my problem. In Linux I can get from /proc/cpuinfo for > example: name, model, stepping, cache size, clock speed, supported > extensions, etc... > But using sysctl in FreeBSD (sysctl -a) I can only see name and vendor > for