Standard Library/sysenv

From J Wiki
Jump to navigation Jump to search
Overview | android | break | colib | compare | coutil | dates | debug | dir | dll | files | jade | jal | stdlib | strings | sysenv | text | unxlib

This script defines text system environment and is included in the J standard library. Definitions are loaded into the z locale.

Definitions

F FHS
H hostpathsep
I IF64, IFBE, IFDEF, IFIOS, IFJA, IFJHS, IFQT, IFRASPI, IFUNIX, IFWIN, IFWINCE, IFWINE, IFWOW64
J jcwdpath, JLIB, jpathsep, jsystemdefs
U UNAME
W winpathsep

FHS n filesystem hierarchy: 0=not used 1=linux and installed under /usr/...
hostpathsep v converts path name to use host path separator
IF64 n if a 64 bit J system
IFBE n if a big-endian system
IFDEF v if DEFxxx exists
IFIOS n if iOS (iPhone/iPad)
IFJA n if J Android (not jconsole)
IFJHS n if jhs libraries loaded
IFQT n if Qt libraries loaded
IFRASPI n if Raspberry Pi or Linux arm64
IFUNIX n if UNIX
IFWIN n if Windows (2000 and up)
IFWINCE n if Windows CE
IFWINE n if Wine (Wine Is Not an Emulator)
IFWOW64 n if running J32 on a 64 bit o/s
jcwdpath v adds path to J current working directory
JLIB n J library version
jpathsep v converts path name to use / separator
jsystemdefs v loads appropriate netdefs or hostdefs
UNAME n name of UNIX o/s
winpathsep v converts path name to use \ separator