]> granicus.if.org Git - strace/commitdiff
2003-09-25 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@redhat.com>
Thu, 25 Sep 2003 23:06:04 +0000 (23:06 +0000)
committerRoland McGrath <roland@redhat.com>
Thu, 25 Sep 2003 23:06:04 +0000 (23:06 +0000)
* mem.c (mmap_prot) [PROT_SEM, PROT_GROWSDOWN, PROT_GROWSUP]: Include
these in the table if they are defined.

mem.c

diff --git a/mem.c b/mem.c
index f0160210bcedff41fd079f5e877fa47182601e75..ee7a7dfdcc05d815c256956041e941cacff48b0b 100644 (file)
--- a/mem.c
+++ b/mem.c
@@ -82,6 +82,15 @@ static struct xlat mmap_prot[] = {
        { PROT_READ,    "PROT_READ"     },
        { PROT_WRITE,   "PROT_WRITE"    },
        { PROT_EXEC,    "PROT_EXEC"     },
+#ifdef PROT_SEM
+       { PROT_SEM,     "PROT_SEM"      },
+#endif
+#ifdef PROT_GROWSDOWN
+       { PROT_GROWSDOWN,"PROT_GROWSDOWN"},
+#endif
+#ifdef PROT_GROWSUP
+       { PROT_GROWSUP, "PROT_GROWSUP"  },
+#endif
        { 0,            NULL            },
 };