Re: Possible bug with mmap on XP?

2006-02-03 Thread Corinna Vinschen
On Feb 2 18:16, Dave Bodenstab wrote: I searched the mailing list archives and googled, but failed to find anything specific to XP regarding this... I am using the latest version (1.5.19-4) of Cygwin. I had previously ported a unix prog that used mmap to Cygwin. On win2k it works fine.

Re: Possible bug with mmap on XP?

2006-02-03 Thread Igor Peshansky
On Fri, 3 Feb 2006, Christopher Faylor wrote: ... One person even reported that a Cygwin bug caused OS wrapping and he found himself running FreeBSD... Is that the Blue Screen Of Life? Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_

Re: Possible bug with mmap on XP?

2006-02-03 Thread Dave Bodenstab
On Thu Feb 2 22:55:08 2006 Corinna Vinschen [EMAIL PROTECTED] wrote: Is this the way things are supposed to work on XP? This is a constraint of the underlying OS, yes. The old implementation of mmap used up to 1.5.18 didn't support PROT_EXEC at all, it was just fake. Since 1.5.19,

Re: Possible bug with mmap on XP?

2006-02-03 Thread Chris Taylor
Dave Bodenstab wrote: On Thu Feb 2 22:55:08 2006 Corinna Vinschen [EMAIL PROTECTED] wrote: Is this the way things are supposed to work on XP? This is a constraint of the underlying OS, yes. The old implementation of mmap used up to 1.5.18 didn't support PROT_EXEC at all, it was just fake.

Re: Possible bug with mmap on XP?

2006-02-03 Thread Eric Blake
I would like to modify my program to set the required permissions. Is the mapping between Cygwin's uname()'s sysname and XP, NT, 98SE, 98, etc. available somewhere? Actually, if I could just tell if the underlying windows is XP, that would be sufficient I think. The end of wincap.cc

Possible bug with mmap on XP?

2006-02-02 Thread Dave Bodenstab
I searched the mailing list archives and googled, but failed to find anything specific to XP regarding this... I am using the latest version (1.5.19-4) of Cygwin. I had previously ported a unix prog that used mmap to Cygwin. On win2k it works fine. When I copied the prog to a newly-installed

Re: Possible bug with mmap on XP?

2006-02-02 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Dave Bodenstab on 2/2/2006 5:16 PM: mmap(0,1500,PROT_EXEC|PROT_READ|PROT_WRITE,MAP_PRIVATE,the fd,0) I've found that changing the permissions (chmod +x) on the file being mmap'ed makes the problem go away. Is this the way things

Re: Possible bug with mmap on XP?

2006-02-02 Thread Dave Bodenstab
Thanks for the reply. On Thu, 02 Feb 2006 21:47:55 -0700 Eric Blake [EMAIL PROTECTED] wrote: According to Dave Bodenstab on 2/2/2006 5:16 PM: mmap(0,1500,PROT_EXEC|PROT_READ|PROT_WRITE,MAP_PRIVATE,the fd,0) I've found that changing the permissions (chmod +x) on the file being mmap'ed

Re: Possible bug with mmap on XP?

2006-02-02 Thread Christopher Faylor
On Fri, Feb 03, 2006 at 12:36:42AM -0600, Dave Bodenstab wrote: Is there a reference for what is returned for each windows release? On my only windows (I only have these for a couple of games and the digital cameras) systems I get: Win98SE sysname=CYGWIN_98-4.10 WinXP