*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: ctermid | Section: 3 | Source: OpenBSD | File: ctermid.3
CTERMID(3) FreeBSD Library Functions Manual CTERMID(3) NAME ctermid - generate terminal pathname SYNOPSIS #include <stdio.h> char * ctermid(char *buf); DESCRIPTION The ctermid() function generates a string that, when used as a pathname, refers to the current controlling terminal of the calling process. If buf is a null pointer, a pointer to a static area is returned. Otherwise, the pathname is copied into the memory referenced by buf. The argument buf is assumed to point to an array at least L_ctermid (as defined in the include file <stdio.h>) bytes long. The current implementation simply generates "/dev/tty". RETURN VALUES The ctermid() function returns a non-null pointer, which is equal to the buf argument if it is not NULL. ERRORS The current implementation detects no error conditions. SEE ALSO ttyname(3) STANDARDS The ctermid() function conforms to IEEE Std 1003.1-1988 ("POSIX.1"). FreeBSD 14.1-RELEASE-p8 January 21, 2014 FreeBSD 14.1-RELEASE-p8

Navigation Options