Filetype setting on fopen

Peter Naulls peter at
Mon Aug 5 13:24:37 PDT 2002

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.

I have a number of programs that would benefit from this, and it would
allow the only RISC OS specific changes to be removed.


 Peter Naulls - peter at
 Homepage                     -
 RISC OS C Programming        -
 Unix Programs on RISC OS     -

More information about the gcc mailing list