Return-Path: <tiff-bounces@lists.maptools.org>
Delivered-To: info@awaresystems.be
Received: (qmail 27043 invoked from network); 12 Aug 2008 04:05:43 -0000
Received: from kudos.telenet-ops.be ([195.130.136.13])
          (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 04:05:43 -0000
Received: from vijay.telenet-ops.be (vijay.telenet-ops.be [195.130.136.9])
	by kudos.telenet-ops.be (8.13.1/8.13.1) with ESMTP id m7C45hxZ003448
	for <info@awaresystems.be>; Tue, 12 Aug 2008 06:05:43 +0200
Received: from localhost (localhost.localdomain [127.0.0.1])
	by vijay.telenet-ops.be (Postfix) with SMTP id A57D660003
	for <info@awaresystems.be>; Tue, 12 Aug 2008 06:05:43 +0200 (CEST)
Received: from ladon.telenet-ops.be (ladon.telenet-ops.be [195.130.132.50])
	by vijay.telenet-ops.be (Postfix) with ESMTP id 9EFB560002
	for <info@awaresystems.be>; Tue, 12 Aug 2008 06:05:43 +0200 (CEST)
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153])
	by ladon.telenet-ops.be (Postfix) with ESMTP id 3BD3E312773
	for <info@awaresystems.be>; Tue, 12 Aug 2008 06:05:43 +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 m7C449BY024901;
	Tue, 12 Aug 2008 00:04:54 -0400
Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.239])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id m7C446Sd024898
	for <tiff@lists.maptools.org>; Tue, 12 Aug 2008 00:04:06 -0400
Received: by wr-out-0506.google.com with SMTP id 37so2121876wra.17
	for <tiff@lists.maptools.org>; Mon, 11 Aug 2008 21:04:04 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:received:received:message-id:date:from:to
	:subject:cc:in-reply-to:mime-version:content-type
	:content-transfer-encoding:content-disposition:references;
	bh=8Yneaoe2XylsnqBOpEUg11inNx3+oKKO+yFLtHct8mo=;
	b=POGW7UfGd6qhcz2UkOhCYob5xCciRABW1jLKjHeuUHq4Nj9feS2aCk/uox/OZq/zfe
	9M+Wv7y3R8FTm38F1Iq46rW5kq4KqeKRvWNVjtu0mH4ApTukrDzGYqiaZMEO/+J3J7yI
	34I5RZmfp6xLnNz7dgz1jE7c0EreNrbY8Qt+M=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=message-id:date:from:to:subject:cc:in-reply-to:mime-version
	:content-type:content-transfer-encoding:content-disposition
	:references;
	b=Ms/veYZzpGjoImncPVNpijvxJcYlPkFuwyYfAM9va+Pa1xkVbbD6pl8EvqcR5+V+an
	wRqqQfIVn6gl69IFBGDCcEyckI9oIATs0EEJ3WioWS1/M/NgEfjyhvYldKuThZh8vP75
	H9SDmIWB7bhBiS7+0KrZxfC+JzCYcWSSbom6E=
Received: by 10.90.102.15 with SMTP id z15mr5796964agb.51.1218513844401;
	Mon, 11 Aug 2008 21:04:04 -0700 (PDT)
Received: by 10.100.139.5 with HTTP; Mon, 11 Aug 2008 21:04:04 -0700 (PDT)
Message-ID: <5a28e8c20808112104r2d859baaq3a619c052bdac909@mail.gmail.com>
Date: Tue, 12 Aug 2008 00:04:04 -0400
From: "Mikhail Kruk" <meshko@gmail.com>
To: "Edward Lam" <edward@sidefx.com>
Subject: Re: [Tiff] windows 64 bit build
In-Reply-To: <52089.99.237.126.63.1218513190.squirrel@www.sidefx.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
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>
	<57562.99.237.126.63.1218501383.squirrel@www.sidefx.com>
	<Pine.SOC.4.64.0808112142330.1107@freddy.simplesystems.org>
	<52089.99.237.126.63.1218513190.squirrel@www.sidefx.com>
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: 50 [XX]

Sorry, don't have any test files.  I don't need it for large file
support, I just need a native 64 bit build.

On Mon, Aug 11, 2008 at 11:53 PM, Edward Lam <edward@sidefx.com> wrote:
> On Mon, August 11, 2008 22:44, Bob Friesenhahn wrote:
>> On Mon, 11 Aug 2008, Edward Lam wrote:
>>> 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.
>>
>> If you can submit a tested patch, I will be happy to commit it.
>
> Does anyone know where I can get a test file? :) Is it enough to generate
> sufficiently large image (say of constant color) with no compression?
>
>> Are the _get_osfhandle() and _open_osfhandle() functions available in
>> older versions of Windows? (e.g. Windows '98?).
>
> According to MSDN [1], it is. But then I have no idea how accurate MSDN
> is. :) MSDN also shows _get_osfhandle() as returning an int but on my MSVC
> 2005 io.h I see it returning an intptr_t.
>
> 1. http://msdn.microsoft.com/en-us/library/bdts1c9x(VS.71).aspx
>
> -Edward
>
>
_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
