From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 7665 invoked from network); 21 Sep 2020 05:59:40 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 21 Sep 2020 05:59:40 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id B72219CBD9; Mon, 21 Sep 2020 15:59:36 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 97E52940FD; Mon, 21 Sep 2020 15:59:19 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=bsdimp-com.20150623.gappssmtp.com header.i=@bsdimp-com.20150623.gappssmtp.com header.b="n/T7lAA8"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id 99E36940FD; Mon, 21 Sep 2020 15:59:15 +1000 (AEST) Received: from mail-qt1-f181.google.com (mail-qt1-f181.google.com [209.85.160.181]) by minnie.tuhs.org (Postfix) with ESMTPS id AA9FC93F5B for ; Mon, 21 Sep 2020 15:59:14 +1000 (AEST) Received: by mail-qt1-f181.google.com with SMTP id n18so11350676qtw.0 for ; Sun, 20 Sep 2020 22:59:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SpblXz0cAW86kIUQc8KG93PdADVX9FcWcJpcAOKxZlE=; b=n/T7lAA8gWvoEiH6gaYmLzqMJs2idUa78Xi7TXY9TTXe3Pph3cwBdltUqa4fxdRchp B7DNUKgNq81wQJiHtaWIQqpPByjJ0o6OrVX39EZpQ+B+coqauVw/xWwC7DW05QVSzhdp sraWiIQ20nlKSsqqYpl9ABj5qgRKch/Yx3a6qab95ixJpfN8YyJurSNddtMK9orm7NPY vFKZVrSk68EkI98cIkI7xXr1nPWmP4MVpPjKKRb7CkXwmY6OJhrzSueemZ0Vx2yQ2hCu Z9WhlIcVsIjz9wSKgN4IVYNMbM/c1W1cGRVV+VLLq6GDGP5CQDBHs4X/Wm+KzP+LNk9R nGog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SpblXz0cAW86kIUQc8KG93PdADVX9FcWcJpcAOKxZlE=; b=MVmIsG1ut+e7OotnbfG3cSfgp8J0ccIfHf6Qu3bo2/7fO753vP+UFqr0GFh/+9S3gW mGxaU8BvNpWyG9ywwHJWqwh0L84ZoUXdE9wDkuaGlEKY7Lu8DwU9SofgVmbMJMGTG2Kc 204MzF/PA2V3mr3KSofPOJA4YgBcSv/Ly0U1JZWqbdE/AvCPlVLhguxTgUOkv9JYP8sb IINnRTvczg4kZxfQEOkUOwmhawbycl1Vu6QrU6X8I4WIbj8fy4W8H39K9aru5HQII1/+ xdK92NPvYz+mf+cj0xFj4S3v2U0gOvnDbDh0rYG5KYOT9IXnKufL6qRHKanUtRFZi4RN jOpw== X-Gm-Message-State: AOAM532ZlZR7zFqrFJ7MW4Jmjoo1lWTCxGP68fap9xNnaZQHMhm8h6j7 jscsno/QeVd6nrr+48+565LGmEHrPweppA/8W2p5wA== X-Google-Smtp-Source: ABdhPJxmwfYjHCAVVFDN7/mZX/YpjneeLLGWQkx/DqXB3JOz72urkMjTT/KqfCSwcBhQLt9kr+ELR9wT/BTbNK3P5+Q= X-Received: by 2002:ac8:4548:: with SMTP id z8mr45322984qtn.291.1600667953611; Sun, 20 Sep 2020 22:59:13 -0700 (PDT) MIME-Version: 1.0 References: <20200920230057.C5D1A4422E@lignose.oclsc.org> In-Reply-To: From: Warner Losh Date: Sun, 20 Sep 2020 23:59:01 -0600 Message-ID: To: Steve Nickolas Content-Type: multipart/alternative; boundary="000000000000c75b3705afcc8ce6" Subject: Re: [TUHS] reviving a bit of WWB X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: The Eunuchs Hysterical Society Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" --000000000000c75b3705afcc8ce6 Content-Type: text/plain; charset="UTF-8" On Sun, Sep 20, 2020, 11:55 PM Steve Nickolas wrote: > On Sun, 20 Sep 2020, Warner Losh wrote: > > > 0 is fine if sizeof(int) == sizeof(void *). Otherwise varadic function > > calls break. > > I've never written anything that uses varargs, so I've never run into > that. But I've actually done quite a bit of work with an environment > where this isn't true: MS-DOS using the large or huge model. In this > environment, sizeof(int)=2, and sizeof(void*) is 4. > Sizeof(int) == 4 and sizeof(void *) == 8 on LP64 platforms too... Warner > --000000000000c75b3705afcc8ce6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Sun, Sep 20, 2020, 11:55 PM Steve Nickolas <usotsuki@buric.co> wrote:
=
On Sun, 20 Sep 2020, Warner Losh wrote:

> 0 is fine if sizeof(int) =3D=3D sizeof(void *). Otherwise varadic func= tion
> calls break.

I've never written anything that uses varargs, so I've never run in= to
that.=C2=A0 But I've actually done quite a bit of work with an environm= ent
where this isn't true: MS-DOS using the large or huge model.=C2=A0 In t= his
environment, sizeof(int)=3D2, and sizeof(void*) is 4.

Sizeof(int) =3D=3D 4 a= nd sizeof(void *) =3D=3D 8 on LP64 platforms too...
=
Warner
--000000000000c75b3705afcc8ce6--