"Richard L. Hamilton" <[EMAIL PROTECTED]> wrote:
> > This sounds OK as long as the O_NOATIME flag may be
> > added after an open(2)
> > via fcntl(2) - to preventfuture atime updates with
> > read(2). This is needed
> > in order to allow O_NOATIME to be useful for files
> > opened via fopen(3).
> >
>
> I'd like that too, but is it really necessary? Instead of inserting
>
> if ((fl=fcntl(fileno(mystream),F_GETFL,0)) != -1)
> fcntl(fileno(mystream),F_SETFL,fl|O_NOATIME);
>
> after the fopen(), couldn't one just replace the fopen()
> with an open()/fdopen() pair, where the open() used the desired flags?
Sometimes, a bigger long existing software structure may prevent this.
Jörg
--
EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin
[EMAIL PROTECTED] (uni)
[EMAIL PROTECTED] (work) Blog: http://schily.blogspot.com/
URL: http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code