Next: PSX_UNAME - Gets information about the host computer system
Up: Routine Descriptions
Previous: PSX_TIME - Get the current calendar time
PSX_TTYNAME
- Get the name of the terminal
- Description:
- Get the name of the terminal attached to the given file descriptor.
- Invocation:
- CALL PSX_TTYNAME( FILDSC, TNAME, STATUS )
- Arguments:
-
-
FILDSC = INTEGER (Given)
-
The file descriptor.
-
TNAME = CHARACTER * ( * ) (Returned)
-
The name of the terminal attached to FILDSC.
-
STATUS = INTEGER (Given)
-
The global status.
- Examples:
-
- CALL PSX_TTYNAME( 0, TNAME, STATUS )
- When run on a Unix system, this will return something like
"/dev/ttyp2" (without the quotes).
- Notes:
- If a terminal name is not found, then a blank string is
returned in TNAME.
-
External Routines Used
- cnf: cnfExprt
-
References
- POSIX standard (1988), section 4.7.2
-
Copyright
- Copyright (C) 1991 Science & Engineering Research Council
Next: PSX_UNAME - Gets information about the host computer system
Up: Routine Descriptions
Previous: PSX_TIME - Get the current calendar time
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