summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler.h
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowi@redhat.com>2011-04-01 19:48:19 +0000
committerYaakov Selkowitz <yselkowi@redhat.com>2011-04-01 19:48:19 +0000
commitd68288f697fae3c3cebe1cfa4780b467cf85f13c (patch)
treeedc0ed9c2195cec2cd2545ff4b8fd33d1e7d6ff2 /winsup/cygwin/fhandler.h
parente974e7a0830c44b7308ad6b754b83c72425ddc9d (diff)
downloadcygnal-d68288f697fae3c3cebe1cfa4780b467cf85f13c.tar.gz
cygnal-d68288f697fae3c3cebe1cfa4780b467cf85f13c.tar.bz2
cygnal-d68288f697fae3c3cebe1cfa4780b467cf85f13c.zip
Implement /proc/sysvipc/*
* devices.in (dev_procsysvipc_storage): Add. * devices.cc: Regenerate. * devices.h (fh_devices): Add FH_PROCSYSVIPC. * dtable.cc (build_fh_pc): Add case FH_PROCSYSVIPC. * fhandler.h (class fhandler_procsysvipc): Declare. (fhandler_union): Add __procsysvipc. * fhandler_proc.cc (proc_tab): Add sysvipc virt_directory. * fhandler_procsysvipc.cc: New file. * Makefile.in (DLL_OFILES): Add fhandler_procsysvipc.o. * path.h (isproc_dev): Add FH_PROCSYSVIPC to conditional.
Diffstat (limited to 'winsup/cygwin/fhandler.h')
-rw-r--r--winsup/cygwin/fhandler.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h
index f223a1151..b833d7133 100644
--- a/winsup/cygwin/fhandler.h
+++ b/winsup/cygwin/fhandler.h
@@ -1419,6 +1419,18 @@ class fhandler_procsys: public fhandler_virtual
bool fill_filebuf ();
};
+class fhandler_procsysvipc: public fhandler_proc
+{
+ pid_t pid;
+ public:
+ fhandler_procsysvipc ();
+ virtual_ftype_t exists();
+ int readdir (DIR *, dirent *) __attribute__ ((regparm (3)));
+ int open (int flags, mode_t mode = 0);
+ int __stdcall fstat (struct __stat64 *buf) __attribute__ ((regparm (2)));
+ bool fill_filebuf ();
+};
+
class fhandler_netdrive: public fhandler_virtual
{
public:
@@ -1517,6 +1529,7 @@ typedef union
char __process[sizeof (fhandler_process)];
char __procnet[sizeof (fhandler_procnet)];
char __procsys[sizeof (fhandler_procsys)];
+ char __procsysvipc[sizeof (fhandler_procsysvipc)];
char __pty_master[sizeof (fhandler_pty_master)];
char __registry[sizeof (fhandler_registry)];
char __serial[sizeof (fhandler_serial)];