From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Lunn To: eCos Disuss Subject: [ECOS] ROMFS in anoncvs Date: Thu, 12 Jul 2001 11:38:00 -0000 Message-id: <20010712203842.F531@biferten.ma.tech.ascom.ch> X-SW-Source: 2001-07/msg00380.html 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. : #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