summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2017-10-30 00:05:58 +0100
committerGiampaolo Rodola <g.rodola@gmail.com>2017-10-30 00:05:58 +0100
commitb30bef830aaa0adb0f3904ed805aa3174aaa2d49 (patch)
treeea5081227577eb80c3b090c5287fd29530a0bb1a
parentd6c54a02431d7ad6408231bcc7c8b1a3534c788b (diff)
downloadpsutil-b30bef830aaa0adb0f3904ed805aa3174aaa2d49.tar.gz
add DEVNOTES file; move TODO.aix into _psutil_aix.c
-rw-r--r--MANIFEST.in2
-rw-r--r--psutil/DEVNOTES5
-rw-r--r--psutil/TODO.aix11
-rw-r--r--psutil/_psutil_aix.c24
4 files changed, 24 insertions, 18 deletions
diff --git a/MANIFEST.in b/MANIFEST.in
index a2d0a5d0..a07f16da 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -20,7 +20,7 @@ include docs/conf.py
include docs/index.rst
include docs/make.bat
include make.bat
-include psutil/TODO.aix
+include psutil/DEVNOTES
include psutil/__init__.py
include psutil/_common.py
include psutil/_compat.py
diff --git a/psutil/DEVNOTES b/psutil/DEVNOTES
new file mode 100644
index 00000000..4fd15ea3
--- /dev/null
+++ b/psutil/DEVNOTES
@@ -0,0 +1,5 @@
+API REFERENCES
+==============
+
+- psutil.sensors_battery:
+ https://github.com/Kentzo/Power/
diff --git a/psutil/TODO.aix b/psutil/TODO.aix
deleted file mode 100644
index e1d428bd..00000000
--- a/psutil/TODO.aix
+++ /dev/null
@@ -1,11 +0,0 @@
-AIX support is experimental at this time.
-The following functions and methods are unsupported on the AIX platform:
-
- psutil.Process.memory_maps
- psutil.Process.num_ctx_switches
-
-Known limitations:
- psutil.Process.io_counters read count is always 0
- reading basic process info may fail or return incorrect values when process is starting
- (see IBM APAR IV58499 - fixed in newer AIX versions)
- sockets and pipes may not be counted in num_fds (fixed in newer AIX versions)
diff --git a/psutil/_psutil_aix.c b/psutil/_psutil_aix.c
index 76ed736b..8ffc8f47 100644
--- a/psutil/_psutil_aix.c
+++ b/psutil/_psutil_aix.c
@@ -4,16 +4,28 @@
* All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
+ /*
+
+/*
+ * AIX support is experimental at this time.
+ * The following functions and methods are unsupported on the AIX platform:
+ * - psutil.Process.memory_maps
+ * - psutil.Process.num_ctx_switches
*
- * AIX platform-specific module methods for _psutil_aix
+ * Known limitations:
+ * - psutil.Process.io_counters read count is always 0
+ * - reading basic process info may fail or return incorrect values when
+ * process is starting (see IBM APAR IV58499 - fixed in newer AIX versions)
+ * - sockets and pipes may not be counted in num_fds (fixed in newer AIX
+ * versions)
*
+ * Useful resources:
+ * - proc filesystem: http://www-01.ibm.com/support/knowledgecenter/
+ * ssw_aix_61/com.ibm.aix.files/proc.htm
+ * - libperfstat: http://www-01.ibm.com/support/knowledgecenter/
+ * ssw_aix_61/com.ibm.aix.files/libperfstat.h.htm
*/
-// Useful resources:
-// proc filesystem: http://www-01.ibm.com/support/knowledgecenter/ssw_aix_61/com.ibm.aix.files/proc.htm
-// libperfstat: http://www-01.ibm.com/support/knowledgecenter/ssw_aix_61/com.ibm.aix.files/libperfstat.h.htm
-
-
#include <Python.h>
#include <sys/types.h>