Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
12
Task/Host-introspection/PicoLisp/host-introspection.l
Normal file
12
Task/Host-introspection/PicoLisp/host-introspection.l
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
(in (cmd) # Inspect ELF header
|
||||
(rd 4) # Skip "7F" and 'E', 'L' and 'F'
|
||||
(prinl
|
||||
(case (rd 1) # Get EI_CLASS byte
|
||||
(1 "32 bits")
|
||||
(2 "64 bits")
|
||||
(T "Bad EI_CLASS") ) )
|
||||
(prinl
|
||||
(case (rd 1) # Get EI_DATA byte
|
||||
(1 "Little endian")
|
||||
(2 "Big endian")
|
||||
(T "Bad EI_DATA") ) ) )
|
||||
Loading…
Add table
Add a link
Reference in a new issue