* Makefile.in (DLL_OFILES): Add fhandler_procnet.o.
* autoload.cc (GetAdaptersAddresses): Define. * devices.h (FH_PROCNET): Define new device. * devices.in (dev_procnet_storage): Add "/proc/net" entry. * devices.cc: Regenerate. * dir.cc (readdir_worker): Use isproc_dev macro. * dtable.cc (build_fh_pc): Add FH_PROCNET. * fhandler.h (class fhandler_procnet): New class. * fhandler_proc.cc: Add "net" subdirectory handling. * fhandler_procnet.cc: New file handling "/proc/net" directory. * path.cc (isvirtual_dev): Move to path.h. * path.h (isproc_dev): New macro to identify /proc files by device. (isvirtual_dev): Moved here. Define using isproc_dev. * syscalls.cc (unlink): Use isproc_dev macro. * wincap.h (wincapc::has_gaa_prefixes): New element. (wincapc::has_gaa_on_link_prefix): New element. * wincap.cc: Implement above elements throughout. (wincapc::init): Check XP for service pack and set has_gaa_prefixes appropriately. * include/cygwin/in6.h: Include asm/byteorder.h.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/* fhandler_proc.cc: fhandler for /proc virtual filesystem
|
||||
|
||||
Copyright 2002, 2003, 2004, 2005, 2006 Red Hat, Inc.
|
||||
Copyright 2002, 2003, 2004, 2005, 2006, 2007 Red Hat, Inc.
|
||||
|
||||
This file is part of Cygwin.
|
||||
|
||||
@@ -44,6 +44,7 @@ static const int PROC_PARTITIONS = 9; // /proc/partitions
|
||||
static const int PROC_SELF = 10; // /proc/self
|
||||
static const int PROC_REGISTRY32 = 11; // /proc/registry32
|
||||
static const int PROC_REGISTRY64 = 12; // /proc/registry64
|
||||
static const int PROC_NET = 13; // /proc/net
|
||||
|
||||
/* names of objects in /proc */
|
||||
static const char *proc_listing[] = {
|
||||
@@ -60,6 +61,7 @@ static const char *proc_listing[] = {
|
||||
"self",
|
||||
"registry32",
|
||||
"registry64",
|
||||
"net",
|
||||
NULL
|
||||
};
|
||||
|
||||
@@ -82,6 +84,7 @@ static const DWORD proc_fhandlers[PROC_LINK_COUNT] = {
|
||||
FH_PROC,
|
||||
FH_REGISTRY,
|
||||
FH_REGISTRY,
|
||||
FH_PROCNET,
|
||||
};
|
||||
|
||||
/* name of the /proc filesystem */
|
||||
|
Reference in New Issue
Block a user