Go to the first, previous, next, last section, table of contents.
#include <dpmi.h> int __dpmi_set_page_attributes(__dpmi_meminfo *info, short *buffer);
Please refer to section DPMI Specification for details on DPMI function call operation. Also see section DPMI Overview for general information.
DPMI function AX = 0x0507 (DPMI 1.0 only). Supported by CWSDPMI, but not by Windows.
This function sets attributes of a number of pages. Pass handle in
info->handle
, offset within block in
info->address
, and number of pages in
info->count
. buffer points to an array of 16-bit
words which specify the new attributes.
See section __dpmi_get_page_attributes, for the definition of the page
attribute word.
The DJGPP startup code calls this function to uncommit the so-called
null page, the first 4KB of the program's address space. This
causes NULL
pointer dereferences, a frequent programmatic error,
to trigger a Page Fault exception, rather than go unnoticed.
-1 on error, else zero.
not ANSI, not POSIX
Go to the first, previous, next, last section, table of contents.