Provided by: manpages-es-dev_4.13-4_all bug

NOMBRE

       grantpt - concede acceso a la pseudoterminal esclava

SINOPSIS

       #include <stdlib.h>

       int grantpt(int fd);

   Requisitos de Macros de Prueba de Características para glibc (véase feature_test_macros(7)):

       grantpt():
           Desde glibc 2.24:
               _XOPEN_SOURCE >= 500 ||
                   (_XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED)
           Glibc 2.23 and earlier:
               _XOPEN_SOURCE

DESCRIPCIÓN

       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  señales
       que capture señales SIGCHLD.

VALOR DEVUELTO

       Cuando  tiene  éxito, grantpt()  devuelve 0. En otro caso, devuelve -1 y asigna a errno un
       valor apropiado.

ERRORES

       EACCES No se pudo acceder a la pseudoterminal esclava.

       EBADF  El argumento fd no es un descriptor de fichero abierto válido.

       EINVAL El argumento fd es válido pero no está asociado con una pseudoterminal maestra.

VERSIONES

       grantpt()  is provided in glibc since version 2.1.

ATRIBUTOS

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

       ┌──────────┬────────────────────┬─────────────────────────────────────────────┐
       │InterfazAtributoValor                                       │
       ├──────────┼────────────────────┼─────────────────────────────────────────────┤
       │grantpt() │ Seguridad del hilo │ Configuración regional de multi-hilo seguro │
       └──────────┴────────────────────┴─────────────────────────────────────────────┘

CONFORME A

       POSIX.1-2001, POSIX.1-2008.

NOTAS

       This is part of the UNIX 98 pseudoterminal support, see pts(4).

       Many systems implement this function via a set-user-ID helper  binary  called  "pt_chown".
       On  Linux  systems with a devpts filesystem (present since Linux 2.2), the kernel normally
       sets the correct ownership and permissions for the pseudoterminal slave when the master is
       opened (posix_openpt(3)), so that nothing must be done by grantpt().  Thus, no such helper
       binary is required (and indeed it is configured to be absent during the glibc  build  that
       is typical on many systems).

VÉASE TAMBIÉN

       open(2), posix_openpt(3), ptsname(3), unlockpt(3), pts(4), pty(7)

COLOFÓN

       Esta  página es parte de la versión 5.10 del proyecto Linux man-pages. Puede encontrar una
       descripción del proyecto, información sobre cómo informar errores y la última  versión  de
       esta página en https://www.kernel.org/doc/man-pages/.

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 ⟨⟩.