| Crates.io | utmp-classic-raw |
| lib.rs | utmp-classic-raw |
| version | 0.1.3 |
| created_at | 2024-05-03 12:43:15.472004+00 |
| updated_at | 2024-05-18 11:35:51.963219+00 |
| description | Provides raw types for parsing login records in classic utmp (UNIXv1 & OpenBSD) file |
| homepage | |
| repository | https://github.com/jadijadi/utmp-classic |
| max_upload_size | |
| id | 1228727 |
| size | 8,951 |
Rust library for reading utmp files. Please note that all Unix like systems (Including all GNU/Linuxes, MacOS and all BSDs except OpenBSD) use the newer utmpx file format, even if they still call it utmp. This library works only for original Unix utmp files which is only used in OpenBSD as far as I know.
If you are looking for a lib to be used on anything other than OpenBSD; you might be looking for a utmpx library, although most of them calls themselves utmp; not sure why :D
A sample utmp file is included in the root directory, you can run a sample by issuing:
cargo run --package utmp-classic --example dump-utmp tests/samples/basic.utmp
This library is a modification ofn [utmp-rs](https://github.com/upsuper/utmp-rs) by upsuper. It is updated to work on the classic AT&T Unix v1 style utmp files still used by OpenBSD.