From ba0a4eb99f55ddec76e580081ea168e11ab4604b Mon Sep 17 00:00:00 2001 From: Leslee Griffith Date: Sun, 30 May 1999 16:18:07 +0000 Subject: [PATCH] added logic for _fscommit() --- harbour/source/rtl/files.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/harbour/source/rtl/files.c b/harbour/source/rtl/files.c index ef771d4b9d..1b5d583a2a 100644 --- a/harbour/source/rtl/files.c +++ b/harbour/source/rtl/files.c @@ -291,7 +291,17 @@ int _fsLock( int handle, long start, long length, long mode ) void _fsCommit( int handle ) { #if defined(HAVE_POSIX_IO) -/* TODO: I'm thinking about this :) */ + + int dup_handle; + last_error = 0; + dup_handle = dup(handle); + last_error = errno; + if (last_error == 0) + { + close(dup_handle); + last_error = errno; + } + #endif return; }