/usr/share/picolisp/src64/sys/x86-64.freeBsd.code.l is in picolisp 3.1.5.2-2.
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 35 36 37 38 39 40 41 42 | # 07jan13abu
# Mansur Mamkin <mmamkin@mail.ru>
# System macros
(code 'errno_A 0)
call __error # Get address of 'errno'
ld A (A) # Load value
ret
(code 'errnoC 0)
call __error # Get address of 'errno'
ld (A) C # Store new value
ret
#define>_WSTATUS(x)<--->(_W_INT(x) & 0177)
#define>_WSTOPPED<----->0177<--><------>/* _WSTATUS if process is stopped */
#define>WIFSTOPPED(x)<->(_WSTATUS(x) == _WSTOPPED)
#define>WIFSIGNALED(x)<>(_WSTATUS(x) != _WSTOPPED && _WSTATUS(x) != 0)
#define>WTERMSIG(x)<--->(_WSTATUS(x))
(code 'wifstoppedS_F 0) # WIFSTOPPED
ld A (S I) # Get status
and B `(oct "0177")
cmp B `(oct "0177") # (((status) & 0177) == 0177)
ret
(code 'wifsignaledS_F 0) # WIFSIGNALED
ld A (S I) # Get status
and B `(oct "0177") # ((((status) & 0177) != 0177) && ((status) & 0177) != 0)
cmp B `(oct "0177")
if ne
nul B
end
ret
(code 'wtermsigS_A 0) # WTERMSIG
ld A (S I) # Get status
and B `(oct "0177") # ((status) & 0177)
zxt
ret
# vi:et:ts=3:sw=3
|