From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jamie Guinan To: Jonathan Larmour Cc: ecos-discuss@sourceware.cygnus.com Subject: [ECOS] Linux Filesystem Access Date: Wed, 30 Jun 1999 10:49:00 -0000 Message-id: References: <7l8n2c$muo$1@korai.cygnus.co.uk> X-SW-Source: 1999-06/msg00027.html On 28 Jun 1999, Jonathan Larmour wrote: > Jamie Guinan wrote: > > >If not, would a simple "linux filesystem driver" be worth spending > >some time on? > > We do have plans for an all-singing all-dancing configurable pluggable > virtual file system infrastructure :-), but it'll take some time to sort > out. Expect an RFC in the not-too-distant future. Looking forward to that! So right now the only things I can fopen() are /dev entries like "/dev/haldiag", correct? > But if you want to hack > something quick and dirty up, feel free! Actually, I found that the stuff from syscall-i386-linux-1.0.S works well enough for me. I am able to open and write files with code such as, #define O_WRONLY 01 #define O_CREAT 0100 int fd; char *buff = "Boogie down!\n"; fd=cyg_hal_sys_open("/tmp/ecos.out", O_CREAT|O_WRONLY, 00777); cyg_hal_sys_write(fd, buff, strlen(buff)); cyg_hal_sys_close(fd); I have yet to try reading, though. -Jamie