getpt(3) Library Functions Manual getpt(3) NOMBRE getpt - abre la pseudoterminal maestra BIBLIOTECA Biblioteca Estandar C (libc, -lc) SINOPSIS #define _GNU_SOURCE /* Vea feature_test_macros(7) */ #include int getpt(void); DESCRIPCION 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 exito. 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 explicacion de los terminos usados en esta seccion, vease attributes(7). +-----------------------------+--------------------+-------------------+ |Interfaz | Atributo | Valor | +-----------------------------+--------------------+-------------------+ |getpt() | Seguridad del hilo | Multi-hilo seguro | +-----------------------------+--------------------+-------------------+ VERSIONES Use posix_openpt(3) instead. ESTANDARES GNU. HISTORIAL glibc 2.1. VEASE TAMBIEN grantpt(3), posix_openpt(3), ptsname(3), unlockpt(3), ptmx(4), pty(7) TRADUCCION La traduccion al espanol de esta pagina del manual fue creada por Gerardo Aburruzaga Garcia Esta traduccion es documentacion libre; lea la GNU General Public License Version 3 o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD. Si encuentra algun error en la traduccion de esta pagina del manual, envie un correo electronico a . Paginas de manual de Linux 6.06 31 Octubre 2023 getpt(3)