from small one page howto to huge articles all in one place

search text in:




Other .linuxhowtos.org sites:gentoo.linuxhowtos.org



Last additions:
using iotop to find disk usage hogs

using iotop to find disk usage hogs

words:

887

views:

209807

userrating:


May 25th. 2007:
Words

486

Views

258802

why adblockers are bad


Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

words:

161

views:

150129

userrating:


April, 26th. 2006:

Druckversion
You are here: manpages





getpt

Section: C Library Functions (3)
Updated: 202-1-26
Index Return to Main Contents
 

NAME

getpt - open a new pseudoterminal master  

LIBRARY

Standard C library (libc,~-lc)  

SYNOPSIS

#define _GNU_SOURCE             /* See feature_test_macros(7) */
#include <stdlib.h>
int getpt(void);
 

DESCRIPTION

getpt() opens a new pseudoterminal device and returns a file descriptor that refers to that device. It is equivalent to opening the pseudoterminal multiplexer device open("/dev/ptmx", O_RDWR); on Linux systems, though the pseudoterminal multiplexer device is located elsewhere on some systems that use the GNU C library.  

RETURN VALUE

getpt() returns an open file descriptor upon successful completion. Otherwise, it returns -1 and sets errno to indicate the error.  

ERRORS

getpt() can fail with various errors described in open(2).  

ATTRIBUTES

For an explanation of the terms used in this section, see attributes(7).
InterfaceAttributeValue
getpt() Thread safetyM-Safe
 

VERSIONS

Use posix_openpt(3) instead.  

STANDARDS

GNU.  

HISTORY

glibc 2.1.  

SEE ALSO

grantpt(3), posix_openpt(3), ptsname(3), unlockpt(3), ptmx(4), pty(7)


 

Index

NAME
LIBRARY
SYNOPSIS
DESCRIPTION
RETURN VALUE
ERRORS
ATTRIBUTES
VERSIONS
STANDARDS
HISTORY
SEE ALSO





Support us on Content Nation
rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2025 Sascha Nitsch Unternehmensberatung GmbH
Valid XHTML1.1 : Valid CSS
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 9.2 ms