next up previous 216
Next: Routines that have not been implemented
Up: Routine Descriptions
Previous: PSX_TTYNAME - Get the name of the terminal


PSX_UNAME - Gets information about the host computer system

Description:
The routine inquires about the operating system, the name of the computer and the type of the hardware. If an error is detected then STATUS is set to SAI__ERROR and an error is reported, although this should not happen.

Invocation:
CALL PSX_UNAME( SYSNAME, NODENAME, RELEASE, VERSION, MACHINE,
STATUS )

Arguments:

SYSNAME = CHARACTER * ( * ) (Returned)
Name of the operating system.
NODENAME = CHARACTER * ( * ) (Returned)
Node name of the computer.
RELEASE = CHARACTER * ( * ) (Returned)
Version of the operating system.
VERSION = CHARACTER * ( * ) (Returned)
Sub-version of the operating system.
MACHINE = CHARACTER * ( * ) (Returned)
Name of the hardware of the computer.
STATUS = INTEGER (Given and Returned)
The global status.

Examples:

CALL PSX_UNAME( SYSNAME, NODENAME, RELEASE, VERSION, MACHINE, STATUS)
When run on a SUN workstation, this will return values something like:

SYSNAME = SunOS
NODENAME = rlssp1
RELEASE = 4.1.1
VERSION = 1
MACHINE = sun4c

CALL PSX_UNAME( SYSNAME, NODENAME, RELEASE, VERSION, MACHINE, STATUS)
When run on a DECstation, this will return values something like:

SYSNAME = ULTRIX
NODENAME = rlsux1
RELEASE = 4.0
VERSION = 0
MACHINE = RISC


External Routines Used
cnf: cnfCopyf, cnfExprt

References

Copyright
Copyright (C) 1991 Science & Engineering Research Council



next up previous 216
Next: Routines that have not been implemented
Up: Routine Descriptions
Previous: PSX_TTYNAME - Get the name of the terminal

PSX POSIX interface routines
Starlink User Note 121
P M Allan
A J Chipperfield
10 April 2003
E-mail:ussc@star.rl.ac.uk

Copyright © 2000 Council for the Central Laboratory of the Research Councils