diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-07-19 19:43:55 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-07-19 19:43:55 -0700 |
commit | cf117291f8e2956c8156b170c1ed59e9520262c3 (patch) | |
tree | d5e5f5d615d80ac3e989cee74415cbdb80333816 /txr.1 | |
parent | 48fb45fc49128d64fc7b78e7359fc5753976632f (diff) | |
download | txr-cf117291f8e2956c8156b170c1ed59e9520262c3.tar.gz txr-cf117291f8e2956c8156b170c1ed59e9520262c3.tar.bz2 txr-cf117291f8e2956c8156b170c1ed59e9520262c3.zip |
Adding uname.
* configure: Detect utsname and uname.
* sysif.c (utsname_s, sysname_s, nodename_s, release_s,
version_s, machine_s): New symbol variables.
(uname_wrap): New static function.
(sysif_init): Initialize new symbol variables.
Instantiate utsname struct type. Register uname_wrap
as uname intrinsic function.
* txr.1: Documented.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 38 |
1 files changed, 38 insertions, 0 deletions
@@ -40822,6 +40822,44 @@ and the output of may be used as an argument to .codn stty . +.SS* Unix System Identification + +.coNP Structure @ utsname +.synb +.mets (defstruct utsname nil +.mets \ \ sysname nodename release +.mets \ \ version machine domainname) +.syne +.desc +The +.code utsname +structure corresponds to the POSIX structure of the same name. +An instance of this structure is returned by the +.code uname +function. + +.coNP Function @ uname +.synb +.mets (uname) +.syne +.desc +The +.code uname +function corresponds to the POSIX +function of the same name. It returns an instance of the +.code utsname +structure. Each slot of the returned structure is +initialized with a character string that identifies the corresponding attribute +of the host system. + +The host system might not support the reporting of the +NIS domain name. In this case, the +.code domainname +slot of the returned +.code utsname +structure will have the value +.codn nil . + .SS* Web Programming Support .coNP Functions @ url-encode and @ url-decode |