for clearness.
* fhandler_disk_file.cc (fhandler_base::fstat_fs): Revert previous
change.
(fhandler_base::open_fs): Ditto.
* fhandler_socket.cc (fhandler_socket::close): Ditto.
2007-08-13 Corinna Vinschen <corinna@vinschen.de>
+ * fhandler.h (fhandler_base::close_fs): Reintroduce (as inline function)
+ for clearness.
+ * fhandler_disk_file.cc (fhandler_base::fstat_fs): Revert previous
+ change.
+ (fhandler_base::open_fs): Ditto.
+ * fhandler_socket.cc (fhandler_socket::close): Ditto.
+
+2007-08-13 Corinna Vinschen <corinna@vinschen.de>
+
* Makefile.in (DLL_OFILES): Remove delqueue.o.
* delqueue.cc: Delete.
* fhandler.h (fhandler_base::close_fs): Drop declaration.
virtual int open (int, mode_t = 0);
int open_fs (int, mode_t = 0);
virtual int close ();
+ int close_fs () { return fhandler_base::close (); }
virtual int __stdcall fstat (struct __stat64 *buf) __attribute__ ((regparm (2)));
int __stdcall fstat_fs (struct __stat64 *buf) __attribute__ ((regparm (2)));
int __stdcall fstat_helper (struct __stat64 *buf,
res = fstat_by_handle (buf);
bool no_handle = nohandle ();
nohandle (false);
- close ();
+ close_fs ();
nohandle (no_handle);
set_io_handle (NULL);
}
if (pc.has_buggy_open () && !pc.exists ())
{
debug_printf ("Buggy open detected.");
- close ();
+ close_fs ();
set_errno (ENOENT);
return 0;
}
{
int res = 0;
- if (get_device () == FH_UNIX)
- return fhandler_base::close ();
-
/* HACK to allow a graceful shutdown even if shutdown() hasn't been
called by the application. Note that this isn't the ultimate
solution but it helps in many cases. */