summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler_proc.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-12-18 16:37:44 +0000
committerChristopher Faylor <me@cgf.cx>2004-12-18 16:37:44 +0000
commitb25e8b65c27642806ba9f6cc6a75373bdc17c337 (patch)
treeed6cc0986ad588a76f402a80eff9b8f82647826e /winsup/cygwin/fhandler_proc.cc
parenta9c42bde0b7455de5d6882264efb7e96a3781678 (diff)
downloadcygnal-b25e8b65c27642806ba9f6cc6a75373bdc17c337.tar.gz
cygnal-b25e8b65c27642806ba9f6cc6a75373bdc17c337.tar.bz2
cygnal-b25e8b65c27642806ba9f6cc6a75373bdc17c337.zip
* fhandler_proc.cc (proc_listing): Add entry for "self".
(proc_fhandlers): Add entry for "self". * fhandler_process.cc (fhandler_process::fstate): Handle "self". (fhandler_process::open): Handle "self".
Diffstat (limited to 'winsup/cygwin/fhandler_proc.cc')
-rw-r--r--winsup/cygwin/fhandler_proc.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler_proc.cc b/winsup/cygwin/fhandler_proc.cc
index 0443240d2..8e94092df 100644
--- a/winsup/cygwin/fhandler_proc.cc
+++ b/winsup/cygwin/fhandler_proc.cc
@@ -54,6 +54,7 @@ static const char *proc_listing[] = {
"uptime",
"cpuinfo",
"partitions",
+ "self",
NULL
};
@@ -73,6 +74,7 @@ static const DWORD proc_fhandlers[PROC_LINK_COUNT] = {
FH_PROC,
FH_PROC,
FH_PROC,
+ FH_PROCESS,
};
/* name of the /proc filesystem */