* Makefile.in: Add fhandler_mem.o to the dependencies.

* dtable.cc (dtable::build_fhandler): Add case for FH_MEM.
        * fhandler.h: Add FH_MEM device type.  Add class fhandler_dev_mem.
        * fhandler_mem.cc: New file. Implementation of class fhandler_dev_mem.
        * path.cc: Add /dev/mem to windows_device_names.
        (get_device_number): Add FH_MEM type.
This commit is contained in:
Corinna Vinschen
2000-10-01 01:02:40 +00:00
parent a5e8da40eb
commit 51c22a5c86
6 changed files with 300 additions and 2 deletions

View File

@@ -296,6 +296,9 @@ dtable::build_fhandler (int fd, DWORD dev, const char *name, int unit)
case FH_RANDOM:
fh = new (buf) fhandler_dev_random (name, unit);
break;
case FH_MEM:
fh = new (buf) fhandler_dev_mem (name, unit);
break;
default:
/* FIXME - this could recurse forever */
return build_fhandler (fd, name, NULL);