diff options
| author | Danek Duvall <danek.duvall@oracle.com> | 2017-03-28 11:17:43 -0700 |
|---|---|---|
| committer | Danek Duvall <danek.duvall@oracle.com> | 2017-03-28 11:17:43 -0700 |
| commit | 6a2c351d0c450def95ee0505c84d1bc82ebe9f7b (patch) | |
| tree | 28d03dcd5d5c07157a9e07a476d4588b7dbdafdd /psutil/_psutil_sunos.c | |
| parent | 2437c11538659ae28ff44d8ca1b05ec9e6925b92 (diff) | |
| download | psutil-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.c | 4 |
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) { |
