sunfishcode / c-ward

An implementation of libc written in Rust
Other
188 stars 11 forks source link

Use static buffers instead of `Vec`s for `read` etc. #59

Closed sunfishcode closed 10 months ago

sunfishcode commented 10 months ago

Use thread-local static buffers for implementing read etc., instead of dynamically allocating a Vec. This allows them to be called in contexts where malloc isn't usable.