seL4_libs icon indicating copy to clipboard operation
seL4_libs copied to clipboard

libsel4muslcsys : Is there a way to do normal read and write like in Linux?

Open AlonzoLAU opened this issue 2 years ago • 3 comments

I'm so confused that when I try to use open() as I did in Linux but it seems like the open() call only supports O_RDONLY.
Is there a way to do normal read and write like in Linux? What library should i look at? Or do I need to implement it manually?

AlonzoLAU avatar Oct 25 '22 16:10 AlonzoLAU

Please provide a bit more context, what you are trying to do and what seL4 system you are using. By default seL4 does not come with a file storage driver or system, so these calls will not go anywhere besides stdin or stdout.

axel-h avatar Oct 25 '22 17:10 axel-h

Thank you! I want to record the logs of my Camkes Application on a U-disk or SD card. But it looks a little difficult 😂. So I have to use file storage through the camkes-vm?

AlonzoLAU avatar Oct 26 '22 04:10 AlonzoLAU

That would be one option, but running a VMM might be overkill depending on what you are trying to build.

axel-h avatar Oct 26 '22 11:10 axel-h