From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12395 invoked by alias); 12 Dec 2002 22:22:12 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 12388 invoked from network); 12 Dec 2002 22:22:11 -0000 Received: from unknown (HELO av.mvista.com) (12.44.186.158) by sources.redhat.com with SMTP; 12 Dec 2002 22:22:11 -0000 Received: from mvista.com (av [127.0.0.1]) by av.mvista.com (8.9.3/8.9.3) with ESMTP id OAA23352 for ; Thu, 12 Dec 2002 14:22:00 -0800 Message-ID: <3DF90C1C.19C5683@mvista.com> Date: Thu, 12 Dec 2002 14:58:00 -0000 From: Michael Eager Organization: MontaVista Software, Inc. X-Accept-Language: en MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: MS_types and addr_t name polution References: <20021212072201.389F83BDA@sitemail.everyone.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-12/txt/msg00702.txt.bz2 Elfyn McBratney wrote: > > Hi, > > The addr_t type is used in memory managment (memory addresses??) in /usr/include/sys/mman.h. If you plan on using this (or is already on the code, mman.h i mean) you may have problems. What is the type of your addr_t? is it type char of * (pointer)? Actually, mman.h uses caddr_t, not addr_t, at least in the cygwin 1.3.15 system I have installed. Nothing in /usr/include appears to use addr_t. My typedef of addr_t is for 64-bit int. > If the code is open source you can just change the addr_t typedef name (in your source) to something else eg. addr2_t in all of your source files (a simple search and replace). Yes, I renamed all references to addr_t to a different name. It's just a nuisance and appears to be unnecessary name polution. > > Elfyn > elfyn@exposure.org.uk > > --- Michael Eager wrote: > >I'm porting a small program to Cygwin. One of the typedefs > >in the program is for a symbol named addr_t. Since this is > >defined in /usr/include/sys/types.h, there is a redefinition > >conflict. > > > >This (and a number of other symbols) are defined when __MS_types_ > >is defined, which, in turn, is defined whenever __CYGWIN__, _WIN32 > >or __MSDOS__ is defined. > > > >I don't see any use of addr_t in /usr/include. Is there a reason > >for defining addr_t and the other symbols? > > > > > >-- > >Michael Eager eager@mvista.com 408-328-8426 > >MontaVista Software, Inc. 1237 E. Arques Ave., Sunnyvale, CA 94085 > > > >-- > >Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > >Bug reporting: http://cygwin.com/bugs.html > >Documentation: http://cygwin.com/docs.html > >FAQ: http://cygwin.com/faq/ > > _____________________________________________________________ > www.smokeJet.com - Free UK Internet Services > > _____________________________________________________________ > Select your own custom email address for FREE! Get you@yourchoice.com w/No Ads, 6MB, POP & more! http://www.everyone.net/selectmail?campaign=tag -- Michael Eager eager@mvista.com 408-328-8426 MontaVista Software, Inc. 1237 E. Arques Ave., Sunnyvale, CA 94085 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/