* fhandler_mem.cc: Eliminate unused include statements.
(fhandler_dev_mem::fhandler_dev_mem): Check for 9X/ME.
This commit is contained in:
parent
42f1b6c544
commit
21fdffa58a
@ -1,3 +1,8 @@
|
|||||||
|
Mon Oct 9 15:58:00 2000 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* fhandler_mem.cc: Eliminate unused include statements.
|
||||||
|
(fhandler_dev_mem::fhandler_dev_mem): Check for 9X/ME.
|
||||||
|
|
||||||
Mon Oct 9 15:11:00 2000 Corinna Vinschen <corinna@vinschen.de>
|
Mon Oct 9 15:11:00 2000 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* fhandler.h (fhandler_dev_mem): Erase member `init_phase' and
|
* fhandler.h (fhandler_dev_mem): Erase member `init_phase' and
|
||||||
|
@ -9,7 +9,6 @@
|
|||||||
details. */
|
details. */
|
||||||
|
|
||||||
#include "winsup.h"
|
#include "winsup.h"
|
||||||
#include <sys/termios.h>
|
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
@ -17,10 +16,8 @@
|
|||||||
#include <ntdef.h>
|
#include <ntdef.h>
|
||||||
|
|
||||||
#include "autoload.h"
|
#include "autoload.h"
|
||||||
#include "cygheap.h"
|
|
||||||
#include "cygerrno.h"
|
#include "cygerrno.h"
|
||||||
#include "fhandler.h"
|
#include "fhandler.h"
|
||||||
#include "path.h"
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The following both data structures aren't defined anywhere in the Microsoft
|
* The following both data structures aren't defined anywhere in the Microsoft
|
||||||
@ -65,6 +62,13 @@ fhandler_dev_mem::fhandler_dev_mem (const char *name, int nunit)
|
|||||||
: fhandler_base (FH_MEM, name),
|
: fhandler_base (FH_MEM, name),
|
||||||
unit (nunit)
|
unit (nunit)
|
||||||
{
|
{
|
||||||
|
/* Reading physical memory only supported on NT/W2K. */
|
||||||
|
if (os_being_run != winNT)
|
||||||
|
{
|
||||||
|
mem_size = 0;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (unit == 1) /* /dev/mem */
|
if (unit == 1) /* /dev/mem */
|
||||||
{
|
{
|
||||||
NTSTATUS ret;
|
NTSTATUS ret;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user