[erlang-patches] fm/file-operations

Filipe David Manana fdmanana@REDACTED
Thu May 20 11:02:53 CEST 2010


2010/5/20 Björn Gustavsson <bgustavsson@REDACTED>

> 2010/5/19 Tuncer Ayaz <tuncer.ayaz@REDACTED>:
>
> > I would prefer the documentation to be more in line with the existing
> > text in file.xml, use the same order of advise values as in the
> > original manpage and be less specific about the effect.
>
> I also like your version better, except for a minor detail
> which I have marked below.
>
> Filipe, is this change OK for you?
>

Perfectly fine.
Thank you both for improving the documentation.



>
> > --- a/file.xml
> > +++ b/file.xml
> > @@ -69,16 +69,15 @@ time() = {{Year, Month, Day}, {Hour, Minute, Second}}
> >         <v>Offset = int()</v>
> >         <v>Length = int()</v>
> >         <v>Advise = posix_file_advise()</v>
> > -        <v>posix_file_advise() = normal | sequential | random |
> will_need
> > -          | dont_need | no_reuse</v>
> > +        <v>posix_file_advise() = normal | sequential | random | no_reuse
> > +          | will_need | dont_need</v>
> >         <v>Reason = ext_posix()</v>
> >       </type>
> >       <desc>
> > -        <p>This function allows the Operating System to perform caching
> > -           optimizations for accessing a file's data.</p>
> > -        <p>This function is available only on POSIX compliant systems.
> > -           For systems that are not POSIX compliant, this function has
> > -           no effect when invoked.</p>
> > +        <p><c>advise</c> can be used to announce an intention to access
> file
>
> In the documentation, we include the arity when referring to a function.
> Thus:
>
> <p><c>advise/4</c> can be used to announce an intention to access file
>
> > +          data in a specific pattern in the future, thus allowing the
> > +          operating system to perform appropriate optimizations.</p>
> > +        <p>On some platforms, this function might have no effect.</p>
> >       </desc>
> >     </func>
> >     <func>
> >
>
> --
> Björn Gustavsson, Erlang/OTP, Ericsson AB
>



-- 
Filipe David Manana,
fdmanana@REDACTED

"Reasonable men adapt themselves to the world.
Unreasonable men adapt the world to themselves.
That's why all progress depends on unreasonable men."


More information about the erlang-patches mailing list