/usr/share/picolisp/src64/sys/x86-64.sunOs.code.l is in picolisp 15.11-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | # 19may10
# zonick <nikolai@zobnin.ru>
# (c) Software Lab. Alexander Burger
# System macros
(code 'errno_A 0)
call ___errno # Get address of 'errno'
ld A (A) # Load value
ret
(code 'errnoC 0)
call ___errno # Get address of 'errno'
ld (A) C # Store new value
ret
(code 'wifstoppedS_F 0) # WIFSTOPPED
ld A (S I) # Get status
cmp B `(hex "7F") # (((status) & 0xff) == 0x7f)
ret
(code 'wifsignaledS_F 0) # WIFSIGNALED
ld A (S I) # Get status
and B `(hex "7F") # (((status) & 0x7f) + 1) >> 1) > 0)
inc B
shr B 1
ret
(code 'wtermsigS_A 0) # WTERMSIG
ld A (S I) # Get status
and B `(hex "7F") # ((status) & 0x7f)
zxt
ret
# vi:et:ts=3:sw=3
|