diff options
author | Christopher Faylor <me@cgf.cx> | 2002-06-02 06:07:01 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-06-02 06:07:01 +0000 |
commit | 6b7cd251c7f03394208d65451ef1bed91905026f (patch) | |
tree | a1f5cce168c59296346c1c632293e56f7db7e544 /winsup/cygwin/fhandler.h | |
parent | a673eba664bf26888ba73f2508227cc7b2c36d44 (diff) | |
download | cygnal-6b7cd251c7f03394208d65451ef1bed91905026f.tar.gz cygnal-6b7cd251c7f03394208d65451ef1bed91905026f.tar.bz2 cygnal-6b7cd251c7f03394208d65451ef1bed91905026f.zip |
Remove unneeded sigproc.h includes throughout.
* fhandler.h (fhandler_proc::fill_filebuf): Take a pinfo argument.
* fhandler_proc.cc (fhandler_proc::get_proc_fhandler): Simplify search for
given pid.
(fhandler_proc::readdir): Assume that pid exists if it shows up in the winpid
list.
* fhandler_process.cc (fhandler_process::open): Simplify search for given pid.
Call fill_filebuf with pinfo argument.
(fhandler_process::fill_filebuf): Pass pinfo here and assume that it exists.
* pinfo.h (pinfo::remember): Define differently if sigproc.h is not included.
* dll_init.cc (dll_list::detach): Don't run destructor on exit.
Diffstat (limited to 'winsup/cygwin/fhandler.h')
-rw-r--r-- | winsup/cygwin/fhandler.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h index 31b540619..c5e17b101 100644 --- a/winsup/cygwin/fhandler.h +++ b/winsup/cygwin/fhandler.h @@ -1091,6 +1091,7 @@ class fhandler_proc: public fhandler_virtual void fill_filebuf (); }; +class pinfo; class fhandler_registry: public fhandler_proc { public: @@ -1111,16 +1112,13 @@ class fhandler_registry: public fhandler_proc struct _pinfo; class fhandler_process: public fhandler_proc { - private: - pid_t saved_pid; - _pinfo *saved_p; public: fhandler_process (); int exists(); struct dirent *readdir (DIR *); int open (path_conv *real_path, int flags, mode_t mode = 0); int __stdcall fstat (struct __stat64 *buf, path_conv *) __attribute__ ((regparm (3))); - void fill_filebuf (); + void fill_filebuf (pinfo& p); }; typedef union |