grantpt(3) Library Functions Manual grantpt(3) NOMBRE grantpt - concede acceso a la pseudoterminal esclava BIBLIOTECA Biblioteca Estandar C (libc, -lc) SINOPSIS #include int grantpt(int fd); Requisitos de Macros de Prueba de Caracteristicas para glibc (vease feature_test_macros(7)): grantpt(): Since glibc 2.24: _XOPEN_SOURCE >= 500 glibc 2.23 and earlier: _XOPEN_SOURCE DESCRIPCION The grantpt() function changes the mode and owner of the slave pseudoterminal device corresponding to the master pseudoterminal referred to by the file descriptor fd. The user ID of the slave is set to the real UID of the calling process. The group ID is set to an unspecified value (e.g., tty). The mode of the slave is set to 0620 (crw--w----). El comportamiento de grantpt() es indefinido si se ha instalado un manejador de senales que capture senales SIGCHLD. VALOR DEVUELTO When successful, grantpt() returns 0. Otherwise, it returns -1 and sets errno to indicate the error. ERRORES EACCES No se pudo acceder a la pseudoterminal esclava. EBADF El argumento fd no es un descriptor de fichero abierto valido. EINVAL El argumento fd es valido pero no esta asociado con una pseudoterminal maestra. ATRIBUTOS Para obtener una explicacion de los terminos usados en esta seccion, vease attributes(7). +----------+--------------------+-----------------------------------------------+ |Interfaz | Atributo | Valor | +----------+--------------------+-----------------------------------------------+ |grantpt() | Seguridad del hilo | Configuracion regional de multi-hilo seguro | +----------+--------------------+-----------------------------------------------+ ESTANDARES POSIX.1-2008. HISTORIAL glibc 2.1. POSIX.1-2001. This is part of the UNIX 98 pseudoterminal support, see pts(4). Historical systems implemented this function via a set-user-ID helper binary called "pt_chown". glibc on Linux before glibc 2.33 could do so as well, in order to support configurations with only BSD pseudoterminals; this support has been removed. On modern systems this is either a no-op --with permissions configured on pty allocation, as is the case on Linux-- or an ioctl(2). VEASE TAMBIEN open(2), posix_openpt(3), ptsname(3), unlockpt(3), pts(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 grantpt(3)