mirror of
https://github.com/apache/nuttx.git
synced 2026-06-12 14:13:21 +08:00
316f6aea71
Tested with a modified nsh on esp32-devkitc.
```
int main(int argc, FAR char *argv[])
{
+ int fd = open("/dev/null", O_RDWR);
+ _info("hey _info %d\n", fd);
+ write(1, "hey stdout\n", 11);
+ write(2, "hey stderr\n", 11);
```