* fhandler.h (fhandler_proc::opendir): Declare.

(fhandler_proc::closedir): Declare.
	* fhandler_proc.cc (fhandler_proc::opendir): New method.  Fetch list
	of active processes here once to avoid potential duplicates.
	(fhandler_proc::closedir): New method.
This commit is contained in:
Corinna Vinschen
2011-08-12 12:31:08 +00:00
parent 6e2c582323
commit 1f08558f14
3 changed files with 31 additions and 1 deletions

View File

@ -1440,6 +1440,8 @@ class fhandler_proc: public fhandler_virtual
public:
fhandler_proc ();
virtual_ftype_t exists();
DIR *opendir (int fd) __attribute__ ((regparm (2)));
int closedir (DIR *);
int readdir (DIR *, dirent *) __attribute__ ((regparm (3)));
static fh_devices get_proc_fhandler (const char *path);