Re: gnome on FreeBSD [procfs]...
- From: Josh Sled <jsled scam XCF Berkeley EDU>
- To: Miguel de Icaza <miguel nuclecu unam mx>
- cc: gnome-list gnome org
- Subject: Re: gnome on FreeBSD [procfs]...
- Date: Sun, 17 May 1998 13:55:28 -0700
| I had the impression that FreeBSD provided a Linux compatible /proc
| file system.
It's got the same name, but they're not compatible:
FreeBSD:
dr-xr-xr-x 12 jsled sysadmin 512 May 17 13:47 264
[...]
dr-xr-xr-x 12 root sysadmin 512 May 17 13:47 74
dr-xr-xr-x 12 daemon sysadmin 512 May 17 13:47 83
dr-xr-xr-x 12 jsled sysadmin 512 May 17 13:47 curproc
Linux [RedHat]:
dr-xr-xr-x 3 root root 0 May 17 12:44 364
dr-xr-xr-x 3 root root 0 May 17 12:44 366
dr-xr-xr-x 3 root root 0 May 17 12:44 384
-r--r--r-- 1 root root 0 May 17 12:44 cmdline
-r--r--r-- 1 root root 0 May 17 12:44 cpuinfo
[...]
-r--r--r-- 1 root root 0 May 17 12:44 loadavg
[...]
-r--r--r-- 1 root root 0 May 17 12:44 meminfo
[...]
dr-xr-xr-x 2 root root 0 May 17 12:44 net
[...]
-r--r--r-- 1 root root 0 May 17 12:44 stat
[...]
-r--r--r-- 1 root root 0 May 17 12:44 uptime
-r--r--r-- 1 root root 0 May 17 12:44 version
Most of the useful stuff is in those named directories at the bottom...
which FreeBSD doesn't even make a pretense of having.
And not even the information in any of the pid-named directories is the
same... oy vey...
| Another option is to write a library that would encapsulate all of
| that information on a portable way.
I'm now leaning toward both. The Linux-compat. procfs would be useful
in it's own right for non-gnome apps [like wmload, wmifs, etc...] and
the library wrappers would be even more useful for gnome programs...
...jsled
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]