newlib-nano ignores setvbuf?
Asked by
Peter A. Bigot
With -specs=nosys.specs and implementing _write_r() I find that printf() collects input until a newline, then flushes.
Calling setvbuf(stdout, NULL, _IONBF, 0) removes the buffering, as expected.
When -specs=nano.specs is added, setvbuf has no effect and the output is again buffered until a newline.
This is with gcc-arm-
The changes between newlib and newlib-nano-2.0 are large enough I can't immediately see where the problem lies
Is this behavior difference intentional? Is there another way to disable buffering with newlib-nano?
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Peter A. Bigot
- Solved:
- Last query:
- Last reply:
To post a message you must log in.