From cf117291f8e2956c8156b170c1ed59e9520262c3 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Tue, 19 Jul 2016 19:43:55 -0700 Subject: 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. --- txr.1 | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to 'txr.1') diff --git a/txr.1 b/txr.1 index df6c642d..7c6cbac8 100644 --- a/txr.1 +++ b/txr.1 @@ -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 -- cgit v1.2.3