getpt(3) | Library Functions Manual | getpt(3) |
NOMBRE
getpt - abre la pseudoterminal maestra
BIBLIOTECA
Biblioteca Estándar C (libc, -lc)
SINOPSIS
#define _GNU_SOURCE /* Vea feature_test_macros(7) */ #include <stdlib.h>
int getpt(void);
DESCRIPCIÓN
getpt() opens a new pseudoterminal device and returns a file descriptor that refers to that device. It is equivalent to opening the pseudoterminal multiplexor device
open("/dev/ptmx", O_RDWR);
on Linux systems, though the pseudoterminal multiplexor device is located elsewhere on some systems that use the GNU C library.
VALOR DEVUELTO
getpt() devuelve un descriptor de fichero abierto si se completa con éxito. En otro caso devuelve -1 y modifica errno para indicar el error.
ERRORES
getpt() can fail with various errors described in open(2).
VERSIONES
getpt() is provided since glibc 2.1.
ATRIBUTOS
Para obtener una explicación de los términos usados en esta sección, véase attributes(7).
Interfaz | Atributo | Valor |
getpt() | Seguridad del hilo | Multi-hilo seguro |
ESTÁNDARES
getpt() is glibc-specific; use posix_openpt(3) instead.
VÉASE TAMBIÉN
grantpt(3), posix_openpt(3), ptsname(3), unlockpt(3), ptmx(4), pty(7)
TRADUCCIÓN
La traducción al español de esta página del manual fue creada por Gerardo Aburruzaga García <gerardo.aburruzaga@uca.es>
Esta traducción es documentación libre; lea la GNU General Public License Version 3 o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD.
Si encuentra algún error en la traducción de esta página del manual, envíe un correo electrónico a debian-l10n-spanish@lists.debian.org.
15 Diciembre 2022 | Páginas de manual de Linux 6.03 |