Return-Path: <tiff-bounces@lists.maptools.org>
Delivered-To: info@awaresystems.be
Received: (qmail 9585 invoked from network); 12 Aug 2008 00:39:36 -0000
Received: from cheryl.telenet-ops.be ([195.130.136.3])
          (envelope-sender <tiff-bounces@lists.maptools.org>)
          by angelia.telenet-ops.be (qmail-ldap-1.03) with SMTP
          for <info@awaresystems.be>; 12 Aug 2008 00:39:36 -0000
Received: from vijay.telenet-ops.be (vijay.telenet-ops.be [195.130.136.9])
	by cheryl.telenet-ops.be (8.13.1/8.13.1) with ESMTP id m7C0damT003856
	for <info@awaresystems.be>; Tue, 12 Aug 2008 02:39:36 +0200
Received: from localhost (localhost.localdomain [127.0.0.1])
	by vijay.telenet-ops.be (Postfix) with SMTP id A685760003
	for <info@awaresystems.be>; Tue, 12 Aug 2008 02:39:36 +0200 (CEST)
Received: from crotus.telenet-ops.be (crotus.telenet-ops.be [195.130.132.38])
	by vijay.telenet-ops.be (Postfix) with ESMTP id A085A60002
	for <info@awaresystems.be>; Tue, 12 Aug 2008 02:39:36 +0200 (CEST)
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153])
	by crotus.telenet-ops.be (Postfix) with ESMTP id 5C398C
	for <info@awaresystems.be>; Tue, 12 Aug 2008 02:39:36 +0200 (CEST)
Received: from duke.maptools.org (duke.maptools.org [127.0.0.1])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id m7C0aQGu021218;
	Mon, 11 Aug 2008 20:38:02 -0400
Received: from mail.sidefx.com (mail.sidefx.com [38.99.137.163])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id m7C0aOUY021210
	for <tiff@lists.maptools.org>; Mon, 11 Aug 2008 20:36:24 -0400
Received: from www.sidefx.com (unknown [149.99.58.193])
	by mail.sidefx.com (Postfix) with ESMTP id 028275C046;
	Mon, 11 Aug 2008 20:36:23 -0400 (EDT)
Received: from 99.237.126.63 (SquirrelMail authenticated user edward)
	by www.sidefx.com with HTTP; Mon, 11 Aug 2008 20:36:23 -0400 (EDT)
Message-ID: <57562.99.237.126.63.1218501383.squirrel@www.sidefx.com>
In-Reply-To: <Pine.SOC.4.64.0808111523170.1107@freddy.simplesystems.org>
References: <5a28e8c20808111057k7bec8c86r1f56a7239d468afe@mail.gmail.com>
	<Pine.SOC.4.64.0808111422260.1107@freddy.simplesystems.org>
	<5a28e8c20808111235o3faede7o69900dc9d55633be@mail.gmail.com>
	<Pine.SOC.4.64.0808111523170.1107@freddy.simplesystems.org>
Date: Mon, 11 Aug 2008 20:36:23 -0400 (EDT)
Subject: Re: [Tiff] windows 64 bit build
From: "Edward Lam" <edward@sidefx.com>
To: "Bob Friesenhahn" <bfriesen@simple.dallas.tx.us>
User-Agent: SquirrelMail/1.4.9a
MIME-Version: 1.0
Content-Type: text/plain;charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Priority: 3 (Normal)
Importance: Normal
Cc: tiff@lists.maptools.org
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.4
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.maptools.org>
List-Unsubscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=unsubscribe>
List-Archive: <http://lists.maptools.org/mailman/private/tiff>
List-Post: <mailto:tiff@lists.maptools.org>
List-Help: <mailto:tiff-request@lists.maptools.org?subject=help>
List-Subscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=subscribe>
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org
X-SpamCatcher-Score: 10 [X]

On Mon, August 11, 2008 16:51, Bob Friesenhahn wrote:

> use in TIFFClientOpen.  It also caches the 'int' sized value as
> tif->tif_fd:

Ugh, this gets uglier. I apologize for not noticing. There's also
TIFFFileno() and TIFFSetFileno() as well which uses tif_fd.

OK, second take then. We keep everything the same but fix it differently
in tif_win32.c. In TIFFFdOpen(), we use _get_osfhandle() to convert the
given ifd into a HANDLE that we pass to TIFFClientOpen(). In the calls to
TIFFFdOpen(), we call _open_osfhandle() to allocate an fd corresponding to
the HANDLE.

-Edward

_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
