Scroll to navigation

SNOBOL4HOST(3) CSNOBOL4 Manual SNOBOL4HOST(3)

NAME

snobol4host - SNOBOL4 host O/S functions

SYNOPSIS


-INCLUDE 'host.sno'

DESCRIPTION

Macro SPITBOL: returns ARCHITECTURE:OPERATING_SYSTEM:SNOBOL_VERSION The string contains three parts, separated by colons. The first part describes the physical architecture, the second describes the operating system, and the third describes the language implementation name and version. NOTE! Architecture names come from the uname(3) library call, and may be different for the same hardware when running different operating systems. Examples:
    amd64:FreeBSD 12.1-RELEASE-p1:CSNOBOL4B 2.2
    x86_64:Linux 5.4.0-12-generic:CSNOBOL4B 2.2
Macro SPITBOL: returns a string containing the command line parameter supplied to the -u option, if any. If no -u option was given, HOST(0) returns the concatenation of all user parameters following the input filename(s).
Catspaw SPITBOL: passes the string to the system(3) C library function, and returns the subprocess exit status.
Catspaw SPITBOL: for integer n returns the n'th command line argument (regardless of whether the argument was the command name, an option, a filename or a user parameter) as a string, or failure if n is out of range.
Catspaw SPITBOL: returns an integer for use with HOST(2) indicating the first command line argument available as a user parameter.
Catspaw SPITBOL: returns the value of the environment variable named by string.
CSNOBOL4: returns host where configure script was run
CSNOBOL4: returns date when configure script was run
CSNOBOL4: returns configure command line options (or fails)
CSNOBOL4: version date (from configure script)
CSNOBOL4: C compiler name/id
CSNOBOL4: returns date when snobol4 built
CSNOBOL4: returns directory where snobol4 built
CSNOBOL4: returns named of files ued to build snobol4
CSNOBOL4: return default SNOLIB directory (for -INCLUDE, LOAD())
CSNOBOL4: return default file for LOAD()
CSNOBOL4: C Compiler used to build CSNOBOL4
CSNOBOL4: C Compiler optimizer flags used to build CSNOBOL4
CSNOBOL4: Shared Object Library extension
CSNOBOL4: C Compiler flags for Shared Objects
CSNOBOL4: Shared Object file load command
CSNOBOL4: Shared Object file load switches
CSNOBOL4: Dynamic Loadable Library extension
CSNOBOL4: C Compiler flags for Dynamic Loadables
CSNOBOL4: Dynamic Loadable file load command
CSNOBOL4: Dynamic Loadable file load switches
CSNOBOL4: return system directory seperator character (may be empty)
CSNOBOL4: return system PATH seperator character
CSNOBOL4: default library search path
CSNOBOL4: path for C headers
CSNOBOL4: object file extension
CSNOBOL4: setuputil system name
CSNOBOL4: shared object subdir
CSNOBOL4: CFLAGS from configure
CSNOBOL4: C preprocessor flags from configure
CSNOBOL4: loader flags from configure
CSNOBOL4: number of bits used to represent SNOBOL4 INTEGER type
CSNOBOL4: number of bits used to represent SNOBOL4 REAL type
CSNOBOL4: number of bits used to represent C pointer type
CSNOBOL4: number of bits used to represent C long type
CSNOBOL4: number of bits used to represent SIL "descriptor" type
CSNOBOL4: number of bits used to represent SIL "specifier" type
CSNOBOL4: number of bits used to represent C char type
CSNOBOL4: size of "dynamic" storage in descriptors
CSNOBOL4: size of pattern match stack in descriptors
CSNOBOL4: size of interpreter stack in descriptors
CSNOBOL4: library base directory in use
CSNOBOL4: local, version-independant files
CSNOBOL4: distribution files (version-specific)
CSNOBOL4: local, version-specific files
CSNOBOL4: return n'th element in search directory list
CSNOBOL4: versioned base directory

SEE ALSO

snobol4(1), snobol4func(1).

March 31, 2022 CSNOBOL4B 2.3.1