Return-Path: <tiff-bounces@lists.osgeo.org>
Received: from mailgate208.isp.belgacom.be ([195.238.22.40])
          by mailfep028.skynet.be
          (InterMail vM.8.04.03.28.4 201-2389-100-182-103-20180124)
          with ESMTP
          id <20210117074344.HHCI11451.mailfep028.skynet.be@mailgate208.isp.belgacom.be>
          for <chris.lindelaan@skynet.be>; Sun, 17 Jan 2021 08:43:44 +0100
Authentication-Results: mx201.skynet.be; dkim=none (message not signed) header.i=none; spf=None smtp.pra=tiff-bounces@lists.osgeo.org; spf=Pass smtp.mailfrom=tiff-bounces@lists.osgeo.org; spf=Pass smtp.helo=postmaster@lists.osgeo.org
Received-SPF: None (mx201.skynet.be: no sender authenticity
  information available from domain of
  tiff-bounces@lists.osgeo.org) identity=pra;
  client-ip=140.211.15.3; receiver=mx201.skynet.be;
  envelope-from="tiff-bounces@lists.osgeo.org";
  x-sender="tiff-bounces@lists.osgeo.org";
  x-conformance=sidf_compatible
Received-SPF: Pass (mx201.skynet.be: domain of
  tiff-bounces@lists.osgeo.org designates 140.211.15.3 as
  permitted sender) identity=mailfrom; client-ip=140.211.15.3;
  receiver=mx201.skynet.be;
  envelope-from="tiff-bounces@lists.osgeo.org";
  x-sender="tiff-bounces@lists.osgeo.org";
  x-conformance=sidf_compatible; x-record-type="v=spf1";
  x-record-text="v=spf1 mx a:mail.osgeo.org a:lists.osgeo.org
  a:mail.osgeo.osuosl.org a:tracsvn.osgeo.osuosl.org -all"
Received-SPF: Pass (mx201.skynet.be: domain of
  postmaster@lists.osgeo.org designates 140.211.15.3 as
  permitted sender) identity=helo; client-ip=140.211.15.3;
  receiver=mx201.skynet.be;
  envelope-from="tiff-bounces@lists.osgeo.org";
  x-sender="postmaster@lists.osgeo.org";
  x-conformance=sidf_compatible; x-record-type="v=spf1";
  x-record-text="v=spf1 mx a:mail.osgeo.org a:lists.osgeo.org
  a:mail.osgeo.osuosl.org a:tracsvn.osgeo.osuosl.org -all"
X-Ironport-Dmarc-Check-Result: validskip
IronPort-SDR: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4PKTF6pRMEW3J+h4A9yTYChgHocdkFsy6u6?=
 =?us-ascii?q?1UzYuHn6byJTFettPMqJJAX46OcZvBaSdnakmMenacFgYOQD+1OHuKglwHyK?=
 =?us-ascii?q?jU7X6EqJUm7JLhy/9sAvdWUkI4EvQCBwFrBtsHdd1rXz0q1LSckcgD6GGWqB?=
 =?us-ascii?q?jKWN4cuYvIW/XUBu/gYmX87/EMd14TzLX0IJ5GfJX8wFBnY0JmkZ7iH0vLQc?=
 =?us-ascii?q?sLpTZuYwhyp19CuisbLCV7ywfubQWj52UWHPi/k0stiwdwVu8q8S/l/1Y9Il?=
 =?us-ascii?q?eZ7Dt1ikQ6ns/pxCyAaDOkZrnlRplYUmCn0ip5eoO+WQt+ahe+2FBpJCuRDa?=
 =?us-ascii?q?wElKNuLChumEfV655GGPoaSrZLbRhWwuuYL/x61VVHtj7hwlRI6OyDDoFt8W?=
 =?us-ascii?q?liOZf+qntB30Rkd9E4IurXP7dO1VwWgbiB9ib6yvo4yxQAIQAK62yff2gPo1?=
 =?us-ascii?q?EPLb1gIDCntqll7QjIwmoRSC03T/Mv58lS2AY4MuWEwTjn1ucceESwLPCEaa?=
 =?us-ascii?q?SCtGXH08mSTQFpjx9apwx+5bFzlPwbXQ+MTUl2k+mVFg8VLozFMg5YaIxV7n?=
 =?us-ascii?q?eBJX/T49WI+op8OsCGLs6tTeKKs/9L0EalBxoyWYMX4ckGWJ623xOBIA=3D?=
 =?us-ascii?q?=3D?=
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0GvAQCB6QNghwMP04xiHgEBCxIMQIN?=
 =?us-ascii?q?zGAFkWAEBHgMHN41DhwwGgTyCcIcsD5IGFwEBAgEBAQEBCRgLDAQBAQEBhjk?=
 =?us-ascii?q?fBgEENBMCAwEBAQMCBQEBAQQBAQECAQECAwICAQECEAEBAQENCwkIKSwGWgZ?=
 =?us-ascii?q?gBGIGWwSBbAwzDII4BQIDHwEGbYEHAQEBAQEBAQEBAQEBAQEBAQEBARYCDVR?=
 =?us-ascii?q?pAQICAQEBATcMCh4LAwIBAQIGAQEKEg8VBAQIAwELGAEhDgYTBYMhAYJVAwk?=
 =?us-ascii?q?FIAUKsCiBNIkJgT0GgTiNN0F5gQeDfC4+ghtCAQSHVQSCPoE3BlueBFebAVi?=
 =?us-ascii?q?CEHGJL4tDgVmFP6JqnzeCepNigW2Be001AzuCaU0BAgECDQIBAgMBAgICAQE?=
 =?us-ascii?q?CAgEBApcjhWIjAQExNwIGCgEBAwmLSIFtAQE?=
