From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31070 invoked by alias); 29 Apr 2005 14:45:10 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 28696 invoked from network); 29 Apr 2005 14:43:55 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 29 Apr 2005 14:43:55 -0000 Received: from drow by nevyn.them.org with local (Exim 4.50 #1 (Debian)) id 1DRWih-0006aV-Aw; Fri, 29 Apr 2005 10:43:55 -0400 Date: Fri, 29 Apr 2005 14:45:00 -0000 From: Daniel Jacobowitz To: Paul Brook Cc: gdb-patches@sources.redhat.com Subject: Re: [patch] Building simulators on windows hosts Message-ID: <20050429144355.GA25251@nevyn.them.org> Mail-Followup-To: Paul Brook , gdb-patches@sources.redhat.com References: <200504291539.15275.paul@codesourcery.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200504291539.15275.paul@codesourcery.com> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-04/txt/msg00427.txt.bz2 On Fri, Apr 29, 2005 at 03:39:15PM +0100, Paul Brook wrote: > The attached patch allows building the gdb simulators on windows hosts. These > do not provide the lstat(2) or ftruncate(2) functions. truncate(2) is not > implemented in older mingw releases. > > Windows doesn't have symbolic links, so we use stat in place of lstat. For the > missing truncate functions we just fail. > > Applied to csl-arm-20050325-branch. > Ok for mainline? > > Paul > > 2005-04-29 Paul Brook > > * common/callback.c (PIPE_BUF): Provide default refinition. > (os_lstat): Use stat if lstat is not available on the host. > (os_ftruncate): Return EINVAL if not available on the host. > (os_truncate): Ditto. > * common/configure.ac: Check for lstat, truncate and ftruncate. > * common/configure: Regenerate. > * common/config.in: Regenerate. Yes, this is OK. -- Daniel Jacobowitz CodeSourcery, LLC