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.
This commit is contained in:
@ -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)];
|
||||
|
Reference in New Issue
Block a user