X-IPAS-Result: =?us-ascii?q?A0GvAQCB6QNghwMP04xiHgEBCxIMQINzGAFkWAEBHgMHN?=
 =?us-ascii?q?41DhwwGgTyCcIcsD5IGFwEBAgEBAQEBCRgLDAQBAQEBhjkfBgEENBMCAwEBA?=
 =?us-ascii?q?QMCBQEBAQQBAQECAQECAwICAQECEAEBAQENCwkIKSwGWgZgBGIGWwSBbAwzD?=
 =?us-ascii?q?II4BQIDHwEGbYEHAQEBAQEBAQEBAQEBAQEBAQEBARYCDVRpAQICAQEBATcMC?=
 =?us-ascii?q?h4LAwIBAQIGAQEKEg8VBAQIAwELGAEhDgYTBYMhAYJVAwkFIAUKsCiBNIkJg?=
 =?us-ascii?q?T0GgTiNN0F5gQeDfC4+ghtCAQSHVQSCPoE3BlueBFebAViCEHGJL4tDgVmFP?=
 =?us-ascii?q?6JqnzeCepNigW2Be001AzuCaU0BAgECDQIBAgMBAgICAQECAgEBApcjhWIjA?=
 =?us-ascii?q?QExNwIGCgEBAwmLSIFtAQE?=
X-MGA-submission: =?us-ascii?q?MDEuxa6xwHGY/cBMgQtlyzmlDDimqymosIF7UV?=
 =?us-ascii?q?9MVMjZYDnIwtaaZzortamgcb5hawuayDELTw3B1gKOWa6ppdHGmeLREx?=
 =?us-ascii?q?PyhFskO8cBNjI1aMHEZLDwT5pqq9je6TA8o6Q=3D?=
Received: from osgeo6.osgeo.osuosl.org (HELO lists.osgeo.org) ([140.211.15.3])
  by mx201.skynet.be with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 17 Jan 2021 08:42:21 +0100
Received: from osgeo6.osgeo.osuosl.org (localhost [127.0.0.1])
	by lists.osgeo.org (Postfix) with ESMTP id 3529A6145923;
	Sat, 16 Jan 2021 23:42:16 -0800 (PST)
X-Greylist: delayed 531 seconds by postgrey-1.35 at osgeo6;
 Sat, 16 Jan 2021 23:42:13 PST
Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130])
 by lists.osgeo.org (Postfix) with ESMTPS id D9A826145970
 for <tiff@lists.osgeo.org>; Sat, 16 Jan 2021 23:42:13 -0800 (PST)
Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1])
 by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 10H7XJiT188125;
 Sun, 17 Jan 2021 02:33:19 -0500
From: Tom Lane <tgl@sss.pgh.pa.us>
To: William Bader <williambader@hotmail.com>
cc: Tiff List <tiff@lists.osgeo.org>
In-reply-to: <DB6PR0201MB247145994F5A20EFFCD6613DC4A50@DB6PR0201MB2471.eurprd02.prod.outlook.com>
References: <CACmBxyvJLY_x9g+7qdBHvNHMBr3NXknUF9DG54KsBan8RfnWzg@mail.gmail.com>
 <CAEZ8u0nf93o1T8J8PdciM_svHfPx4zeuGVaTkz_Z1tO4Zug2-g@mail.gmail.com>,
 <alpine.GSO.2.20.2101160849120.14430@scrappy.simplesystems.org>
 <DB6PR0201MB247145994F5A20EFFCD6613DC4A50@DB6PR0201MB2471.eurprd02.prod.outlook.com>
Comments: In-reply-to William Bader <williambader@hotmail.com>
 message dated "Sun, 17 Jan 2021 06:49:03 +0000"
MIME-Version: 1.0
Content-ID: <188123.1610868799.1@sss.pgh.pa.us>
Date: Sun, 17 Jan 2021 02:33:19 -0500
Message-ID: <188124.1610868799@sss.pgh.pa.us>
Subject: Re: [Tiff] MergeRequest for discussion code style
X-BeenThere: tiff@lists.osgeo.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.osgeo.org>
List-Unsubscribe: <https://lists.osgeo.org/mailman/options/tiff>,
 <mailto:tiff-request@lists.osgeo.org?subject=unsubscribe>
List-Post: <mailto:tiff@lists.osgeo.org>
List-Help: <mailto:tiff-request@lists.osgeo.org?subject=help>
List-Subscribe: <https://lists.osgeo.org/mailman/listinfo/tiff>,
 <mailto:tiff-request@lists.osgeo.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: tiff-bounces@lists.osgeo.org
Sender: "Tiff" <tiff-bounces@lists.osgeo.org>

William Bader <williambader@hotmail.com> writes:
> Is ssize_t guaranteed to hold negative values other than -1?

The POSIX spec for <sys/types.h> quoth

    The type ssize_t shall be capable of storing values at least in the
    range [-1, {SSIZE_MAX}].

so, per spec, no it isn't.  However, that's just specs gamesmanship,
because there is no hardware architecture anywhere in which a signed
datatype doesn't have approximately-equal positive and negative limits.
There are way more valuable ways to spend your time than pretending
your code might have to run on a system where that isn't the case.

However, as noted upthread, POSIX does *not* guarantee that ssize_t
is of the same bit-width as size_t.  So you do have to be really
careful what you use it for.  32-bit ssize_t along with 64-bit
size_t seems to be entirely spec-compliant.

> Is intmax_t a better option than intptr_t? Back in 16 bit 8086 MSDOS days, you could have small model code with 16 bit pointers but 32 bit longs.

Depends what you want to use it for.  intptr_t should be at least
as wide as either pointers or size_t, AFAICS.

			regards, tom lane
_______________________________________________
Tiff mailing list
Tiff@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/tiff
