oyama / pico-vfs

Thin virtual file system for Raspberry Pi Pico
Other
13 stars 4 forks source link

Do not issue file descriptor from 0 #13

Closed oyama closed 6 months ago

oyama commented 6 months ago

The current implementation issues file descriptors from 0. This conflicts with normal OS STDIN_FILENO and may have unintended consequences for the user. It would be sane to issue file descriptors from 3 and return an error for 0-2 requests.