Module s4lib::data::fixedstruct
source · Expand description
Modules§
- FixedStruct definitions found on FreeBSD 14.0 amd64 and FreeBSD 13.1 amd64 (x86_64).
- FixedStruct definitions found on Linux running on ARM64 (aarch64) architecture.
- FixedStruct definitions found in
lastlog.h
,utmp.h
,utmpx.h
from GNU glibc for Linux, architectures amd64 (x86_64), i686 (x86_32), ARM6 (aarch64), and RISC-V (riscv64). - FixedStruct definitions found on NetBSD 9.3 i686 (x86_32). These are slightly different than amd64 (x86_64).
- FixedStruct definitions found on NetBSD 9.3 amd64 (x86_64). These are slightly different than i686 (x86_32).
- FixedStruct definitions found on OpenBSD 7.2 i386 (x86_32) and amd64 (x86_64).
Structs§
- An entry for pointing to a fixed-size C struct with additional derived information.
- time value pair type
Enums§
- FixedStruct Implementation Type (name
FixedStructType
is taken). - Information returned from
as_bytes
.
Constants§
- Maximum size among all
acct
/lastlog
/utmp
/etc. C structs - Minimum size among all
acct
/lastlog
/utmp
/etc. C structs - size of the
[u8]
buffer used fornumtoa
conversions good up toi64::MAX
ori64::MIN
plus a little “just in case” head room - Maximum size among all time values for all C structs
- Map
utmp.ut_type
value, implied in the index offset, to it’sstr
representation. These values and definitions appear consistent across all platforms, except NetBSD appends three values. - Count of entries in
UT_TYPE_VAL_TO_STR
.
Traits§
- An abstraction for representing varying fixed-size C structs. This includes record-keeping structs acct, lastlog, utmp defined in the namespaces
freebsd_x8664
,linux_arm64aarch64
, etc. Each specific definition defined in those namespaces mustimpl
ement this trait.
Functions§
Type Aliases§
- Index into a
[u8]
buffer. Used byas_bytes
. - A scoring system for the quality of the data in a
FixedStruct
. A higher score means the data is more likely to be theFixedStructType
expected. - common nanoseconds type used as intermediate representation during conversion to
DateTimeL
- common denominator time value type representing seconds since Unix epoch
- common denominator time value type representing additional sub-second microseconds since Unix epoch