Return-Path: <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>
X-Original-To: filtered@awaresystems.be
Delivered-To: filtered@awaresystems.be
Received: from mx-k.one.com (mx-k.one.com [91.198.169.58])
	by mail9.b-one.net (Postfix) with ESMTP id A6A3C400805
	for <filtered@awaresystems.be>; Thu, 19 Apr 2012 16:13:22 +0200 (CEST)
X-Virus-Scanned: by one.com
Received-SPF: pass (mx-k: domain of awaresystems.be+caf_=filtered=awaresystems.be@gmail.com designates 209.85.160.48 as permitted sender)
X-Greylist: whitelisted by SQLgrey-1.8.0-rc2
Received: from mail-pb0-f48.google.com (mail-pb0-f48.google.com [209.85.160.48])
	by mx-k.one.com (Postfix) with ESMTP id 2A902A6792D
	for <filtered@awaresystems.be>; Thu, 19 Apr 2012 14:13:21 +0000 (UTC)
Received: by pbbjt11 with SMTP id jt11so11576383pbb.21
        for <filtered@awaresystems.be>; Thu, 19 Apr 2012 07:13:21 -0700 (PDT)
Received: by 10.68.226.8 with SMTP id ro8mr4988397pbc.72.1334844800990;
        Thu, 19 Apr 2012 07:13:20 -0700 (PDT)
X-Forwarded-To: filtered@awaresystems.be
X-Forwarded-For: awaresystems.be@gmail.com filtered@awaresystems.be
Delivered-To: awaresystems.be@gmail.com
Received: by 10.142.164.16 with SMTP id m16csp235488wfe;
        Thu, 19 Apr 2012 07:13:20 -0700 (PDT)
Received: by 10.68.130.227 with SMTP id oh3mr1589709pbb.99.1334844799521;
        Thu, 19 Apr 2012 07:13:19 -0700 (PDT)
Received-SPF: softfail (google.com: best guess record for domain of transitioning tiff-bounces@lists.maptools.org does not designate 91.198.169.58 as permitted sender) client-ip=91.198.169.58;
Received: by 10.68.141.176 with POP3 id rp16mf1281513pbb.26;
        Thu, 19 Apr 2012 07:13:19 -0700 (PDT)
X-Gmail-Fetch-Info: info@awaresystems.be 1 pop.awaresystems.be 110 info@awaresystems.be
X-Original-To: info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-k.one.com (mx-k.one.com [91.198.169.58])
	by mail9.b-one.net (Postfix) with ESMTP id C21D7400805
	for <info@awaresystems.be>; Thu, 19 Apr 2012 15:50:12 +0200 (CEST)
X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0-rc2
Received: from lists.maptools.org (lists.maptools.org [65.39.174.144])
	by mx-k.one.com (Postfix) with ESMTP id 7BACDA3D37B
	for <info@awaresystems.be>; Thu, 19 Apr 2012 13:50:12 +0000 (UTC)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id CBA733AD997;
	Thu, 19 Apr 2012 08:49:05 -0500 (EST)
Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com
	[209.85.217.172])
	by lists.maptools.org (Postfix) with ESMTPS id 4D1C53AD993
	for <tiff@lists.maptools.org>; Thu, 19 Apr 2012 08:48:22 -0500 (EST)
Received: by lbgc1 with SMTP id c1so1789559lbg.3
	for <tiff@lists.maptools.org>; Thu, 19 Apr 2012 06:48:21 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.152.132.166 with SMTP id ov6mr2233071lab.35.1334843300990;
	Thu, 19 Apr 2012 06:48:20 -0700 (PDT)
Received: by 10.112.133.135 with HTTP; Thu, 19 Apr 2012 06:48:20 -0700 (PDT)
In-Reply-To: <CBB587B2.3D36%ccameron@qnx.com>
References: <CBB587B2.3D36%ccameron@qnx.com>
Date: Thu, 19 Apr 2012 09:48:20 -0400
Message-ID: <CAAcuQeb6S=Txfuz_3CTs2dakQBV124B8+7Y1s8_zzhdo+z01Ww@mail.gmail.com>
From: Olivier Paquet <olivier.paquet@gmail.com>
To: Christopher Cameron <ccameron@qnx.com>
Cc: "tiff@lists.maptools.org" <tiff@lists.maptools.org>
Subject: Re: [Tiff] TIFFSeekProc
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.9
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>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

On Thu, Apr 19, 2012 at 9:12 AM, Christopher Cameron <ccameron@qnx.com> wrote:
> An issue came up in the development of a codec that uses libtiff. We are
> passing the TIFFSeekProc down through some layers to lseek().
>
> typedef toff_t (*TIFFSeekProc)(thandle_t, toff_t, int);
>
> Based on the definition, toff_t is always unsigned. Does this mean we can
> expect libtiff will never ask for a negative offset, for example with
> SEEK_END and SEEK_CUR?

That's how it is for now as far as I can see. SEEK_END is only used
with 0 and SEEK_CUR with positive offsets. I'd call it unfortunate
design but sticking with it does not really limit what libtiff can do.

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