public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] ROMFS in anoncvs
@ 2001-07-12 11:38 Andrew Lunn
  2001-07-12 15:05 ` Gary Thomas
  0 siblings, 1 reply; 6+ messages in thread
From: Andrew Lunn @ 2001-07-12 11:38 UTC (permalink / raw)
  To: eCos Disuss

Hi Folks

Does the ROMFS code in anoncvs work? I think not?

It appears that the mk_romfs program uses the node.mode with what
linux returns in stat. This means the root directory i just made has
mode 042770, which is drwxrws---. But the eCos IS_DIR macro has a
different idea of what the mode should be. It expects the lower bytes
to contain the file type.

<sys/stat.h>:

#define __stat_mode_DIR    (1<<0)

#define S_ISDIR(__mode)  ((__mode) & __stat_mode_DIR )

Hence all open() calls fail.

Has something changed here recently? Has anyone run the test program
that comes with the romfs package. 

        Thanks
                Andrew

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-07-13 13:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-12 11:38 [ECOS] ROMFS in anoncvs Andrew Lunn
2001-07-12 15:05 ` Gary Thomas
2001-07-13  0:14   ` Andrew Lunn
2001-07-13  2:55     ` Richard Panton
2001-07-13 13:38       ` Jonathan Larmour
2001-07-13  4:32     ` Gary Thomas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).