+2017-09-26 Bruno Haible <bruno@clisp.org>
+
+ vma-iter: Provide the protection flags on FreeBSD.
+ * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
+ skip three fields between the addresses and the protection flags.
+
2017-09-26 Paul Eggert <eggert@cs.ucla.edu>
glob: remove bogus extern decl
&& rof_getchar (&rof) == 'x'
&& rof_scanf_lx (&rof, &end) >= 0))
break;
+# if defined __FreeBSD__
+ /* Then the resident pages count. */
+ do
+ c = rof_getchar (&rof);
+ while (c == ' ');
+ do
+ c = rof_getchar (&rof);
+ while (c != -1 && c != '\n' && c != ' ');
+ /* Then the private resident pages count. */
+ do
+ c = rof_getchar (&rof);
+ while (c == ' ');
+ do
+ c = rof_getchar (&rof);
+ while (c != -1 && c != '\n' && c != ' ');
+ /* Then some kernel address. */
+ do
+ c = rof_getchar (&rof);
+ while (c == ' ');
+ do
+ c = rof_getchar (&rof);
+ while (c != -1 && c != '\n' && c != ' ');
+# endif
/* Then the flags. */
do
c = rof_getchar (&rof);