Mail Archives: djgpp-workers/2000/07/27/05:18:19
Eli Zaretskii wrote:
> - You need to set errno value to zero before calling a library
> function, if you want to test errno afterwards. Otherwise, the
> value of errno might be from the wrong call.
Right.
> - It's usually best to test a file-related function on a variety of
> different file types: an ordinary file, a directory, a root
> directory (it's not a file on FAT filesystems), a character
> device, and a volume label.
Why only character device? All devices are chownable.
> Whether this is justified for a
> trivial function such as `lchown', is up to you ;-).
Will see, as always.
Another thing is that chown() will become less trivial with
symlink support. But I'm thinking about having separate tests
for internal core function for symlink resolving and do not put
this kind of tests for a dozen of user functions.
> > +This function does nothing under MS-DOS
>
> There should be a period at the end of this sentence.
It comes from original chown.txh. I've fixed it in both places.
Laurynas
- Raw text -