-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor `utmpx` for Linux into cross-platform "FixedStruct" for fixed-size record structs. This includes acct, acct_v3, lastlog, lastlogx, utmp, and utmpx. This removes crate `uapi`. Refactor FileType to allow sub-variants. Add scraped logs from varying platforms. Update compare-current-and-expected with newly scraped logs. Add utility utmp-offsets for generating real offsets of fixed-size structs on any system. Issue #171 Issue #100 Issue #121 Issue #109 Issue #217
- Loading branch information
Showing
389 changed files
with
81,372 additions
and
5,066 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
$ (set -eux; uname -a; cc -o utmp-offsets utmp-offsets.c; ./utmp-offsets) | ||
+ uname -a | ||
Linux grape 5.15.107-0-lts #1-Alpine SMP Thu, 13 Apr 2023 17:30:11 +0000 x86_64 Linux | ||
+ cc -o utmp-offsets utmp-offsets.c | ||
+ ./utmp-offsets | ||
lastlog sizeof 296 | ||
lastlog.ll_time @ 0 sizeof 8 | ||
lastlog.ll_line @ 8 sizeof 32 | ||
lastlog.ll_host @ 40 sizeof 256 | ||
utmp sizeof 400 | ||
utmp.ut_line @ 8 sizeof 32 | ||
utmp.ut_name @ 44 sizeof 32 | ||
utmp.ut_host @ 76 sizeof 256 | ||
utmp.ut_exit @332 sizeof 4 | ||
utmp.ut_session @336 sizeof 4 | ||
utmp.ut_time @344 sizeof 8 | ||
utmp.ut_tv @344 sizeof 16 | ||
utmp.ut_tv.tv_sec @344 sizeof 8 | ||
utmp.ut_tv.tv_usec@352 sizeof 8 | ||
utmp.ut_addr_v6 @360 sizeof 16 | ||
utmpx sizeof 400 | ||
utmpx.ut_type @ 0 sizeof 2 | ||
utmpx.ut_pid @ 4 sizeof 4 | ||
utmpx.ut_line @ 8 sizeof 32 | ||
utmpx.ut_id @ 40 sizeof 4 | ||
utmpx.ut_user @ 44 sizeof 32 | ||
utmpx.ut_name @ 44 sizeof 32 | ||
utmpx.ut_host @ 76 sizeof 256 | ||
utmpx.ut_exit @332 sizeof 4 | ||
utmpx.ut_session @336 sizeof 4 | ||
utmpx.ut_time @344 sizeof 8 | ||
utmpx.ut_tv @344 sizeof 16 | ||
utmpx.ut_tv.tv_sec @344 sizeof 8 | ||
utmpx.ut_tv.tv_usec@352 sizeof 8 | ||
utmpx.ut_addr_v6 @360 sizeof 16 |
Oops, something went wrong.