Mail Archives: djgpp-workers/2001/02/03/10:31:57
--=====================_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 -