.\" -*- coding: UTF-8 -*- .\" This page was taken from the 4.4BSD-Lite CDROM (BSD license) .\" .\" %%%LICENSE_START(BSD_ONELINE_CDROM) .\" This page was taken from the 4.4BSD-Lite CDROM (BSD license) .\" %%%LICENSE_END .\" .\" @(#)getrpcent.3n 2.2 88/08/02 4.0 RPCSRC; from 1.11 88/03/14 SMI .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH GETRPCENT 3 "11 Abril 2020" "" "Manual del Programador de Linux" .SH NOMBRE getrpcent, getrpcbyname, getrpcbynumber, setrpcent, endrpcent \- obtienen una entrada RPC .SH SINOPSIS .nf \fB#include \fP .PP \fBstruct rpcent *getrpcent(void);\fP .PP \fBstruct rpcent *getrpcbyname(const char *\fP\fIname\fP\fB);\fP .PP \fBstruct rpcent *getrpcbynumber(int \fP\fInumber\fP\fB);\fP .PP \fBvoid setrpcent(int \fP\fIstayopen\fP\fB);\fP .PP \fBvoid endrpcent(void);\fP .fi .SH DESCRIPCIÓN The \fBgetrpcent\fP(), \fBgetrpcbyname\fP(), and \fBgetrpcbynumber\fP() functions each return a pointer to an object with the following structure containing the broken\-out fields of an entry in the RPC program number data base. .PP .in +4n .EX struct rpcent { char *r_name; /* nom. del servidor para este programa RPC */ char **r_aliases; /* lista de alias */ long r_number; /* número del programa RPC */ }; .EE .in .PP Los miembros de esta estructura son: .TP \fIr_name\fP El nombre del servidor para este programa RPC. .TP \fIr_aliases\fP Una lista terminada en NULL de nombres alternativos para el programa RPC. .TP \fIr_number\fP El número del programa RPC para este servicio. .PP The \fBgetrpcent\fP() function reads the next entry from the database. A connection is opened to the database if necessary. .PP The \fBsetrpcent\fP() function opens a connection to the database, and sets the next entry to the first entry. If \fIstayopen\fP is nonzero, then the connection to the database will not be closed between calls to one of the \fBgetrpc*\fP() functions. .PP The \fBendrpcent\fP() function closes the connection to the database. .PP \fBgetrpcbyname\fP() y \fBgetrpcbynumber\fP() examinan secuencialmente el fichero, desde el principio, hasta que encuentran un nombre de programa RPC o un número de programa coincidente, o hasta que se encuentre el final del fichero. .SH "VALOR DEVUELTO" On success, \fBgetrpcent\fP(), \fBgetrpcbyname\fP(), and \fBgetrpcbynumber\fP() return a pointer to a statically allocated \fIrpcent\fP structure. NULL is returned on EOF or error. .SH ARCHIVOS .TP \fI/etc/rpc\fP RPC program number database. .SH ATRIBUTOS Para obtener una explicación de los términos usados en esta sección, véase \fBattributes\fP(7). .TS allbox; lbw28 lb lb l l l. Interfaz Atributo Valor T{ \fBgetrpcent\fP(), \fBgetrpcbyname\fP(), .br \fBgetrpcbynumber\fP() T} Seguridad del hilo MT\-Unsafe T{ \fBsetrpcent\fP(), \fBendrpcent\fP() T} Seguridad del hilo Configuración regional de multi\-hilo seguro .TE .sp 1 .SH "CONFORME A" Not in POSIX.1. Present on the BSDs, Solaris, and many other systems. .SH ERRORES Toda la información se almacenada en un área estática por lo que debe copiarse a otro sitio si se va a guardar. .SH "VÉASE TAMBIÉN" \fBgetrpcent_r\fP(3), \fBrpc\fP(5), \fBrpcinfo\fP(8), \fBypserv\fP(8) .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 Juan Piernas . 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 .