delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/02/03/10:31:57

Message-Id: <5.0.2.1.0.20010203103000.02755300@pop5.banet.net>
X-Sender: usbanet DOT farley3 AT pop5 DOT banet DOT net
X-Mailer: QUALCOMM Windows Eudora Version 5.0.2
Date: Sat, 03 Feb 2001 10:31:51 -0500
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
From: "Peter J. Farley III" <pjfarley AT banet DOT net>
Subject: Re: Finished
Cc: djgpp-workers AT delorie DOT com
In-Reply-To: <9003-Sat03Feb2001100139+0200-eliz@is.elta.co.il>
References: <5 DOT 0 DOT 2 DOT 1 DOT 0 DOT 20010202201845 DOT 03ad4ec0 AT pop5 DOT banet DOT net>
<5 DOT 0 DOT 2 DOT 1 DOT 0 DOT 20010201232409 DOT 027bc370 AT pop5 DOT banet DOT net>
<5 DOT 0 DOT 2 DOT 1 DOT 0 DOT 20010201232409 DOT 027bc370 AT pop5 DOT banet DOT net>
<5 DOT 0 DOT 2 DOT 1 DOT 0 DOT 20010202201845 DOT 03ad4ec0 AT pop5 DOT banet DOT net>
Mime-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

--=====================_2462448==_
Content-Type: text/plain; charset="us-ascii"; format=flowed

At 10:01 AM 2/3/01 +0200, Eli Zaretskii wrote:
<Snipped>
 >It's up to you two, I guess.  I don't mind fixing these problems
 >myself if the original diffs are committed.

OK, here are a set of replacement diffs for the missing docs, with the 
problems you indicated corrected.  I saw your later post that you fixed 
their ancestors, thank you.

--=====================_2462448==_
Content-Type: text/plain; charset="us-ascii"

diff -ruN djgpp-cvs/src/libc/dos/io/doslk64.txh djgpp/src/libc/dos/io/doslk64.txh
--- djgpp-cvs/src/libc/dos/io/doslk64.txh	Thu Jan  1 00:00:00 1970
+++ djgpp/src/libc/dos/io/doslk64.txh	Sat Feb  3 10:21:50 2001
@@ -0,0 +1,28 @@
+@node _dos_lk64, dos
+@subheading Syntax
+
+@example
+#include <io.h>
+
+int _dos_lk64(int fd, long long offset, long long length);
+@end example
+
+@subheading Description
+
+Adds an advisory lock to the specified region of the file.
+
+Arguments @var{offset} and @var{length} must be of type @code{long
+long}, thus enabling you to lock with offsets and lengths as large as
+~@math{2^63} (FAT16 limits this to ~@math{2^31}; FAT32 limits this to
+@math{2^32-2}).
+
+@xref{_dos_unlk64}.
+
+@subheading Return Value
+
+Zero if the lock was added, nonzero otherwise.
+
+@subheading Portability
+
+@portability !ansi, !posix
+
diff -ruN djgpp-cvs/src/libc/dos/io/dosunl64.txh djgpp/src/libc/dos/io/dosunl64.txh
--- djgpp-cvs/src/libc/dos/io/dosunl64.txh	Thu Jan  1 00:00:00 1970
+++ djgpp/src/libc/dos/io/dosunl64.txh	Sat Feb  3 10:21:50 2001
@@ -0,0 +1,28 @@
+@node _dos_unlk64, dos
+@subheading Syntax
+
+@example
+#include <io.h>
+
+int _dos_unlk64(int fd, long long offset, long long length);
+@end example
+
+@subheading Description
+
+Removes an advisory lock to the specified region of the file.
+
+Arguments @var{offset} and @var{length} must be of type @code{long
+long}, thus enabling you to unlock with offsets and lengths as large as
+~@math{2^63} (FAT16 limits this to ~@math{2^31}; FAT32 limits this to
+@math{2^32-2}).
+
+@xref{_dos_lk64}.
+
+@subheading Return Value
+
+Zero if the lock was removed, nonzero otherwise.
+
+@subheading Portability
+
+@portability !ansi, !posix
+
diff -ruN djgpp-cvs/src/libc/dos/io/lock64.txh djgpp/src/libc/dos/io/lock64.txh
--- djgpp-cvs/src/libc/dos/io/lock64.txh	Thu Jan  1 00:00:00 1970
+++ djgpp/src/libc/dos/io/lock64.txh	Sat Feb  3 10:23:52 2001
@@ -0,0 +1,34 @@
+@node lock64, io
+@subheading Syntax
+
+@example
+#include <io.h>
+
+int lock64(int fd, long long offset, long long length);
+@end example
+
+@subheading Description
+Locks a region in file @var{fd} using MS-DOS file sharing interface.
+The region of @var{length} bytes, starting from @var{offset}, will
+become entirely inaccessible to other processes.  If multiple locks are
+used on a single file they must be non-overlapping.  The lock must be
+removed before the file is closed.
+
+This function will fail unless SHARE, or a network software providing
+similar interface, is installed.
+
+Arguments @var{offset} and @var{length} must be of type @code{long
+long}, thus enabling you to lock with offsets and lengths as large as
+~@math{2^63} (FAT16 limits this to ~@math{2^31}; FAT32 limits this to
+@math{2^32-2}).
+
+@xref{unlock64}.
+
+@subheading Return Value
+Zero if successful, nonzero if not.
+
+
+@subheading Portability
+
+@portability !ansi, !posix
+
diff -ruN djgpp-cvs/src/libc/dos/io/unlock64.txh djgpp/src/libc/dos/io/unlock64.txh
--- djgpp-cvs/src/libc/dos/io/unlock64.txh	Thu Jan  1 00:00:00 1970
+++ djgpp/src/libc/dos/io/unlock64.txh	Sat Feb  3 10:21:48 2001
@@ -0,0 +1,27 @@
+@node unlock64, io
+@subheading Syntax
+
+@example
+#include <io.h>
+
+int unlock64(int fd, long long offset, long long length);
+@end example
+
+@subheading Description
+Unlocks a region previously locked by @code{lock64}.
+
+Arguments @var{offset} and @var{length} must be of type @code{long
+long}, thus enabling you to unlock with offsets and lengths as large as
+~@math{2^63} (FAT16 limits this to ~@math{2^31}; FAT32 limits this to
+@math{2^32-2}).
+
+@xref{lock64}.
+
+@subheading Return Value
+Zero if successful, nonzero if not.
+
+
+@subheading Portability
+
+@portability !ansi, !posix
+

--=====================_2462448==_
Content-Type: text/plain; charset="us-ascii"; format=flowed

---------------------------------------------------------
Peter J. Farley III (pjfarley AT dorsai DOT org OR
                      pjfarley AT banet DOT net)
--=====================_2462448==_--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019