Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ tcgetsid(3) — OSF/1 3.0 αXP

Media Vault

Software Library

Restoration Projects

Artifacts Sought

tcgetsid(3)  —  Subroutines

NAME

tcgetsid − Returns the session ID of the terminal

LIBRARY

Standard C Library (libc.a)

SYNOPSIS

pid_t tcgetsid (
      int fildes );

PARAMETERS

fildesSpecifies a terminal. 

DESCRIPTION

The tcgetsid routine is a part of the general terminal interface.  This routine obtains the session ID of the terminal as specified by the fildes parameter. 

RETURN VALUE

On success, the tcgetsid returns the session ID that is associated with the terminal specified.  If the session ID of the terminal cannot be obtained, a value of -1 is returned and errno is set to indicate error. 

ERRORS

[EBADF]The descriptor fildes is not valid. 

[ENOTTY]The descriptor fildes is not associated with a character special device. 

[ENOTTY]The specified request does not apply to the kind of object that fildes references. 

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026