* Makefile.in (OBSOLETE_FUNCTIONS): Add fcntl.

(NEW_FUNCTIONS): Add fcntl64.
	* cygwin.din: Export fcntl64.  Make fcntl being SIGFE.
	* fcntl.cc (fcntl_worker): New function.
	(fcntl64): New function.
	(_fcntl): Call fcntl_worker.  Convert 32 bit flock structure into
	64 bit flock structure and vice versa.
	* fhandler.cc (fhandler_base::lock): Change 2nd parameter to
	struct __flock64 *.
	* fhandler_disk_file.cc (fhandler_disk_file::lock): Ditto.  Rework
	to be 64 bit aware.
	* fhandler.h: Accomodate above method argument changes.
	* include/cygwin/types.h: Add struct __flock32 and __flock64.
	Define struct flock according to setting of __CYGWIN_USE_BIG_TYPES__.
	* include/cygwin/version.h: Bump API minor number.
This commit is contained in:
Corinna Vinschen
2003-12-01 17:26:28 +00:00
parent 6c2b784612
commit dc3998682a
9 changed files with 130 additions and 35 deletions

View File

@@ -931,7 +931,7 @@ fhandler_base::ioctl (unsigned int cmd, void *buf)
}
int
fhandler_base::lock (int, struct flock *)
fhandler_base::lock (int, struct __flock64 *)
{
set_errno (EINVAL);
return -1;
@@ -1088,7 +1088,7 @@ int fhandler_base::fcntl (int cmd, void *arg)
case F_GETLK:
case F_SETLK:
case F_SETLKW:
res = lock (cmd, (struct flock *) arg);
res = lock (cmd, (struct __flock64 *) arg);
break;
default:
set_errno (EINVAL);