

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
46 messages in com.omnigroup.macosx-devRe: /proc, procfs(5), etc.| From | Sent On | Attachments |
|---|---|---|
| Rich Morin | Dec 19, 2002 1:58 pm | |
| Eric Peyton | Dec 19, 2002 2:26 pm | |
| Nick Zitzmann | Dec 19, 2002 3:00 pm | |
| Rich Morin | Dec 19, 2002 4:46 pm | |
| Ryan Dingman | Dec 19, 2002 6:32 pm | |
| Michael Grant | Dec 20, 2002 7:21 am | |
| Jeremy Erwin | Dec 20, 2002 7:43 am | |
| Michael Grant | Dec 20, 2002 8:15 am | |
| Dennis De Mars | Dec 20, 2002 8:16 am | |
| Terrance Davis | Dec 20, 2002 8:26 am | |
| Clark S. Cox III | Dec 20, 2002 8:27 am | |
| Michael Grant | Dec 20, 2002 10:24 am | |
| Clark S. Cox III | Dec 20, 2002 10:31 am | |
| Philip George | Dec 20, 2002 12:21 pm | |
| Patrick Coskren | Dec 20, 2002 12:34 pm | |
| Clark S. Cox III | Dec 20, 2002 12:39 pm | |
| Patrick Coskren | Dec 20, 2002 12:50 pm | |
| Nick Zitzmann | Dec 20, 2002 1:01 pm | |
| Philip George | Dec 20, 2002 1:05 pm | |
| Finlay Dobbie | Dec 20, 2002 1:15 pm | |
| Philip Mötteli | Dec 20, 2002 1:19 pm | |
| Avi Cherry | Dec 20, 2002 1:21 pm | |
| Philip George | Dec 20, 2002 2:05 pm | |
| Gregory Weston | Dec 20, 2002 3:21 pm | |
| Philip George | Dec 20, 2002 4:22 pm | |
| Finlay Dobbie | Dec 20, 2002 4:31 pm | |
| Ryan Stevens | Dec 20, 2002 5:35 pm | |
| Jonathan Hendry | Dec 20, 2002 9:16 pm | |
| Philip George | Dec 20, 2002 9:42 pm | |
| j o a r | Dec 21, 2002 1:26 am | |
| John C. Randolph | Dec 23, 2002 4:30 pm | |
| Philip George | Dec 23, 2002 7:41 pm | |
| Ben Hines | Dec 23, 2002 8:53 pm | |
| Scott Ribe | Dec 24, 2002 1:08 pm | |
| Gregory Weston | Dec 24, 2002 1:26 pm | |
| Ben Hines | Dec 24, 2002 6:41 pm | |
| Ben Hines | Dec 24, 2002 6:55 pm | |
| Greg Hulands | Dec 24, 2002 7:14 pm | |
| Philip George | Dec 24, 2002 11:16 pm | |
| Philip George | Dec 25, 2002 8:47 am | |
| Jonathan Hendry | Dec 25, 2002 9:05 am | |
| Finlay Dobbie | Dec 25, 2002 9:15 am | |
| Andrew Zamler-Carhart | Dec 25, 2002 12:05 pm | |
| Philip George | Dec 25, 2002 6:02 pm | |
| Michael Grant | Dec 26, 2002 12:22 pm | |
| Finlay Dobbie | Dec 26, 2002 1:07 pm |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | Re: /proc, procfs(5), etc. | Actions... |
|---|---|---|
| From: | Rich Morin (rd...@cfcl.com) | |
| Date: | Dec 19, 2002 4:46:39 pm | |
| List: | com.omnigroup.macosx-dev | |
EP>OS X does not have /proc nor a procfs
Well, they surely have _something_ that ps is using.
EP>You will need to write your own setuid or root run tool that EP>does the same as ps or top. I suggest grabbing the source EP>for them out of Darwin.
It'll prolly come to that, but I was hoping for some info first. Speaking of which, does anyone have a more explicit description of the comp_t format than this (from /usr/include/sys/acct.h):
* Accounting structures; these use a comp_t type which is a 3 bits base 8 * exponent, 13 bit fraction ``floating point'' number. Units are 1/AHZ * seconds.
I'm guessing that (in Perl) it's:
sub fltime { my $tmp = (@_);
my $ahz = 64; my $exp = $tmp >> 13; my $frc = $tmp & 0x1FFF;
return ($frc * (2 ** $exp)) / $ahz; }
NZ>As Eric said, there's no proc filesystem on OS X. "proc" is a Linux NZ>thing; I'm not sure about other operating systems...
FreeBSD 4.7 certainly has /proc:
% uname -a FreeBSD cfcl.com 4.7-RELEASE FreeBSD 4.7-RELEASE #0 Sat Nov 16 12:01:18 PST 2002 rd...@cfcl.com:/usr/src/sys/compile/CFCL i386 % ls -l /proc total 35 dr-xr-xr-x 15 root wheel 512 Dec 19 16:33 0 dr-xr-xr-x 15 root wheel 512 Dec 19 16:33 1 dr-xr-xr-x 15 root wheel 512 Dec 19 16:33 105 ...
-r
-- email: rd...@cfcl.com; phone: +1 650-873-7841 http://www.cfcl.com/rdm - my home page, resume, etc. http://www.cfcl.com/Meta - The FreeBSD Browser, Meta Project, etc. http://www.ptf.com/dossier - Prime Time Freeware's DOSSIER series http://www.ptf.com/tdc - Prime Time Freeware's Darwin Collection







