Re: mmap MAP_INHERIT question.

2001-08-25 Thread Valentin Nechayev
Fri, Aug 24, 2001 at 09:11:50, dillon (Matt Dillon) wrote about "Re: mmap MAP_INHERIT question.": > :> MAP_INHERIT This is supposed to permit regions to be > :> inherited across execve(2) system calls, > :>

Re: mmap MAP_INHERIT question.

2001-08-24 Thread Matt Dillon
:> :> MAP_INHERIT This is supposed to permit regions to be :> inherited across execve(2) system calls, :> but is currently broken. : : Support for the flag and reference to it in the manpage should just be :removed. : :-DG : :David Greenman

Re: mmap MAP_INHERIT question.

2001-08-23 Thread Giorgos Keramidas
From: David Greenman <[EMAIL PROTECTED]> Subject: Re: mmap MAP_INHERIT question. Date: Thu, Aug 23, 2001 at 12:59:05PM -0700 > >Perhaps this should be changed to something along the lines of the > >following? > > > > MAP_INHERIT This is su

Re: mmap MAP_INHERIT question.

2001-08-23 Thread David Greenman
>From: Matt Dillon <[EMAIL PROTECTED]> >Subject: Re: mmap MAP_INHERIT question. >Date: Thu, Aug 23, 2001 at 10:38:31AM -0700 > >>MAP_INHERIT is broken and always has been. >> >> -Matt > >Is then a send-pr to remo

Re: mmap MAP_INHERIT question.

2001-08-23 Thread Giorgos Keramidas
From: Matt Dillon <[EMAIL PROTECTED]> Subject: Re: mmap MAP_INHERIT question. Date: Thu, Aug 23, 2001 at 10:38:31AM -0700 >MAP_INHERIT is broken and always has been. > > -Matt Is then a send-pr to remove the MAP_INHERIT description from

Re: mmap MAP_INHERIT question.

2001-08-23 Thread Julian Elischer
On Thu, 23 Aug 2001, Bernd Walter wrote: > On Thu, Aug 23, 2001 at 10:38:31AM -0700, Matt Dillon wrote: > >MAP_INHERIT is broken and always has been. > > That's a good argument. > If it's true it awards an entry in the manpages BUGS section. > Btw. I just tested on NetBSD 1.5U sparc with t

Re: mmap MAP_INHERIT question.

2001-08-23 Thread Bernd Walter
On Thu, Aug 23, 2001 at 10:13:01AM -0700, Julian Elischer wrote: > exec gives you an new vm space.. > inherrit only applies to forks Then the manpage is absolutely wrong: MAP_INHERIT Permit regions to be inherited across execve(2) system calls. I asumed MAP_SHA

Re: mmap MAP_INHERIT question.

2001-08-23 Thread Matt Dillon
MAP_INHERIT is broken and always has been. -Matt :exec gives you an new vm space.. :inherrit only applies to forks : : :On Thu, 23 Aug 2001, Alfred Perlstein wrote: : :> * Bernd Walter <[EMAIL PROTECTED]> [010823 06:16] wrote: :> > I do the following: :

Re: mmap MAP_INHERIT question.

2001-08-23 Thread Julian Elischer
exec gives you an new vm space.. inherrit only applies to forks On Thu, 23 Aug 2001, Alfred Perlstein wrote: > * Bernd Walter <[EMAIL PROTECTED]> [010823 06:16] wrote: > > I do the following: > > buf = (char*)mmap(NULL, BUFSIZE, PROT_READ | PROT_WRITE, > > MAP_ANON | MAP_INHERIT

Re: mmap MAP_INHERIT question.

2001-08-23 Thread Alfred Perlstein
* Bernd Walter <[EMAIL PROTECTED]> [010823 06:16] wrote: > I do the following: > buf = (char*)mmap(NULL, BUFSIZE, PROT_READ | PROT_WRITE, > MAP_ANON | MAP_INHERIT | MAP_SHARED, -1, 0); > > Now I vfork/execve a child. > But the child can't access the mmaped memory. > It was my un