Skip to content
Snippets Groups Projects

Implement getpass()

Merged Agoston Szepessy requested to merge AgostonSzepessy/relibc:getpass into master
  1. Jul 23, 2024
    • Agoston Szepessy's avatar
      More PR feedback · b5f767ea
      Agoston Szepessy authored
      Use u8 internally instead of `c_char`.
      b5f767ea
    • Agoston Szepessy's avatar
      PR feedback · 99ade44c
      Agoston Szepessy authored
      - Remove `stdio` functions and use `File` API completely.
      - Remove `unsafe` from wrapper function.
      - Move static buffer to `getpass()` instead of keeping it in wrapper.
      99ade44c
    • Agoston Szepessy's avatar
      Implement getpass using File API · 545e9e7b
      Agoston Szepessy authored
      Returns a Result for better error handling.
      545e9e7b
    • Agoston Szepessy's avatar
      Implement getpass() · a83d4cbc
      Agoston Szepessy authored
      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()`.
      a83d4cbc
Loading