ctermid man page on DigitalUNIX

Man page or keyword search:  
man Server   12896 pages
apropos Keyword Search (all sections)
Output format
DigitalUNIX logo
[printable version]

Digital UNIX Diffs - ctermid(5)		       Digital UNIX Diffs - ctermid(5)

NAME
       ctermid -  Generates the pathname for the controlling terminal

LIBRARY
	Standard C Library (libc.a)

SYNOPSIS
       #include <stdio.h> char *ctermid (
	   char *s );

PARAMETERS
       If the s parameter is a null pointer, the string is stored in an inter‐
       nal static area and the address is returned. The next call to the cter‐
       mid() function overwrites the contents of the internal static area.  If
       the s parameter is not a null pointer, it points to a  character	 array
       of  at  least  L_ctermid	 bytes.	  L_ctermid  is defined in the stdio.}
       header file, and has a value greater than 0 (zero).   The  pathname  is
       placed in this array and the value of the s parameter is returned.

DIFFERENCES
       vms-system(5): OpenVMS Operating System Differences

       The ctermid() function generates the pathname of the controlling termi‐
       nal for the current process and stores it in a string.  The  syntax  of
       this  string  is	 operating  system  specific so you'll get a different
       string on UNIX than on OpenVMS.	UNIX returns  the  following  type  of
       string:	"/dev/tty".   OpenVMS  returns	the  following type of string:
       "_MYHOST$TNA13:".

RELATED INFORMATION
       Functions:  ctermid(3)

CATEGORY INDEX
	vms-system(5)

       delim off

					       Digital UNIX Diffs - ctermid(5)
[top]

List of man pages available for DigitalUNIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net