.\" -*- coding: UTF-8 -*- .\" %%%LICENSE_START(PUBLIC_DOMAIN) .\" This page is in the public domain. - aeb .\" %%%LICENSE_END .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH GRANTPT 3 "15 Septiembre 2017" GNU "Manual del Programador de Linux" .SH NOMBRE grantpt \- concede acceso a la pseudoterminal esclava .SH SINOPSIS \fB#include \fP .PP \fBint grantpt(int \fP\fIfd\fP\fB);\fP .PP .RS -4 Requisitos de Macros de Prueba de Características para glibc (véase \fBfeature_test_macros\fP(7)): .RE .PP .ad l \fBgrantpt\fP(): .br .RS 4 Desde glibc 2.24: _XOPEN_SOURCE\ >=\ 500 || (_XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED) .br Glibc 2.23 and earlier: _XOPEN_SOURCE .RE .ad .SH DESCRIPCIÓN The \fBgrantpt\fP() function changes the mode and owner of the slave pseudoterminal device corresponding to the master pseudoterminal referred to by the file descriptor \fIfd\fP. 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., \fItty\fP). The mode of the slave is set to 0620 (crw\-\-w\-\-\-\-). .PP El comportamiento de \fBgrantpt\fP() es indefinido si se ha instalado un manejador de señales que capture señales \fBSIGCHLD\fP. .SH "VALOR DEVUELTO" Cuando tiene éxito, \fBgrantpt\fP() devuelve 0. En otro caso, devuelve \-1 y asigna a \fIerrno\fP un valor apropiado. .SH ERRORES .TP \fBEACCES\fP No se pudo acceder a la pseudoterminal esclava. .TP \fBEBADF\fP El argumento \fIfd\fP no es un descriptor de fichero abierto válido. .TP \fBEINVAL\fP El argumento \fIfd\fP es válido pero no está asociado con una pseudoterminal maestra. .SH VERSIONES \fBgrantpt\fP() is provided in glibc since version 2.1. .SH ATRIBUTOS Para obtener una explicación de los términos usados en esta sección, véase \fBattributes\fP(7). .TS allbox; lb lb lb l l l. Interfaz Atributo Valor T{ \fBgrantpt\fP() T} Seguridad del hilo Configuración regional de multi\-hilo seguro .TE .sp 1 .SH "CONFORME A" POSIX.1\-2001, POSIX.1\-2008. .SH NOTAS This is part of the UNIX 98 pseudoterminal support, see \fBpts\fP(4). .PP 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 (\fBposix_openpt\fP(3)), so that nothing must be done by \fBgrantpt\fP(). 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). .SH "VÉASE TAMBIÉN" \fBopen\fP(2), \fBposix_openpt\fP(3), \fBptsname\fP(3), \fBunlockpt\fP(3), \fBpts\fP(4), \fBpty\fP(7) .SH COLOFÓN Esta página es parte de la versión 5.10 del proyecto Linux \fIman\-pages\fP. 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/. .SH TRADUCCIÓN La traducción al español de esta página del manual fue creada por Gerardo Aburruzaga García . Esta traducción es documentación libre; lea la .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3 .UE 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 .MT debian-l10n-spanish@lists.debian.org>. .ME .