X-Spam-Check-By: sourceware.org From: ericblake@comcast.net (Eric Blake) To: Dave Bodenstab , cygwin@cygwin.com Subject: Re: Possible bug with mmap on XP? Date: Fri, 03 Feb 2006 16:39:04 +0000 Message-Id: <020320061639.25459.43E387280009B5B90000637322070208530A050E040D0C079D0A@comcast.net> Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Delivered-To: mailing list cygwin@cygwin.com > > 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 shows the mapping between the Windows version string (which gets put in the sysname portion of uname(2)) vs. the os capabilities in use (with some pretty informative variable names). http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/wincap.cc?rev=1.50&content-type=text/x-cvsweb-markup&cvsroot=src Wouldn't you know it - a version of NT-5.1 selects wincap_xp? -- Eric Blake -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/