+2005-02-22 Corinna Vinschen <corinna@vinschen.de>
+
+ * cygwin.din (fdatasync): Export.
+ * fhandler.cc (fhandler_base::fsync): Return with EINVAL if no
+ handle is available.
+ * syscalls.cc (fdatasync): Create export alias to fsync.
+ * include/cygwin/version.h: Bump API minor version.
+
2005-02-20 Corinna Vinschen <corinna@vinschen.de>
* fhandler.h (fhandler_base::fstat_helper): Declare with additional
_fstat64 = fstat64 SIGFE
fstatfs SIGFE
_fstatfs = fstatfs SIGFE
+fdatasync SIGFE
fsync SIGFE
_fsync = fsync SIGFE
ftell SIGFE
int
fhandler_base::fsync ()
{
+ if (!get_handle () || nohandle ())
+ {
+ set_errno (EINVAL);
+ return -1;
+ }
if (pc.isdir ()) /* Just succeed. */
return 0;
if (FlushFileBuffers (get_handle ()))
116: Export atoll.
117: Export utmpx functions, Return utmp * from pututent.
118: Export getpriority, setpriority.
+ 118: Export fdatasync.
*/
/* Note that we forgot to bump the api for ualarm, strtoll, strtoull */
#define CYGWIN_VERSION_API_MAJOR 0
-#define CYGWIN_VERSION_API_MINOR 118
+#define CYGWIN_VERSION_API_MINOR 119
/* There is also a compatibity version number associated with the
shared memory regions. It is incremented when incompatible
return cfd->fsync ();
}
+EXPORT_ALIAS (fsync, fdatasync)
+
static void
sync_worker (const char *vol)
{