Re: fadvise syscall?

Jan Hudec
2002-03-18T08:58:35Z

> Followup to: <5.1.0.14.2.20020318000057.051d30e0@pop.cus.cam.ac.uk>
> By author: Anton Altaparmakov <aia21@cam.ac.uk>
> In newsgroup: linux.dev.fs.devel
> >
> > Ok, so basically we want both fadvise() and open(2) semantics, with the
> > open(2) being a superset of the fadvise() capabilities (some things no
> > longer make sense to be specified once the file is open). They can of
> > course both be calling the same common helpers inside the kernel...
> >
>
> If they're open() flags, they should probably be controlled with
> fcntl() rather than with a new system call.

Then posix_fadvise interface can be implemented in libc using fcntl.

--------------------------------------------------------------------------------
- Jan Hudec `Bulb' <bulb@ucw.cz>