sunfishcode / c-ward

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

Implement `ptsname` and `ptsname_r` #112

Closed sunfishcode closed 7 months ago

sunfishcode commented 7 months ago

We should implement the ptsname and ptsname_r functions, in c-scape/src/termios_/mod.rs, and remove them from c-scape/src/todo.rs.

Rustix has a ptsname function, so what's needed for c-scape is to adapt that function to the C API.

I've labeled this a "good first issue", though that's admittedly relative. It requires familiarity with C strings, raw pointers, and static buffers.

sunfishcode commented 7 months ago

This is fixed in #115.