delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/01/26/16:27:03

Message-Id: <3.0.1.32.19980126152935.007f56c0@yacker.xiotech.com>
Date: Mon, 26 Jan 1998 15:29:35 -0600
To: djgpp-workers AT delorie DOT com
From: Randy Maas <randym AT acm DOT org>
Subject: sysconf.txh patch
Mime-Version: 1.0

--=====================_885871775==_
Content-Type: text/plain; charset="us-ascii"

Here is the patch for the .txh file.

As a side note: what this function does is pretty simple, but I think that
it becomes a little hard to understand from the docs (especially if it gets
as complicated as the unix versions).

I propose a slightly different format using @multitable, a command that
allows several columns to be used.  I believe something similar to this was
discussed a couple of months ago, but texi2html didn't support it then.
texi2html v1.52 does support it now. 

The table for sysconf() actions would be something like:

"value for which"	"Value or Macro it returns"	 "Description of what it means"


Randy
--=====================_885871775==_
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: attachment; filename="sysconf-txh.dif"

*** src/libc/posix/unistd/sysconf.txh~1	Thu Jan  1 22:14:36 1998
--- src/libc/posix/unistd/sysconf.txh	Mon Jan 26 14:30:12 1998
***************
*** 24,27 ****
--- 24,29 ----
    case _SC_TZNAME_MAX:	return TZNAME_MAX;
    case _SC_VERSION:	return _POSIX_VERSION;
+   case _SC_PHYS_PAGES:  return info.total_number_of_physical_pages;
+   case _SC_AVPHYS_PAGES: return _go32_dpmi_remaining_physical_memory()/4096;
  @end example
  

--=====================_885871775==_
Content-Type: text/plain; charset="us-ascii"



--=====================_885871775==_--

- Raw text -


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