delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/01/26/18:48:09

Date: Mon, 26 Jan 1998 18:47:31 -0500 (EST)
Message-Id: <199801262347.SAA27788@delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: randym AT acm DOT org
CC: djgpp-workers AT delorie DOT com
In-reply-to: <3.0.1.32.19980126152809.007ea690@yacker.xiotech.com> (message
from Randy Maas on Mon, 26 Jan 1998 15:28:09 -0600)
Subject: Re: sysconf.c patch

> I've attached a patch to sysconf() that extends its functionality a little
> bit.  It now returns information for _SC_PHYS_PAGES (the number of system
> physical pages) and the _SC_AVPHYS_PAGES (the number of physical pages
> available).
> 
> Why? I don't actually need the info for anything (atleast not yet).
> However I believe that making sysconf() more complete will inspire more
> people to use it instead of __dpmi_* and _go32_ calls -- leading to more
> portable code, which is a good thing.

Neither of these constants are POSIX nor are they available on other
Unix systems.  Adding them will not improve the portability of code
using them, and may in fact confuse programmers about their
portability status.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019