Filetype setting on fopen

Peter Naulls peter at chocky.org
Mon Aug 5 14:56:43 PDT 2002


In message <b8e86f614b.ajw498 at alexwaugh.com>
          Alex Waugh <alex at alexwaugh.com> wrote:

> In message <338868614b.peter at moo.chocky.org>
>           Peter Naulls <peter at chocky.org> wrote:
> 
> > 
> > What do people think of this?
> > 
> > When a file is created (with fopen/open), its type is set depending upon
> > its extension.  so .html gets 0xFAF etc.  The lookup is the normal
> > Mimetype lookup of course.   Behaviour would be controlled via an
> > additional flag to the current riscosify settings.  Should it be
> > default?  I can't think of any reason why not.
> 
> Sounds OK, as long as it doesn't override any ,faf type extension if
> present.

In this instance, the check would end up being against ".html,faf", so
that would fail - which is probably what you want.

-- 
------------------------------------------------------------------------
 Peter Naulls - peter at chocky.org
 Homepage                     -  http://www.chocky.org/
 RISC OS C Programming        -  http://www.riscos.info/
 Unix Programs on RISC OS     -  http://www.chocky.org/unix/
------------------------------------------------------------------------



More information about the gcc mailing list