Add implmentation for fwide posix function.
This function is used to set the orientation of a stream to either byte-oriented or wchar-oriented. More info on this function is here: https://man7.org/linux/man-pages/man3/fwide.3p.html This implementation only impmlemnts the manual switching and does not yet guard against using a byte-oriented stream with wchar functions and vice versa. Those step will come in additional commits. Signed-off-by:Wren Turkal <wt@penguintechs.org>
Showing
- src/header/stdio/default.rs 2 additions, 0 deletionssrc/header/stdio/default.rs
- src/header/stdio/helpers.rs 2 additions, 0 deletionssrc/header/stdio/helpers.rs
- src/header/stdio/mod.rs 16 additions, 1 deletionsrc/header/stdio/mod.rs
- src/header/wchar/mod.rs 3 additions, 3 deletionssrc/header/wchar/mod.rs
- src/platform/types.rs 2 additions, 0 deletionssrc/platform/types.rs
- tests/Makefile 1 addition, 0 deletionstests/Makefile
- tests/expected/wchar/fwide.stderr 0 additions, 0 deletionstests/expected/wchar/fwide.stderr
- tests/expected/wchar/fwide.stdout 3 additions, 0 deletionstests/expected/wchar/fwide.stdout
- tests/wchar/fwide.c 47 additions, 0 deletionstests/wchar/fwide.c
Loading
Please register or sign in to comment