filerdback (file read-back) sample app

Joel Sherrill joel.sherrill at OARcorp.com
Tue Sep 2 13:18:35 UTC 2008


Gene Smith wrote:
> Has anyone tried to run this "filerdback" sample app. I get an error (-1
> returned) when tries to write to a file. Should this work? I enabled
> POSIX and it made no difference (wasn't sure if it is needed).  Here's
> what I see:
>
> BUFSIZ = 1024
> Wrote -1
> Wrote -1
> Wrote -1
> Wrote -1
> Wrote -1
> Wrote -1
> Wrote -1
> Wrote -1
> Wrote -1
> Wrote -1
>
>
> EXECUTIVE SHUTDOWN! Any key to reboot...
>
>   
Runs now.  It was an old user bug report and hadn't been updated
to have a correct configuration.  It had a couple of obvious things
to correct.

Index: test.c
===================================================================
RCS file: /usr1/CVS/examples/filerdback/test.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- test.c      23 Apr 2008 13:52:05 -0000      1.6
+++ test.c      2 Sep 2008 13:17:20 -0000       1.7
@@ -54,6 +54,8 @@
 #define CONFIGURE_RTEMS_INIT_TASKS_TABLE
 
 #define CONFIGURE_MAXIMUM_TASKS 1
+#define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
+#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 4
 
 #define CONFIGURE_INIT

> Thanks,
> -gene
>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.com
> http://rtems.rtems.org/mailman/listinfo/rtems-users
>   


-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985





More information about the users mailing list