Return-Path: <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>
X-Original-To: filtered@awaresystems.be
Delivered-To: filtered@awaresystems.be
Received: from mx-i.one.com (mx-i.one.com [91.198.169.56])
	by mail9.b-one.net (Postfix) with ESMTP id 9DDDB40024E
	for <filtered@awaresystems.be>; Thu, 22 Dec 2011 19:17:55 +0100 (CET)
X-Virus-Scanned: by one.com
Received-SPF: pass (mx-i: 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-pw0-f48.google.com (mail-pw0-f48.google.com [209.85.160.48])
	by mx-i.one.com (Postfix) with ESMTP id 1C869885AA
	for <filtered@awaresystems.be>; Thu, 22 Dec 2011 18:17:54 +0000 (UTC)
Received: by pbaa12 with SMTP id a12so3148394pba.21
        for <filtered@awaresystems.be>; Thu, 22 Dec 2011 10:17:54 -0800 (PST)
Received: by 10.68.73.105 with SMTP id k9mr24437583pbv.121.1324577874088;
        Thu, 22 Dec 2011 10:17:54 -0800 (PST)
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.143.98.15 with SMTP id a15cs98524wfm;
        Thu, 22 Dec 2011 10:17:53 -0800 (PST)
Received: by 10.68.199.38 with SMTP id jh6mr24585627pbc.77.1324577872060;
        Thu, 22 Dec 2011 10:17:52 -0800 (PST)
Received-SPF: softfail (google.com: best guess record for domain of transitioning tiff-bounces@lists.maptools.org does not designate 91.198.169.249 as permitted sender) client-ip=91.198.169.249;
Received: by 10.68.18.70 with POP3 id u6mf5958091pbd.25;
        Thu, 22 Dec 2011 10:17:52 -0800 (PST)
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-r.one.com (mx-r.one.com [91.198.169.249])
	by mail9.b-one.net (Postfix) with ESMTP id 45DB140024E
	for <info@awaresystems.be>; Thu, 22 Dec 2011 18:52:29 +0100 (CET)
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-r.one.com (Postfix) with ESMTP id 0726E2373EF
	for <info@awaresystems.be>; Thu, 22 Dec 2011 17:52:28 +0000 (UTC)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id C428F1ED9F4;
	Thu, 22 Dec 2011 12:50:24 -0500 (EST)
Received: from isadora.cybox.com (isadora.cybox.com [206.168.112.10])
	by lists.maptools.org (Postfix) with ESMTP id 768311ED9E9
	for <tiff@lists.maptools.org>; Thu, 22 Dec 2011 12:34:40 -0500 (EST)
Received: from boreas.wriverody.net (vc7-1-52.dsl.indra.com [199.45.160.84])
	(authenticated)
	by isadora.cybox.com (msa 8.13.8/8.13.6) with ESMTP id pBMHYZXJ012960
	for <tiff@lists.maptools.org>; Thu, 22 Dec 2011 10:34:39 -0700
Message-ID: <4EF36A25.3090104@cybox.com>
Date: Thu, 22 Dec 2011 10:34:29 -0700
From: Richard Nolde <richard.nolde@cybox.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US;
	rv:1.9.2.18) Gecko/20110621 Fedora/3.1.11-1.fc14 Thunderbird/3.1.11
MIME-Version: 1.0
To: tiff@lists.maptools.org
References: <mailman.1.1324573201.23243.tiff@lists.maptools.org>
In-Reply-To: <mailman.1.1324573201.23243.tiff@lists.maptools.org>
Subject: Re: [Tiff] Tiff Digest, Vol 91, Issue 5
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: richard.nolde@cybox.com
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 12/22/2011 10:00 AM, tiff-request@lists.maptools.org wrote:
>     4. Re: Proposed patch for ppm2tiff (Bob Friesenhahn)
Both tiffcp and tiffcrop support the same extended mode options for 
TIFFOpen using getopt parsing.

char  mode[10];
char *mp = mode;

     *mp++ = 'w';
     *mp = '\0';
...
       case 'a': mode[0] = 'a';    /* append to output */
         break;
       /* options for file open modes */
       case 'B': *mp++ = 'b'; *mp = '\0';
         break;
       case 'L': *mp++ = 'l'; *mp = '\0';
         break;
       case 'M': *mp++ = 'm'; *mp = '\0';
         break;
       case 'C': *mp++ = 'c'; *mp = '\0';
         break;

Once the mode options are set, the application does not do anything 
special as this seems to be handled entirely within the library.

Richard Nolde


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