sys-proctable 0.7.6 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +1 -0
- data/CHANGES +165 -0
- data/MANIFEST +33 -41
- data/README +115 -135
- data/Rakefile +94 -0
- data/benchmarks/bench_ps.rb +21 -0
- data/doc/top.txt +5 -11
- data/examples/example_ps.rb +20 -0
- data/lib/aix/sys/proctable.rb +458 -0
- data/lib/darwin/sys/proctable.rb +363 -0
- data/lib/freebsd/sys/proctable.rb +363 -0
- data/lib/linux/sys/proctable.rb +314 -0
- data/lib/linux/sys/proctable/cgroup_entry.rb +50 -0
- data/lib/linux/sys/proctable/smaps.rb +118 -0
- data/lib/sunos/sys/proctable.rb +456 -0
- data/lib/sys-proctable.rb +1 -0
- data/lib/sys-top.rb +1 -0
- data/lib/sys/proctable.rb +18 -0
- data/lib/sys/proctable/version.rb +6 -0
- data/lib/sys/top.rb +28 -19
- data/lib/windows/sys/proctable.rb +208 -0
- data/spec/sys_proctable_aix_spec.rb +328 -0
- data/spec/sys_proctable_all_spec.rb +89 -0
- data/spec/sys_proctable_darwin_spec.rb +120 -0
- data/spec/sys_proctable_freebsd_spec.rb +210 -0
- data/spec/sys_proctable_linux_spec.rb +310 -0
- data/spec/sys_proctable_sunos_spec.rb +316 -0
- data/spec/sys_proctable_windows_spec.rb +317 -0
- data/spec/sys_top_spec.rb +51 -0
- data/sys-proctable.gemspec +38 -0
- metadata +140 -64
- metadata.gz.sig +0 -0
- data/doc/freebsd.txt +0 -90
- data/doc/hpux.txt +0 -77
- data/doc/linux.txt +0 -85
- data/doc/solaris.txt +0 -99
- data/doc/windows.txt +0 -122
- data/ext/extconf.rb +0 -98
- data/ext/sunos/sunos.c +0 -374
- data/ext/sunos/sunos.h +0 -177
- data/ext/version.h +0 -2
- data/test/tc_all.rb +0 -59
- data/test/tc_freebsd.rb +0 -45
- data/test/tc_hpux.rb +0 -49
- data/test/tc_kvm_bsd.rb +0 -31
- data/test/tc_linux.rb +0 -45
- data/test/tc_sunos.rb +0 -52
- data/test/tc_top.rb +0 -26
- data/test/tc_windows.rb +0 -40
- data/test/test_memleak.rb +0 -54
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 00ee6aa318ca856d8b83e26685289b1c3eae3817
|
4
|
+
data.tar.gz: 4af42eeef3367f56b8c6ec9383393ba16900af3e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 7ce22a2caf51c2909024450fad56c15f3ca4d895524b70b6cc7584da8786055fb8a1b2c9b7fe80aadb88d18065d1470368c51d1b0dbb7ccbf34318ab2144d487
|
7
|
+
data.tar.gz: d81c7f01727cf1521374410b9c473c82b6d5b04d92315d5e4427346c91eead836f43f70b46979e1df6f3eaa858a1677e95e2141bfae737cb75691aee507b77b3
|
checksums.yaml.gz.sig
ADDED
Binary file
|
data.tar.gz.sig
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
�t����+�xe`��~kĂ��x�U�y��@�&��o�}��_�����z-FX�w��^���c#-vNP���k-9��cSQ��l"�)�{L���n����!�R�9���r�����{�3��J��7�Y�8ٲ�<�5�e�tq O�rۏ�y�A3j/��\�x����X`�m"�f�GZ���×�'w�ސ��|��{D�nw8R2���S�0S�7��Spؼ�p)��ɴn�/��hь�ݨ�����6�}�p_a�ͫ�s��кO��� �8���/��A��!����ι2��}�ޑA��=#X�=�A����v�Y�%?����2�ƥ�Z H�,���*m'�sv4��Ģ��\�{(�(J�qC��ĥ��
|
data/CHANGES
CHANGED
@@ -1,3 +1,168 @@
|
|
1
|
+
== 1.2.0 - 20-Feb-2018
|
2
|
+
* There has been an API change. The ProcTable.ps method now uses keyword
|
3
|
+
arguments. The 'pid' option is universal, the rest depend on the platform.
|
4
|
+
* Support for HP-UX has been dropped, both because it was the last remaining
|
5
|
+
platform that still used C code, and because it's basically a dead platform.
|
6
|
+
* There are no more platform-specific gems. There is now a single gem that
|
7
|
+
will load the appropriate code based on your host's operating system.
|
8
|
+
* The tests were switched from test-unit to rspec.
|
9
|
+
* Lots of Rakefile updates based on the above changes.
|
10
|
+
* The cert was updated.
|
11
|
+
|
12
|
+
== 1.1.5 - 10-Aug-2017
|
13
|
+
* Fixed a warning that cropped up in Ruby 2.4.x because I was type checking
|
14
|
+
against Fixnum. Those have been replaced with Numeric.
|
15
|
+
|
16
|
+
== 1.1.4 - 30-Mar-2017
|
17
|
+
* Fixed a potential issue where OSX could return a struct with invalid data.
|
18
|
+
* Set the default field to :pid for OSX when using Sys::Top.
|
19
|
+
* Fixed a duplicate test warning for OSX.
|
20
|
+
|
21
|
+
== 1.1.3 - 28-Sep-2016
|
22
|
+
* Fixed an issue on OSX where the value returned for argc is invalid.
|
23
|
+
|
24
|
+
== 1.1.2 - 18-Sep-2016
|
25
|
+
* Fixed cmdline parsing and handling for OSX. Thanks go to Ben Mathwig for
|
26
|
+
the spot and the patch.
|
27
|
+
|
28
|
+
== 1.1.1 - 30-Jun-2016
|
29
|
+
* Added thread information for OS X.
|
30
|
+
* Fixed VERSION constant for HP-UX.
|
31
|
+
|
32
|
+
== 1.1.0 - 27-Jun-2016
|
33
|
+
* License was changed to Apache 2.0.
|
34
|
+
* The OS X version now requires OS X 10.7 or later.
|
35
|
+
* Scrapped the C implementation for OS X, and replaced it with a libproc wrapper
|
36
|
+
using FFI, so it is now pure Ruby. Note that some new struct members have been
|
37
|
+
added, while others have been dropped. This includes pctcpu, so Sys::Top does
|
38
|
+
not work at the moment.
|
39
|
+
* Rakefile updates to accomodate the changes for OS X.
|
40
|
+
* Some test suite updates and refactoring.
|
41
|
+
|
42
|
+
== 1.0.0 - 11-Jan-2016
|
43
|
+
* Added smaps information for Linux. Thanks go to Joe Rafaniello for the patch.
|
44
|
+
* This really should not have been a major release, sorry.
|
45
|
+
|
46
|
+
== 0.9.9 - 8-Nov-2015
|
47
|
+
* Added support for cgroups on Linux. Thanks go to Dennis Günnewig for the patch.
|
48
|
+
* Added a sys-proctable.rb file for convenience.
|
49
|
+
* This gem is now signed.
|
50
|
+
* Gem related tasks in the Rakefile now assume Rubygems 2.x.
|
51
|
+
|
52
|
+
== 0.9.8 - 18-Apr-2015
|
53
|
+
* Fixed a bug in the gemspec. Last version got yanked.
|
54
|
+
|
55
|
+
== 0.9.7 - 18-Apr-2015
|
56
|
+
* Fixed a bug in the OSX code that could cause the ps method to fail. Thanks
|
57
|
+
go to Koshevoy Anton for the spot.
|
58
|
+
* Some internal refactoring of version handling. Now all platforms use a
|
59
|
+
single version file.
|
60
|
+
* Replaced vm_size_t and lwpid_t with universal data types on FreeBSD because
|
61
|
+
FFI on FreeBSD 10 no longer understands them. Thanks go to Mike Owens for
|
62
|
+
the spot.
|
63
|
+
|
64
|
+
== 0.9.6 - 24-Feb-2015
|
65
|
+
* Added NLWP field on Linux. Thanks go to Rich Chatterton for the patch.
|
66
|
+
|
67
|
+
== 0.9.5 - 10-Feb-2015
|
68
|
+
* Significant cleanup and memory reduction of the OSX code. Thanks go
|
69
|
+
to Ivan (toy) for the patches.
|
70
|
+
* Skip over /proc/<file>/status if unreadable on Linux. Thanks go to Jianjun
|
71
|
+
Mao for the patch.
|
72
|
+
|
73
|
+
== 0.9.4 - 4-Mar-2014
|
74
|
+
* Added support for AIX 5.3 or later courtesy of Rick Ohnemus.
|
75
|
+
* The Solaris version now uses FFI structs instead of a packed array.
|
76
|
+
It solved issues with 64-bit versions of Ruby and it's self-documenting.
|
77
|
+
* The FreeBSD version has been converted to use FFI. In addition, additional
|
78
|
+
struct members have been added, and members that previously returned nil
|
79
|
+
now return meaningful data.
|
80
|
+
* Support for NetBSD and OpenBSD has been temporarily dropped. Considering
|
81
|
+
that the C code did not build on those platforms anyway, I doubt most of
|
82
|
+
you will notice. Patches for those platforms are welcome, but only using FFI.
|
83
|
+
|
84
|
+
== 0.9.3 - 17-Mar-2013
|
85
|
+
* Fixed a bug on OSX where a long command string arg could cause
|
86
|
+
a segfault. Thanks go to Nathaniel Bibler for the spot.
|
87
|
+
* Changed the gem platform from mingw to mingw32 for Windows.
|
88
|
+
|
89
|
+
== 0.9.2 - 8-Oct-2012
|
90
|
+
* Added cmdline support for OS X. Thanks go to Matthias Zirnstein for
|
91
|
+
the patch.
|
92
|
+
* Warning cleanup for 1.9.
|
93
|
+
* Updated the gem platform handling. Replaced the borked string approach
|
94
|
+
with a two element array for Gem::Platform.new.
|
95
|
+
* MS date strings are now parse with DateTime instead of Date.
|
96
|
+
|
97
|
+
== 0.9.1 - 3-Aug-2011
|
98
|
+
* Added the pctcpu and pctmem members for Linux.
|
99
|
+
* Added Errno::ESRCH to a rescue clause on Linux that fixed a bug
|
100
|
+
where a missing entry wasn't being skipped when run as root. Thanks
|
101
|
+
go to Austin Ziegler for the spot and patch.
|
102
|
+
* Fixed a build warning for Darwin.
|
103
|
+
* Updates to the test suite for both Darwin and Linux.
|
104
|
+
* Added an explicit type check for BSD for pids.
|
105
|
+
* Added nicer error messages for BSD if kvm_open fails.
|
106
|
+
* Added .core files to the clean task.
|
107
|
+
* Altered the platform settings in the Rakefile so that generated gems
|
108
|
+
use 'universal' platform architectures for any particular operating system.
|
109
|
+
|
110
|
+
== 0.9.0 - 14-Oct-2009
|
111
|
+
* Changed the license to Artistic 2.0.
|
112
|
+
* Fixed a bug in the OS X code where a segfault would occur when an attempt
|
113
|
+
was made to gather resource usage information on zombie processes. From
|
114
|
+
now on that information is always set to nil for zombie processes. Thanks
|
115
|
+
go to Tom Lianza for the spot and Philip Kromer for investigating the
|
116
|
+
root cause of the failure.
|
117
|
+
* Removed the FreeBSD code that read out of /proc. It was a pain from a
|
118
|
+
maintenance point of view, and most FreeBSD installs do not mount /proc
|
119
|
+
by default. The FreeBSD platform now uses the same code that the other
|
120
|
+
BSD platforms use.
|
121
|
+
* Fixed a bug in the BSD code where the ProcTable::Error class had the
|
122
|
+
wrong parent class.
|
123
|
+
* Some major gemspec updates, including an updated license. The platform
|
124
|
+
handling logic is now in the Rakefile in the 'gem' task.
|
125
|
+
* Updated the README file to include an additional acknowledgement, a
|
126
|
+
license change and some minor formatting changes.
|
127
|
+
* The test-unit library was changed from a runtime to a development dependency.
|
128
|
+
|
129
|
+
== 0.8.1 - 6-Apr-2009
|
130
|
+
* The Linux and Solaris libraries now handle the possibility of a process
|
131
|
+
terminating in the middle of a read more gracefully. If that happens, they
|
132
|
+
merely skip to the next record, i.e. it's all or nothing. Thanks go to
|
133
|
+
Heejong Lee for the spot and patch.
|
134
|
+
* Fixed a bug in the Linux version where embedded nulls were not being
|
135
|
+
stripped out of the cmdline data.
|
136
|
+
* Added the comm alias back to the Solaris version. Thanks go to Jun Young Kim
|
137
|
+
for the spot.
|
138
|
+
|
139
|
+
== 0.8.0 - 26-Jan-2009
|
140
|
+
* The Linux and Solaris versions of this library are now pure Ruby. Be warned,
|
141
|
+
however, that only Solaris 8 and later are now supported. This may change
|
142
|
+
in a future release if there's demand to support 2.6 and 2.7.
|
143
|
+
* Some Struct::ProcTableStruct members have changed. As a general rule they
|
144
|
+
now more closely match the C struct member name. See individual platforms
|
145
|
+
for more details.
|
146
|
+
* Bug fix for the cmd_args struct member on Solaris.
|
147
|
+
* Bug fixes for OS X. Added a VERSION constant, fixed struct name, and changed
|
148
|
+
pct_cpu to pctcpu.
|
149
|
+
* The .new method is now explicitly illegal.
|
150
|
+
* The Struct::ProcTableStruct instances are now frozen. This is read-only data.
|
151
|
+
* Added the peak_page_file_usage and status members on MS Windows. The status
|
152
|
+
member is always nil, but was added for completeness.
|
153
|
+
* Fixed the quota_peak_paged_pool_usage member on MS Windows.
|
154
|
+
* ProcTableError is now ProcTable::Error.
|
155
|
+
* Minor test case fix for kvm/bsd based versions.
|
156
|
+
* Added the 'time' library as a require for Windows (to parse MS date/time
|
157
|
+
format strings).
|
158
|
+
* The kvm (bsd.c) implementation now works for FreeBSD 7.
|
159
|
+
* Added many more tests.
|
160
|
+
* Added some benchmarking code in the 'benchmarks' directory.
|
161
|
+
* Added a 'bench' Rake task.
|
162
|
+
* Renamed the test_ps.rb file to example_ps.rb in order to avoid any possible
|
163
|
+
confusion with actual test files.
|
164
|
+
* Added an 'example' rake task to run the example file.
|
165
|
+
|
1
166
|
== 0.7.6 - 11-Jul-2007
|
2
167
|
* Fixed the starttime for Linux. Thanks go to Yaroslav Dmitriev for the spot.
|
3
168
|
* Fixed a bug in the MS Windows version within a private method that parsed
|
data/MANIFEST
CHANGED
@@ -1,41 +1,33 @@
|
|
1
|
-
CHANGES
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
sys-proctable.gemspec
|
6
|
-
|
7
|
-
doc/
|
8
|
-
doc/hpux.txt
|
9
|
-
doc/linux.txt
|
10
|
-
doc/solaris.txt
|
11
|
-
doc/top.txt
|
12
|
-
doc/windows.txt
|
13
|
-
|
14
|
-
ext/extconf.rb
|
15
|
-
ext/
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
test/
|
34
|
-
test/tc_freebsd.rb
|
35
|
-
test/tc_hpux.rb
|
36
|
-
test/tc_linux.rb
|
37
|
-
test/tc_sunos.rb
|
38
|
-
test/tc_top.rb
|
39
|
-
test/tc_windows.rb
|
40
|
-
test/tc_kvm_bsd.rb
|
41
|
-
test/test_memleak.rb
|
1
|
+
* CHANGES
|
2
|
+
* MANIFEST
|
3
|
+
* Rakefile
|
4
|
+
* README
|
5
|
+
* sys-proctable.gemspec
|
6
|
+
* doc/aix.txt
|
7
|
+
* doc/bsd.txt
|
8
|
+
* doc/hpux.txt
|
9
|
+
* doc/linux.txt
|
10
|
+
* doc/solaris.txt
|
11
|
+
* doc/top.txt
|
12
|
+
* doc/windows.txt
|
13
|
+
* example/example_ps.rb
|
14
|
+
* ext/hpux/extconf.rb
|
15
|
+
* ext/hpux/sys/proctable.c
|
16
|
+
* lib/sys-proctable.rb
|
17
|
+
* lib/sys/top.rb
|
18
|
+
* lib/sys/proctable/version.rb
|
19
|
+
* lib/aix/sys/proctable.rb
|
20
|
+
* lib/darwin/sys/proctable.rb
|
21
|
+
* lib/freebsd/sys/proctable.rb
|
22
|
+
* lib/linux/sys/proctable.rb
|
23
|
+
* lib/sunos/sys/proctable.rb
|
24
|
+
* lib/windows/sys/proctable.rb
|
25
|
+
* test/test_sys_proctable_aix.rb
|
26
|
+
* test/test_sys_proctable_all.rb
|
27
|
+
* test/test_sys_proctable_darwin.rb
|
28
|
+
* test/test_sys_proctable_freebsd.rb
|
29
|
+
* test/test_sys_proctable_hpux.rb
|
30
|
+
* test/test_sys_proctable_linux.rb
|
31
|
+
* test/test_sys_proctable_sunos.rb
|
32
|
+
* test/test_sys_proctable_windows.rb
|
33
|
+
* test/test_sys_top.rb
|
data/README
CHANGED
@@ -1,140 +1,120 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
*
|
12
|
-
*
|
13
|
-
*
|
14
|
-
*
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
===
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
1
|
+
== Description
|
2
|
+
A Ruby interface for gathering process information.
|
3
|
+
|
4
|
+
== Prerequisites
|
5
|
+
* Test::Unit 2.x (development only)
|
6
|
+
|
7
|
+
== Supported Platforms
|
8
|
+
* Windows 2000 or later
|
9
|
+
* Linux 2.6+
|
10
|
+
* FreeBSD
|
11
|
+
* Solaris 8+
|
12
|
+
* HP-UX 10+
|
13
|
+
* OS X 10.7+
|
14
|
+
* AIX 5.3+
|
15
|
+
|
16
|
+
== Installation
|
17
|
+
gem install sys-proctable
|
18
|
+
|
19
|
+
You may need to specify a platform in some cases. For example:
|
20
|
+
|
21
|
+
gem install sys-proctable --platform mswin32 # Windows
|
22
|
+
gem install sys-proctable --platform sunos # Solaris
|
23
|
+
gem install sys-proctable --platform linux # Linux
|
24
|
+
gem install sys-proctable --platform freebsd # FreeBSD
|
25
|
+
gem install sys-proctable --platform darwin # OS X
|
26
|
+
|
27
|
+
== Synopsis
|
28
|
+
require 'sys/proctable'
|
29
|
+
include Sys
|
30
|
+
|
31
|
+
# Everything
|
32
|
+
ProcTable.ps{ |p|
|
33
|
+
puts p.pid.to_s
|
34
|
+
puts p.comm
|
35
|
+
# ...
|
36
|
+
}
|
37
|
+
|
38
|
+
# Just one process
|
39
|
+
s = ProcTable.ps(2123)
|
40
|
+
puts s.pid.to_s
|
41
|
+
puts s.comm
|
42
|
+
# ...
|
43
|
+
|
44
|
+
# Return the results as an array of ProcTableStructs
|
45
|
+
a = ProcTable.ps
|
46
|
+
a.each do |p|
|
47
|
+
puts p.pid
|
48
|
+
# ...
|
49
|
+
end
|
50
|
+
|
51
|
+
== Notes
|
52
|
+
Windows users may pass a host name as a second argument to get process
|
53
|
+
information from a different host. This relies on the WMI service running.
|
54
|
+
|
55
|
+
== Known Issues
|
56
|
+
=== FreeBSD
|
57
|
+
A kvm interface is used. That means the owner of the process using the
|
58
|
+
sys-proctable library needs to be a member of the kvm group (or root).
|
59
|
+
|
60
|
+
=== Bundler
|
61
|
+
Bundler seems to have trouble installing the proper gem because of the
|
62
|
+
platform specific gem names. To deal with that, run this command first:
|
63
|
+
|
64
|
+
bundle config specific_platform true
|
65
|
+
|
66
|
+
You can follow the issue at:
|
67
|
+
|
68
|
+
https://github.com/bundler/bundler/issues/5536
|
65
69
|
|
66
70
|
=== Solaris
|
67
|
-
|
68
|
-
|
71
|
+
The cmdline member on Solaris is limited to 80 characters unless you (or
|
72
|
+
your program) own the process. This is a Solaris design flaw/feature.
|
69
73
|
|
70
74
|
=== OS X
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
FreeBSD machines. This is how the FreeBSD support was (initially) added.
|
111
|
-
|
112
|
-
Thanks go to James Hranicky for providing a patch that grabs name, eid,
|
113
|
-
euid, gid and guid info in the Linux version, along with some general
|
114
|
-
debugging help.
|
115
|
-
|
116
|
-
Finally I'd like to thank all the folks who have submitted bug reports
|
117
|
-
and/or patches.
|
118
|
-
|
119
|
-
= Help Wanted
|
120
|
-
I do not have access to all platforms. There are a few other major platforms
|
121
|
-
out there, namely AIX, OpenBSD, and IRIX, among others, that I would
|
122
|
-
like to see ports for. There are two ways you can help - either submit code
|
123
|
-
for your particular platform or give me an account on your platform so I can
|
124
|
-
develop on it.
|
125
|
-
|
126
|
-
= More documentation
|
127
|
-
See the documentation under the 'doc' directory for your platform for more
|
128
|
-
information, including platform specific notes and issues.
|
129
|
-
|
130
|
-
= License
|
131
|
-
Ruby's
|
75
|
+
The libproc interface is used. That means you will only get list of
|
76
|
+
processes that you have access to. To get a full listing, run as root.
|
77
|
+
|
78
|
+
== Future Plans
|
79
|
+
Add support for NetBSD and OpenBSD.
|
80
|
+
Convert remaining C code (just HP-UX at this point) to FFI.
|
81
|
+
|
82
|
+
== Acknowledgements
|
83
|
+
This library was originally based on the Perl module Proc::ProcessTable
|
84
|
+
by Dan Urist. Many ideas, as well as large chunks of code, were taken
|
85
|
+
from his work. So, a big THANK YOU goes out to Dan Urist.
|
86
|
+
|
87
|
+
A big thanks also goes out to Mike Hall who was very helpful with ideas,
|
88
|
+
logic and testing.
|
89
|
+
|
90
|
+
Thanks also go to Sean Chittenden for providing an account on one of his
|
91
|
+
FreeBSD machines. This is how the FreeBSD support was (initially) added.
|
92
|
+
|
93
|
+
Thanks go to James Hranicky for providing a patch that grabs name, eid,
|
94
|
+
euid, gid and guid info in the Linux version, along with some general
|
95
|
+
debugging help.
|
96
|
+
|
97
|
+
Thanks go to David Felstead for the original OS X code. Thanks also go
|
98
|
+
to Matthias Zirnstein for adding the original cmdline support for OS X.
|
99
|
+
|
100
|
+
Finally I'd like to thank all the folks who have submitted bug reports
|
101
|
+
and/or patches.
|
102
|
+
|
103
|
+
== Help Wanted
|
104
|
+
I do not have access to all platforms. If your platform is not supported
|
105
|
+
then you will need to either submit a patch or give me a remote account
|
106
|
+
on a box with a compiler so that I can write the code.
|
107
|
+
|
108
|
+
== More documentation
|
109
|
+
See the documentation under the 'doc' directory for more information,
|
110
|
+
including platform specific notes and issues.
|
111
|
+
|
112
|
+
== License
|
113
|
+
Apache 2.0
|
132
114
|
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
djberg96 at nospam at gmail dot com
|
140
|
-
imperator on IRC (Freenode)
|
115
|
+
== Copyright
|
116
|
+
(C) 2003-2016 Daniel J. Berger
|
117
|
+
All Rights Reserved.
|
118
|
+
|
119
|
+
== Author
|
120
|
+
Daniel J. Berger
|