Implement getpass()

Also make fields in `termios` public; required for modifying them.

There's an new type of test: `EXPECT_INPUT_BINS`. These require a `.exp`
file to be present along with the `.c` file. The `.exp` file takes the
produced binary as an argument and sends input to the program. This is
useful for testing functions like `getpass()`.
This commit is contained in:
Agoston Szepessy
2024-07-21 14:15:18 +02:00
parent 798d17c5b3
commit a83d4cbced
6 changed files with 138 additions and 20 deletions
+1
View File
@@ -2,3 +2,4 @@
pub const PATH_MAX: usize = 4096;
pub const NGROUPS_MAX: usize = 65536;
pub const PASS_MAX: usize = 128;