delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2026/09/09/12:27:48

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 689GRb4r2091422
Authentication-Results: delorie.com; dmarc=none (p=none dis=none) header.from=delorie.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=delorie.com
X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 689GRaGa2091403
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=gmail.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=gmail.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 689GRaGa2091403
Authentication-Results: delorie.com;
dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104 header.b=T2+uwmBt
X-Recipient: djgpp AT delorie DOT com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20251104; t=1788971255; x=1789576055; darn=delorie.com;
h=content-transfer-encoding:content-type:subject:from:to
:content-language:user-agent:mime-version:date:message-id:from:to:cc
:subject:date:message-id:reply-to:content-type;
bh=f75sD4GgBd+EmBkMR6P/Vy/HmxIb5NJJH8RJxO696Go=;
b=T2+uwmBtFvHcL9SN9nCxDmzOYLbzuHbD7LEe4G5DhbWPxEq5gJPBwjN3fdYVLK2jLn
d/L36v+ak464yyIb+4DlgZDBH9hIiG1tXDN26FKRyHDvz4CJ/24AOr/P5/8VIwE3YYVg
Qufeu1wQfG6HFcdMuHi5Tq3tb3qB/YKIxVkRKBsrFls/hb2SSXMN/pg6LEIjIFtM9lpC
uLCSm1oTZjY0dAZeEiFT6HqCJpxiB02f82xMmF9YExv1glfLzTUGhat9xy5qc3FmQDhQ
KTRgX+XtSLqkaOhuGxyVi4WHOdk58hro1QUFHrm6IkzYp6t49Y28NJDd4IS1gSGal+BB
NrgQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20251104; t=1788971255; x=1789576055;
h=content-transfer-encoding:content-type:subject:from:to
:content-language:user-agent:mime-version:date:message-id:x-gm-gg
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=f75sD4GgBd+EmBkMR6P/Vy/HmxIb5NJJH8RJxO696Go=;
b=lJHWk/OwBlzrI4naGEYJ7ICZUtpiibD6SyUBA+knrq3ekjRZynrW7spLDzjvL9JH8P
RvI3WlMp8rAa9YuU+zIdG40h+dDUci+7I17THb7AbqFqF4GwAFNJWQ46xENATf5tsq2/
5nhNahy2MI9TR+ZtJrEJ/3flhH75Fm18pCX0Z/YCQFvbQF+3UKvQSGBHCqiqHGys3Jwf
pWRAYssmo0Ep0XhoW5Wf0jKv8+cZAaP798e4onk0L/4CK1Zna6EFHOJVGdYoM2dAaGf4
RJmZgeDzoxS576sjrwRRu8WXRfBdNxwaAmtOXG1EfmrQ6qw4a33OoppNSs6gCtBD2nh7
nvQQ==
X-Gm-Message-State: AFuF++mVmDtASPXH+QXHIvN0xJOccJbI8VQeaKD7ADGZmOhFtvbkCI4E
3HNAC0V/tFLVSKTh1rh+Tyja0X5zyHm4C7jCu8muNH5X0sMJ973KivQ4tPdBOZZB
X-Gm-Gg: AYBFou2MbKZdmBAw9n/rnphMY/0sIR9UmENWqWxuq2CwD95PhMh3e7xjBc+UBnS25dW
ndpUV+Ye1JJTtTtbjGLAXAg30XFpimAPaBYJq+PcVAJdmXNfC/3OvvjDPbgS+FgSqZvTmzWcR1s
3aFazHGfaGgGZ0yg/+OOFq3+mm5l8Xz2DelrcQBXnR+wOJSDeVx5fqg/0olR9CpQy0wqaDK7ZXU
uU8OAClEwm9D7ohFw3zEpQ5BILt/35UyBzdm+wpkLVmmYLQXgMDdEfaUUtxQke4CAMsrwJ6mnsC
6PPR4BmF6W0Iq1pEqEBwdz9dgf00+F03IJONOYSaBpURJAfRqROX22Kv3HqztyQuXyOElDXbdld
1zQFbScta/EDHAXmz8vcKurd52/CVnyH2dzhlzCJDCa8RVzFCWx2lEgVXSg5rymZl6BOsm3oYbC
00EVrF2BsI/EmYOf+Or9GDcehA3FEa0h+EsPp5d7u8gDlqTNJNp7BEBn+iZj8uCr2NM2ZAMlRRP
t6nMV9kQHY4up0RnwAU5g0NFxOC7YwVIArKCAo0jxuSnHOt1lBm9e154RIq2QE=
X-Received: by 2002:a05:6a00:3386:b0:857:7384:b5f6 with SMTP id d2e1a72fcca58-86947e16bffmr3484190b3a.18.1788971249338;
Wed, 09 Sep 2026 09:27:29 -0700 (PDT)
Message-ID: <f4f9a047-cd76-4dac-97ce-ad718b0bc41a@gmail.com>
Date: Wed, 9 Sep 2026 12:27:27 -0400
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
To: djgpp AT delorie DOT com
From: "Frank Sapone (emoaddict15 AT gmail DOT com) [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com>
Subject: _go32_dpmi_meminfo libc reference errata?
Reply-To: djgpp AT delorie DOT com

I was running some code with -Wall -Wextra and I was using the example 
phys_mem_left() code in your documentaiton for _go32_dpmi_meminfo 
located at http://www.delorie.com/djgpp/doc/libc/libc_438.html

In here it mentions "The only field that is guaranteed to have useful 
data is available_memory. Any unavailable field has -1 in it.".  The 
compiler complained on this line from example code: if 
(info.available_physical_pages != -1)

This makes sense because they are u_long's so therefore they cannot have 
negative values in them.  I imagine that you want to check != 0 or is 
the example completely incorrect?

Frank

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2026   by DJ Delorie     Updated Sep 20 2026