"POSIX'like words"

posix EXTENSIONS # ifdef DEFINED_ignore_line
* #! ( "..." -- )

ignores the rest of the line,
defining `#!' is used to support forth scripts
executed by the unix kernel

EXTENSIONS posix ordinary primitive

# endif
* CLOCK ( --- ticks )

return clock()

EXTENSIONS posix ordinary primitive

* GETTIMEOFDAY ( -- double-time )

returns SVR/BSD gettimeofday(2).
Never defined on 16-bit systems, hence
TIMEDATE is more portable.

EXTENSIONS posix ordinary primitive

* NTOHL ( l -- l' )

if current host-encoding is bigendian, this is a NOOP
otherwise byteswap the lower 32-bit bits of the topofstack.
see L@ and L! (being usually just @ and ! )
(on some platforms, the upper bits are erased, on others not)

EXTENSIONS posix ordinary primitive

HTONL

[] no special info, see general notes

EXTENSIONS posix ordinary primitive

* NTOHS ( w -- w' )

if current host-encoding is bigendian, this is a NOOP
otherwise byteswap the lower 16-bit bits of the topofstack.
see W@ and W!
(on some platforms, the upper bits are erased, on others not)

EXTENSIONS posix ordinary primitive

HTONS

[] no special info, see general notes

EXTENSIONS posix ordinary primitive

ENVIRONMENT
* ENVIRONMENT CLK_TCK ( -- HZ )

the system's scheduler heartbeat clock (a.k.a. jiffies a.k.a. HZ)
for every function that expects time-values in ticks.

ENVIRONMENT posix ordinary primitive