summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/syscalls.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2007-01-17 19:26:58 +0000
committerCorinna Vinschen <corinna@vinschen.de>2007-01-17 19:26:58 +0000
commit96d7dee2f0ae6f69124d2cd2f495e93135dbb741 (patch)
treed08fe91a382b48eb6fb11e3559a6466c5cd53c16 /winsup/cygwin/syscalls.cc
parent12ffdde350a85a5bbdfac74dad9a3732ca136088 (diff)
downloadcygnal-96d7dee2f0ae6f69124d2cd2f495e93135dbb741.tar.gz
cygnal-96d7dee2f0ae6f69124d2cd2f495e93135dbb741.tar.bz2
cygnal-96d7dee2f0ae6f69124d2cd2f495e93135dbb741.zip
* 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.
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r--winsup/cygwin/syscalls.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc
index 982e19589..85a43818d 100644
--- a/winsup/cygwin/syscalls.cc
+++ b/winsup/cygwin/syscalls.cc
@@ -343,8 +343,8 @@ unlink (const char *ourname)
goto done;
}
- if ((devn = win32_name.get_devn ()) == FH_PROC || devn == FH_REGISTRY
- || devn == FH_PROCESS)
+ devn = win32_name.get_devn ();
+ if (isproc_dev (devn))
{
set_errno (EROFS);
goto done;