oracular (3) getpt.3.gz

Provided by: manpages-es-dev_4.23.1-1_all bug

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).

ATRIBUTOS

       Para obtener una explicación de los términos usados en esta sección, véase attributes(7).

       ┌───────────────────────────────────────────────────────────────┬────────────────────┬───────────────────┐
       │InterfazAtributoValor             │
       ├───────────────────────────────────────────────────────────────┼────────────────────┼───────────────────┤
       │getpt()                                                        │ Seguridad del hilo │ Multi-hilo seguro │
       └───────────────────────────────────────────────────────────────┴────────────────────┴───────────────────┘

VERSIONES

       Use posix_openpt(3)  instead.

ESTÁNDARES

       GNU.

HISTORIAL

       glibc 2.1.

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
       ⟨https://www.gnu.org/licenses/gpl-3.0.html⟩ 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⟩.