summaryrefslogtreecommitdiff
path: root/psutil/_psutil_sunos.c
diff options
context:
space:
mode:
authorDanek Duvall <danek.duvall@oracle.com>2017-03-28 11:17:43 -0700
committerDanek Duvall <danek.duvall@oracle.com>2017-03-28 11:17:43 -0700
commit6a2c351d0c450def95ee0505c84d1bc82ebe9f7b (patch)
tree28d03dcd5d5c07157a9e07a476d4588b7dbdafdd /psutil/_psutil_sunos.c
parent2437c11538659ae28ff44d8ca1b05ec9e6925b92 (diff)
downloadpsutil-6a2c351d0c450def95ee0505c84d1bc82ebe9f7b.tar.gz
remove use of MA_RESERVED1 from SunOS module
MA_RESERVED1 never meant anything, and the macro is going away in the next release of Solaris. MA_NORESERVE wasn't really mapped to anything useful, either. Removing the use of both macros shouldn't make any material difference, and will be compatible across more versions of Solaris. Fixes #1002.
Diffstat (limited to 'psutil/_psutil_sunos.c')
-rw-r--r--psutil/_psutil_sunos.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/psutil/_psutil_sunos.c b/psutil/_psutil_sunos.c
index 48767add..68b0a89e 100644
--- a/psutil/_psutil_sunos.c
+++ b/psutil/_psutil_sunos.c
@@ -713,9 +713,7 @@ psutil_proc_memory_maps(PyObject *self, PyObject *args) {
sprintf(perms, "%c%c%c%c%c%c", p->pr_mflags & MA_READ ? 'r' : '-',
p->pr_mflags & MA_WRITE ? 'w' : '-',
p->pr_mflags & MA_EXEC ? 'x' : '-',
- p->pr_mflags & MA_SHARED ? 's' : '-',
- p->pr_mflags & MA_NORESERVE ? 'R' : '-',
- p->pr_mflags & MA_RESERVED1 ? '*' : ' ');
+ p->pr_mflags & MA_SHARED ? 's' : '-');
// name
if (strlen(p->pr_mapname) > 0) {