Skip to content

Commit

Permalink
remove use of MA_RESERVED1 from SunOS module
Browse files Browse the repository at this point in the history
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 giampaolo#1002.
  • Loading branch information
Danek Duvall committed Mar 28, 2017
1 parent 2437c11 commit 6a2c351
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions psutil/_psutil_sunos.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6a2c351

Please sign in to comment.