This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] libffi testsuite MMAP


On Thu, Nov 20, 2003 at 07:41:51PM +0100, Andreas Tobler wrote:
> Hello,
> 
> the attached patch should fix the problems from Andreas.
> 
> Problem solving by Andreas Jaeger, typing by Andreas Tobler.

+#ifdef HAVE_MMAP_ANON
+  page = mmap (pref, size, PROT_READ | PROT_WRITE | PROT_EXEC,
+              MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
+#endif
+#ifdef HAVE_MMAP_DEV_ZERO
+  page = mmap (pref, size, PROT_READ | PROT_WRITE | PROT_EXEC,
+              MAP_PRIVATE, dev_zero_fd, 0);
+#endif

Where is `pref' defined?  Shouldn't it be NULL instead?

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]