Mail Archives: djgpp-workers/1998/02/17/01:30:27
On Mon, 16 Feb 1998, Salvador Eduardo Tropea (SET) wrote:
> + @example
> + #include <fcntl.h>
> +
> + int __djgpp_share_flags = ...;
> + @end example
I may be missing something here, but won't this kind of usage cause
linker error (since the library already defines __djgpp_share_flags)?
If I'm right, then it might be better to put the library definition on
a separate source file, so it gets linked in only if users don't
define it in their sources.
> + If you assign any value different than 0 to this variable libc will
^^^^^^^^^^^^^^
I think either ``different from'' or ``other than'' is better.
> + merge this value with the flags passed to @code{open}. But if you specify
^^^^^
``Merge'' is IMHO misleading. The code (quite correctly) uses
`__djgpp_share_flags' only if no sharing flags were passed by the
caller. So I would suggest to say something like this:
If you assign any value ... libc will use that value as the sharing
bits when it calls DOS to open the file.
> + and by default is 0 ensuring maximun compatibility with older versions of
^
A typo.
> + allow to share or protect a file when it's opened more than ones by the
^^^^
This should be ``once''.
> + case. One interesting thing is that when the file is openen by two tasks
^^^^^^
This should be ``opened''.
- Raw text -