mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-18 12:29:32 +08:00
* fhandler.h (fhandler_base::close_with_arch): Make non-virtual.
(fhandler_base::open_fs): Move closer to it's close counterpart.
This commit is contained in:
parent
f4c566233f
commit
c395d22876
@ -1,3 +1,8 @@
|
||||
2011-05-06 Christopher Faylor <me.cygwin2011@cgf.cx>
|
||||
|
||||
* fhandler.h (fhandler_base::close_with_arch): Make non-virtual.
|
||||
(fhandler_base::open_fs): Move closer to it's close counterpart.
|
||||
|
||||
2011-05-06 Christopher Faylor <me.cygwin2011@cgf.cx>
|
||||
|
||||
* fhandler.cc (fhandler_base::dup): Avoid duping a handle when an
|
||||
|
@ -299,8 +299,7 @@ class fhandler_base
|
||||
virtual int open (int, mode_t);
|
||||
virtual void open_setup (int flags) { return; }
|
||||
|
||||
int open_fs (int, mode_t = 0);
|
||||
virtual int close_with_arch ();
|
||||
int close_with_arch ();
|
||||
virtual int close ();
|
||||
virtual void cleanup () { return; }
|
||||
int _archetype_usecount (const char *fn, int ln, int n)
|
||||
@ -312,6 +311,8 @@ class fhandler_base
|
||||
strace.prntf (_STRACE_ALL, fn, "line %d: %s<%p> usecount + %d = %d", ln, get_name (), archetype, n, archetype->usecount);
|
||||
return archetype->usecount;
|
||||
}
|
||||
|
||||
int open_fs (int, mode_t = 0);
|
||||
# define archetype_usecount(n) _archetype_usecount (__PRETTY_FUNCTION__, __LINE__, (n))
|
||||
int close_fs () { return fhandler_base::close (); }
|
||||
virtual int __stdcall fstat (struct __stat64 *buf) __attribute__ ((regparm (2)));
|
||||
|
Loading…
x
Reference in New Issue
Block a user