.\" -*- coding: UTF-8 -*- '\" t .\" 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 "20 ​​Julio 2023" "Páginas de manual de Linux 6.05.01" .SH NOMBRE getrpcent, getrpcbyname, getrpcbynumber, setrpcent, endrpcent \- obtienen una entrada RPC .SH BIBLIOTECA Biblioteca Estándar C (\fIlibc\fP, \fI\-lc\fP) .SH SINOPSIS .nf \fB#include \fP .PP \fBstruct rpcent *getrpcent(void);\fP .PP \fBstruct rpcent *getrpcbyname(const char *\fP\fInombre\fP\fB);\fP \fBstruct rpcent *getrpcbynumber(int \fP\fInúmero\fP\fB);\fP .PP \fBvoid setrpcent(int \fP\fIsigue_abierto\fP\fB);\fP \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 La función \fBgetrpcent\fP() lee la siguiente línea de la base de datos. Si necesario se abre una conexión a la base de datos. .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 La función \fBendrpcent\fP() cierra la conexión a la base de datos. .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; lbx lb lb l l l. Interfaz Atributo Valor T{ .na .nh \fBgetrpcent\fP(), \fBgetrpcbyname\fP(), \fBgetrpcbynumber\fP() T} Seguridad del hilo MT\-Unsafe T{ .na .nh \fBsetrpcent\fP(), \fBendrpcent\fP() T} Seguridad del hilo Configuración regional de multi\-hilo seguro .TE .sp 1 .SH ESTÁNDARES BSD. .SH HISTORIAL BSD, Solaris. .SH ERRORES Toda la información se almacena 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) .PP .SH TRADUCCIÓN La traducción al español de esta página del manual fue creada por Juan Piernas y Marcos Fouces . .PP 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. .PP 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 .