summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/devices.h
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2009-01-20 17:22:11 +0000
committerCorinna Vinschen <corinna@vinschen.de>2009-01-20 17:22:11 +0000
commit38f50ae4d555fca2b1b976d7802c6abdfe1e72dd (patch)
treef6c7bd4c3a30988fda39279c1f018be634cb0b6f /winsup/cygwin/devices.h
parentf8190b57056cc10ec0da28b0685ec6fe59b1e4cb (diff)
downloadcygnal-38f50ae4d555fca2b1b976d7802c6abdfe1e72dd.tar.gz
cygnal-38f50ae4d555fca2b1b976d7802c6abdfe1e72dd.tar.bz2
cygnal-38f50ae4d555fca2b1b976d7802c6abdfe1e72dd.zip
* devices.h (FH_PROCESSFD): New device type.
* dtable.cc (build_fh_pc): Add case for FH_PROCESSFD. * fhandler.h (class fhandler_virtual): Drop bufalloc member. * fhandler_virtual.h: New header. * fhandler_proc.cc: Remove types proc_type_t and proc_tab_t in favor of types virt_type_t and virt_tab_t from fhandler_virtual.h. Change prototypes of format_XXX functions accordingly. (proc_tab): Drop size member info. (fhandler_proc::fill_filebuf): Don't allocate filebuf here. Allocate it in the format_XXX functions. * fhandler_process.cc: Reorganize global process content data into a new struct virt_tab_t. Accommodate throughout. (format_process_winexename): New function. (format_process_winpid): New function. (format_process_exename): New function. (format_process_root): New function. (format_process_cwd): New function. (format_process_cmdline): New function. (format_process_ppid): New function. (format_process_uid): New function. (format_process_pgid): New function. (format_process_sid): New function. (format_process_gid): New function. (format_process_ctty): New function. (format_process_fd): New function. * fhandler_procnet.cc (fhandler_procnet::fill_filebuf): Don't use bufalloc. * fhandler_registry.cc (fhandler_registry::fill_filebuf): Define bufalloc locally. * fhandler_virtual.cc (fhandler_virtual::fhandler_virtual): Drop initialization of bufalloc. (fhandler_virtual::dup): Drop copying bufalloc.
Diffstat (limited to 'winsup/cygwin/devices.h')
-rw-r--r--winsup/cygwin/devices.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/devices.h b/winsup/cygwin/devices.h
index 9c8efa325..d1a76a4ff 100644
--- a/winsup/cygwin/devices.h
+++ b/winsup/cygwin/devices.h
@@ -52,6 +52,7 @@ enum fh_devices
FH_NETDRIVE= FHDEV (0, 246),
FH_DEV = FHDEV (0, 245),
FH_PROCNET = FHDEV (0, 244),
+ FH_PROCESSFD = FHDEV (0, 243),
DEV_FLOPPY_MAJOR = 2,
FH_FLOPPY = FHDEV (DEV_FLOPPY_MAJOR, 0),