Filetype setting on fopen

John Tytgat John.Tytgat at aaug.net
Tue Aug 6 12:13:45 PDT 2002


In message <74efe4614b.Jo at hobbes.riscos.be>
          John Tytgat <John.Tytgat at aaug.net> wrote:

> In message <f672bb614b.peter at moo.chocky.org>
>           Peter Naulls <peter at chocky.org> wrote:
> 
> > > > The following requested by Alex but I don't know where they'd
> > > > be used (it's AcornNFS server-side notation, not for unixlib
> > > > apps to be generating names like this)
> > > 
> > > > index.html,abc    index/html  (abc - explicit filetype override mime)
> > > > index,abc         index       (abc - explicit filetype)
> > > 
> > > I thought __riscosify() already has code to handle this?
> > 
> > It does.  It doesn't trim the extension though - John?  John had a
> > requirement to add this behaviour for CVS stuff.
> 
> Indeed.  __riscosify will strip off the ",xyz" filetype extention of its
  ^^^^^^
Is *does* trim the extension.  Apologies for the confusing statement.

> Unix-alike filename spec parameter and interpret this as a 12bit RISC OS
> filetype (as an option __RISCOSIFY_FILETYPE_EXT).  __unixify will add
> ",xyz" to its RISC OS-alike filename spec parameter (this happens e.g.
> in dirent routines).

John.
-- 
John Tytgat, in his comfy chair at home                                 BASS
John.Tytgat at aaug.net                             ARM powered, RISC OS driven



More information about the gcc mailing list